In this talk we will present a software package for dynamic simulation and sensitivity analysis of differential-algebraic equation (DAE) systems. The package is based on the family of ESDIRK (Explicit Singly Diagonally Implicit Runge-Kutta) methods . The one-step nature of these methods makes them particularly well suited for problems with frequent discontinuities, as in discrete event systems and optimal control applications using zero-order parameterization of inputs. Moreover, the strong stability properties (A- and L-stable) of ESDIRK methods make them suitable for index-1 DAEs.
The ESDIRK solver package includes a range of methods of varying order, all equipped with continuous extensions for generation of dense output and location of discrete events. Discrete event problems are handled by detecting and locating zero-crossings of event functions defining switches to other system states. Finally, the methods are equipped with sensitivity analysis algorithms for both forward [2,3] and adjoint sensitivity analysis. The sensitivity analysis algorithms have been applied to nonlinear model predictive control applications  as well as in the construction of a very efficient extended Kalman filter algorithm for state estimation in continuous-discrete stochastic systems [5,6].
 Alexander, R. (2003). Design and Implementation of DIRK Integrators for Stiff Systems. Applied Numerical Mathematics, 46, 1--17.
 Kristensen, M. R.; Jørgensen, J. B.; Thomsen, P. G. and Jørgensen, S. B. (2004). An ESDIRK Method with Sensitivity Analysis Capabilities. Computers and Chemical Engineering, 28, 2695--2707.
 Kristensen, M. R.; Jørgensen, J. B.; Thomsen, P. G.; Michelsen, M. L. and Jørgensen, S. B. (2005). Sensitivity Analysis in Index-1 Differential Algebraic Equations by ESDIRK Methods. In 16th IFAC World Congress 2005, Prague, Czech Republic.
 Kristensen, M. R.; Jørgensen, J. B.; Thomsen, P. G. and Jørgensen, S. B. (2004). Efficient Sensitivity Computation for Nonlinear Model Predictive Control. In F. Allgöwer, editor, NOLCOS 2004, 6th IFAC-Symposium on Nonlinear Control Systems, September 01-04, 2004, Stuttgart, Germany, pp. 723--728.
 Jørgensen, J. B.; Kristensen, M. R.; Thomsen, P. G. and Madsen, H. (2006). Efficient Numerical Implementation of the Continuous-Discrete Extended Kalman Filter. Submitted to Computers and Chemical Engineering.
 Jørgensen, J. B.; Kristensen, M. R.; Thomsen, P. G. and Madsen, H. (2006b). New Extended Kalman Filter Algorithms for Stochastic Differential Algebraic Equations. In F. Allgöwer; R. Findeisen and L. T. Biegler, editors, International Workshop on Assessment and Future Directions of Nonlinear Model Predictive Control. Springer, New York.