Skip to content

Add a Reconciliation extraction column to the data reconciliation reports - #436

Merged
adrpo merged 1 commit into
OpenModelica:masterfrom
adrpo:dr-extraction-column
Dec 1, 2026
Merged

adrpo merged 1 commit into
OpenModelica:masterfrom
adrpo:dr-extraction-column

Conversation

@adrpo

@adrpo adrpo commented Dec 1, 2026

Copy link
Copy Markdown
Member

Related to OpenModelica/OpenModelica#14817: a column that says whether the extraction was successful, left of "Reconciliation computation" (follow-up of #435).

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.

What counts as extracted: omc wrote <model>_Reconciled_tmp.mo. Both back ends write that file at the end of the extraction, and the executable reconciles it.

Changes

  • testmodel.py: records extracted and collects the extracted model with the other data reconciliation files, also when the run wrote no report (omc failed after the extraction).
  • Library page: a "Reconciliation extraction" count in the summary and a cell per model, extracted (linking the extracted model) or failed.
  • Overview: a "Reconciliation extraction" count in "Models that completed each phase". The time table does not get the column, the extraction is part of the Backend time.
  • Result database: a new drextracted column in the branch tables, which the overview reads. Existing sqlite tables get it with default 0 (schema version 7), existing PostgreSQL tables get it as a nullable column, like invalid before it. A row without the value counts as extracted when it got through the back end.

The reports of the other libraries are unchanged.

Local test (omc v1.28.0-dev.1860, both configurations, 66 models each)

Backend Reconciliation extraction Reconciliation computation
ModelicaDataReconciliationSimpleTests, old backend 28 28 27
ModelicaDataReconciliationSimpleTests, new backend 28 28 27
TSP_DataReconciliationSimpleTests, old backend 31 35 22
TSP_DataReconciliationSimpleTests, new backend 31 35 17

So 4 TSP models are extracted and then fail later in the back end, and 3 models of the 66 fail the extraction itself (Splitter8, TSP_Pipe4, PressureLoss_DR). Every link of the generated library pages resolves. The sanityCheck run of the CI gives the expected row with sqlite and with a local PostgreSQL, and adding the column to an existing PostgreSQL table was tested there too.


generated by Claude Code

🤖 Generated with Claude Code

…orts

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 <model>_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 <noreply@anthropic.com>
@adrpo adrpo self-assigned this Dec 1, 2026
@adrpo
adrpo merged commit 0f0b109 into OpenModelica:master Dec 1, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant