Questions tagged [fmi]

FMI stands for Functional Mockup Interface. It is a standard for model exchange and co-simulation.

Functional Mock-up Interface (FMI) is a tool independent standard to support both model exchange and co-simulation of dynamic models using a combination of xml-files and compiled C-code (see overview in PDF or PPT format). The first version, FMI 1.0, was published in 2010. The FMI development was initiated by Daimler AG with the goal to improve the exchange of simulation models between suppliers and OEMs. As of today, development of the standard continues through the participation of 16 companies and research institutes. FMI is supported by over 50 tools and is used by automotive and non-automotive organizations throughout Europe, Asia and North America.

Additional information can be found at the FMI website.

191 questions
1
vote
0 answers

Modelica model simulating successfully in OMEdit but not as FMU

I am trying to export and simulate a model with the CVode solver. If I simulate the model in OMEdit (Windows) using CVode the simulation finishes successfully, even if I use something like a rectangular pulse as input. However, if I export the model…
Tim Schim
  • 11
  • 3
1
vote
1 answer

Error of ModelStructure/Outputs by using FMU container

I am trying to combine three FMUs into one FMU that contains all of the three. Specifically, I have one FMU of a pandapower electricity network and 2 FMUs that are CSV files converted to FMUs by using PythonFMU tool. All of the FMUs have been tested…
Kosmylo
  • 436
  • 1
  • 6
  • 20
1
vote
0 answers

Error while trying to simulate FMU coming from OpenModelica via FMPy

I have exported the model PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808 of Photovoltaics_TGM library as fmu and when I am trying to simulate it in python through FMPy with the command simulate_fmu I am getting the following error: assert |…
Kosmylo
  • 436
  • 1
  • 6
  • 20
1
vote
0 answers

FMU 2.0 interaction - requires parallel "container" for parameter values etc?

I work with pyfmi in Jupyter notebooks to run simulations and I like to work interactively and evaluate incremental changes in parameters etc. Long time ago I found it necessary to introduce a dictionary that work as a "container" for parameter and…
janpeter
  • 681
  • 8
  • 22
1
vote
2 answers

Modelica MSL CombiTimeTable - how to only set size of table at time of compilation?

I have stated to use MSL CombiTimeTable and replace my own code for a similar function. Is there a way to specify only the size of the table at time of compilation and later give the table values? The following declaration code works …
janpeter
  • 681
  • 8
  • 22
1
vote
1 answer

Is it possible to create one FMU which supports FMI 2 and FMI 3?

Reading the new FMI 3 proposal I'm wondering if it is possible to generate one FMU zip file including one compiled model which supports both FMI 2 and FMI 3? A compiled model could contain the necessary fmi2...() and fmi3...() functions and…
ingo-d
  • 13
  • 2
1
vote
1 answer

Purpose of cswrapper code, sundials solver in FMPy

About FMPy which is a python package for FMU simulation. I need one clarification : What is the purpose of cswrapper code, sundials solver or functions? Is it only required for ModelExchange type FMU simulation and not for Co-simulation type FMU…
Geeko
  • 29
  • 7
1
vote
1 answer

FMI - Amesim, Can be modified Local variables under ModelExchange?

Main Goal Modify the Local variables exposed in the FMU under ModelExchange with FMPy. Approach Take the FMU already created from the FMI standard web. Launch it with FMPY. Change value every step with step_finished parameter from simulate_fmu with…
aisak
  • 49
  • 5
1
vote
1 answer

FMU - Problem reassigning a new value to a variable

Main Goal Start the FMU with defined start_values ​​and change it in the middle of the process at "ModelExachange". Approach Take the FMU already created from the FMI standard web. Launch it with FMPY. Change value every step with step_finished…
aisak
  • 49
  • 5
1
vote
2 answers

Is there a way to add traceability of source file in fmus?

When a developer generates an fmu of a model from the working package (say Library.Package.ForFMUExport.MyModel), the downstream users can check the source model information(Library_Package_ForFMUExport_MyModel), time of generation, tool it was…
Kaustubh
  • 391
  • 2
  • 10
1
vote
1 answer

Feeding initial states to a FMU block (FMIKit) in MATLAB

I am using Dymola 2020x to develop a thermal model and export the FMU to Simulink to simulate controllers. For implementing advanced controllers, I require an iteratively run framework, which helps to initialize the states after every iteration to…
1
vote
1 answer

how to compile a FMU on windows to be used in Mac?

I have generated one FMU on Windows, and imported the FMU on Mac using Matlab Simulink, and got the following error. I searched for the problem and get some clues from the answer here https://tomlankhorst.nl/quick-fix-matlab-fmu-import-error/, it…
Tao.Y
  • 87
  • 5
1
vote
1 answer

PyFMI: Initialize parameters depending of others

I created a model in OpenModelica and would like to create a FMU from it. Inside OpenModelica, I can initialize the parameters the following: model r_ctrl parameter Real startTime(start = 0.1); parameter SI.Resistance u_ref(start = 230); …
H Bode
  • 165
  • 7
1
vote
1 answer

How to generate binaries for Linux 64 bit using the source code FMU exported from Dymola. (Cross compilation Windows to Linux)

I have a Simulink model which imports FMU exported from Dymola. I want to run many simulations on this Simulink model by varying some parameters. I want to make use of HPC available in the office. Since HPC runs on the Linux platform, I am not able…
Swaroop
  • 21
  • 1
1
vote
0 answers

Improving Performance of a Co-Simulation Adams/Matlab

I would like to Co-Simulate a Multibody-System (generated in MSC Adams) with a Controller in Matlab (as shown on this Matlab Website). The Co-Simulation itself is working, however at an incredible slow speed, due to the FMU created from the…
Dr No
  • 118
  • 5