After a successful simulation, I want to use the result at steady-state to provide the initial guess values and save them in the model, but I didn't find such an option in Dymola, it only provides an option that allows me to do initialization and then save iteration variables in the model, but there is no guarantee that Dymola would initialize the model to the expecting steady state.
My idea is descirbed as following:

My questions are:
If I wanna use a Modelica script file(.mos file) to update the iteration variables after a successful simulation, which function should I use to extract all the iteration variables used in the model and update their values?
