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

OpenModelica cannot simulate two FMU at the same time

OpenModelica cannot simulate two FMU at the same time

From this post (http://scicomp.stackexchange.com/questi … fmu-models). An OpenModelica model can open one FMU but not two. The .exe generated by OMC with this sample crash. However it runs in Dymola:

File TestFMU1.mo:

Code:

model TestFMU1

  parameter Real p = 1.0;

  connector TestOutputConnector
    output Real value;
  end TestOutputConnector;
  TestOutputConnector c;

equation
  c.value = p;
end TestFMU1;

File TestFMU2.mo:

Code:

model TestFMU2

  Real result;

  connector TestInputConnector
    input Real value;
  end TestInputConnector;
  TestInputConnector c;

equation
  result = c.value;
end TestFMU2;

Both of these are exported as FMUs and imported and combined as follows:

Code:

model TestConnection

  TestFMU1_fmu OutputFMU;
  TestFMU2_fmu InputFMU;
equation
  connect(OutputFMU.c_value, InputFMU.c_value);
end TestConnection;

Re: OpenModelica cannot simulate two FMU at the same time

Re: OpenModelica cannot simulate two FMU at the same time

True sjoelund.se. It is an accepted defect in OpenModelica FMI support. Thank you.

Re: OpenModelica cannot simulate two FMU at the same time

Hello sjoelund.se

adeas31 indicates in ticket2131(https://trac.openmodelica.org/OpenModelica/ticket/2131) that problem has been solved in r16576(https://trac.openmodelica.org/OpenModel … eset/16576).

However the sample fails again current/sad.

Best regards
Koldo

There are 0 guests and 0 other users also viewing this topic
You are here: