Table of Contents

Dinamica Console

Dinamica Console is the command-line interface for running Dinamica EGO model scripts without opening the graphical interface. It is well suited for batch processing, scheduled runs, and execution on machines without a display.

Syntax

DinamicaConsole {OPTIONS} <model script filename>

The <model script filename> argument is required and specifies the model script that will be executed. The special argument can be used to terminate flag options, forcing all following arguments to be treated as positional arguments.

Execution Options

Workers and Memory

Accelerators

Logging

During execution, the console only displays messages at the INFO2 level and below, regardless of the configured -log-level. Each worker also writes its own log file, named log_X.txt (where X is the worker number), which mirrors what the console shows: only messages at the INFO2 level and below, even if a DEBUG/DEBUG2 level is configured. When debug information is enabled, it is written separately to a per-worker file named debug_X.txt instead, following the same naming scheme; DEBUG and DEBUG2 messages never appear in log_X.txt or on the console. Both the log and debug files are created in the same folder as the model script being executed.

Metadata

Model Output

Integration

Miscellaneous

Deprecated Options

The following options are accepted for backward compatibility but are ignored:

Examples

Run a model script using automatic worker detection and the default settings:

DinamicaConsole "C:\models\my_model.ego"

Run a model script with 4 workers, the Aggressive memory policy, and beep when finished:

DinamicaConsole -processors=4 -memory-allocation-policy=4 -beep "C:\models\my_model.ego"

Convert a model script to XML without running it:

DinamicaConsole -dont-run -output="C:\models\my_model.xml" "C:\models\my_model.ego"

List the available accelerator devices:

DinamicaConsole -list-accelerators "C:\models\my_model.ego"

Run a model script with a reduced, more verbose log level for troubleshooting, restricted to the functor scheduler subsystem:

DinamicaConsole -log-level=6 -log-subsystem=8 "C:\models\my_model.ego"

Run a model script at the Debug level, logging multiple subsystems at once by summing their flags — here, GENERAL=1 + FUNCTOR_SCHEDULER=8 + MAP_IO_HANDLER=128 = 137:

DinamicaConsole -log-level=6 -log-subsystem=137 "C:\models\my_model.ego"