impure functionbuildModel

Translates a Modelica model into C code and builds a simulation executable.

Extends from Internal.simulationArguments (The arguments of simulate, buildModel and the other simulation calls.).

Information

Note that unlike simulate() this function only builds a simulation executable, it does not run it.

Returns the filenames for the generated simulation executable and the initialization file.

buildModel(className, [startTime], [stopTime], [numberOfIntervals], [stepSize], [tolerance], [method], [fileNamePrefix], [options], [outputFormat], [variableFilter], [cflags], [simflags])

Example command:

buildModel(A);

Inputs

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

Outputs

TypeNameDefaultDescription
StringbuildModelResults