title: Modelica and Matlab Coupling with Modelica Error
body: <p>I am trying to couple the Matlab with Modelica. </p>
  
  <p>The overall process is: I have 5000 sets of data and each of them contains 20 parameters which correspond to my Modelica model.</p>
  
  <ol>
  <li>These data sets would read by Matlab and then send to Modelica.</li>
  <li>Modelica would proceed with the simulation and generate the result. </li>
  <li>Then, Matlab will catch the result from Modelica.</li>
  </ol>
  
  <p>However, since the value of the parameter is generated randomly, errors could occur during the simulation (e.g., temperature out of boundary, convergence error, and etc). </p>
  
  <p>I thought about "try-catch" to execute the simulation if the error occurs. However, I realized that Matlab would stop if an error exists from Modelica.
  I am wondering if there is a way to continue the "for loop" in the Matlab in order to get into the next input data set.</p>
  
  <p>Thanks</p>