Because a SubModel is a separate simulation (that will often be carried out multiple times during a simulation of the parent model), results inside of a SubModel are typically overwritten during a simulation of the parent model.
Accordingly, by default, other than results passed through the SubModel's output interface, no results are actually saved (and hence, you cannot view results inside a SubModel after running a simulation).
However, you can choose to save (and view) the results of the last simulation of the SubModel. This can be done by checking the Save Results for most recent Simulation checkbox on the SubModel's Definition tab:
If this box is checked, results from the last simulation of the SubModel (i.e., the last time the SubModel was run) are available for viewing inside the SubModel at the end of your simulation. Note that the SubModel's results could represent multiple realizations, and in such a case, both time history and probabilistic results would be available for viewing inside of the SubModel. However, if the SubModel was run multiple times by the outer model (e.g., every timestep of the outer model), only the results from the last time the SubModel was run would be available.
Note: There are two important exceptions to this. In particular, under certain circumstances, Result elements in the parent model can display multiple realizations from the SubModel: 1) If you are running a nested Monte Carlo simulation (both the SubModel and the parent model are running multiple realizations), Distribution Result elements in the parent model modify their behavior to enable you to view multiple sets of realizations produced by the SubModel. 2) You can select a special option in Time History Result elements in the parent model to enable you to view multiple time histories from within a SubModel.
Several points should be noted regarding saving and viewing results inside a SubModel:
• When carrying out distributed processing simulations (using the Distributed Processing Module), results are not saved inside a SubModel, even if you choose to Save Results for most recent Simulation.
• If the Save Results for most recent Simulation box is cleared, results will not be saved inside the SubModel, even if the SubModel contains Result elements and/or the Save Results options are selected for each element. (If you click on a Result element in Result Mode inside such a SubModel, it will be ignored).
• If 1) you have chosen to Save Results for most recent Simulation, 2) have added a Time History Result element; and 3) the element is specified to automatically export results to a spreadsheet or text file, GoldSim will not automatically export the results. If you wish to export the results of the last simulation from inside a SubModel, it can only be done manually.
Learn more about:
Carrying Out Nested Monte Carlo Simulation Using a SubModel
Viewing SubModel Results in Time History Result Elements
Exporting from a Time History Result Element to a Spreadsheet