Building dymola model to be run with Dymola script file for co-simulation

140 views
Skip to first unread message

DK123

unread,
Jan 19, 2015, 9:50:24 AM1/19/15
to bc...@googlegroups.com
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?

Reply all
Reply to author
Forward
0 new messages