#4944 closed defect (invalid)
Simulation wrongly reported as successful.
Reported by: | massimo ceraolo | Owned by: | Willi Braun |
---|---|---|---|
Priority: | normal | Milestone: | Future |
Component: | Run-time | Version: | |
Keywords: | Cc: |
Description
The simulation of the enclosed file InvSVPWM.mo wrongly reports to be successful. Indeed all plot variables seem to be empty.
Note that InvSVPWM.mo requires loading power Systems Library.
Attachments (1)
Change History (9)
by , 7 years ago
Attachment: | InvSVPWM.mo added |
---|
comment:1 by , 7 years ago
Component: | OMEdit → Run-time |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 7 years ago
follow-up: 5 comment:3 by , 7 years ago
My mistake, sorry: final time was inadvertently set to 0.
I'm going to close this.
However, maybe it is not a bad idea to emit a warning when final time equals initial time.
comment:4 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
follow-up: 6 comment:5 by , 7 years ago
Replying to ceraolo:
My mistake, sorry: final time was inadvertently set to 0:
experiment(StopTime = 0, Interval = 2e-05),
OpenModelica_commandLineOptions = "");
I'm going to close this.
However, maybe it is not a bad idea to emit a warning when final time equals initial time.
This could be useful.
Or maybe in cases like this, in which Interval is larger than (StopTime-StartTime) it is more appropriate to generate an error?
I don't think so. If one has issues with initialization, a typical strategy is to turn on all LOG_NLS_V
and at the same time set StopTime=0
, so that when the initialization problem is finally fixed, the simulation result window is not clogged by a ton of (irrelevant) debug info during simulation, which may actuall hang OMEdit for good. This situation should not lead to an error.
comment:6 by , 7 years ago
Replying to casella:
Replying to ceraolo:
My mistake, sorry: final time was inadvertently set to 0:
experiment(StopTime = 0, Interval = 2e-05),
OpenModelica_commandLineOptions = "");
I'm going to close this.
However, maybe it is not a bad idea to emit a warning when final time equals initial time.
This could be useful.
OMEdit already have this check,
if (starttime > stoptime) then error;
I will update it to,
if (starttime >= stoptime) then error;
Or maybe in cases like this, in which Interval is larger than (StopTime-StartTime) it is more appropriate to generate an error?
I don't think so. If one has issues with initialization, a typical strategy is to turn on all
LOG_NLS_V
and at the same time setStopTime=0
, so that when the initialization problem is finally fixed, the simulation result window is not clogged by a ton of (irrelevant) debug info during simulation, which may actuall hang OMEdit for good. This situation should not lead to an error.
follow-up: 8 comment:7 by , 7 years ago
No, OMEdit should not make starttime == stoptime
an error. Better would be to make the simulation output something like:
LOG_SUCCESS | info | Skipped time integration since starttime == stoptime
Instead of:
LOG_SUCCESS | info | The simulation finished successfully.
comment:8 by , 7 years ago
Replying to sjoelund.se:
No, OMEdit should not make
starttime == stoptime
an error. Better would be to make the simulation output something like: [...]
+1
I get:
Did you run the simulation with any special flags?