4.6 Exit codes

When \(\mathtt{\require{color}{\color[rgb]{0.000000000000000,0.500000000000000,0.500000000000000} ZimT}}\) or \(\mathtt{\require{color}{\color[rgb]{0.000000000000000,0.500000000000000,0.500000000000000} SimSS}}\) run normally, then they return exit code 0. However, when something happens, something unexpected, the exit code will be non-zero, see Table 4.1. There are three cases: If the program finishes without problem, but it did not simulate anything (for example, we used the option \(\mathtt{\require{color}{\color[rgb]{0.000000000000000,0.500000000000000,0.500000000000000} -tidy}}\)), then the exit code is 3. Secondly, if the program encounters something strange, but it detects it in time (so it halts, but it does not crash!), the exit code ranges from 90 –99. The free pascal compiler also has its own list of exit codes. These will be passed on to the operating system in case the program actually crashes, see Table 4.1 for a few typical cases.

Table 4.1 If the program cannot continue due to invalid input, a numerical problem, or even a programming error, it will return a value ranging from 90 –99. If it crashes, then it will return an exit code that is larger than 99.

Code

Meaning

2

Simulation auto stopped.

3

Warning-like exit.

Error

90

Device parameter file corrupted

91

Invalid input (physics, or voltage in \(\mathtt{\require{color}{\color[rgb]{0.000000000000000,0.500000000000000,0.500000000000000} tVGFile}}\) too large)

92

Invalid input from command line

93

Numerical failure

94

Failed to converge, halt (\(\mathtt{\require{color}{\color[rgb]{0.000000000000000,0.500000000000000,0.500000000000000} failureMode}}\) = 0, or 2 if if tracking in \(\mathtt{\require{color}{\color[rgb]{0.000000000000000,0.500000000000000,0.500000000000000} ZimT}}\)) 1

95

Failed to converge \(\geq \) 1 point, not halt (\(\mathtt{\require{color}{\color[rgb]{0.000000000000000,0.500000000000000,0.500000000000000} failureMode}}\) \(\neq \) 0)

96

Missing input file.

97

Runtime exceeds limit set by \(\mathtt{\require{color}{\color[rgb]{0.000000000000000,0.500000000000000,0.500000000000000} timeout}}\).

99

Programming error (i.e. not due to the user!)

Fatal (crash)

106

Invalid numeric format.

200

Division by zero.

201

Range check error.

202

Stack overflow error (only if stack checking enabled).

205

Floating point overflow.

206

Floating point underflow.

207

Invalid floating point operation.

217

Unhandled exception occurred.

  1. See Table 3.2.