1. A non-transitory computer-readable storage medium storing instructions for execution on a processor to execute a multi-domain graphical model, the medium storing instructions for: interacting with the multi-domain graphical model, where the multi-domain graphical model includes: one or more executable event-driven components operating in an event domain, one or more executable time-driven components operating in a time domain, and one or more gateway blocks; partitioning the multi-domain graphical model into a plurality of subgraphs using the one or more gateway blocks, two gateway blocks indicating boundaries of a subgraph, where the plurality of subgraphs includes: a first subgraph comprising: a first group of interconnected event-driven graphical components, and a second subgraph comprising: a second group of interconnected event-driven graphical components such that one or more time-driven components are provided between the first subgraph and the second subgraph; generating a transformed graphical model from the multi-domain graphical model, the transformed graphical model includes: a first graphical component that represents the first subgraph, and a second graphical component that represents the second subgraph; and using the transformed graphical model during execution of the multi-domain graphical model.