Skip to content

Commit c260322

Browse files
AnHeuermannclaude
andcommitted
Finer error reports for parsing Base Modelica
* Added separate log files and timings for steps of parsing: * Phase 2a: ANTLR parser * Phase 2b: Base Modelica → ModelingToolkit conversion * Phase 2c: ODEProblem generation * Update HTML report and overview. * Updated summary.json Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 87888ec commit c260322

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/report.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function generate_report(results::Vector{ModelResult}, results_root::String,
120120
antlr_status = !r.export_success ? "na" : (r.antlr_success ? "pass" : "fail")
121121
mtk_status = !r.antlr_success ? "na" : (r.mtk_success ? "pass" : "fail")
122122
ode_status = !r.mtk_success ? "na" : (r.ode_success ? "pass" : "fail")
123+
sim_status = !r.ode_success ? "na" : (r.sim_success ? "pass" : "fail")
123124

124125
antlr_cell = antlr_status == "na" ? """<td class="na">—</td>""" :
125126
_status_cell(r.antlr_success, r.antlr_time,
@@ -130,14 +131,17 @@ function generate_report(results::Vector{ModelResult}, results_root::String,
130131
ode_cell = ode_status == "na" ? """<td class="na">—</td>""" :
131132
_status_cell(r.ode_success, r.ode_time,
132133
rel_log_file_or_nothing(results_root, r.name, "ode"))
134+
sim_cell = sim_status == "na" ? """<td class="na">—</td>""" :
135+
_status_cell(r.sim_success, r.sim_time,
136+
rel_log_file_or_nothing(results_root, r.name, "sim"))
133137

134-
""" <tr data-exp="$(r.export_success ? "pass" : "fail")" data-antlr="$(antlr_status)" data-mtk="$(mtk_status)" data-ode="$(ode_status)" data-sim="$(r.sim_success ? "pass" : "fail")" data-cmp="$(_cmp_status(r))">
138+
""" <tr data-exp="$(r.export_success ? "pass" : "fail")" data-antlr="$(antlr_status)" data-mtk="$(mtk_status)" data-ode="$(ode_status)" data-sim="$(sim_status)" data-cmp="$(_cmp_status(r))">
135139
<td><a href="files/$(r.name)/$(r.name).bmo">$(r.name).bmo</a></td>
136140
$(_status_cell(r.export_success, r.export_time, rel_log_file_or_nothing(results_root, r.name, "export")))
137141
$(antlr_cell)
138142
$(mtk_cell)
139143
$(ode_cell)
140-
$(_status_cell(r.sim_success, r.sim_time, rel_log_file_or_nothing(results_root, r.name, "sim")))
144+
$(sim_cell)
141145
$(_cmp_cell(r, results_root, csv_max_size_mb))
142146
</tr>"""
143147
end for r in results], "\n")
@@ -164,7 +168,7 @@ function generate_report(results::Vector{ModelResult}, results_root::String,
164168
td.ok { background: #d4edda; color: #155724; }
165169
td.partial { background: #fff3cd; color: #856404; }
166170
td.fail { background: #f8d7da; color: #721c24; }
167-
td.na { color: #888; }
171+
td.na { background: #f8d7da; color: #888; }
168172
a { color: #0366d6; text-decoration: none; }
169173
a:hover { text-decoration: underline; }
170174
.filter-row th { background: #f5f5f5; }

0 commit comments

Comments
 (0)