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

FMI co-simulation 1.0

FMI co-simulation 1.0

Hi,

I found an Open Modelica version which export FMI co-simulation 1.0, which is what is needed to co-simulate with IPG CarMaker. I am Connected to OpenModelica v1.9.4-dev.beta2-18-g812a38e.

The model works fine with compiler C language and gcc. But this model has LoadLibrary() error when co-simulated in IPG CarMaker. Then I learned that the same FMU model when exported from Dymola with visual studio complier can be co-simulated in IPG CarMaker without any issues.

Then I tried changing the compiler used by my Open Modelica to C and msvc, but the model does not compiler with this compiler. Can someone please suggest me a way to compile with visual studio compilers in Open Modelica?

Thank you!!

Best Regards
Akshay

Re: FMI co-simulation 1.0

Hi,

It seems the C MVSC runtime is a bit broken. I'll have a look at it.
You can try selecting the Cpp target language in Tools->Options->Simulation.

Cheers,
Adrian Pop/

Re: FMI co-simulation 1.0

I opened a ticket about the broken C runtime for MSVC:
https://trac.openmodelica.org/OpenModelica/ticket/3790

Re: FMI co-simulation 1.0

By the way, you should use OpenModelica 1.9.6:
https://build.openmodelica.org/omc/buil … ses/1.9.6/

There are 0 guests and 0 other users also viewing this topic