
2 Building Simple Models with SimEvents Software
2-18
Functions | Help | Watch Video Tutorial
%==============================================================================%
Initializing Model dd1
sedebug>>
The sedebug>> notation is the debugger prompt, where you enter commands.
Run the Simulation
The simulation has initialized but does not proceed. In debugging mode, you indicate
to the debugger when to proceed through the simulation and how far to proceed before
returning control to you. The purpose of this example is to find out whether an entity is
in the server when the simulation ends. To continue the simulation until it ends, enter
this command at the sedebug>> prompt:
cont
The Command Window displays a long series of messages that indicate what is
happening during the simulation. The end of the output indicates that the debugger has
suspended the simulation just before the end:
Hit built-in breakpoint for the end of simulation.
Use 'cont' to end the simulation or any other function to inspect final states of the
system.
%==============================================================================%
Terminating Model dd1
To understand the long series of messages, see “Simulation Log in the Debugger”.
Query the Server Block
The debugger has suspended the simulation just before the end and the sedebug>>
prompt indicates that you can still enter debugging commands. In this way, you have an
opportunity to inspect the final states of blocks or other aspects of the simulation. To get
information about the Single Server block, enter this command:
blkinfo('dd1/Single Server')
The output shows the state of the Single Server block at the current time, T=10. The last
two rows of the output represent a table that lists entities in the block. The table has one
row because the server is currently storing one entity. The entity has a unique identifier,
en11, and is currently in service. This output affirmatively answers the question of
whether an entity is in the server when the simulation ends.
Comentários a estes Manuais