Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » leonardojc
  • » Profile

Posts

Posts

Hi all,

Is there a way I can use OMCompiler to generate FMI2 C code from a plain .mo file (without having to write a .mos file and call translateModelFMU) ?

Calling

Code:

omc --simCodeTarget=sfmi -s Model.mo

outputs a Model_FMI.cpp C++ code file exporting a FMI2 interface, but building it fails due to a missing sfmi_runtime.h that I can't find anywhere. I would like to do pretty much the same but for plain C code.


Thanks in advance.

If I have a model (.mo) file that I wish to compile to a FMU package, is there a way I can do this without creating a corresponding .mos script to call loadFile() and translateModelFMU() on it ? Like a compiler flag for omc ?

Thanks in advance.

  • Index
  • » Users
  • » leonardojc
  • » Profile
You are here: