functiongetTotalModel

Saves a model and dependencies to a single string.

Information

Save the className model in a single string, together with all the other classes that it depends upon, directly and indirectly. This file can be later reloaded with the loadString() API function, which loads className and all the other needed classes into memory.

This is useful to allow third parties to run a certain model (e.g. for debugging) without worrying about all the library dependencies.

Please note that the resulting file is not a valid Modelica .mo file according to the specification and cannot be loaded in OMEdit - it can only be loaded with loadFile() or passing the file to the compiler on the command line.

Inputs

TypeNameDefaultDescription
TypeNameclassName
BooleanstripAnnotationsfalse
BooleanstripCommentsfalse
Booleanobfuscatefalse

Outputs

TypeNameDefaultDescription
Stringresult