Page 751 - ExtendSim User Guide
P. 751

Debugging Tools 725
Show Simulation Order command
• Ifyouhaveanimationturnedon,theStepNextAnimationcommandtellsExtendSimtostep until the next animation change. In models where there are many steps between animation changes, this option makes going from visible change to visible change much faster.
• The Step Each Block command causes the Step button to simply go to the next block. It is usually used in conjunction with the Show Block Messages command, otherwise what is happening in the model will not be apparent.
If you select Run > Debugging > Show Block Messages when you are stepping through a sim- ulation run, the block that is active will be highlighted with the current message name written on it. If that block is not currently visible, the window will automatically scroll to the block if Scroll To Messages is checked. You can also choose to only show the On Simulate messages.
The Run > Debugging > Pause at Beginning command automatically pauses the simulation after the initial model processing (initialization, error checking, etc.) but before the first step. This gives you a chance to step from the very beginning without having to guess when to click the Pause button.
Show Simulation Order command
ExtendSim normally determines the order that blocks in a continuous model are exe- cuted by following the path of connections. If a continuous model is behaving in an unex- pected manner, you may want to see explic- itly the order ExtendSim is using to execute calculations in a model. Selecting the
Model > Show Simulation Order command puts a small number on each block indicating its order of execution.
☞ Although also accurate for groupings of con-
tinuous blocks in non-continuous models,
this display will be inaccurate for discrete event (Item library) and discrete rate (Rate library) blocks in those models. This is because discrete blocks can generate block-to-block messages and override the system’s simulation order.
Slow simulation speed
There are many reasons why a simulation would not run as quickly as you might expect. Some common causes, and the methods to detect and avoid them, are discussed in “Speeding up a simulation” on page 610.
Model reporting
The report commands in the Run menu are for generating customized reports of data to help debug models. However, model tracing (discussed in the next topic) can offer more detailed information so you will probably use that option more for debugging, and the reports option for analysis.
To learn more about how to generate reports in ExtendSim, see “Reports” on page 689.
Section of Reservoir model showing simulation order
How To


































































































   749   750   751   752   753