1. A method comprising: for an executable, source graphical model configured to execute over a plurality of model steps, the executable, source graphical model including at least one subsystem including data paths, the data paths including a plurality of model elements, generating an in-memory representation of the executable, source graphical model, the in-memory representation including a portion that corresponds to the at least one subsystem, the portion of the in-memory representation including a plurality of functional components that correspond to the plurality of model elements of the data paths; searching the portion of the in-memory representation corresponding to the at least one subsystem to identify a set of functional components that are functionally equivalent; performing, on the in-memory representation, a first optimization or a second optimization based on a value of an oversampling parameter to produce a modified in-memory representation, where the first optimization includes: replacing the set of functional components of the portion of the in-memory representation that are functionally equivalent with a first single shared component, and configuring the portion of the in-memory representation to operate at an oversample rate; and the second optimization includes: replacing the set of functional components of the portion of the in-memory representation that are functionally equivalent with a second single shared component, configuring the portion of the in-memory representation with conditional execution control, providing a counter, and connecting the counter to the conditional execution control through one or more logic elements such that the portion of the in-memory representation executes at determined ones of the plurality of model steps; and generating from the modified in-memory representation at least one of an executable validation graphical model, a report, code, or a hardware description.