#3629 closed defect (fixed)
Modelica.Fluid.Examples.NonCircularPipes fails in simulation in OMEdit
Reported by: | Alexander Täschner <A.Taeschner@…> | Owned by: | sjoelund.se |
---|---|---|---|
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 Changed 8 years ago by hkiel
comment:2 Changed 8 years ago by hkiel
In current git version (as of 2016-01-23) I do not see such a behaviour.
Can this ticket be closed?
comment:3 Changed 8 years ago by Alexander Täschner <A.Taeschner@…>
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.
Changed 8 years ago by Alexander Täschner <A.Taeschner@…>
comment:4 Changed 8 years ago by hkiel
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 Changed 8 years ago by adrpo
- Component changed from Unknown to Code Generation
- Milestone changed from Future to 1.9.4
- Owner changed from somebody to sjoelund.se
- Status changed from new to 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 Changed 8 years ago by hkiel
- Component changed from Code Generation to Unknown
- Milestone changed from 1.9.4 to Future
I found the problem:
the order of equations is wrong, I'll fix it.
comment:7 Changed 8 years ago by hkiel
- Component changed from Unknown to Code Generation
- Milestone changed from Future to 1.9.4
- Resolution set to fixed
- Status changed from assigned to closed
comment:8 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4 to 1.9.4-1.9.x
Milestone renamed
comment:9 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4-1.9.x to 1.9.4
Milestone renamed
Seems to be a problem when reading simulation_info.json file.
Code expects to read equationNumber "253", but actually reads "255".