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
  • » glow
  • » Profile

Posts

Posts

Jun-27-19 15:09:05
Integarting FMU model from OMEdit to dSpace ConfigurationDesk

Hi everyone,
I want to import a FMU model for real-time-simulation with dSPACE as well.
I started with a FMU of my friend, which was created in an older version. Also it was for model exchange.
With that I got the following error, like Arinomo.

Code:

fatal error: openmodelica.h: No such file or directory

The OM support suggested to use the newest nightly for the fmi generation since there were some bug fixes.
Also I read in the dSPACE Help, that ConfigurationDesk only supports Co-Simulation.
These are the two things I changed, but I still get some errors when trying to generate code in Configuration Desk.

Code:

Creating application image file ...

dsfmu_mdlfunctions.o86: In function `co_sim_test_DSFMUInitMdl':
dsfmu_mdlfunctions.cpp:(.text+0x5b): undefined reference to `co_sim_test_fmi2Instantiate'
dsfmu_mdlfunctions.o86: In function `co_sim_test_DSFMUStartMdl':
dsfmu_mdlfunctions.cpp:(.text+0x121): undefined reference to `co_sim_test_fmi2SetupExperiment'
dsfmu_mdlfunctions.cpp:(.text+0x153): undefined reference to `co_sim_test_fmi2SetReal'
dsfmu_mdlfunctions.cpp:(.text+0x16d): undefined reference to `co_sim_test_fmi2EnterInitializationMode'
dsfmu_mdlfunctions.cpp:(.text+0x187): undefined reference to `co_sim_test_fmi2ExitInitializationMode'
dsfmu_mdlfunctions.cpp:(.text+0x1e7): undefined reference to `co_sim_test_fmi2GetReal'
dsfmu_mdlfunctions.cpp:(.text+0x219): undefined reference to `co_sim_test_fmi2GetInteger'
dsfmu_mdlfunctions.cpp:(.text+0x24b): undefined reference to `co_sim_test_fmi2GetBoolean'
dsfmu_mdlfunctions.cpp:(.text+0x5c9): undefined reference to `co_sim_test_fmi2Reset'
dsfmu_mdlfunctions.o86: In function `co_sim_test_DSFMUStep':
dsfmu_mdlfunctions.cpp:(.text+0x64e): undefined reference to `co_sim_test_fmi2SetReal'
dsfmu_mdlfunctions.cpp:(.text+0x698): undefined reference to `co_sim_test_fmi2DoStep'
dsfmu_mdlfunctions.cpp:(.text+0x6ca): undefined reference to `co_sim_test_fmi2GetReal'
dsfmu_mdlfunctions.o86: In function `co_sim_test_DSFMUProvideInputs':
dsfmu_mdlfunctions.cpp:(.text+0x944): undefined reference to `co_sim_test_fmi2SetReal'
dsfmu_mdlfunctions.o86: In function `co_sim_test_DSFMUGetOutputs':
dsfmu_mdlfunctions.cpp:(.text+0xa34): undefined reference to `co_sim_test_fmi2GetReal'
dsfmu_mdlfunctions.o86: In function `co_sim_test_DSFMUProvideParametersInit':
dsfmu_mdlfunctions.cpp:(.text+0xb34): undefined reference to `co_sim_test_fmi2SetReal'
dsfmu_mdlfunctions.o86: In function `co_sim_test_DSFMUGetDependentParametersInit':
dsfmu_mdlfunctions.cpp:(.text+0xc34): undefined reference to `co_sim_test_fmi2GetReal'
dsfmu_mdlfunctions.cpp:(.text+0xc66): undefined reference to `co_sim_test_fmi2GetInteger'
dsfmu_mdlfunctions.cpp:(.text+0xc98): undefined reference to `co_sim_test_fmi2GetBoolean'
dsfmu_mdlfunctions.o86: In function `co_sim_test_DSFMUStopMdl':
dsfmu_mdlfunctions.cpp:(.text+0xf9c): undefined reference to `co_sim_test_fmi2Terminate'
MotorThermal.Components.MotorModel3d_FMU_CNT.a: In function `co_sim_test_functionInitialEquations':
meta_modelica_catch.c:(.text+0x2f8a32): undefined reference to `co_sim_test_functionInitialEquations_0'
meta_modelica_catch.c:(.text+0x2f8a3e): undefined reference to `co_sim_test_functionInitialEquations_1'
MotorThermal.Components.MotorModel3d_FMU_CNT.a: In function `co_sim_test_functionInitialEquations_lambda0':
meta_modelica_catch.c:(.text+0x389544): undefined reference to `co_sim_test_eqFunction_1'
meta_modelica_catch.c:(.text+0x389550): undefined reference to `co_sim_test_eqFunction_2'
...
...

Since I'm quite new to OpenModelica, I can't understand what the problem is here. So this results in the following questions:
1) Does someone understand what the problem is here and why there are so much unddefined references?
2) Question to Arinomo: Did you solve the problem for your project? If yes, would you share the workaraound with me/us please?

Best regards
Philipp

Hi everyone,
for my master thesis I want to use an already existing OpenModelica (v1.13.2) Model to do a FMU 2.0 export.
Since I'm using the Modelon Toolbox to integrate the FMU into Matlab/Simulink, the FMU must include the source files.
I'm quite new to OpenModelica, so maybe someone can answer the following questions:

1) Are the source files by default included in the FMU or is it possible to do this with OpenModelica?
2) Does anyone have some experience with the Modelon FMI Toolbox?

I'm looking forward to your answers.
Best regards
Philipp

  • Index
  • » Users
  • » glow
  • » Profile
You are here: