Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ different OpenModelica versions, according to the conditions of the
the model's simulation flags, its `-sx` measurements included, are then
given to `translateModel` too, and the report the run writes (`<model>.html`
and the pages it links) is published in `files/<model>.dr/`, linked as
`(dr)` next to `(sim)`, with a *Data reconciliation* column in the library
page.
`(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.
[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
Expand Down
6 changes: 3 additions & 3 deletions report.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
libnames = set(shared.libname(library,conf) for (library,conf) in configs)
# What a data reconciliation run simulates is the model the reconciliation
# extracted, not the library's model.
simulationLabel = "Simulation (DR model)" if configs and all(conf.get("dataReconciliation") for (library,conf) in configs) else "Simulation"
simulationLabel = shared.DR_SIMULATION_LABEL if configs and all(conf.get("dataReconciliation") for (library,conf) in configs) else "Simulation"
entryhead = "<tr><th>Branch</th><th>Total</th><th>Parsing</th><th>Frontend</th><th>Backend</th><th>SimCode</th><th>Templates</th><th>Compilation</th><th>%s</th><th>Verification</th></tr>\n" % simulationLabel

db = resultsdb.connect(args.db)
Expand Down Expand Up @@ -186,8 +186,8 @@ def branchesTable(view):
t[branch]["simulate"], t[branch]["verify"],
' class="warning"' if expected[view] != t[branch]["total"] else "", t[branch]["total"]) for branch in branches]
return ('<div class="view view-%s"><table class="branches"><caption>%s</caption>\n<tr><th>Branch</th><th>Version</th><th>Build time</th>'
'<th>Execution time</th><th>Simulation time</th><th>%s</th><th># Verify</th><th># Total</th></tr>\n%s</table></div>\n'
% (view, BRANCH_CAPTIONS[view], simulateLabel, "".join(lines)))
'<th>Execution time</th><th>%s time</th><th>%s</th><th># Verify</th><th># Total</th></tr>\n%s</table></div>\n'
% (view, BRANCH_CAPTIONS[view], simulationLabel, simulateLabel, "".join(lines)))

template = open("overview.html.tpl").read()
replacements = (
Expand Down
4 changes: 4 additions & 0 deletions shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ def libname(library, conf):
return library+"_"+conf["libraryVersionNameForTests"] if conf["libraryVersionNameForTests"] else library
return library+("_"+conf["libraryVersion"] if conf["libraryVersion"]!="default" else "")+(("_" + conf["configExtraName"]) if "configExtraName" in conf else "")

# What the reports of a data reconciliation run call the simulation phase: the
# executable of such a run computes the reconciliation of the extracted model.
DR_SIMULATION_LABEL = "Reconciliation computation"

# A model the run no longer found in its library; the reports ask for >= 0.
DELETED_PHASE = -1

Expand Down
10 changes: 5 additions & 5 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ def drLink(filename_prefix, data):
return ' (<a href="%s.dr/%s.html">dr</a>)' % (filename_prefix, os.path.basename(filename_prefix))

def drCell(conf, data):
"""The Data reconciliation cell of a model, for the libraries tested with it."""
"""The Reconciliation result cell of a model, for the libraries tested with it."""
if not conf.get("dataReconciliation"):
return ""
dr = data.get("dr") or {}
Expand All @@ -1362,8 +1362,8 @@ def drSummary(conf, stats):
if not conf.get("dataReconciliation"):
return ("", "", "")
n = sum(1 for s in stats if (s[3].get("dr") or {}).get("reconciled"))
return ("<th>Data reconciliation</th>", '<td bgcolor="%s">%d</td>' % ("#00FF00" if n == len(stats) else "#FFCC66", n),
"<th>Data reconciliation</th>")
return ("<th>Reconciliation result</th>", '<td bgcolor="%s">%d</td>' % ("#00FF00" if n == len(stats) else "#FFCC66", n),
"<th>Reconciliation result</th>")

def invalidCross(data):
"""A red cross for a model that needs non-standard Modelica, naming what it needs."""
Expand Down Expand Up @@ -1633,8 +1633,8 @@ def publishLibrary(libname):
(u"#drSummaryHeader#", drSummaryHeader),
(u"#drSummary#", drSummaryCell),
(u"#drHeader#", drHeader),
(u"#simulationLabel#", "Simulation (DR model)" if conf.get("dataReconciliation") else "Simulation"),
(u"#simulateLabel#", "Simulation (DR model)" if conf.get("dataReconciliation") else "Simulate"),
(u"#simulationLabel#", shared.DR_SIMULATION_LABEL if conf.get("dataReconciliation") else "Simulation"),
(u"#simulateLabel#", shared.DR_SIMULATION_LABEL if conf.get("dataReconciliation") else "Simulate"),
(u"#sysInfo#", html.escape(sysInfo)),
(u"#omcVersion#", html.escape(omc_version)),
(u"#fmiToolVersion#", ("<p>"+html.escape("FMI tool: %s" % fmisimulatorversion)+"</p>") if fmisimulatorversion else ""),
Expand Down
Loading