The performance of a system is simulated in a method comprising:
performing simulation in a first simulation mode for at least a first
portion of code that models at least a portion of the system; and
performing simulation in a second simulation mode for at least a second
portion of code that models at least a portion of the system.