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

FMU export from Dymola - When are the code export options required?

The goal is to export an FMU to be run on a target machine without a Dymola license. Do I always need a specific license? Without enabling the code export options in the license setup, all FMU types (me, cs, all, csSolver) seem to require a Dymola…
user12812532
0
votes
1 answer

Amesim FMU initialization issue

I have a HU submodels FMU that is not running in a Simulink model. I use Matlab2020b, FMIkit2.7 and the FMU created with Amesim 2019.1. This is the error message: AME_LIC_CACHE_INIT set to 100 Impossible to open file…
0
votes
0 answers

pyfmi fails with Stepsize must be non-negative and divisible by 0.2'

I did the world's simplest simulink model which sums two constants and send the result to an outport. I exported this to an fmu model and try to run it in pyfmi. I get an error with FMUException: The simulation failed. See the log for more…
bhomass
  • 3,414
  • 8
  • 45
  • 75
0
votes
1 answer

Error when co-simulating FMU "fmi2DoStep: Invalid currentCommunicationPoint"

I would like to run a co-simulation FMU (FMI2.0) in Dymola 2022. The co-simulation FMU is connected to some other components modelled in Modelica. Sometimes the following error message is printed: [fmi2Warning]: fmu_name: fmi2DoStep: Invalid…
Karin
  • 43
  • 4
0
votes
1 answer

How to get the unit of a variable with FMPy?

I am trying to get the units from the model variables to store as metadata. Is there a way to get the unit of a variable?
danin
  • 3
  • 1
0
votes
1 answer

Communication frequency vs Simulation Time for FMU

Lets say we have a FMU which is getting inputs from Python and simulating at an interval of 0.001s. Does the FMI/FMU standard allow us to run the FMU multiple times for a same input (so Python provides the input at 0.01s interval and the FMU…
N kube
  • 1
0
votes
1 answer

Mismatch in the results between Openmodelica simulation and FMPy simulation

I have exported a model as fmu for model exchange and I have imported it in a platform for co-simulation. Although the simulation finishes fine, I do not get the expected result as the one coming from the OM simulation. The version of OM that I use…
Kosmylo
  • 436
  • 1
  • 6
  • 20
0
votes
0 answers

Co-simulate two co-simulation type of FMUs in PyFMI

How to co-simulate two co-simulation type of FMUs connected in a feedback loop by using PyFMI? How does the co-simulation set-up works in PyFMI? How the connections are defined when Input is given to "y_ref" The input that goes to "u" is actually a…
Geeko
  • 29
  • 7
0
votes
1 answer

FMI Toolbox Matlab Azure Devops CI Pipeline Bugs with network service account

I'm making a CI pipeline for a Matlab/Simulink project on Azure DevOps. The build pipeline is stable and reproduce same output as local computer execution. The test pipeline however is bugging. Any solution is welcome! Action: My project uses…
Weltgeist
  • 137
  • 1
  • 1
  • 11
0
votes
1 answer

Cannot run fmu.get_fmu_state() in pyfmi library

I am trying to understand how the method get_fmu_state works on a simple fmu in cosimulation mode example like the bouncing ball using PyFMIs(2.7.3) pre-supplied fmu. I have installed it via miniconda on a ubuntu-docker and try to execute the…
CS101
  • 444
  • 1
  • 6
  • 21
0
votes
1 answer

Unable to find out which FMU has error in fmpy

I simulated a batch of 5 FMUs by putting a function containing the fmpy simulate in a loop. 4 of them simulate correctly. The fifth one due to a wrong parameter shows an error. My question is, is there any way to find out in which FMU the error…
0
votes
1 answer

OpenModelica: Input in second level for FMU export

I have a model, create an FMU out of it, and want to import it in to python. Having inputs on the first canvas works, and transferring them to the blocks which are used works, too. Because of the architecture of the python code, i need to have the…
H Bode
  • 165
  • 7
0
votes
2 answers

Is there a way to implement fmu export to an c++ based simulation software to use fmi?

I have a simulation software (self written) based in c++ and a simulation software (self written) based in python. Goal: Co-Simulation of these two software packages Question: Is there a way to export c++ code to a fmu file. I know there is the FMU…
MaxImal
  • 13
  • 7
0
votes
2 answers

Open source tool for FMI/FMU in Excel?

I am looking for an open-source tool for using FMU/FMI in Excel, but there are only two commercial tools after a dig on the internet, so my question is if there is an open-source tool for FMI/FMU in Excel? Here are the links to available commercial…
Jack
  • 1,094
  • 6
  • 16
0
votes
0 answers

error while loading fmu with pyfmi's method load_fmu

I try to load an FMU with PyFMI's load_fmu method. It throws the following Error: File "src\pyfmi\fmi.pyx", line 8109, in pyfmi.fmi.load_fmu pyfmi.fmi.FMUException: The FMU version could not be determined. Removing…
FelixS
  • 1
  • 1