Method for reinitializing states of dymola model in MATLAB

Skip to first unread message

Sep 25, 2020, 11:09:47 AM9/25/20
to bcvtb
Hello everyone,
I am using Dymola 2020x to develop a model of a building and use Dymola-Simulink (MATLAB 2018a) interface to run the model. For the models I am using components from the Buildings and IDEAS library.
I am trying to implement advanced controllers which requires iteratively run framework, which helps to reinitialize the states after every iteration to the values at end of every previous simulation. Only solution I could find was to replace the 'dsin.txt' file with 'dsfinal.txt', but that only works when the model is run within Dymola. When run through Simulink, 'dsfinal.txt' is not generated. 

All in all, I require a framework/method to be able to initialize states of my model through MATLAB/Simulink to the values I get after running a simulation.

Some help would be appreciated.

Thank and Regards,
Rahul Chaturvedi

Thierry Nouidui

Sep 29, 2020, 1:50:33 AM9/29/20
What do you mean by running the Modelica model through Simulink? Where does the BCVTB come into play then?

You received this message because you are subscribed to the Google Groups "bcvtb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Prof. Thierry Nouidui
Nouidui Consulting Group

Sep 29, 2020, 12:25:16 PM9/29/20
to bcvtb
Thank you for your response. 
I meant to send this in the Modelica Buildings group. Apologies for the confusion created.

Rahul Chaturvedi

Reply all
Reply to author
0 new messages