Convert Simulink Model into Dymola

Hey guys,
I have a problem. I have to convert my Matlab/Simulink models to Dymola.
I have seen using a FMI but I don't know how to do it. So if someone could help me it must be fine.
Thank you for your answer!

5 Comments

Hi guys i wanted to convert dymola to simulink.can anyone please help me
You have to export your model using a FMU
Sanjal C C
Sanjal C C on 9 Apr 2018
Moved: Walter Roberson on 23 Oct 2026 at 9:05
Is there a possibility to convert the Dymola model to a S-function in Simulink? If so how should I do that?
I have the same problem, ! I need to convert a model in simulink to a model in Dymola
Henry
Henry on 22 Oct 2026 at 18:48
Answer from Simulink Copilot
There is no general one-click conversion from MATLAB/Simulink models to native Dymola/Modelica models. Typical approaches are:
FMI co-simulation
Export the Simulink model as an FMU using an FMI-compatible exporter.
Import the FMU into Dymola.
This preserves Simulink execution rather than translating the model into Modelica source.
Manual Modelica redevelopment
Recreate the model using Dymola/Modelica components.
Translate MATLAB algorithms into Modelica equations or functions.
Rebuild Simulink control logic, discrete states, lookup tables, and solver behavior.
Validate outputs against the original model.
Hybrid workflow
Keep complex Simulink control logic as an FMU.
Implement the physical plant in Dymola.
Exchange signals through FMI co-simulation.
For the reverse direction, Simulink provides an FMU Import block for loading FMUs generated by tools such as Dymola: Import Co-Simulation FMU into Simulink
For your open model untitled, first determine whether you need a Dymola-runnable FMU or editable Modelica source code. The FMU route is usually faster; source-code conversion requires substantial manual restructuring and verification.

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Asked:

on 30 Dec 2016

Moved:

on 23 Oct 2026 at 9:05

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!