Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3629 closed defect (fixed)

Modelica.Fluid.Examples.NonCircularPipes fails in simulation in OMEdit

Reported by: Alexander Täschner <A.Taeschner@…> 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)

Modelica.Fluid.Examples.NonCircularPipes_info.json (1.4 MB ) - added by Alexander Täschner <A.Taeschner@…> 9 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by Henning Kiel, 9 years ago

Seems to be a problem when reading simulation_info.json file.
Code expects to read equationNumber "253", but actually reads "255".

comment:2 by Henning Kiel, 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 Alexander Täschner <A.Taeschner@…>, 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 Alexander Täschner <A.Taeschner@…>, 9 years ago

comment:4 by Henning Kiel, 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 Adrian Pop, 9 years ago

Component: UnknownCode Generation
Milestone: Future1.9.4
Owner: changed from somebody to Martin Sjölund
Status: newassigned

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 Henning Kiel, 9 years ago

Component: Code GenerationUnknown
Milestone: 1.9.4Future

I found the problem:
the order of equations is wrong, I'll fix it.

comment:7 by Henning Kiel, 9 years ago

Component: UnknownCode Generation
Milestone: Future1.9.4
Resolution: fixed
Status: assignedclosed

comment:8 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:9 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.