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
6
votes
3 answers

Is there a way to list of parameters of FMU (or of submodel in FMU) using the python libraries FMPy or pyFMI?

I have a FMU of a model and the use case is to change parameter values of the FMU to see the impact on the results. Is there a way to list top level parameters of the FMU using either FMPy or pyFMI if I dont' have access to the Modelica model? One…
Kaustubh
  • 391
  • 2
  • 10
6
votes
2 answers

How to run EnergyPlus-FMU using PyFMI

I am in trouble in simulating the EnergyPlus-FMU by PyFMI. I created an EnergyPlus FMU using the reference building model. I am using PyFMI2.5. How do I run the do_step() function? from pyfmi import load_fmu model =…
mindcoder
  • 377
  • 3
  • 11
5
votes
1 answer

Export FMU with large parameter array from Dymola

How can I create an FMU with a large parameter array using Dymola? I discovered that when the array size exceeds 100 elements, the array loses the causality="parameter" and the start value attributes in the modelDescription.xml file. Is there a…
gtfjet
  • 63
  • 4
5
votes
4 answers

CVodeError while simulating with pyFMI

I try to set up the pyFMI on Anaconda (Python 3.6.8) Installed all the required packages listed on the pyFMI site. The fmu is loaded without the issue but while I try to simulate the fmu I get an error: Could not find cannot import name…
kelamahim
  • 577
  • 1
  • 4
  • 21
5
votes
2 answers

Sensitivity Analysis using PyFMI - FMU in for-loop

Main goal Sensitivity analysis of a district heating network. Approach Modelica model of the system (in Dymola) using the AixLib and BuildingSystem libraries Export model as FMU co-simulation Use SALib (sensitivity analysis python library) to…
T. Sergi
  • 203
  • 2
  • 9
5
votes
1 answer

FMU Export of Python Code or Python Interface with FMI Standard for Use in EnergyPlus Co-Simulation

My research group has developed python code for a new building component that we would like to co-simulate with EnergyPlus. For reuseability and market impact we would like this connection to be as easy as possible for inexperienced users and…
Justin Shultz
  • 199
  • 1
  • 11
4
votes
0 answers

Co-Simulation: AnyLogic and Unreal Engine

I understand that AnyLogic has a 3D Engine to visualize simulations, as described in the AnyLogic Documentation. Since the Unreal Engine is one of the most powerful 3D engine, I was wondering if it would be possible to couple these two tools, maybe…
Dr No
  • 118
  • 5
4
votes
0 answers

ERROR: division leads to inf or nan at time XX, (a=x) / (b=y), where divisor b is: firstOrder.T

I have a model designed in OpenModelica contains integrators and transfer functions and first orders. When I run this model in OMEdit, it works fine. But when I run the FMU, I have an error for division by zero for the firstorder block. assert |…
amro
  • 51
  • 2
4
votes
1 answer

Combine multiple FMUs into one

I have a pandapower network and at some buses I have included batteries and photovoltaics as FMUs. Right now I have a master algorithm that creates the connections between the inputs and the outputs of the different FMUs and it runs the…
Kosmylo
  • 436
  • 1
  • 6
  • 20
4
votes
1 answer

Exchanging Modelica FMU Models

I tried to exchange my Modelica model with one of my colleagues but ran into difficulties regarding paths to CSV-Files. When I create the FMU the paths to some of the CSV files are set and point to folders on my computer. For example…
Phil
  • 624
  • 7
  • 19
4
votes
2 answers

Is it possible to compile Linux runnable fmus from Dymola on Windows machine?

I am trying to export a FMU from windows machine using Dymola, to be used on both Linux and Windows OS. I guess such fmu will have linux64 and linux32 binaries along with win32 and win64 ones. However, I am not sure how to trigger Dymola to generate…
Kaustubh
  • 391
  • 2
  • 10
4
votes
2 answers

How to access model jacobian from FMU or Dymola without analytical jacobian

I am trying to find a way to access the jacobian for a model in dymola either through a compiled FMU or from the exported Dymola source code. The final objective is to use the same procedure to access the jacobian for a much more complex multibody…
4
votes
2 answers

Functional Mockup Interface (FMI): Loose vs. strong coupling

I am new to the topic of co-simulation. I am familiar with the definitions (based on Trcka "COMPARISON OF CO-SIMULATIONAPPROACHES FOR BUILDING ANDHVAC/R SYSTEM SIMULATION "): Quasi-dynamic coupling, also called loose coupling, orping-pongcoupling,…
Matias
  • 581
  • 1
  • 5
  • 16
4
votes
3 answers

Using pyfmi with multiprocessing for simulation of Modelica FMUs

I am trying to simulate multiple Modelica FMUs in parallel using python/pyfmi and multiprocessing. However I am not able to return any pyfmi FMI objects from the subprocesses once the FMUs are initialized. It seems that pyfmi FMI objects (e.g.…
Markus
  • 63
  • 6
4
votes
2 answers

co-simulation dymola fmu file can't be simulated by fmuchecker

We are trying to test the co-simulation options of Dymola and created a fmu-file. We installed/built the FMILibrary-2.0b2 and FMUChecker-2.0b1 from www.fmi-standard.org. I encountered an issue while trying to run the FMUChecker (fmuCheck.linux32) of…
Medi1Saif
  • 285
  • 7
  • 19
1
2 3
12 13