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

Change Equation set in FMU for Model Exchange

we want to publish an Open-Source for integrating Reinforcement Learning to Smartgrid optimization. We use OpenModelica as GUI, PyFMI for the import to Python and Gym. Nearly everything is running, but a possibility to connect or disconnect…
H Bode
  • 165
  • 7
0
votes
1 answer

How to use FMIKit in 64-bit Matlab / Simulink to generate 32-bit binary FMU?

I have successfully used FMIKit2.7(from [https://github.com/CATIA-Systems/FMIKit-Simulink] )in 64-bit Matlab / Simulink (Matlab2017a) to generate a 64-bit binary FMU, which is indeed useful. However, now other simulation tools need to use 32-bit…
0
votes
1 answer

How to initialize PYFMI models in parallel?

I am using pyfmi to do simulations with EnergyPlus. I recognized that initializing the individual EnergyPlus models takes quite some time. Therefore, I hope to find a way to initialize the models in parallel. I tried the python library…
Scrox
  • 169
  • 1
  • 1
  • 12
0
votes
1 answer

How to combine Python 3 with standard JModelica dependent on Python 2?

I would like to install Python 3 with PyFMI at my Windows computer where I already have JModelica 2.10 with Python 2. My idea is thus to compile Modelica models to FMUs in Python 2 as necessary but then develop scripts in Python 3 to run the FMUs…
janpeter
  • 681
  • 8
  • 22
0
votes
1 answer

fmi2GetFMUState/fmi2SetFMUState supported for Matlab/OpenModelica generated FMUs?

I am trying to test a simple fmu to save and restore the states. For example openmodelica: model modelicatest input Real In1; output Real Out1(start=0, fixed=true); equation der(Out1) = In1; end modelicatest; Also for simulink: I am using FMPy to…
Domination
  • 95
  • 9
0
votes
1 answer

How to export my OMNeT++ model as an FMU( Functional Mockup Unit)?

I am trying to co-simulate MATLAB and OMNeT++. For the co-simulation interface, I am using Ptolemy-VirGIL to connect the two models as FMUs. MATLAB export is quite easy but I cannot find a way to export my OMNeT++ model as an FMU. Kindly help.
Rajat Pratap
  • 29
  • 1
  • 5
0
votes
1 answer

FMI functions call order(FMI 2.0)

Which call order is correct ? 1. fmi2SetReal/Integer/Boolean/String fmi2SetupExperiment fmi2EnterInitializationMode or 2. fmi2SetupExperiment fmi2SetReal/Integer/Boolean/String fmi2EnterInitializationMode As per the standard: "Before calling…
0
votes
0 answers

How to fix 'AttributeError: type object 'pyfmi.fmi.ModelBase' has no attribute '__reduce_cython__''

I am importing pyfmi and get this error message. I am using Spyder (Python 3.6) on windows. I also downloaded the latest version of Cython 0.29.13 import pyfmi Traceback (most recent call last): File "", line 1, in…
0
votes
1 answer

error while creating a 2-tuple as input for model.simulate() of fmu model with pyfmi

I have a fmu created in gt-suite. I am trying to work with it in python using python PyFMI package. My code from pyfmi import load_fmu import numpy as np model = load_fmu('AHUPIv2b.fmu') t = np.linspace(0.,100.,100) u = np.linspace(3.5,4.5,100) v…
chink
  • 1,505
  • 3
  • 28
  • 70
0
votes
1 answer

How to solve - FMUException: The slave failed to initialize

I am new to the FMU world and started with it. I am trying to load and simulate an FMU in python which is created in GT-Suite. I had hard time solving the errors while loading an FMU but could do it finally.I am following jmodelica tutorials from…
chink
  • 1,505
  • 3
  • 28
  • 70
0
votes
1 answer

How to get String output variables with FMPy?

I'm using FMPy to simulate some FMUs which have String output variables, yet these are not available in the simulation results (object returned by simulate_fmu(filename)). Are these variables handled in a different way? If so, how can I access…
diasdm
  • 35
  • 5
0
votes
2 answers

fmi2Instantiate: Undefined function or variable 'fmuhelper'

I am trying to export an fmu from matlab using the new tool coupling toolbox as shown in this link https://www.mathworks.com/help/simulink/ug/_mw_54e936ec-2fa7-4418-be70-d99c8f91d2bd.html So I was able to export an fmu and it generated 64 bit binary…
lorugant
  • 49
  • 7
0
votes
1 answer

Trigger events don't work in exported/imported FMUs within OpenModelica

I am trying to export a couple of models from OpenModelica as FMU 2.0 for Model Exchange. In order to check the generated FMUs I import them back to OpenModelica and simulate there. Everything works well with simple continuous systems like a single…
Paha_X
  • 1
  • 1
0
votes
0 answers

FMI co-simulation run time error in Simulink

At first I have exported a simulink model to FMU in Simulink and then imported this FMU also in the Simulink using FMU import block and later when I tried to run the simulation the following error shows up, could anyone please help me out with…
0
votes
1 answer

JFMI, number of scalar variables, passing string

I am using JFMI (https://ptolemy.berkeley.edu/java/jfmi/) to communicate with FMI (in C) from Java. For the communication, I use existing functions (e.g., simulation.write(inPort.getName()).with((Double) value);). However, I face two…
xTrmwYs
  • 43
  • 1
  • 9