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
1 answer

Why has an FMU exported as FMI1 different statistics than if exported as FMI2

Let's say I export a model in Dymola with FMI-1 standard: translateModelFMU("SomeModel", false, "", "1", "me", false) and then I export the same model with FMI-2 standard: translateModelFMU("SomeModel", false, "", "2", "me", false) I noticed that…
AdamKe
  • 63
  • 4
1
vote
0 answers

Running FMU generated by Scilab on FMU SDK

I have successfully exported an FMU from Scilab, and I want to simulate it via FMU SDK. But when I run it, it says: bin/fmusim_cs:symbol lookup error:PD_Controller.so:undefined symbol: summation ...and the simulation was stopped. So what should I…
1
vote
1 answer

FMU Variable Values Do Not Match Input

I'm getting some strange behavior in a simple co-simulation that I'm trying to configure. I setup a building energy model in EnergyPlus to test out an FMU generated from JModelica. However, the building energy model would get hung up at the…
Justin Shultz
  • 199
  • 1
  • 11
1
vote
0 answers

Dymola licenses needed to generate DLL (NI Veristand) from Simulink

I am working on generating code (DLL), which would work in National Instruments, VeriStand. Initially, the model is created in Dymola, then the model is exported as an FMU into MATLAB/Simulink. Finally, the code is generated by selecting the…
1
vote
2 answers

PyFMI package equivalent to linux environment

Can anyone help me in finding the PyFMI equivalent package for Linux environment. I am using PyFMI-2.2 in windows successfully but the same package I can't use it under Linux environment. I am getting error as ImportError: Cannot import PyFMI
Abhishek S
  • 75
  • 10
1
vote
1 answer

getting/setting String of FMUs with pyFMI

I'm using pyFMI from Modelon to cosimulate between systemC and other tools, let say openModelica. We tried to get and set inputs of type string but it seems not supported. What we have in the description.xml file:
Danto N
  • 65
  • 7
1
vote
2 answers

FMIlibrary for PyFMI package(64 bit)

Anyone have idea to develop FMILibrary(64 bit) for PyFMI package. FMILibrary(32 bit) compiled successfully with PyFMI package. thanks for your useful ideas in advance
Abhishek S
  • 75
  • 10
1
vote
1 answer

FMU co-simulation using openMP or pThread

Say I have a vehicle model, the chassis will be used as a master FMU, its engine, transmission, tires, etc are from 3rd parties and I want to used them as slave FMUs. I want to parallel the model in this way, the master FMU is put on the main…
Hang Yu
  • 476
  • 2
  • 14
1
vote
2 answers

How can I use dymola to produce FMU with 64bit dll

I need to use dymola to produce fmu-file with 64-bit-dll. The condition is: I use bin64-version-dymola, but fmu-file is 32-bit-dll I searched internet, and I found I should set flag Advanced.CompileWith64=2. But problem is, I can not find the…
xing
  • 95
  • 1
  • 12
1
vote
2 answers

Setting initial values in an FMI toolbox block using Matlab

(This question is similar to previous question I have posted, but the situation has changed...) I am using the Modelon FMI toolbox for a Dymola/Simulink interface to import a Model-Exchange type fmu file (version 1.0) into the Simulink model. I…
E Heller
  • 13
  • 1
  • 6
0
votes
0 answers

How to bundle an FMU with a png-file that illustrates the system?

I use FMU a lot for simulation of Modelica models in a Python environment. It would be nice to bundle the obtained FMU from compilation with a png-file that shows the system. Is that possible? And how to access that png-file and show it in a Jupyter…
janpeter
  • 681
  • 8
  • 22
0
votes
0 answers

Why can't I simulate or create a FMU in OpenModelica of this code?

I want to export my model to python as an FMU and work with its parameters. Since it is easy for me working with inputs and outputs when I'm importing the FMU in a new environment, I'm trying to change parameters to inputs. As a first approach I was…
Elena
  • 85
  • 5
0
votes
1 answer

Is it possible to define String Inputs in Dymola for an FMU Export?

I have the problem that after defining an user-defined connector: connector StringInput = input String "input String"; following error comes after trying to export the Model to an FMU: "Failed to generate XML file for the FMU or for variable…
0
votes
1 answer

How to solve the FMU error: 'fmi2SetupExperiment'

The issue is that I was testing the fmu file using Simulink (fmu was generated by GT, fmi 2.0), it worked well on one pc, but an error occurred when I tested on another pc, the error code is: Error in supplied FMU: FMU block ... cannot parse XML…
Alvin
  • 1
0
votes
0 answers

How does the initialisation work with Dymola cosimulation FMU?

I have modelled a dynamic Rankine cycle on Dymola 2022 using the ThermoSysPro library. Since I want to be able to start the simulations from any given state, I made sure to output all the states' values. Then using parameters, I set the initial…
Clement44
  • 13
  • 4