General Tab
This section provides information about the General
tab.
Simulation Interval
- Start Time
- Specifies a Start time.
You can enter the time with a unit, for example
1min.
The value must be equal or greater to 0.
By default, the Start time is valued 0s.
- Stop Time
- Specifies a Stop time for the virtual execution.
You can enter the time with a unit, for example
2min. Note:
The value must be greater
than or equal to 0.
By default, the Stop time is valued 1s.
- Interactive simulation
- When you select this option, the simulation is interactive.
By default, this option is not
selected.
- Infinite simulation (no stop time)
- When this option is selected, the Stop time
option is not taken into account, and the simulation does not stop
automatically.
By default, this option is not selected.
Integration Tab
This section provides information about the
Integration tab.
Output Interval
- Interval length
- Specifies an interval length as the results storage rate.
You can
enter the time with a unit, for example 1min.
By default, this option is not selected. If selected, the default
value is 0.01s.
- Number of intervals
- Specifies a number of intervals as the results
storage rate.
By default, this option is selected and valuated 500.
Integration
- Algorithm
- Specifies the Algorithm used to solve the
differential equations.
By default, the selected algorithm is
Dassl.
- Tolerance
- Specifies the accuracy of the integration.
By default, this option is
valuated 0.0001.
- Fixed Integrator Step
- If the selected algorithm is a fixed-step integrator (such as
Euler, for example), this option specifies
the Fixed integrator step.
You can enter the
time with a unit, for example 1min.
By default, this option is not selected. The default when selected is
0.001s.
- Runge Kutta order for inline integration
- This option is available when selecting Inline Explicit Runge
Kutta or Inline Implicit Runge
Kutta as the algorithm. It lets you specify the
Runge-Kutta order for inline integration.
By default, this option is
not selected. The default when selected is 2.
Note:
You need the Export for HILS license (HIS) to use inline
integration.
Execution time
- Maximum run time (0 means no limit)
- Specifies the maximum wall-clock run time of any simulation.
The
option corresponds to the flag
Advanced.Simulation.MaxRunTime.
Notes:
- You can enter the time with a unit, for example
1min.
- The run time is independent of the simulation time
unit.
- The option works for both single simulations and batch
runs.
- The option works also if the simulation is stuck in the
code of an imported FMU or in an external C code.
By default, this option is valued 0s, meaning that there is no
limitation on the run time.
Translation Tab
This section provides information about the
Translation tab.
Model Translation
- Evaluate parameters to reduce models (improve simulation speed)
- When this option is selected, all parameters except top-level parameters
are evaluated at translation.
Note:
Structural parameters are always evaluated.
By default, this option is not selected.
- Also evaluate top-level parameters
- When this option is selected, also top-level parameters are evaluated at
translation.
By default, this option is not selected.
- Include a variable for elapsed CPU time during simulation
- Select this option to introduce a new variable, CPU time, with the
accumulated CPU time during the simulation. The slope of this signal is
an indirect measure of the computational complexity of the simulation.
By default, this option is not selected.
- Warn about parameters with no default
- Lists all free parameters that have no explicit value in the model.
By default, this option is selected.
- Pedantic mode for checking Modelica semantics
- Select this option to turn all warnings corresponding to semantic errors
in the Modelica code (compared to Modelica Language Specification) into
errors instead of warnings. This forces the programmer to use compliant
Modelica code.
By default, this option is not selected.
- Generate Analytic Jacobian for the ODE problem
- Select this option to use analytic ODE Jacobians for simulation and
linearization. For more information, see Advanced Algorithms.
By
default, this option is not selected.
- Start a PLM Update before every model translation
- Select this option to start a PLM Update before every model translation.
By default, this option is not selected.
Logging
The logging is available in the translation log, which can be seen in the
Messages Reporting window after a translate or
simulation.
- List continuous time states selected
- Lists the selected continuous time state.
By default, this option is
not selected.
- List non-linear iteration variables
- Lists the non-linear iteration variables. For
the use in an example, see About Analyzing a Failed Initialization.
By default, this option is not selected.
- Log default connections
- Outputs diagnostics when unconnected connectors receive a default value
according to the Modelica semantics. This information might help you in
finding an incorrectly composed model.
By default, this option is not
selected.
- Log bus signal sets
- Outputs information about connections of bus signals (expandable
connectors), for tracing of bus signals. If this option is active, and
you have bus signals in your model, you get an entry Bus
signal sets in the translation log. This can be used for
searching a connection of bus signals.
By default, this option is not
selected.
- Log selected default initial conditions
- When initial conditions are missing, Systems Virtual Execution selects
the default initial conditions. This option reports the result of the
automatic selection of default initial conditions.
By default, this
option is selected.
- Log deduced units
- Outputs deduced units.
By default, this option is not selected.
- Output information when differentiating for index reduction
- Reports about which equations are differentiated.
By default, this
option is not selected.
- Output read classes to screen during parsing
- Outputs read classes during parsing. You can select this option to get
information in the log about what classes are read when you, for
example, for open a package or a model.
Note:
This information is only
available in the command log, after you have performed a translation
or simulation.
By default, this option is not selected.
Output Tab
This section provides information about the Output
tab.
Store
This section allows you to define which categories of variables to store.
Note:
The Protected variables option above also store
nonselected variables when selections are present in a model.
Output Selection
- Equidistant time grid
- Stores results equidistantly.
By default, this option is selected.
- Store variables at events
- Stores variables before and after events.
By default, this option is
selected.
- Write variables to result file only at stop time
- Stores variables to result file only at stop time. This can be used to
minimize the result file if the model is large and only the result file
at stop time is needed. (Using this option can
be seen as a complement to using variable selections in Dymola Behavior Modeling to decrease the result file
size.)
Note:
The output points, as defined in the General
tab above, are still used internally by the integrator.
By
default, this option is not selected.
Debug Tab
This section provides information about the Debug tab.
Simulation Analysis
- Events during initialization and simulation
- Logs events during initialization and virtual execution. This can be
useful for finding errors in the event logic, including chattering.
By default, this option is not selected.
- Which states that dominate error
- Sometimes, tolerance requirements for some state variable can slow the
virtual execution. Selecting this option logs these critical states.
Note:
The logging is not supported for any of the following integrators:
- Euler
- Any Rkfix integrator
- Cvode
- Any integrator used for inline integration
By default, this option is not selected.
- Provide variable dependencies and equation incidence for plotting
- Select this option to be able to use variable dependencies and equation
incidence for plotting. For more information,
see Working with Variable Dependencies and Equation Incidence.
By default, this option is not selected.
Non-linear Solver Diagnostics
- Detailed logging of failed non-linear solution
- Logs detailed information of failed solutions of non-linear
systems.
By default, this option is not selected.
- Non-linear solution summary
- Adds a non-linear solution summary to the log in the following cases:
By default, this option is not selected.
- Non-linear solutions
- Logs solutions of non-linear systems.
By default, this option is not
selected.
- Non-linear iterations
- Logs iterations of non-linear systems.
By default, this option is not
selected.
- Details
- Logs iterations of non-linear systems in detail.
By default, this
option is not selected.
- Log singular linear
- Logs linear systems if they are consistently over-determined.
By
default, this option is not selected.
State Variable Logging
- Dynamic state selection
- Logs the changes to the selection of states.
Note:
The format of the
logged changes is similar to the format of a fixed-state selection
when editing a model.
By default, this option is not
selected.
- Final selection of states
- Logs the final selection of state variables.
Note:
The format of the
logged changes is similar to the format of a fixed-state selection
when editing a model.
By default, this option is not
selected.
Min./Max. Assertions
- All variables
- Dynamically checks that variables are within the minimum and maximum
bounds.
By default, this option is not selected.
- Non-linear iterations variables
- Checks that non-linear iteration variables are within the minimum and
maximum bounds.
By default, this option is not selected.
- Use bounds for simplification
- Uses minimum and maximum bounds to optimize the code, this automatically
adds assertions for used values.
By default, this option is selected.
- Log when using bounds for simplification
- Generates a log of used minimum and maximum bounds.
By default, this
option is not selected.
- Allowed error
- Defines the allowed error when checking minimum/maximum values.
By
default, the value is 0.
Function Context
- Include function call in error messages
- When this option is selected, the errors that are found in the functions
are reported with the call and with variable names.
By default, this
option is not selected.
Steady State Tab
This section provides you with information about the Steady
State tab.
Simulation Mode
Note:
For the steady-state options Static steady-state
finding and Dynamic steady-state finding
the following is valid:
- If steady state is not reached, a message in the simulation log lists
the state derivatives that were far from zero.
- The options are implemented by checking if the state derivatives are
close to zero. This means that the following cannot be detected:
- Periodic steady states.
- Steady states where a subset of the states is still
varying.
- Dynamic simulation
- This is a normal simulation without stopping when a steady state is
found.
By default, this option is selected.
- Static steady-state finding
- When you activate this option, the stop time for the simulation is
specified to be equal to the start time. This means that a purely static
simulation is performed. If steady-state is not achieved, the simulation
fails, by default, see the option Fail if steady state not
achieved below
The algorithm is forced to Dassl.
During purely static simulation, the integration algorithm is
actually not called, but Dassl enables better optimized static
simulations. The option corresponds to the flags:
Advanced.Simulation.SteadyState = true
Advanced.Simulation.SteadyStateTermination =
false
For the tolerrance of the option, see the option
Steady-state detection tolerance
below. By default, this option is not selected.
- Dynamic steady-state finding (stop when steady state is reached)
- When you activate this option, the simulation terminates automatically
if steady state is reached before the Stop time.
If steady state is not reached before the Stop
time, the simulation fails, by default, see the option
Fail if steady state not achieved
below.
The option corresponds to the flags:
Advanced.Simulation.SteadyState = true
Advanced.Simulation.SteadyStateTermination =
true
For the tolerrance of the option, see the option
Steady-state detection tolerance
below. By default, this option is not selected.
Model Manipulation
(Requires Retranslation)The following two options may help a simulation
to initialize in a steady state. It is most useful for static steady-state
finding. Note:
Changing the value of any of the options in this group
require retranslation of the model.
- Default steady-state initialization
- If this option is activated, each state x that do not have a fixed start
value is assigned the steady-state condition
der(x)=0.
You can check the translation log to see which state derivatives are not
put to zero. By default, this option is not active. This corresponds
to the flag
Advanced.Translation.DefaultSteadyStateInitialization =
false.
- Remove "fixed = true" from continuous variables
Note:
This option is only available if the previous option
is activated.
Activating this option removes
fixed=true from continuous variables. This means
that more variables are assigned the steady-state condition
der(x)=0 as fixed initial conditions are ignored.
However, the initial conditions are still in effect and may cause a
non-steady-state static simulation. By default, any such simulation is
regarded as failed by the check behind the option Fail if
steady state not achieved below.To activate the
option corresponds to setting the flag
Advanced.Translation.DefaultSteadyStateInitializtionLevel
= 1. By default, this option is not active. This
corresponds to the flag
Advanced.Translation.DefaultSteadyStateInitializtionLevel
= 0.
Detection and Verification
Note:
The options in this group are only available for the steady-state
modes Static steady-state finding and Dynamic
steady-state finding.
- Fail if steady state not achieved
- If this option is activated, it means:
- For Static steady-state finding, a check
is made after the simulation is done. If any of the state
derivatives are non-zero, the simulation has failed.
- For Dynamic steady-state finding, the
simulation has failed if the stop time is reached before the
steady state is achieved.
By default, this option is activated. This corresponds to the
flag Advanced.Simulation.FailIfSteadyStateNotReached =
true.
- Steady-state detection tolerance:
- Depending on which steady-state mode that is selected, the default
tolerance used to check for non-zero state derivatives are:
- For Static steady-state finding, the
default tolerance is 1e-8, scaled to state values and
nominals.
- For Dynamic steady-state finding, the
default tolerance is 2e-2, scaled according to the temporal
resolution of the problem, as well as to state values and
nominals.
Alternatively, you can specify the value in the field, by entering
a value in the field. This corresponds to setting the flag
Advanced.Simulation.SteadyStateTerminationTolerance
to that value. The default value of the flag is 0.0
meaning that the flag is not used, any of the default values above is
used instead. If you change the default value manually, you must
retranslate the model.
|