The bcvtb manual states that the simulateAndExit.mos script file may be modified in order to associate it with the modelica model (.mo file) to simulate. However, the script file utilizes a particular Modelica function: Modelica.Utilities.System.getEnvironmentVariable(). When a model is built and the SaveTotal option is selected, the model is created in the appropriate folder. However, there is no dependence upon the Modelica.Utilities.System.getEnvironmentVariable() function, so that this function is not packaged with the model when the SaveTotal operation is performed. I notice that the example files include the Modelica.Utilities.System.getEnvironmentVariable() function as part of the build, however when I look into the models, I do not see any dependency upon this function. I do not understand how to add the dependency to the model (in Dymola 2015) so that the model may be built and run from the batch file in the appropriate location. How is this accomplished?