Opened 11 years ago

Closed 11 years ago

#2568 closed defect (fixed)

NumberOfIntervals Issue in OMEdit (R18954)

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: high Milestone: 1.9.1
Component: OMEdit Version: trunk
Keywords: Cc:

Description

If in OMEdit|Simulation Setup you check the "Save simulation settings inside model", the Number of Intervals is not saved in the model.
Moreover, if you manually set NuberOfIntervals in your Modelica code and "Save simulation settings inside model" is checked, your manual setting will be deleted by OMEdit.

Change History (6)

comment:1 by Adeel Asghar, 11 years ago

Because NumberOfIntervals is not part of Modelica experiment annotation,

17.4 Annotations for Simulation Experiments
experiment_annotation:
annotation"(" "experiment" "(" [experimentOption] {, experimentOption}] ")"
experimentOption:
StartTime "=" ["+" | "-"] UNSIGNED_NUMBER |
StopTime "=" ["+" | "-"] UNSIGNED_NUMBER |
Tolerance "=" UNSIGNED_NUMBER
The experiment annotation defines the default start time (StartTime) in [s], the default stop time (StopTime) in [s], and the default relative integration tolerance (Tolerance) for simulation experiments to be carried out with the model or block at hand.

comment:2 by Martin Sjölund, 11 years ago

You are looking at an old specification, Adeel. The new ones have the Interval annotation. If you use numberOfIntervals internally in OMEdit, you have to convert it.

comment:3 by Adeel Asghar, 11 years ago

Yes, you are right. Version 3.2 Revision 2 does have Interval annotation. I will add it. But what do you mean by converting it?

comment:4 by Martin Sjölund, 11 years ago

numberOfIntervals is an integer (like 500 number of intervals). Interval is the step size (stopTime-startTime) / numberOfIntervals.

comment:5 by Adeel Asghar, 11 years ago

Should work fine in r18999.

comment:6 by Martin Sjölund, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.