#3629 closed defect (fixed)
Modelica.Fluid.Examples.NonCircularPipes fails in simulation in OMEdit
Reported by: | Owned by: | Martin Sjölund | |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | Code Generation | Version: | |
Keywords: | Cc: |
Description
The model Modelica.Fluid.Examples.NonCircularPipes of MSL fails in the simulation in OMEdit with the following error code:
stdout | error | <p> <br> This application has requested the Runtime to terminate it in an unusual way.<br> Please contact the application's support team for more information. <br> stdout | error | <p>Got number 255.000000, expected: 253.000000<br> stdout | error | <p>Simulation process failed. Exited with code 3.</p>
Interestingly the simulation succeeds without errors using omc.
I used the current nightly build of omc on windows (OpenModelica-v1.9.4-dev-640-g36e4bb2.exe) for the test.
Since I developed the model using OpenModelica I am sure that it ran a year ago, when I submitted it to Modelica, but didn't test it with newer versions up until now.
Attachments (1)
Change History (10)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
In current git version (as of 2016-01-23) I do not see such a behaviour.
Can this ticket be closed?
comment:3 by , 9 years ago
I just retested it with the current windows nightly (OpenModelica-v1.9.4-dev-668-g490d9e2.exe) and had the same error as before. In the simulation_info.json the equations 253 and 254 are not listed.
by , 9 years ago
Attachment: | Modelica.Fluid.Examples.NonCircularPipes_info.json added |
---|
comment:4 by , 9 years ago
The equations are there, but they are not in the correct place: they are between 501 and 502
So the eqIndex is not strictly ascending.
When I run a git-based locally compiled version I see the same problem of equations being in the wrong place, but I do not get this error.
This is my configuration on OSX with macports clang-3.8:
./configure CC=clang CXX=clang++ 'GNUCXX=clang++ -fopenmp' --with-omniORB --disable-modelica3d --with-lapack="-llapack -lblas" --without-paradiseo
comment:5 by , 9 years ago
Component: | Unknown → Code Generation |
---|---|
Milestone: | Future → 1.9.4 |
Owner: | changed from | to
Status: | new → assigned |
This happens in OMEdit because it reads the json file, on normal simulation we don't do that.
Martin, can you have a look at it?
comment:6 by , 9 years ago
Component: | Code Generation → Unknown |
---|---|
Milestone: | 1.9.4 → Future |
I found the problem:
the order of equations is wrong, I'll fix it.
comment:7 by , 9 years ago
Component: | Unknown → Code Generation |
---|---|
Milestone: | Future → 1.9.4 |
Resolution: | → fixed |
Status: | assigned → closed |
Seems to be a problem when reading simulation_info.json file.
Code expects to read equationNumber "253", but actually reads "255".