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
  • » Olivier Sohn
  • » Profile

Posts

Posts

Nov-02-15 19:53:52
cppFlags are not forwarded to the compiler

Hello,

I am trying to optimize the fmu binaries with cpp runtime, but the flags I set using cppFlags don't seem to be taken into account as the following commands produce the same binaries on windows :

omc +simCodeTarget=Cpp +cppFlags=-O0 test.mos
omc +simCodeTarget=Cpp +cppFlags=-O2 test.mos
omc +simCodeTarget=Cpp +cppFlags=-Os test.mos

Is it the right way to use cppFlags in this context?

Regards,

Olivier

Nov-02-15 16:28:28
numberOfEventIndicator is different between cpp runtime and c runtime
Category: Programming

Hello,

In OpenModelica 1.9.3, I compiled a fmu in two versions : against cpp runtime and against c runtime.

With cpp runtime, in the modelDescription.xml, numberOfEventIndicators is 0, whereas it is 1 with the c runtime.

I was wondering if this is a bug?

I'm trying to investigate a difference in results for both fmus, and thought this could be a reason?

Thank you,

Olivier

  • Index
  • » Users
  • » Olivier Sohn
  • » Profile
You are here: