TRES: A modular representation of schedulers, tasks, and messages to control simulations in simulink