Debian Codegraph @

docs/source/Manuals/messages.txt

raw
1
2 Advisory messages
3 +++++++++++++++++
4
5 These messages are returned by ``simulate( )``, as in
6 ``message=simulate(until=123)``.
7
8 Upon a normal end of a simulation, ``simulate( )`` returns the message:
9
10 - **SimPy: Normal exit**. This means that no errors have occurred and
11 the simulation has run to the time specified by the ``until`` parameter.
12
13 The following messages, returned by ``simulate( )``, are produced at a premature
14 termination of the simulation but allow continuation of the program.
15
16 - **SimPy: No more events at time x**. All processes were completed prior
17 to the *endtime* given in *simulate(until=endtime)*.
18
19 - **SimPy: No activities scheduled**. No activities were scheduled
20 when *simulate( )* was called.
21
22 Fatal error messages
23 ++++++++++++++++++++
24
25 These messages are generated when SimPy-related fatal exceptions occur.
26 They end the SimPy program. Fatal SimPy error messages are output to
27 *sysout*.
28
29 - **Fatal SimPy error: activating function which is not a generator (contains no 'yield')**.
30 A process tried to (re)activate a function which is not a
31 SimPy process (=Python generator). SimPy processes must contain
32 at least one *yield . . .* statement.
33
34 - **Fatal SimPy error: Simulation not initialized**. The SimPy program
35 called *simulate( )* before calling *initialize( )*.
36
37 - **SimPy: Attempt to schedule event in the past**: A *yield hold* statement
38 has a negative delay time parameter.
39
40 - **SimPy: initialBuffered exceeds capacity**: Attempt to initialize a Store
41 or Level with more units in the buffer than its capacity allows.
42
43 - **SimPy: initialBuffered param of Level negative: x**: Attempt to
44 initialize a Level with a negative amount x in the buffer.
45
46 - **SimPy: Level: wrong type of initialBuffered (parameter=x)**: Attempt to
47 initialize a buffer with a non-numerical initial buffer content x.
48
49 - **SimPy: Level: put parameter not a number**: Attempt to add a
50 non-numerical amount to a Level's buffer.
51
52 - **SimPy: Level: put parameter not positive number**: Attempt to add
53 a negative number to a Level's amount.
54
55 - **SimPy: Level: get parameter not positive number: x**: Attempt to
56 get a negative amount x from a Level.
57
58 - **SimPy: Store: initialBuffered not a list**: Attempt to initialize
59 a Store with other than a list of items in the buffer.
60
61 - **SimPy: Item to put missing in yield put stmt**: A *yield put* was
62 malformed by not having a parameter for the item(s) to put into the
63 Store.
64
65 - **SimPy: put parameter is not a list**: *yield put* for a Store must
66 have a parameter which is a list of items to put into the buffer.
67
68 - **SimPy: Store: get parameter not positive number: x**: A *yield
69 get* for a Store had a negative value for the number to get from the
70 buffer.
71
72 - **SimPy: Fatal error: illegal command: yield x**: A *yield*
73 statement with an undefined command code (first parameter) x was
74 executed.
75
76
77 Monitor error messages
78 ++++++++++++++++++++++
79
80 - **SimPy: No observations for mean**. No observations were made by the
81 monitor before attempting to calculate the mean.
82
83 - **SimPy: No observations for sample variance**. No observations were made by the
84 monitor before attempting to calculate the sample variance.
85
86 - **SimPy: No observations for timeAverage**, No observations
87 were made by the monitor before attempting to calculate the time-average.
88
89 - **SimPy: No elapsed time for timeAverage**. No simulation
90 time has elapsed before attempting to calculate the time-average.
91