“…XTAP uses 2s-DIRK, an L-stable method of order two. The anticipated second-order accuracy of these methods is, however, compromised at switch events because approximations of lower order are involved, for instance due to the use of linear interpolation for event localization [17], due to the use of backward Euler (BE) steps for the suppression of numerical oscillations [18], or in the reinitialization process after switching [19]. Consequently, simulations with switch events are generally less accurate than simulations without J. Tant and J. Driesen are both with ELECTA, Department of Electrical Engineering, KU Leuven, Leuven, Belgium, and Energyville, Genk, Belgium (e-mail: jeroen.tant@esat.kuleuven.be; johan.driesen@esat.kuleuven.be).…”