functionbuildModelFMU

Translates a Modelica model into a Functional Mockup Unit.

Information

The only required argument is the className, while all others have some default values.

Example command:

buildModelFMU(className, version="2.0");

Inputs

TypeNameDefaultDescription
TypeNameclassNamethe class that should translated
Stringversion"2.0"FMU version, 1.0 or 2.0.
StringfmuType"me"FMU type, me (model exchange), cs (co-simulation), me_cs (both model exchange and co-simulation)
StringfileNamePrefix"<default>"fileNamePrefix. <default> = "className"
String[:]platforms{"static"}The list of platforms to generate code for. "dynamic"=current platform, dynamically link the runtime. "static"=current platform, statically link everything. "<cpu>-<vendor>-<os>", host tripple, e.g. "x86_64-linux-gnu" or "x86_64-w64-mingw32". "<cpu>-<vendor>-<os> docker run ghcr.io/openmodelica/crossbuild:v1.27.0" host triple with OpenModelica supplied Docker image, e.g. "x86_64-linux-gnu docker run ghcr.io/openmodelica/crossbuild:v1.27.0". "<cpu>-<vendor>-<os> docker run <image>" host triple with Docker image, e.g. "x86_64-linux-gnu docker run --pull=never multiarch/crossbuild"
BooleanincludeResourcesfalseDepreacted and no effect
Stringmethod"<default>"integration method embedded in a Co-Simulation FMU. <default> = dassl

Outputs

TypeNameDefaultDescription
StringgeneratedFileNameReturns the full path of the generated FMU.