- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OpenModelica cannot simulate two FMU...
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
- sjoelund.se
- 1700 Posts
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 .
Best regards
Koldo
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OpenModelica cannot simulate two FMU...