You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
convertMO2FMU : How can I choose the platform and the solver ? #409
I am discovering OMPython, and I try to automate FMU exports, for different models and different platforms (different version of Ubuntu, and windows).
I have seen the convertMo2Fmu function can do the job, but the argument platforms, which is defined in translateModelFMU seems to be absent in OMPython.
How can I set this argument ?
Moreover, in OMEdit, I can also choose the solver in case of cosimulation. Is it possible to set it with OMPython ?
@arun3688 please add all arguments of buildModelFMU to convertMo2Fmu.
The solver setting is part of flag --fmiFlags. We can add an interface to ModelicaSystem to set it.
Same needs to be done for --fmiFilter and --fmiSources.
@arun3688 please add all arguments of buildModelFMU to convertMo2Fmu.
The solver setting is part of flag --fmiFlags. We can add an interface to ModelicaSystem to set it. Same needs to be done for --fmiFilter and --fmiSources.
can these not be set via set_command_line_options()? Thus, only the platform argument is missing ...
The solver setting is part of flag --fmiFlags. We can add an interface to ModelicaSystem to set it. Same needs to be done for --fmiFilter and --fmiSources.
Yes you can set these flags via command line options, this is how we set it via command line setCommandLineOptions("--fmiFilter=protected"); getErrorString();
Activity
adeas31 commentedon Feb 4, 2026
@arun3688 please add all arguments of
buildModelFMUtoconvertMo2Fmu.The solver setting is part of flag
--fmiFlags. We can add an interface toModelicaSystemto set it.Same needs to be done for
--fmiFilterand--fmiSources.syntron commentedon Feb 18, 2026
can these not be set via
set_command_line_options()? Thus, only the platform argument is missing ...arun3688 commentedon Feb 18, 2026
@
Yes you can set these flags via command line options, this is how we set it via command line
setCommandLineOptions("--fmiFilter=protected"); getErrorString();As you said the only argument missing is
platform