1
votes

I am using Dymola 2017 (Compiler is Visual Studio 2013/VisualC++ 2013 express Edition (12.0)).

I tried to export different MSL examples (e.g. Modelica.Electrical.Analog.Examples.CauerLowPassAnalog) as FMU (co-sim and Model exchange). I imported the FMU back in Dymola. When I try to simulate the FMU, I get always similar error messages: enter image description hereenter image description here

Here the FMU setting:

enter image description here

When I create an FMU of the example: Modelica.Electrical.Analog.Examples.CauerLowPassAnalog

The following files are created:

enter image description here

But when I open the file "LowPass.fmu" (as .zip file), there is just one file inside:

enter image description here

This is the first time the I work with the 2017 version - when I created a FMU with the 2016 version, there were always all files in the FMU.

Would be great, if someone could help me. Thank you!

2

2 Answers

3
votes

I was able to reproduce your error by importing and attempting to simulate an FMU while the current working directory was set within an existing Modelica package (i.e., a directory with the package.mo file).

To fix change your working directory to a folder without a package.mo file.

For example (cd c:/Documents/Dymola) and then import and run your FMU.

Hope that helps.

Below is my C:/Documents/Dymola folder once I create the FMU... Initial Folder Output

Everything can be deleted except the .fmu file and everything still works...

Only needed file

2
votes

The meaning of the error message is that Dymola cannot find the extracted FMU library. It could be that your FMU is not properly extracted by Dymola.

I would first check the working directory (you can know that by typing cd in the Dymola command window), if the FMU is properly extracted there.

It might also help, if you change to a working directory close to the root (for exampe create a directory C:/tmp and cd to it), so that you don't run into problem with the path length limit in Windows.