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: lochel
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)

Changed 8 years ago by anonymous

comment:1 Changed 8 years ago by sjoelund.se

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

comment:2 Changed 8 years ago by adeas31

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

comment:3 Changed 8 years ago by lochel

I guess the result file is corrupted.

comment:4 Changed 8 years ago by lochel

  • Component changed from OMEdit to Run-time
  • Owner changed from adeas31 to somebody

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

comment:5 follow-up: Changed 8 years ago by sjoelund.se

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

comment:6 Changed 8 years ago by lochel

  • Owner changed from somebody to lochel
  • Status changed from new to accepted

comment:7 follow-up: Changed 8 years ago by lochel

OMPlot doesn't crash at all.

comment:8 in reply to: ↑ 5 Changed 8 years ago by adeas31

Replying to sjoelund.se:

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

Agreed. Perhaps need to check NaN.

comment:9 in reply to: ↑ 7 ; follow-up: Changed 8 years ago by adeas31

Replying to lochel:

OMPlot doesn't crash at all.

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

comment:10 Changed 8 years ago by lochel

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

comment:11 in reply to: ↑ 9 Changed 8 years ago by lochel

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 Changed 8 years ago by lochel

  • Resolution set to fixed
  • Status changed from accepted to closed

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.