From cf2add1de19bc967887ad7762458662cf56f1b86 Mon Sep 17 00:00:00 2001 From: Adrian Pop Date: Tue, 1 Dec 2026 11:33:11 +0100 Subject: [PATCH] Add a Reconciliation extraction column to the data reconciliation reports A data reconciliation run has two steps: omc extracts the model to reconcile in its back end, and the executable computes the reconciliation. The reports only showed the second one. A failed extraction looked like any other back end failure, and a model that was extracted but failed later in the back end looked like a failed extraction (OpenModelica/OpenModelica#14817). A model counts as extracted when omc wrote _Reconciled_tmp.mo, which both back ends write at the end of the extraction. The file is collected with the other data reconciliation files, also when the run wrote no report, and the cell of the library page links it. The result tables keep the status in a new drextracted column, added to the existing sqlite and PostgreSQL tables, so that the overview can count it next to "Reconciliation computation". Co-Authored-By: Claude Fable 5.2 --- README.md | 4 ++++ library.html.tpl | 6 +++--- report.py | 41 +++++++++++++++++++++++++++----------- resultsdb.py | 17 ++++++++++++++-- shared.py | 2 ++ sqlite2postgres.py | 1 + test.py | 49 ++++++++++++++++++++++++++++++++++++---------- testmodel.py | 20 ++++++++++++++----- 8 files changed, 109 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 2234c509..abfbf273 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,10 @@ different OpenModelica versions, according to the conditions of the `(dr)` next to `(sim)`, with a *Reconciliation result* column in the library page. The simulation columns of the reports are titled *Reconciliation computation* for such a library. + A *Reconciliation extraction* column before it says whether omc extracted + the model to reconcile, which it does in its back end: the model counts as + extracted when omc wrote `_Reconciled_tmp.mo`, the file the cell + links. The result database keeps that as `drextracted`, for the overview. [configs/dataReconciliation-newBackend.json](./configs/dataReconciliation-newBackend.json) is the same configuration with `--newBackend`; it fills the branch `dataReconciliation-newBackend`, and `overview-dataReconciliation.html` has diff --git a/library.html.tpl b/library.html.tpl index 82067c76..ac1f45f0 100644 --- a/library.html.tpl +++ b/library.html.tpl @@ -19,7 +19,7 @@ SimCode Templates Compilation -#simulationLabel# +#drExtractionHeader##simulationLabel# #drSummaryHeader#Verification @@ -30,7 +30,7 @@ #SimCode# #Templates# #Compilation# -#Simulation# +#drExtractionSummary##Simulation# #drSummary##Verification# @@ -59,7 +59,7 @@ Config:
#config#

Links are provided if getErrorString() or the simulation generates output. The links are coded with red if there were errors, yellow if there were warnings, and normal links if there are only notifications.

#invalidNote# -#drHeader# +#drExtractionHeader##drHeader# #testsHTML#
ModelVerified#simulateLabel#Total buildModelParsingFrontendBackendSimCodeTemplatesCompileTotal Execution
ModelVerified#simulateLabel#Total buildModelParsingFrontendBackendSimCodeTemplatesCompileTotal Execution