For more information on how to reach this option, and other options in this topic, see Setting up a Simulation. For more information about the dialog box alternatives, see Simulation Setup Dialog Box. If you have activated this option, all variables, ready for plotting, are now available in the Variable Browser after a failed simulation. The value of each variable depends on how far the initialization process came before failing. If the variable was initialized the result of that initialization is presented. The simulation log contains information on what made the initialization fail. Note:
Advanced users can study the execution
order in
dsmodel.mof , see the tip at the end.Consider the example model: model InitializationFailure Real x(start=-0.5, fixed=true); Real dx(start=-0.9); input Real u; output Real y1(start=-1); output Real y2(start=-1); equation der(x) = dx; u*dx + exp(dx) = x; y1 = x^3; y2 = der(x)^3; end InitalizationFailure; To compute the variable By a closer look at the model you can see that the nonlinear equation depends on the variables u and x. This information is also readily available in the translation log if you, before translation, activate the option List non-linear iteration variables in the simulation setup, the Translation tab. For more information about this option see the references above. Notes:
Plotting these variables reveals that
|