Opened 9 years ago
Closed 9 years ago
#4230 closed defect (fixed)
open modelica crashing while simulating the code file
| Reported by: | 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)
Change History (13)
by , 9 years ago
| Attachment: | Ex2_6_1.mo added |
|---|
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Simulate with Rungakutta and plot y.
Simulation works fine for me. It crashed when plotting y. Don't know why.
comment:4 by , 9 years ago
| Component: | OMEdit → Run-time |
|---|---|
| Owner: | changed from to |
Yes, the result file contains inf for y and der(y).
comment:6 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → accepted |
comment:8 by , 9 years ago
Replying to sjoelund.se:
That shouldn't cause a crash though. Fix OMPlot :)
Agreed. Perhaps need to check NaN.
follow-up: 11 comment:9 by , 9 years ago
comment:10 by , 9 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.
comment:11 by , 9 years ago
comment:12 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → 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.

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