title: Use the result values from previous simulation result as guess values for next simulation in Dymola
body: <p>Initialization could be very cumbersome and easily lead to divergence. A simple strategy is to run the simulation when building a part of the whole system and use the simulation results to modify guess values.
  Here is what I got in the PPT from Francesco Casella and the book from Daniel Bouskela.</p>
  
  <p><a href="https://i.stack.imgur.com/A9SUP.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/A9SUP.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0UWGu.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/0UWGu.jpg" alt="enter image description here"></a></p>
  
  <p>I found that I could use an option in Dymola as follows, but instead of using the initialization result, I wanna use the result when reaching a steady state. So I'd like to use a python script to extract the result from the .mat result file, then modify the iteration variables automatically.  But the key problem is that I don't know when I add more components in my model, the iteration variable set of existing components would change, I don't know what kind of effect would this causes.
  Anyone got opinion on this issue, welcome to answer this question.</p>
  
  <p>So my question is where should I find the python </p>
  
  <p><a href="https://i.stack.imgur.com/pn1BD.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/pn1BD.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/yhvu5.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/yhvu5.jpg" alt="enter image description here"></a></p>