From GridLAB-D Wiki
Jump to: navigation, search

stoptime - The simulation stop time

Synopsis

clock {
  stoptime '2001-01-01 0:00:00 UTC';
}

Description

The stoptime global variable determine the time at which the simulation ends. By default stoptime is set to NEVER, which is used to indicate that the simulation should stop only when it has reached a steady state.

GLM

The stoptime is usually set using the clock directive as follows:

 clock {
   timezone PST8PDT;
   starttime '2000-01-01 00:00:00 PST';
   stoptime '2001-01-01 00:00:00 PST';
 }

Command line

The stoptime can be set using the command line:

host% gridlabd -D stoptime='2001-01-01 00:00:00 PST'

However, if the timezone is not set (e.g., using the TZ environment variable), the command line parser may be unable to interpret the timestamp and an error may occur.

See also