Questions tagged [dymola]

Dymola is a commercial modeling and simulation environment based on the open Modelica modeling language.

Dymola is a commercial modeling and simulation environment based on the open Modelica modeling language.

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

Not enough memory to read .mat result file into Python

I have been having some issues trying to open a simulation result output file (.mat) in Python. Upon loading the file I am faced with the following error: ValueError: Not enough bytes to read matrix 'description'; is this a badly-formed file?…
1
vote
2 answers

call external function at the end of simulation in dymola

Is there a way to call an external function right before finishing a simulation in dymola? I need to call the destroyer of some objects before terminating the simulation, but I couldn't find a way to do it.
user3751857
  • 91
  • 1
  • 5
1
vote
2 answers

Can I launch Dymola without the GUI?

I've got an application that I'm working on which currently takes a model, passes it to OpenModelica, compiles it, runs a simulation, and grabs the output. We'd like to switch over to use Dymola, but I can't figure out how to do this in a GUI-less…
Sterno
  • 1,638
  • 2
  • 17
  • 28
1
vote
1 answer

Flag to switch off tearing in Dymola

Is there a (hidden) flag, or any other way, to switch off the tearing algorithm in Dymola (2016 FD01). I know, that there is a flag called Hidden.UseNewTearing, but I am not able to find any further hidden flags related to the tearing step.
Lukas Exel
  • 86
  • 5
1
vote
2 answers

Is it possible to conditionally set equation attributes in Modelica?

I am working on a large model that includes multiple subsystems, and a fairly large number of variables/equations. I have been using the protected attribute on subystems so that only the system level results are visible in the simulation results.…
Justin Kauffman
  • 423
  • 3
  • 10
1
vote
2 answers

How to work around array of components with fixed size error?

I have a class with a port of dimensions [x,y] which is connected to another class having a matching port. Now I want to provide value to these variables [x,y] through external function call in which I basically read a .xml file and obtain values…
Rohit_D
  • 85
  • 1
  • 11
1
vote
2 answers

Minimum value over entire simulation

In a continuous model, how do I save the minimum value of a variable during the simulation? When a simulation has finished I want to display a variable T_min with a graphical annotation that shows me the lowest value of a temperature T during the…
Rene Just Nielsen
  • 3,023
  • 12
  • 15
1
vote
1 answer

Dymola Command to Maximize or Manipulate Size or Placement of Plot Window

Is there a command to maximize or manipulate in any way the size and placement of a plot window in Dymola? After creating a plot using createPlot(), I would like to maximize that window within its allowed area of the screen. No resource, either…
Rocky Scott
  • 456
  • 4
  • 13
1
vote
1 answer

How can I add a model/class from one package to the other class/model present in other package in Dymola?

I have a block (submodel)Submodel_A in a model Model_AA present in a package Package_A. I would like to add Submodel_A into another model Model_AB, which is present in package Package_B. I tried copying the components or the code and pasting it…
1
vote
0 answers

Implementing the FMU SDK with a FMU created by Dymola 2016

I have created a small test application that puts a gui around the FMU SDK (found here) and my application can successfully open and run both the co-simulation FMUs provided with the SDK and the model exchange examples with no problems. When I…
PlTaylor
  • 7,345
  • 11
  • 52
  • 94
1
vote
0 answers

Importing FMU in Dymola using importFMU function

I'm trying to Import FMU in Dymola using the following syntax: importFMU(fileName="xyz", includeAllVariables=false, integrate=true, promptReplacement=true, packageName="abc"); It gives me this error: Error: declaration window line 3 column 10,…
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
1 answer

sample function bug in dymola?

When I tried simulating a simple model in dymola (2015) using the sample function: model test_sample Integer counter(start = 0); algorithm when sample(0, 0.25) then counter:=counter + 1; end when; end test_sample; I had to increase the…
Shaga
  • 170
  • 8
1
vote
1 answer

How to pass heatPorts.T to DynamicPipe flowModel?

In the implementation of a flow models that function with Modelica Standard Library DynamicPipe (or a similar model that builds from PartialTwoPortFlow) there are examples of flow models that take place in an environment with heat transfer that…
Scott G
  • 2,194
  • 1
  • 14
  • 24