222 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
83
views
How to make the MSL block PID tuneable with respect to parameter Td for MSL 3.2.2 build 3?
I find it confusing to use a model that contains Modelica.Blocks.Continuous.PID from MSL 3.2.2 build 3, since the PID parameter Td is not tuneable, when I want to re-run simulation. This happens when ...
1
vote
1
answer
90
views
Initialize the parameter values of an FMU from a PAR file within the FMU
Recently I came across a problem statement where we have to initialize the parameters of the FMU from a PAR file. There are straightforward solutions using the FMPy, where I can run a python routine ...
0
votes
1
answer
65
views
Pyfmi unable to load example FMU binary on Raspberry Pi 5: "No such file or directory"
I'm running into an error in the project I'm trying to debug where I want to run simulations using an FMU (generated by Plecs if that matters) on a Raspberry Pi 5. I already have it working on a ...
2
votes
0
answers
79
views
transform to FMU does not copy resource to FMU when using readMatrix
I'm using DataFiles.readMATmatrix to read a .mat file and get simulation input into my dymola model.I see this option when converting a model to an FMU.
"Copy resources to FMU" – external ...
3
votes
2
answers
197
views
How to translate FMU to macOS environment from Linux or Windows using FMPy?
I am interested to run FMPy under macOS using an FMU made by OpenModelica in Linux with source code included.
What are the FMPy commands to do the translation of the FMU to macOS, if at all possible?
...
1
vote
5
answers
223
views
How to dynamically get the value of a variable in pyfmi
For example, this is my modelica model
model Test
Real x(start = 1000);
input Real k;
equation
der(x) = -k * x;
end Test;
from pyfmi import load_fmu
model = load_fmu('D:/FMU/Test.fmu')
model....
1
vote
2
answers
235
views
An fmu generated by visual studio runs on simulink, but it encounters an error:"Unable to load dynamic library"
I have a Visual Studio 2013 project, coding by C. And I generate a dll file, and put it into a directory of fmu file structrue, and there are some other sources like modelDescription.xml. I compress ...
0
votes
1
answer
58
views
How frequent is usage of string type in FMU model description variables?
I am implementing support for FMU import in my application that is quite low-level and deals with PLCs, and at the moment I am able to work only with booleans, integers and floats. How frequent is ...
0
votes
1
answer
169
views
Convert FMU to non-direct feedthrough in order to perform Simulink Co-Simulation in parallel
I am currently using some Co-simulation FMUs generated by Dymola inside Simulink.
I would like to speed up the simulation by using the Multithreaded Simulation as specified here
It is said "You ...
0
votes
1
answer
212
views
How with FMPy to get access to stored variable values with causality: 'calculatedParameter'?
I develop simulation scripts in Python using FMPy (and also PyFMI). For some Modelica models you have parameters that are defined as a function of other parameters. If you include these parameters in ...
-1
votes
1
answer
116
views
Initialization issue of FMU from openmodelica on ADEVS
I use ADEVS(A Discrete EVent System simulator) to simulate fmu model, but after I have compiled the file with cmake, I run the generated executable file main, which runs the adevs_fmi.h function "...
1
vote
2
answers
258
views
Dymola FMU generation - Array Dimensions are always local constants in the FMU
I have an issue when dealing with arrays in my models.
Expected/desired behaviour:
I want to export an FMU with array dimensions as fixed parameters which I could modify before initializing the ...
1
vote
1
answer
168
views
How to Implement a Causal Adaptor for Electrical Components in OpenModelica?
I am a beginner in Modelica and recently I have been working on exporting some electrical components as Functional Mock-up Units (FMUs). Based on the information I found in this article, it appears ...
1
vote
0
answers
218
views
Generate a Functional Mockup Unit (FMU) embedding a Python interpreter
I want to generate a FMU which embeds a Python script to process inputs and produce outputs. The most straightforward way that I found is to use libraries like unifmu or PythonFMU. However, these ...
0
votes
1
answer
395
views
How to pass parameter and state values to FMU using fmusim from a file in bulk?
We have a rather large FMU (50MB or so) written in C. We have the default values of parameters, states and inputs for our model defined in the FMI2/3.xml file as well as in the setStartValues() ...