Skip to content

convertMO2FMU : How can I choose the platform and the solver ? #409

Open

Description

@gblondet117

Hello,

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 ?

Activity

  1. added theissue type on Feb 4, 2026
  2. added this to the 5.0.0 milestone on Feb 4, 2026
  3. adeas31 commented on Feb 4, 2026

    @adeas31
    Member

    @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.

  4. syntron commented on Feb 18, 2026

    @syntron
    Contributor

    @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 ...

  5. arun3688 commented on Feb 18, 2026

    @arun3688
    Collaborator

    @

    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();

    As you said the only argument missing is platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions