Generating Compiled Simulations Using Partial Evaluation