functionsimulationArguments

The arguments of simulate, buildModel and the other simulation calls.

Extends from classNameArgument (The model of a simulation call.), experimentArguments (The experiment of simulate, buildModelFMU and the other calls that simulate or export a model.).

Information

Only className is necessary. For startTime, stopTime, numberOfIntervals, stepSize and tolerance, see experimentArguments. An argument that is not given gets its value from the default below. The declared value "<default>" only marks an argument that is not given.

ArgumentValue if not given
method"auto": the simulation runtime chooses the method (see -s). With --daeMode, "ida". For optimize(), "optimization".
fileNamePrefixThe name of the class. The result file is <fileNamePrefix>_res.<outputFormat>.
optionsNot used.
outputFormat"mat". The other formats are "csv", "plt", "arrow" and "empty", which writes no result file.
variableFilter".*". Only the variables whose full name matches this regular expression go into the result file.
cflags"". Extra flags for the C compiler.
simflagsThe __OpenModelica_simulationFlags annotation of the class, else "". With --ignoreSimulationFlagsAnnotation, omc does not use the annotation.

The flags in simflags apply when the simulation executable runs, and they replace the values above: for example, -s=euler replaces method.

Inputs

TypeNameDefaultDescription
TypeNameclassName (from classNameArgument)The model
RealstartTime (from experimentArguments)nan()Start time
RealstopTime (from experimentArguments)nan()Stop time
IntegernumberOfIntervals (from experimentArguments)-1Number of intervals
RealstepSize (from experimentArguments)nan()Interval
Realtolerance (from experimentArguments)nan()Integration tolerance
Stringmethod"<default>"Integration method
StringfileNamePrefix"<default>"File name prefix
Stringoptions"<default>"Not used
StringoutputFormat"<default>"Result file format
StringvariableFilter"<default>"Variables to store
Stringcflags"<default>"Flags for the C compiler
Stringsimflags"<default>"Flags for the simulation