simscape-diagnose-simulation-error
Installation
SKILL.md
Diagnose the simulation error for a Simscape model. In the code below,
modelName is the name of that model.
In your answer, quote the tool results your diagnosis rests on (e.g. the compiled sample times, or the stiffest row with its time, λ and coefficient). Don't re-run fixes the user says they already tried.
When to Use
When a Simscape model hits "min step size" violations (stiffness, parasitics, event-time), "transient initialization failed to converge", "Cannot solve for one or more variables, including dynamic variable derivatives", or "stepsize control for transient solve".
When NOT to Use
- Errors in custom .ssc source (parse, unit, equation count, validation): use
simscape-write-ssc. - Building or editing a model that has no simulation error: use
building-simulink-models.