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

FMU Export

FMU Export

Hi everyone,

i was on testing the FMU-exporter (1.13.0-dev.beta1).

I want to co-simulate with RecurDyn (as master).

So, i have exported (for testing purposes) a single block (source ramp) as a FMU and imported the generated FMU into RecurDyn. Works well!
export options: FMI2.0, Co-Simulation

Output:
-----
C:\TestRecurDyn : RecurDyn_FMI starting...
FMU2 Log Information Start...
fmiModelDescription
  fmiVersion=2.0
  modelName=Modelica.Blocks.Sources.Ramp
  guid={fc385efd-d705-4c32-8c5f-68785fc49deb}
  description=Generate ramp signal
CoSimulation
  modelIdentifier=Modelica_Blocks_Sources_Ramp
  needsExecutionTool=false
  canBeInstantiatedOnlyOncePerProcess=false
  canNotUseMemoryManagementFunctions=false
  canGetAndSetFMUstate=false
-----


Second test: I connected a ramp and downstream a gain (not a very useful item but for testing ok). I generated the FMU and imported it into RecurDyn again. Now failure:

------
C:\TestRecurDyn : RecurDyn_FMI starting...
FMU2 Log Information Start...
fmiModelDescription
  fmiVersion=2.0
  modelName=Test
  guid={12c34485-3e90-4bd0-a830-f3a69dbe3172}
  description=
CoSimulation
  modelIdentifier=Test
  needsExecutionTool=false
  canBeInstantiatedOnlyOncePerProcess=false
  canNotUseMemoryManagementFunctions=false
  canGetAndSetFMUstate=false
Test : The number of output is not match with that of FMU
-----

I have tested with "class", "model" and also as as a "block" for the composed work (of the 2 blocks).

But always the same error occures. Both models have one output.

What am i doing wrong? Do i have to specify the number of output(s) (and how?)?

Thanks in advance for your help!

Greetings,
Robert




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