Skip to content

Commit 5d581e0

Browse files
authored
Update OpenModelicaLibraryTesting version (#52)
* Update OpenModelicaLibraryTesting SHA - Version with fixed OMPython==3.6 * Updating summary.ts - Result table is now the third HTML table in the library overview HTML file - Update unit test for `summaryFromHtml`
1 parent 6c60535 commit 5d581e0

23 files changed

Lines changed: 1257 additions & 27 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
monotonic `
4646
natsort `
4747
joblib `
48-
ompython `
48+
ompython==3.6 `
4949
simplejson `
5050
psutil
5151

__tests__/installdeps.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ matplotlib
1414
monotonic
1515
natsort
1616
joblib
17-
ompython
17+
ompython==3.6
1818
simplejson
1919
psutil
2020
`

__tests__/summary.test.ts

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,27 @@ const htmlLibOverview = `<!DOCTYPE html>
3838
</table>
3939
4040
<p>
41-
Test started: 2024-03-01 17:06:15<br/>
42-
Total time taken: 0:00:10<br>
43-
System info: 12th Gen Intel(R) Core(TM) i7-12800H, 16 GB RAM, Ubuntu 22.04.3 LTS</p>
44-
<p>OpenModelica Version: v1.23.0-dev-327-g472467ba99-cmake<br>
45-
<br>
41+
Test started: 2025-11-12 14:21:56<br/>
42+
Total time taken: 0:00:15<br>
43+
System info: Intel(R) Core(TM) i7-10700KF CPU @ 3.80GHz, 16 GB RAM, Ubuntu 24.04.3 LTS</p>
44+
<p>OpenModelica Version: v1.26.0-dev-471-g729822b244-cmake<br>
45+
46+
4647
OpenModelicaLibraryTesting Changes<br>
47-
<table><tr><th>Commit</th><th>Date</th><th>Author</th><th>Summary</th></tr><tr><td><a href="https://github.com/OpenModelica/OpenModelicaLibraryTesting/commit//981cf23">981cf23</a></td><td>2024-03-01 11:47:30 +0100</td><td>Andreas</td><td>Updating README (#60)</td></tr></table>
48+
<table><tr><th>Commit</th><th>Date</th><th>Author</th><th>Summary</th></tr><tr><td><a href="https://github.com/OpenModelica/OpenModelicaLibraryTesting/commit//601633f">601633f</a></td><td>2025-11-12 12:03:57 +0100</td><td>Andreas</td><td>Fixing OMPython at v3.6 (#245)</td></tr></table>
4849
</p>
4950
<p>Tested Library: 1.0.0<pre>
5051
</pre></p>
51-
<p>BuildModel time limit: 660s</p>
52-
<p>Simulation time limit: 480s</p>
53-
<p>Default tolerance: 1e-06</p>
54-
<p>Optimization level: -Os -march=native</p>
55-
<p>Reference Files: /path/to/ReferenceFiles</p>
56-
<p>Verified using: v1.23.0-dev-203-g5904d1ea84-cmake (diffSimulationResults)</p>
52+
<p>
53+
BuildModel time limit: 660s<br>
54+
Simulation time limit: 480s<br>
55+
Default tolerance: 1e-06<br>
56+
Default number of intervals: 2500<br>
57+
Optimization level: Tool default</p>
58+
<p>Reference Files: /path/to/ReferenceFiles</p><table><tr><th>Commit</th><th>Date</th><th>Author</th><th>Summary</th></tr><tr><td><a href="git@github.com:OpenModelica/openmodelica-library-testing-action.git
59+
/996916f">996916f</a></td><td>2025-11-12 12:36:21 +0100</td><td>AnHeuermann</td><td>Update OpenModelicaLibraryTesting SHA</td></tr></table>
60+
61+
<p>Verified using: v1.26.0-dev-471-g729822b244-cmake (diffSimulationResults)</p>
5762
Flags: <pre>setCommandLineOptions(&quot;-d=nogen&quot;);
5863
setCommandLineOptions(&quot;-d=initialization&quot;);
5964
setCommandLineOptions(&quot;-d=backenddaeinfo&quot;);
@@ -68,17 +73,16 @@ Config: <pre>{
6873
&quot;loadFileCommands&quot;: [
6974
&quot;loadFile(\\&quot;/path/to/MyLibrary/package.mo\\&quot;)&quot;
7075
],
71-
&quot;optlevel&quot;: &quot;-Os -march=native&quot;,
7276
&quot;referenceFileExtension&quot;: &quot;csv&quot;,
7377
&quot;referenceFileNameDelimiter&quot;: &quot;.&quot;,
7478
&quot;referenceFiles&quot;: &quot;/path/to/ReferenceFiles&quot;
7579
}</pre>
7680
<p>Links are provided if getErrorString() or the simulation generates output. The links are coded with <font style="#FF0000">red</font> if there were errors, <font style="#FFCC66">yellow</font> if there were warnings, and normal links if there are only notifications.</p>
7781
<table>
7882
<tr><th>Model</th><th>Verified</th><th>Simulate</th><th>Total buildModel</th><th>Parsing</th><th>Frontend</th><th>Backend</th><th>SimCode</th><th>Templates</th><th>Compile</th><th>Total Execution</th></tr>
79-
<tr><td><a href="files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.err">MyLibrary.Blocks.Examples.PID_Controller</a> (<a href="files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.sim">sim</a>)</td><td bgcolor="#FFCC66">0.05 (<a href="files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.diff.html">4/7 failed</a>)</td><td bgcolor="#00FF00">0.02</td><td bgcolor="#00FF00">1.52</td><td>1.96</td><td bgcolor="#00FF00">0.08</td><td bgcolor="#00FF00">0.20</td><td bgcolor="#00FF00">0.01</td><td bgcolor="#00FF00">0.02</td><td bgcolor="#00FF00">1.20</td><td>4.60</td></tr>
83+
<tr><td><a href="files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.err">MyLibrary.Blocks.Examples.PID_Controller</a> (<a href="files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.sim">sim</a>)</td><td bgcolor="#FFCC66">0.08 (<a href="files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.diff.html">4/7 failed</a>)</td><td bgcolor="#00FF00">0.02</td><td bgcolor="#00FF00">2.25</td><td>3.68</td><td bgcolor="#00FF00">0.12</td><td bgcolor="#00FF00">0.07</td><td bgcolor="#00FF00">0.02</td><td bgcolor="#00FF00">0.05</td><td bgcolor="#00FF00">1.99</td><td>7.04</td></tr>
8084
81-
<tr><td><a href="files/MyLibrary_main_MyLibrary.Mechanics.MultiBody.Examples.Pendulum.err">MyLibrary.Mechanics.MultiBody.Examples.Pendulum</a> (<a href="files/MyLibrary_main_MyLibrary.Mechanics.MultiBody.Examples.Pendulum.sim">sim</a>)</td><td bgcolor="#00FF00">0.01 (3 verified)</td><td bgcolor="#00FF00">0.06</td><td bgcolor="#00FF00">2.32</td><td>1.95</td><td bgcolor="#00FF00">0.29</td><td bgcolor="#00FF00">0.22</td><td bgcolor="#00FF00">0.03</td><td bgcolor="#00FF00">0.06</td><td bgcolor="#00FF00">1.72</td><td>5.63</td></tr>
85+
<tr><td><a href="files/MyLibrary_main_MyLibrary.Mechanics.MultiBody.Examples.Pendulum.err">MyLibrary.Mechanics.MultiBody.Examples.Pendulum</a> (<a href="files/MyLibrary_main_MyLibrary.Mechanics.MultiBody.Examples.Pendulum.sim">sim</a>)</td><td bgcolor="#00FF00">0.03 (3 verified)</td><td bgcolor="#00FF00">0.09</td><td bgcolor="#00FF00">3.76</td><td>3.68</td><td bgcolor="#00FF00">0.18</td><td bgcolor="#00FF00">0.71</td><td bgcolor="#00FF00">0.05</td><td bgcolor="#00FF00">0.10</td><td bgcolor="#00FF00">2.73</td><td>8.59</td></tr>
8286
8387
</table>
8488
</body>
@@ -97,8 +101,8 @@ const markdownSummary = `## Summary
97101
98102
| Model | Verified | Simulate | Total buildModel | Parsing | Frontend | Backend | SimCode | Templates | Compile | Total Execution |
99103
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
100-
| [MyLibrary.Blocks.Examples.PID\\_Controller](https://USERNAME.github.io/REPOSITORY/stable/MyLibrary_pr-8/files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.err) ([sim](https://USERNAME.github.io/REPOSITORY/stable/MyLibrary_pr-8/files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.sim)) | 0.05 ([4/7 failed](https://USERNAME.github.io/REPOSITORY/stable/MyLibrary_pr-8/files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.diff.html)) | 0.02 | 1.52 | 1.96 | 0.08 | 0.20 | 0.01 | 0.02 | 1.20 | 4.60 |
101-
| [MyLibrary.Mechanics.MultiBody.Examples.Pendulum](https://USERNAME.github.io/REPOSITORY/stable/MyLibrary_pr-8/files/MyLibrary_main_MyLibrary.Mechanics.MultiBody.Examples.Pendulum.err) ([sim](https://USERNAME.github.io/REPOSITORY/stable/MyLibrary_pr-8/files/MyLibrary_main_MyLibrary.Mechanics.MultiBody.Examples.Pendulum.sim)) | 0.01 (3 verified) | 0.06 | 2.32 | 1.95 | 0.29 | 0.22 | 0.03 | 0.06 | 1.72 | 5.63 |
104+
| [MyLibrary.Blocks.Examples.PID\\_Controller](https://USERNAME.github.io/REPOSITORY/stable/MyLibrary_pr-8/files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.err) ([sim](https://USERNAME.github.io/REPOSITORY/stable/MyLibrary_pr-8/files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.sim)) | 0.08 ([4/7 failed](https://USERNAME.github.io/REPOSITORY/stable/MyLibrary_pr-8/files/MyLibrary_main_MyLibrary.Blocks.Examples.PID_Controller.diff.html)) | 0.02 | 2.25 | 3.68 | 0.12 | 0.07 | 0.02 | 0.05 | 1.99 | 7.04 |
105+
| [MyLibrary.Mechanics.MultiBody.Examples.Pendulum](https://USERNAME.github.io/REPOSITORY/stable/MyLibrary_pr-8/files/MyLibrary_main_MyLibrary.Mechanics.MultiBody.Examples.Pendulum.err) ([sim](https://USERNAME.github.io/REPOSITORY/stable/MyLibrary_pr-8/files/MyLibrary_main_MyLibrary.Mechanics.MultiBody.Examples.Pendulum.sim)) | 0.03 (3 verified) | 0.09 | 3.76 | 3.68 | 0.18 | 0.71 | 0.05 | 0.10 | 2.73 | 8.59 |
102106
103107
## Detailed report
104108

dist/clone.js

Lines changed: 92 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/clone.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/collect.js

Lines changed: 147 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)