Opened 8 years ago

Closed 8 years ago

#4230 closed defect (fixed)

open modelica crashing while simulating the code file

Reported by: bansodanurag@… Owned by: Lennart Ochel
Priority: high Milestone: Future
Component: Run-time Version:
Keywords: crashing Cc:

Description

the model Ex2_6_1
solved by rungakutta method for range x>0
Real x,y;
equation
(x*y+y2 +x2)-der(y)*x2=0;
x= time;
end Ex2_6_1;

attached code makes the omedit crash

Attachments (1)

Ex2_6_1.mo (135 bytes ) - added by anonymous 8 years ago.

Download all attachments as: .zip

Change History (13)

by anonymous, 8 years ago

Attachment: Ex2_6_1.mo added

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

Seems to work fine in the Linux master. @Adeel: Is this one of the crashes that was already fixed in beta3?

comment:2 by Adeel Asghar, 8 years ago

Simulate with Rungakutta and plot y.
Simulation works fine for me. It crashed when plotting y. Don't know why.

comment:3 by Lennart Ochel, 8 years ago

I guess the result file is corrupted.

comment:4 by Lennart Ochel, 8 years ago

Component: OMEditRun-time
Owner: changed from Adeel Asghar to somebody

Yes, the result file contains inf for y and der(y).

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

That shouldn't cause a crash though. Fix OMPlot :)

comment:6 by Lennart Ochel, 8 years ago

Owner: changed from somebody to Lennart Ochel
Status: newaccepted

comment:7 by Lennart Ochel, 8 years ago

OMPlot doesn't crash at all.

in reply to:  5 comment:8 by Adeel Asghar, 8 years ago

Replying to sjoelund.se:

That shouldn't cause a crash though. Fix OMPlot :)

Agreed. Perhaps need to check NaN.

in reply to:  7 ; comment:9 by Adeel Asghar, 8 years ago

Replying to lochel:

OMPlot doesn't crash at all.

It does. Run OMPlot --filename=result.mat y

comment:10 by Lennart Ochel, 8 years ago

OMPlot y doesn't crash. It just shows an empty plot window. I will try to prevent writing inf into a result file.

in reply to:  9 comment:11 by Lennart Ochel, 8 years ago

Replying to adeas31:

Replying to lochel:

OMPlot doesn't crash at all.

It does. Run OMPlot --filename=result.mat y

OS dependent? I tested it using Linux.

comment:12 by Lennart Ochel, 8 years ago

Resolution: fixed
Status: acceptedclosed

This should no longer cause a crash. However, this model does also not simulate anymore because we now catch inf which gets calculated for der(y) during simulation.

Note: See TracTickets for help on using tickets.