Patent ID: 8437988

Claim:
A computer-implemented method for simulation of a model of a system, the method comprising: detecting, by using the computer, a violation of a cross condition while iteratively refining a first solution of a system of nonlinear algebraic equations at a current time point, wherein the system of nonlinear algebraic equations is derived from a set of nonlinear differential algebraic equations that describe the system; responsive to the detecting, predicting a crossing time step, wherein the crossing time step is an interval between a previous time point and a crossing time point where the crossing condition was violated; projecting an initial guess for a second solution of the system of nonlinear algebraic equations at the crossing time point; and iteratively refining the second solution and the crossing time step by jointly solving an equation for the cross condition with the system of nonlinear algebraic equations as a coupled nonlinear system in which the crossing time step is treated as an unknown to compute changes to the second solution and the crossing time step in each iteration; and outputting information regarding the second solution and the crossing time point in human readable form.