Define the Finalization Script Enter the OML commands that you want to be automatically executed at the end of a simulation. From the ribbon, select the Model Initialization and Properties tool: The Model dialog opens. Select the Finalization tab. In the OML editor, enter the required OML commands. Alternatively, if you have an existing OML script that you want to load, select and navigate to the file.