Problem codes: Expressions, stocks and flows¶
Expressions and variables, tables and time series, levels, flows, conversions, conveyors, delays, subscripts and units. The list is generated from the codes' own table; the meaning is the table's sentence for the code.
| Code | Severity | Meaning | About |
|---|---|---|---|
E_ASSIGN_KEY |
error | An ASSIGN entry has a key other than target and expr (it would be ignored). On screen: "Block {block}: assignment {index} has an unknown key" |
ASSIGN |
E_ASSIGN_TARGET |
error | An ASSIGN target is not a writable entity.<attr> or variable name. On screen: "Block {block}: assignment target {target} is not valid" |
ASSIGN |
E_AUX_CYCLE |
error | Auxiliaries read each other in a cycle. On screen: "Auxiliaries read each other in a cycle: {cycle}" | auxiliaries |
E_AUX_NAME |
error | An auxiliary has an empty or duplicate name. On screen: "An auxiliary has no name" / "Auxiliary {name} is defined twice" | auxiliaries |
E_AUX_UNKNOWN |
error | A literal AUX("name") call names no declared auxiliary. On screen: "{block}: no auxiliary named {name}" | auxiliaries |
E_BUFFER_LEVEL |
error | A BUFFER's "level" names a level the model does not declare. On screen: "Block {block}: level {level} does not exist" | BUFFER, levels |
E_CHARGE |
error | A CHARGE block's sharing rule is neither "equal" nor "first_come", its efficiency is not in (0, 1], or it keeps a full entity (leave_when_full off) with no time limit to leave by. On screen: "Block {block}: unknown sharing rule {sharing}" / "Block {block}: staying when full needs a time limit" / "Block {block}: efficiency must be above 0, at most 1" | CHARGE |
E_CONVERSION_CURVE |
error | A substrate's yield or release curve is malformed: a bad "yield", no curve and no positive "half_life", non-increasing knots, or a curve that does not end at 1.0. On screen: "{where}: yield must be a number, 0 or more" / "{where}: needs a curve or a positive half life" / "{where}: steps must be at least 1" / "{where}: the curve must be a list of pairs" / "{where}: every curve knot needs an age and a fraction" / "{where}: curve ages must rise, fractions must not fall" / "{where}: the last curve knot must be 1, not {last}" | conversions |
E_CONVERSION_INTERVAL |
error | A conversion's "cohort_interval" is not a positive number. On screen: "Conversion {name}: cohort interval must be above 0" | conversions |
E_CONVERSION_NAME |
error | A conversion has an empty or duplicate name, or is not an object. On screen: "A conversion entry is not an object" / "A conversion has no name" / "Conversion {name} is defined twice" | conversions |
E_CONVERSION_SUBSTRATE |
error | A conversion declares no substrate, or one with an empty or duplicate name. On screen: "Conversion {name} needs at least one substrate" / "Conversion {name}: a substrate has no name" / "Conversion {name}: substrate {substrate} is listed twice" | conversions |
E_CONVERSION_UNKNOWN |
error | A CONV("name") call names a conversion the model does not declare. On screen: "{block}: no conversion named {name}" | conversions |
E_CONVEYOR_DIVERT |
error | A CONVEYOR divert is not {at, condition, time?, when_full?}, its at is off the belt or on another point, its condition is empty, its time is not a number >= 0 or an expression, its when_full is not wait/pass, the belt has fewer links than 1 + diverts, a "pass" divert's link does not go straight to a CONVEYOR, BUFFER or queue_capacity station, or an intercept divert has a push time or when_full, a bad on_late, or a link that is not the robot picking from it, a divert's side is not left or right, or a link out of the belt names an exit that is not out or d<k>, or a routing rule is not usable, is not on the first divert of its rule_group along the belt, has an exit count other than its group's diverts, or sits beside a condition, a robot pick or when_full "pass", or a rule exit names a target piece that is not a CONVEYOR its loads reach; or a CONVEYOR_TRANSFER's links do not match its exits one to one (a port that is not one of its exits, or named twice), or its routing rule is not usable. On screen: "Belt {block}: divert {index} has the wrong settings" / "Belt {block}: divert {index} is not on the belt" / "Belt {block}: divert {index} shares a point on the belt" / "Belt {block}: divert {index} needs a condition" / "Belt {block}: divert {index} needs a time of 0 or more" / "Belt {block}: divert {index} must wait or pass when full" / "Belt {block}: robot divert {index} takes no push time or full rule" / "Belt {block}: exit {port} is not out or a divert" / "Belt {block}: exit {port} has two links" / "Transfer {block}: exit {port} is not one of its exits" / "Transfer {block}: exit {port} has two links" / "Transfer {block}: {exits} exits need as many links out, has {links}" / "Transfer {block}: its routing rule does not work" / "Belt {block}: divert {index} side must be left or right" / "Belt {block}: divert {index} has no valid late rule" / "Belt {block}: divert {index} must link straight to its robot" / "Belt {block}: {diverts} diverts need {needed} links out, has {links}" / "Belt {block}: divert {index} leads to a block with no places" / "Belt {block}: the routing rule at divert {index} does not work" / "Belt {block}: divert {index} is in a badly set rule group" / "Belt {block}: routed divert {index} takes no condition, robot or pass" / "Block {block}: exit {exit} names {target}, no conveyor on its way" |
BUFFER, CONVEYOR, CONVEYOR_TRANSFER |
E_CONVEYOR_EYE |
error | A CONVEYOR photo-eye is not on the belt, shares its place with another point, has an edge other than front or back, or the belt's part_length is longer than its spacing. On screen: "Belt {block}: eye {index} has the wrong settings" / "Belt {block}: eye {index} is not on the belt" / "Belt {block}: eye {index} shares a point on the belt" / "Belt {block}: eye {index} sees a back edge past the end" / "Belt {block}: eye {index} edge must be front or back" / "Belt {block}: eye {index} assignment {row} needs a target and an expression" / "Belt {block}: eye {index} signal must be a name" / "Belt {block}: its part length is longer than its spacing" / "Belt {block}: an item does not fit its belt cell or eye" | CONVEYOR |
E_CONVEYOR_GRID |
error | A conveyor stock needs simulation.sd (it moves one slat per DT). On screen: "Conveyor {name}: needs the system-dynamics time step" | CONVEYOR |
E_CONVEYOR_LEAK |
error | A leak on a flow that is not a conveyor's outflow, with no fraction, or with a zone outside 0 <= start < end <= 1. On screen: "Flow {name}: a leak must start at a conveyor" / "Flow {name}: a leak needs a fraction" / "Flow {name}: leak zone must run from 0 up to 1" | CONVEYOR |
E_CONVEYOR_MERGE |
error | A CONVEYOR merge is not {at, from, priority?}, its at is off the belt or on another point, its from is not a block linking to the belt or is named twice, its priority is not belt/merge, or the belt is not accumulating. On screen: "Belt {block}: merges need an accumulating belt" / "Belt {block}: merge {index} has the wrong settings" / "Belt {block}: merge {index} is not on the belt" / "Belt {block}: merge {index} shares a point on the belt" / "Belt {block}: merge {index} needs its own source block" / "Belt {block}: merge {index} priority must be belt or merge" / "Belt {block}: merge {index} names {source}, which is not linked to it" |
CONVEYOR |
E_CONVEYOR_METHOD |
error | A conveyor stock under method rk4; conveyors need euler. On screen: "Conveyor {name}: needs the Euler method" | CONVEYOR |
E_CONVEYOR_OUTFLOW |
error | A conveyor has no or several primary (non-leak) outflows, or its primary outflow has a rate. On screen: "Conveyor {name}: needs exactly one main outflow, has {n}" / "Flow {name}: a conveyor's main outflow takes no rate" | CONVEYOR |
E_CONVEYOR_PARAM |
error | A CONVEYOR's type is not belt, roller, chain, pallet or mdr, or its length, speed or spacing is not a number > 0, or its gap or cell is negative, or its endpoints name unknown nodes, or its zones are not {count >= 1, release_delay >= 0} on an accumulating belt with no stop, merge or routing rule that can hold a part; or a CONVEYOR_TRANSFER's mechanism is not popup, turntable or lift, an exit is not {port, angle} or shares or holds a ':' in its port, a time, length or speed is negative (a turn_rate or lift_speed not > 0), or transfer_speed is 0 where a move needs it and no one CONVEYOR speed feeds the module; or a stop, divert, merge or eye of a belt with a path lies at or past the path's end, or a divert's angle is not a number above 0 and below 180. On screen: "Block {block}: {field} must be a number above 0" / "Transfer {block}: {field} must be 0 or more" / "Transfer {block}: mechanism {mechanism} is not popup, turntable or lift" / "Transfer {block}: exit {index} needs a port name and an angle" / "Transfer {block}: two exits share the port {port}" / "Transfer {block}: exit {index} port {port} has a colon" / "Transfer {block}: set its transfer speed, no single feeding conveyor gives it" / "Belt {block}: {what} is past the end of its path" / "Belt {block}: divert {index} angle must be between 0 and 180 degrees" / "Belt {block}: length must be 0 or more" / "Belt {block}: {field} must be 0 or more" / "Belt {block}: unknown network node {node}" / "Belt {block}: unknown conveyor type {type}" / "Belt {block}: no length, and no start and end nodes" / "Belt {block}: unknown resource {resource}" / "Belt {block}: its zones have the wrong settings" / "Belt {block}: zones need an accumulating belt" / "Belt {block}: zones with stops or merges are not supported yet" / "Belt {block}: zones with a holding routing rule are not supported yet" | CONVEYOR, CONVEYOR_TRANSFER |
E_CONVEYOR_PATH |
error | A CONVEYOR's path has a piece that is not a straight or an arc, or it has a length or end nodes beside it. On screen: "Belt {block}: a piece of its path is wrong" / "Belt {block}: its path sets the length, so give no length" | CONVEYOR |
E_CONVEYOR_RELEASE |
error | A CONVEYOR's release is not one of metering {gap or interval}, singulation {gap} or slug {count, timeout, time_unit?} with numbers >= 0, or the belt is not accumulating or has zones. On screen: "Belt {block}: its release rule has the wrong settings" / "Belt {block}: a release rule needs an accumulating belt" / "Belt {block}: a release rule cannot share a belt with zones" | CONVEYOR, RELEASE |
E_CONVEYOR_REVERSE |
error | A reversible CONVEYOR has stops, diverts, robot picks, merges, photo-eyes, zones or a release rule, which only work one way, or its reverse_to is missing or names no exit of the belt, or a later piece of a reversible chain names one, or the chain is a ring. On screen: "Belt {block}: a reversible belt cannot have {what}" / "Belt {block}: a reversible belt needs an exit at its start" / "Belt {block}: its start exit {target} is not linked to it" / "Belt {block}: its start exit {target} is a belt feeding it" / "Belt {block}: reversible must be true or false" / "Belt {block}: its chain start {first} names the start exit" / "Belt {block}: reversible belts in a ring have no chain start" | CONVEYOR |
E_CONVEYOR_SPEC |
error | A conveyor has no transit_time or an unknown leak_kind. On screen: "Conveyor {name}: transit time is missing" / "Conveyor {name}: unknown leak kind {kind}" | CONVEYOR |
E_CONVEYOR_STOP |
error | A CONVEYOR stop is not {at, time, resource?}, its at is not between 0 and the belt's length, its time is not a number >= 0 or an expression, or its resource is not declared. On screen: "Block {block}: stop {index} has the wrong settings" / "Block {block}: stop {index} is not on the belt" / "Block {block}: stop {index} needs a time of 0 or more" / "Block {block}: stop {index} names unknown resource {resource}" |
CONVEYOR |
E_CONVEYOR_WRITE |
error | Something would write a conveyor stock directly (a TRANSFER block or agent transfer action, a BUFFER's mirror level, initial_state.levels, or a subscripted conveyor), bypassing its slat model. On screen: "Agent type {agent}: {where}: cannot transfer into or out of conveyor {level}" / "Block {block}: a buffer cannot mirror into conveyor {level}" / "Block {block}: a transfer cannot use conveyor {level}" / "Level {name} is a conveyor; its start cannot be set" / "Conveyor {name}: cannot be subscripted" | BUFFER, CONVEYOR, TRANSFER |
E_DASHBOARD_SERIES |
error | A dashboard widget's series do not fit its kind: kpi/gauge take "expr" (not "series"), line takes 1-4 series and bar 1-8, with unique non-empty labels. On screen: "Widget {name}: a {kind} widget takes an expression, not series" / "Widget {name}: a {kind} widget takes series, not an expression" / "Widget {name}: a {kind} widget takes 1-{limit} series, got {got}" / "Widget {name}: series {number} has no label" / "Widget {name}: series label {label} is used twice" | dashboard, timeseries_inputs |
E_DELAY_NAME |
error | A delay has an empty or duplicate name. On screen: "A delay has no name" / "Delay {name} is defined twice" / "Delay {name} shares hidden stage names with another delay" | DELAY, delays |
E_DELAY_SPEC |
error | A delay's kind is unknown, its input or delay_time is missing, or its delay_time is a number <= 0. On screen: "Delay {name}: unknown kind {kind}" / "Delay {name}: {field} is missing" / "Delay {name}: delay time must be above 0" | DELAY, delays |
E_DELAY_UNKNOWN |
error | A literal DELAY("name") call names no declared delay. On screen: "{block}: no delay named {name}" | DELAY, delays |
E_DUPLICATE_REALITY_CHECK |
error | Two reality checks share a name. On screen: "Reality check {name} is defined twice" | DUPLICATE, reality_checks |
E_DUPLICATE_VARIABLE |
error | Two variables share a name. On screen: "Variable {name} is defined twice" | DUPLICATE, variables |
E_ENERGY_PRICE |
error | "simulation.energy_price" is neither a number nor a valid expression. On screen: "The energy price expression is not valid" / "The energy price must be a number or an expression" | -- |
E_EXPRESSION |
error | An expression does not compile against the safe grammar. On screen: "Reality check {name}: the constraint is empty" / "{block}: {text} is not a valid expression" / "{block}: {text} fails on every draw" / "{block}: {text} uses self outside an agent type" / "Resource {name}: the ranking expression is not valid" | -- |
E_FIXED_COST_AMOUNT |
error | A fixed cost's "amount" is neither a number nor a valid expression. On screen: "Fixed cost {name}: the amount expression is not valid" / "Fixed cost {name}: amount must be a number or expression" | fixed_costs |
E_FIXED_COST_NAME |
error | A fixed cost has an empty or duplicate name, or is not an object. On screen: "A fixed cost entry is not an object" / "A fixed cost has no name" / "Fixed cost {name} is defined twice" | fixed_costs |
E_FLOW_BIFLOW |
error | A flow's "biflow" is not a boolean, or a bi-directional flow joins a level with a bound (min, capacity or power limit). On screen: "Flow {name}: two-way must be true or false" / "Flow {name}: a two-way flow needs levels without limits" | flows |
E_FLOW_COMPONENT |
error | A flow's "components" is not an object of component -> share. On screen: "Flow {name}: components must give each name a share" | flows |
E_FLOW_EFFICIENCY |
error | A flow's efficiency is outside (0, 1]. On screen: "Flow {name}: efficiency must be above 0 and at most 1" | flows |
E_FLOW_LEVEL |
error | A flow's "from" or "to" names no declared level. On screen: "Flow {name}: {side} names no level: {end}" | flows, levels |
E_FLOW_MIN_RATE |
error | A flow's "min_rate" is not a number >= 0. On screen: "Flow {name}: minimum rate must be 0 or more" | flows |
E_FLOW_NAME |
error | A flow has an empty or duplicate name. On screen: "A flow has no name" / "Flow {name} is defined twice" | flows |
E_FLOW_PEAK_PRICE |
error | A flow's "peak_price" is not a number (a demand charge is a tariff per unit of Peak Rate, billed once at the end of the run). On screen: "Flow {name}: peak price must be a number" | flows |
E_FLOW_TAG |
error | A flow's bus "tag" is not a string, or its "priority" is not a number (flows sharing a tag are summed by FLOWSUM, so one tag must not mix time units). On screen: "Flow {name}: tag must be text" / "Flow {name}: priority must be a number" / "Flows tagged {tag} use different time units" | flows |
E_FLOW_THRESHOLD |
error | A flow rate threshold has no numeric value, an unknown direction, or a non-numeric "cost". On screen: "Flow {name}: a threshold is not valid" | flows |
E_FLOW_UNKNOWN |
error | A FLOW("name") call names a flow the model does not declare. On screen: "{block}: no flow named {name}" | flows |
E_LEVEL_BOUNDS |
error | A level's capacity/min/initial or a power limit is not a number, or the three bounds are inconsistent. On screen: "Level {name} must start at a number" / "Level {name}: a limit is not a number" / "Level {name}: capacity is below the minimum" / "Level {name}: start value is outside its limits" | levels |
E_LEVEL_COMPONENT |
error | A level's component has no name, is declared twice, has an initial_fraction outside [0, 1], or the level's "blend_tolerance" is not positive. On screen: "Level {name}: a component has no name" / "Level {name}: component {label} is defined twice" / "Level {name}: component {label} start share must be 0 to 1" / "Level {name}: blend tolerance must be above 0" | levels |
E_LEVEL_NAME |
error | A level has an empty or duplicate name. On screen: "A level has no name" / "Level {name} is defined twice" | levels |
E_LEVEL_THRESHOLD |
error | A level threshold has no numeric value, or an unknown direction. On screen: "Level {name}: a threshold is not valid" | levels |
E_LEVEL_UNKNOWN |
error | A LEVEL("name") call, a TRANSFER block or an agent's transfer action names a level the model does not declare. On screen: "Agent type {agent}: {where}: unknown level {level}" / "Block {block}: unknown level {level}" / "Initial state: unknown level {name}" / "{block}: no level named {name}" | TRANSFER, levels |
E_LOG_LEVEL |
error | simulation.log_level names no run log level or profile. On screen: "Log level {level} is not a level or profile" | levels |
E_LOOP_GRID |
error | Loop dominance needs the SD step grid (simulation.sd) and the model has none. | -- |
E_POWER_UNKNOWN |
error | A POWER("name") call names no declared resource, fleet or charger. On screen: "{block}: no resource, fleet or charger named {name}" | -- |
E_REALITY_CHECK_INPUT |
error | A reality check's "inputs" is not an object of override path: value, or one of its paths is empty. On screen: "Reality check {name}: each input needs a path and a value" | reality_checks |
E_REALITY_CHECK_NAME |
error | A reality check has an empty name. On screen: "A reality check has no name" | reality_checks |
E_REALITY_CHECK_WHEN |
error | A reality check's "when" is outside the grammar ("always", "final", a window, or "eventually" with or without one), or its window ends before it starts. On screen: "Reality check {name}: its time window is not valid" | reality_checks |
E_SD_DELAY_ORDER |
error | A material/information delay's order (DELAYN's n) is not a literal integer >= 1. On screen: "Delay {name}: order must be a whole number, 1 or more" | DELAY, delays, orders, simulation |
E_SD_FUNCTION_CONTEXT |
error | An inline SMOOTH/DELAY call sits where no delay can be generated (a block, a price); only a flow rate, an auxiliary or a delay input may hold one. On screen: "{block}: {name}() cannot be used here" | DELAY, simulation |
E_SD_REQUIRES_DT |
error | A material or information delay (SMOOTH, DELAY1/3/N) needs simulation.sd; a pipeline (DELAYP) does not. On screen: "Delay {name}: needs the system-dynamics time step" | simulation |
E_SD_RK4_RANDOM |
error | A dynamic flow rate draws random numbers under RK4, which evaluates it four times per step. On screen: "Flow {name}: Runge-Kutta cannot draw random numbers" | simulation |
E_SD_SETTINGS |
error | simulation.sd is not an object, its "dt" is not a number > 0, or its method or time_unit is unknown. On screen: "The system-dynamics settings must be an object" / "The time step must be a number above 0" / "Unknown system-dynamics method {method}" / "Unknown system-dynamics time unit {unit}" / "Unknown system-dynamics settings: {unknown}" | simulation |
E_SERIES_MODE |
error | A time series' interpolation or beyond-the-end mode is unknown. On screen: "Time series {name}: unknown {key} {value}" / "A time series period is not valid" | timeseries_inputs |
E_SERIES_NAME |
error | A time series has an empty or duplicate name. On screen: "A time series has no name" / "Time series {name} is defined twice" | timeseries_inputs |
E_SERIES_NO_CALENDAR |
error | A time series uses real timestamps but the model has no calendar. On screen: "Time series {name}: dates need a model calendar" | simulation, timeseries_inputs |
E_SERIES_SHAPE |
error | A time series' values/times/step do not describe a series. On screen: "Time series {name}: timestamps must be a list of dates" / "Time series {name}: use times or timestamps, not both" / "Time series {name}: a dated start needs a step" / "Time series {name}: timestamps and values differ in number" / "Time series {name}: values must be a non-empty list" / "Time series {name}: {value} is not a number" / "Time series {name}: give either times or a step" / "Time series {name}: times and step cannot both be set" / "Time series {name}: times must be a list of numbers" / "Time series {name}: times and values differ in number" / "Time series {name}: step must be a number" / "Time series {name}: period must be a number" | timeseries_inputs |
E_SERIES_UNKNOWN |
error | A TS("name") call names a time series the model does not declare. On screen: "{block}: no time series named {name}" | timeseries_inputs |
E_SUBSCRIPT_AGGREGATE |
error | A one-argument SUM(x)/MEAN(x) has no "[]" to unroll over, or sits outside a level, flow, auxiliary or delay. On screen: "{block}: {name}() needs a [] over a subscripted record" | subscripts |
E_SUBSCRIPT_DIM |
error | A "[dim]" index names a dimension its record does not have, a "[*]" sits outside SUM/MEAN, "dims" repeats one, or a flow joins a subscripted level without its dims. On screen: "{who}: a dimension is listed twice" / "{who}: {loose} sits outside SUM or MEAN" / "{who}: {loose} is not a dimension of this record" / "{who}: a flow end is subscripted but the flow is not" | subscripts |
E_SUBSCRIPT_ELEMENT |
error | A record's per-element "elements" overrides are not an object, or name an element combination its "dims" do not have. On screen: "{who}: its element overrides match nothing" | subscripts |
E_SUBSCRIPT_MAP |
error | A subscript's "map_to" names no other declared subscript, or its "elements" are not one target element per element (without them the two sizes must match). On screen: "Subscript {name}: cannot map to another subscript" | subscripts |
E_SUBSCRIPT_NAME |
error | A subscript's name is not an identifier or is a duplicate, or its elements are empty, repeated, or hold [ ] , * or a subscript name. On screen: "A subscript name must be an identifier" / "Subscript {name} is defined twice" / "Subscript {name}: elements must be a non-empty list" / "Subscript {name}: elements must be unique plain text" / "{text} is both a subscript and an element" | subscripts |
E_SUBSCRIPT_RANGE |
error | A subscript's "parent" is not another declared subscript holding all of its elements. On screen: "Subscript {name}: parent must hold all its elements" | subscripts |
E_SUBSCRIPT_SIZE |
error | A subscripted record's element count (the product of its dims' sizes) is over the cap (200,000 records); it is not flattened. On screen: "{who}: too many subscript elements" | subscripts |
E_SUBSCRIPT_UNKNOWN |
error | A record's "dims" is not a list of declared subscript names. On screen: "{who}: unknown subscript {unknown}" | subscripts |
E_TABLE_KEYS |
error | A TABLE(...) call passes the wrong number of keys for that table. On screen: "{block}: table {name} takes {need} keys, got {got}" | tables |
E_TABLE_MODE |
error | A lookup mode is unknown, or step/linear was asked for on non-numeric keys. On screen: "Table {name}: unknown lookup mode {mode}" / "Table {name}: lookup mode {mode} needs numeric keys" | tables |
E_TABLE_NAME |
error | A table has an empty or duplicate name. On screen: "A table has no name" / "Table {name} is defined twice" | tables |
E_TABLE_SHAPE |
error | A table's keys/columns/values do not form a rectangle, or repeat a key. On screen: "Table {name}: keys must be a non-empty list" / "Table {name} has a repeated key" / "Table {name}: keys and value rows differ in number" / "Table {name}: columns must be a non-empty list" / "Table {name} has a repeated column" / "Table {name}: row {row} has the wrong number of values" | tables |
E_TABLE_UNKNOWN |
error | A TABLE("name", ...) call names a table the model does not declare. On screen: "{block}: unknown table {name}" | tables |
E_TABLE_VALUE |
error | A table value (or its default) is not a number. On screen: "Table {name}: default {value} is not a number" / "Table {name}: value {value} is not a number" | tables |
E_TIME_UNIT |
error | A time_unit is neither "base" nor one of the known units. On screen: "{where}: unknown time unit {unit}" / "The model's time unit {unit} is not known" | -- |
E_TRANSFER_MODE |
error | A TRANSFER block's or an agent transfer action's mode is neither "remove" nor "add". On screen: "Agent type {agent}: {where}: transfer mode must be remove or add" / "Block {block}: unknown transfer mode {mode}" | TRANSFER |
E_UNDECLARED_VARIABLE |
error | An expression or ASSIGN target names a variable the model does not declare. On screen: "Block {block}: variable {variable} is not declared" / "Block {block}: power variable {variable} is not declared" | ASSIGN, variables |
E_UNIT |
error | A unit is not one of its quantity's units (length, speed, mass, energy, power). On screen: "{where}: unknown unit {unit}" / "The model's length unit {unit} is not known" | -- |
E_UNIT_MISMATCH |
error | simulation.sd.units == "strict": same condition as W_UNIT_MISMATCH, reported as an error instead. On screen: "{block}: unit {a} does not match {b}" / "{block}: its expression adds unlike units" |
-- |
E_UNIT_TIME |
error | simulation.sd.units == "strict": same condition as W_UNIT_TIME, reported as an error instead. On screen: "{block}: {a} and {b} differ in time scale" |
-- |
E_VARIABLE_NAME |
error | A variable name is not a Python identifier. On screen: "Variable {name} is not a valid name" | variables |
E_VARIABLE_RESERVED |
error | A variable name shadows a reserved name or a built-in function. On screen: "Variable {name} uses a reserved name" | variables |
E_VARIABLE_UNKNOWN |
error | A VAR("name") call names a variable the model does not declare . On screen: "{block}: no variable named {name}" | variables |
W_BLOCKING_LOOP |
warning | A closed loop of finite buffers can deadlock: every station in it could end up holding a part with nowhere to put it. On screen: "Finite buffers form a closed loop: {chain}" | -- |
W_CONVEYOR_HANDED_TO_NOTHING |
warning | In the run, a part reached a CONVEYOR's end (or a reversible belt's start) with no next block; it stands there and the belt is blocked, so a run that drains ends with a deadlock naming it. Warned once per belt; an error that stops the run under simulation.strict_checks. On screen: "A part reached a belt exit with no next block" | CONVEYOR |
W_CONVEYOR_LEVEL_KEY |
warning | A conveyor level sets capacity/min/max_inflow/max_outflow, which a conveyor ignores (its own conveyor.capacity/in_limit apply). On screen: "Conveyor {name}: level limits are ignored" | CONVEYOR, levels |
W_CONVEYOR_OPEN_PORT |
warning | A conveyor piece on the floor (a CONVEYOR with a path, or a CONVEYOR_TRANSFER's exit) has a port no link joins: a belt's in, out or divert port d<k>, a transfer's exit port. An area link counts as a link. An error under simulation.strict_checks. On screen: "Belt {block}: port {port} is open" / "Transfer {block}: exit {port} is open" | CONVEYOR, CONVEYOR_TRANSFER |
W_CONVEYOR_OVERLAP |
warning | Two CONVEYORs with a path overlap on the floor plan, each piece a flat-ended strip its width across (an untyped belt is 0.8 m wide); two pieces that meet at a joint (port to port, a divert, a merge or one transfer) skip one belt width around it. The first 20 pairs are listed, then a count. An error under simulation.strict_checks. On screen: "Belt {block} overlaps belt {other}" / "{count} more pairs of belts overlap" | CONVEYOR |
W_CONVEYOR_SNAP |
warning | A link joins two CONVEYORs with a path whose ports are more than 0.05 m or 5 degrees apart on the floor plan. An error under simulation.strict_checks. On screen: "Belt {block}: port {port} does not meet {target}" | CONVEYOR |
W_CONVEYOR_STOP_HELD |
warning | A CONVEYOR stop seizes a resource a part still holds when it gets there (seized upstream, not yet released); the run stops with an error when a part asks for it twice. On screen: "Block {block}: stop {index} seizes {resource}, already held" | CONVEYOR |
W_CONVEYOR_TRANSIT |
warning | A literal transit_time is not a multiple of dt; the belt has round(T/dt) slats. On screen: "Conveyor {name}: transit time is not a multiple of the step" | CONVEYOR |
W_FLOW_CLOCK_NO_GRID |
warning | A flow rate reads TNOW in a model with no simulation.sd step grid, so the clock is only read at events. On screen: "Flow {name}: rate reads the clock but there is no time step" | flows |
W_LOOP_HYBRID |
warning | Loop dominance on a model with DES blocks or agent populations: the variables they write are read at their initial values (SD layer only). | -- |
W_RATE_UNIT_CHANGED |
warning | Since 0.10.0 a flow's peak_price, thresholds and reported rates, and a conversion's CONV() and rates, are per their own time unit, not the base one. On screen: "Flow {name}: rates are now per {unit}, not per {base}" / "Conversion {name}: rates are now per {unit}, not per {base}" | -- |
W_RATE_UNIT_READ |
warning | A flow rate or a conversion feed reads FLOW(), FLOWSUM() or CONV() of a rate written per another time unit, and takes it unconverted. On screen: "{who}: {call} is in another time unit, read unconverted" | -- |
W_RATE_UNIT_UNCHECKED |
warning | A flow rate or a conversion feed reads FLOW(), FLOWSUM() or CONV() of a computed name, and the records it may read are per different time units, so the read cannot be unit-checked. On screen: "{who}: {call} reads names in different time units" | -- |
W_REF_UNSET |
warning | A POWER(), TS() or other named read takes its name from an asset parameter left empty, so the run would fail on it. On screen: "{block}: {func}() reads {name}, which is empty" | -- |
W_SD_RK4_BUS |
warning | A dynamic flow rate reads FLOW()/FLOWSUM() under RK4, whose stages ignore saturation. On screen: "Flow {name}: Runge-Kutta reads rates from the step start" | simulation |
W_SERIES_BEFORE_START |
warning | A dated time series starts before, or ends after, the run window. On screen: "Time series {name} starts before the calendar start" / "Time series {name}: every sample is after the run ends" | timeseries_inputs |
W_SERIES_PERIOD_UNUSED |
warning | A time series has a period but does not repeat, so the period is never read. On screen: "Time series {name}: period has no effect without repeat" | timeseries_inputs |
W_UNIT_MISMATCH |
warning | A level/flow/auxiliary's declared or inferred unit does not match another unit it should agree with (expected vs found). On screen: "{block}: unit {a} does not match {b}" / "{block}: its expression adds unlike units" | -- |
W_UNIT_MISSING |
warning | simulation.sd.units == "strict": a level or flow declares no unit at all. On screen: "Level {block}: no unit declared" / "Flow {block}: no unit declared" |
-- |
W_UNIT_TIME |
warning | A unit matches dimensionally but uses a different time scale than the model's base time unit (e.g. people/hour feeding a level in days). On screen: "{block}: {a} and {b} differ in time scale" | -- |
W_UNIT_UNPARSED |
warning | A declared unit string could not be parsed. On screen: "{block}: unit {unit} could not be read" |
-- |
How to fix¶
Each code with the usual remedy:
E_ASSIGN_KEY: Give each entry in the ASSIGN block'sassignmentsonly the keystargetandexpr. A misspelt key, such asvalueforexpr, is otherwise dropped; rename or remove it.E_ASSIGN_TARGET: Set the ASSIGN target toentity.<attribute>,entity.agent.<attribute>or the name of a declared variable. Other forms, such as a function call, cannot be written to.E_AUX_CYCLE: Break the loop the message lists inauxiliaries: make one of those auxiliaries read a level (a stock) or a delay instead of another auxiliary in the cycle.E_AUX_NAME: Give every entry inauxiliariesa non-emptyname, and rename one of any two auxiliaries that share a name.E_AUX_UNKNOWN: Declare the auxiliary in theauxiliariessection, or correct the name in theAUX("...")call. Names are case sensitive.E_BUFFER_LEVEL: Declare the level named in the BUFFER'slevelparameter in thelevelssection, correct the name, or clear thelevelfield.E_CHARGE: On the CHARGE block, setsharingtoequalorfirst_comeandefficiencyto a number above 0 and at most 1. Ifleave_when_fullis false, also set atime_limit.E_CONVERSION_CURVE: Fix the substrate inconversions.<name>.substrates: setyieldto a number of 0 or more. Give either a positivehalf_lifeor acurveof[age, cumulative fraction]knots with increasing ages that ends at1.0.E_CONVERSION_INTERVAL: Set the conversion'scohort_intervalto a positive number, or leave it out for the default of 1.E_CONVERSION_NAME: Make every entry inconversionsan object with a non-emptyname, and rename one of any two conversions that share a name.E_CONVERSION_SUBSTRATE: Give the conversion at least one entry insubstrates, each with a non-emptyname, and rename one of any two substrates that share a name.E_CONVERSION_UNKNOWN: Declare the conversion in theconversionssection, or correct the name in theCONV("...")call. Names are case sensitive.E_CONVEYOR_DIVERT: Write each divert asat,conditionand optionallytimeandwhen_full, withaton the belt. Give the belt one more link than it has diverts.E_CONVEYOR_GRID: Add the system-dynamics grid to the model, for example"simulation": {"sd": {"dt": 0.25}}, or removeconveyorfrom the level.E_CONVEYOR_LEAK: Set the leak flow'sfromto a conveyor level, give itsleakafraction, and keepzoneas[start, end]with0 <= start < end <= 1. Otherwise dropleakfrom the flow.E_CONVEYOR_MERGE: Write each merge asat,fromand optionallypriority, withaton the belt andfromnaming a block that links to the belt. Merges need an accumulating belt.E_CONVEYOR_METHOD: Setsimulation.sd.methodtoeuler, or remove the conveyor. A conveyor moves one slat per DT, whichrk4cannot do.E_CONVEYOR_OUTFLOW: Give the conveyor exactly one outflow withoutleakand mark the other outflows withleak. Set that primary outflow'srateto empty, since it takes what leaves the belt.E_CONVEYOR_PARAM: On the CONVEYOR block, setspeedandspacingto positive numbers andlengthto a number of 0 or more. With nolength, set bothfrom_nodeandto_nodeto declarednetworknodes; declare anyexit_resourceunderresources.E_CONVEYOR_SPEC: Give the conveyor level aconveyor.transit_time(a number or an expression), and setleak_kindto one of the kinds the hint lists, or leave it out.E_CONVEYOR_STOP: Write each entry of the CONVEYOR'sstopsas{at, time, resource}only, withatbetween 0 andlength(both excluded). Maketimea number of 0 or more or an expression, and declare anyresourceunderresources.E_CONVEYOR_WRITE: Do not write a conveyor level directly. Point the TRANSFER, agent transfer action or BUFFERlevelat an ordinary level, drop it frominitial_state.levels, and give each element its own conveyor instead ofdims.E_DASHBOARD_SERIES: Give akpiorgaugewidget anexprand noseries. Give alinewidget 1-4 and abarwidget 1-8seriesentries, each with a unique non-emptylabel, and noexpr.E_DELAY_NAME: Give every entry indelaysa non-emptyname. Rename one of any two delays that share a name, or whose hidden stage names clash, such asfand the inlinef#1.E_DELAY_SPEC: Set the delay'skindto a known kind and fill in its required fields (inputanddelay_timefor most kinds). A numericdelay_timemust be greater than 0.E_DELAY_UNKNOWN: Declare the delay in thedelayssection, or correct the name in theDELAY("...")call. Names are case sensitive.E_DUPLICATE_REALITY_CHECK: Rename one of the two entries inreality_checksthat share a name. Each reality check needs a uniquename.E_DUPLICATE_VARIABLE: Rename one of the two entries invariablesthat share a name, or delete the duplicate. Expressions and overrides refer to a variable by its name.E_ENERGY_PRICE: Setsimulation.energy_priceto a number, such as0.18money per kWh, or to an expression over declared variables that compiles.E_EXPRESSION: Rewrite the expression within the allowed grammar. Check the function names for case (max, notMAX), use positional arguments only, and quote string arguments such as table names.E_FIXED_COST_AMOUNT: Set the fixed cost'samountto a number, or to an expression over variables and model data that compiles, such ascapacity_kwh * 600.E_FIXED_COST_NAME: Make every entry infixed_costsan object with a non-emptyname, and rename one of any two fixed costs that share a name.E_FLOW_BIFLOW: Set the flow'sbiflowtotrueorfalse. For a bi-directional flow, give the levels it joins"min": nulland no capacity or power limit, or split it into two one-way flows.E_FLOW_COMPONENT: Set the flow'scomponentsto an object of component name to share, such as{"ch4": 0.52}, or leave it out to carry the source level's own blend.E_FLOW_EFFICIENCY: Set the flow'sefficiencyto a number above 0 and at most 1, or leave it out for a lossless flow.E_FLOW_LEVEL: Set the flow'sfromandtoto levels declared inlevels, or leave the field out for a source or sink outside the model.E_FLOW_MIN_RATE: Set the flow'smin_rateto a number of 0 or more, or leave it out.E_FLOW_NAME: Give every entry inflowsa non-emptyname, and rename one of any two flows that share a name.E_FLOW_PEAK_PRICE: Set the flow'speak_priceto a number (money per unit of peak rate), or leave it out. A time-varying tariff goes inprice.E_FLOW_TAG: Set the flow'stagto a string and itspriorityto a number. Give every flow that shares a tag the samerate_time_unit.E_FLOW_THRESHOLD: Give each entry in the flow'sthresholdsa numericvalue, adirectionoffalling,risingorboth, and a numericcostif any.E_FLOW_UNKNOWN: Declare the flow in theflowssection, or correct the name in theFLOW("...")call. Names are case sensitive.E_LEVEL_BOUNDS: Give the level'scapacity,min,initial,max_inflowandmax_outflownumeric values, keepcapacityat or abovemin, and startinitialinside them. A value ininitial_state.levelsmust be a number.E_LEVEL_COMPONENT: Give each of the level'scomponentsa unique non-emptynameand aninitial_fractionbetween 0 and 1, and setblend_toleranceto a positive number.E_LEVEL_NAME: Give every entry inlevelsa non-emptyname, and rename one of any two levels that share a name.E_LEVEL_THRESHOLD: Give each entry in the level'sthresholdsa numericvalue, adirectionoffalling,risingorboth, and a numericcostif any.E_LEVEL_UNKNOWN: Declare the level in thelevelssection, or correct the name in theLEVEL("...")call, the TRANSFER'slevel, the agent's transfer action orinitial_state.levels.E_LOG_LEVEL: Setsimulation.log_levelto one of the levelskpi,seriesorfull, or to a profile:study,exploreorreplay. Remove it to letrecord_logsandtimeseries_pointsdecide.E_LOOP_GRID: Add the system-dynamics grid before asking for loop dominance, for example"simulation": {"sd": {"dt": 0.25, "method": "euler"}}.E_POWER_UNKNOWN: Declare the name inresources,fleetsorchargers, or correct the name in thePOWER("...")call. Names are case sensitive.E_REALITY_CHECK_INPUT: Set the reality check'sinputsto an object of override path to value, such as{"auxiliaries.Workforce.expr": "0"}, with no empty path.E_REALITY_CHECK_NAME: Give every entry inreality_checksa non-emptyname.E_REALITY_CHECK_WHEN: Set the reality check'swhentoalways,final,after <t>,before <t>,between <t1> and <t2>(t1 not after t2), oreventually, alone or before one of those windows.E_SD_DELAY_ORDER: Give the delay'sorderas a literal integer of 1 or more, such asDELAYN(x, tau, 3). The number of stages is fixed when the model is built, so an expression or a fraction cannot set it.E_SD_FUNCTION_CONTEXT: Move the SMOOTH or DELAY call into a level's initial value, a flow rate, an auxiliary or a delay field. Read its result in the block or price withAUX(),LEVEL()orDELAY().E_SD_REQUIRES_DT: Add a step grid, such as"simulation": {"sd": {"dt": 0.25}}, since material and information delays integrate hidden stocks. Or use a pipeline delay (DELAYP), which is exact without one.E_SD_RK4_RANDOM: Setsimulation.sd.methodtoeuler, or move the random draw out of the flow rate into a variable an ASSIGN sets. RK4 evaluates a dynamic rate four times per step.E_SD_SETTINGS: Makesimulation.sdan object with a numericdtabove 0, amethodfrom the listed ones and atime_unitofbaseor a known unit. Remove any other key, such as a misspelt one.E_SERIES_MODE: Set the series'interpolationandbeyondto one of the values the hint lists. A textperiodmust bedaily,weeklyoryearly; otherwise give a number.E_SERIES_NAME: Give every entry intimeseries_inputsa non-emptyname, and rename one of two series that share a name.TS()calls find a series by its name.E_SERIES_NO_CALENDAR: Addsimulation.calendarwith astart(and atimezone) so real timestamps can be placed on the model clock. Or give the series plain numerictimesinstead.E_SERIES_SHAPE: Give the series one value per sample and eithertimesor astep, not both. The sample count must match, and the times must increase.E_SERIES_UNKNOWN: Declare the series undertimeseries_inputs, or correct the name in theTS("name")call. Names are case sensitive.E_SUBSCRIPT_AGGREGATE: Write a one-argumentSUM(x)orMEAN(x)over a[*]index, such asSUM(LEVEL("Pop[*]")), in a level, flow, auxiliary or delay. Read the result elsewhere withAUX().E_SUBSCRIPT_DIM: Give the record thedimsits[dim]indexes name, list each dimension once, and keep[*]inside SUM or MEAN. A flow joining a subscripted level needs that level'sdims.E_SUBSCRIPT_ELEMENT: Make the record'selementsan object keyed by element combinations of its owndims. Remove or rename overrides whose key matches no element.E_SUBSCRIPT_MAP: Point the subscript'smap_toat another declared subscript. Giveelementsone target element per element, or make both subscripts the same size so they map by position.E_SUBSCRIPT_NAME: Give each entry insubscriptsa unique identifier asnameand a non-empty list of uniqueelements. Elements may not hold[,],,or*, nor share a subscript's name.E_SUBSCRIPT_RANGE: Set the subscript'sparentto another declared subscript that holds every one of its elements, or removeparent. Add any missing elements to the parent first.E_SUBSCRIPT_SIZE: Use fewer or smaller dimensions in the record'sdims. The product of their element counts must stay within the 200,000 cap.E_SUBSCRIPT_UNKNOWN: Make the record'sdimsa list of names declared undersubscripts, or declare the missing subscript there. The hint lists the declared ones.E_TABLE_KEYS: Pass as many keys as the table has axes: one for a 1-D table, two for a table withcolumns, such asTABLE("name", k1, k2).E_TABLE_MODE: Set the table'skey_modeorcolumn_modeto one of the listed lookup modes. Useexactfor text keys, sincestepandlinearinterpolate only numeric keys.E_TABLE_NAME: Give every entry intablesa non-emptyname, and rename one of two tables that share a name.TABLE()calls find a table by its name.E_TABLE_SHAPE: Make the table a rectangle. A 1-D table needs one value per key. A 2-D table needs one row of values per key, each as long ascolumns, and no key may repeat.E_TABLE_UNKNOWN: Declare the table undertables, or correct the name in theTABLE("name", ...)call. The hint lists the declared tables.E_TABLE_VALUE: Make every cell in the table'svaluesa number, and makedefaulta number or drop it. Text such as"5"is not accepted.E_TIME_UNIT: Set the namedtime_unit(or rate unit key) to one of the known time units, such asminutesorhours. A block or record field may also takebase, the model's own unit.E_TRANSFER_MODE: Set the TRANSFER block's or the agent transfer action'smodetoremoveoradd.E_UNDECLARED_VARIABLE: Declare the variable in thevariablessection, or correct the name in the expression or ASSIGN target. Names are case sensitive.E_UNIT: Set the unit key, such assimulation.length_unitor a field's unit, to one of its quantity's units. A record field may also takebase; the hint names the quantity.E_UNIT_MISMATCH: Correct theunitof the level, flow or auxiliary, or the expression, so expected and found units agree. Or setsimulation.sd.unitstowarnto report it as a warning only.E_UNIT_TIME: Write the rate in the model's base time unit, or correct the record'sunitso the time scales match. Or setsimulation.sd.unitstowarnto report it as a warning only.E_VARIABLE_NAME: Rename the variable to a Python identifier: letters, digits and_, not starting with a digit. Update every expression and ASSIGN that uses it.E_VARIABLE_RESERVED: Rename the variable so it does not shadow a reserved name or built-in function, such asminorTNOW. The hint lists the reserved names.E_VARIABLE_UNKNOWN: Declare the variable undervariables, or correct the name in theVAR("name")call. Names are case sensitive.W_BLOCKING_LOOP: Give one buffer in the loop enough places that it never fills, or route one station's output to a block with an unlimited queue. If the loop can never fill, the warning can stay.W_CONVEYOR_LEVEL_KEY: Removecapacity,min,max_inflowandmax_outflowfrom the conveyor level. Set its content limit withconveyor.capacityand its inflow per time unit withconveyor.in_limit.W_CONVEYOR_STOP_HELD: Release the resource before the part enters the belt, or remove the stop'sresource, since the part already holds it. Otherwise the run stops with an error at that stop.W_CONVEYOR_TRANSIT: Pick asimulation.sd.dtthat divides the conveyor'stransit_time, or change the transit time to a multiple ofdt. Otherwise the belt runs with round(T/dt) slats.W_FLOW_CLOCK_NO_GRID: Read a timetable from atimeseries_inputsentry withTS("name"),interpolationstepandbeyondrepeat. Or add a step grid withsimulation.sd.dt; each switch is then late by up todt.W_LOOP_HYBRID: Treat the scores as covering the SD layer only, since DES blocks and agents are read at initial values. Runnaga loopson an SD-only model to score every loop; otherwise the warning can stay.W_RATE_UNIT_CHANGED: Check that the flow'speak_priceandthresholdsare per itsrate_time_unit, and a conversion's numbers per itstime_unit. Rescale values written per the base unit; if already right, the warning can stay.W_RATE_UNIT_READ: Give the reading rate and the record it reads withFLOW(),FLOWSUM()orCONV()the same time unit. Or convert the value in the expression.W_RATE_UNIT_UNCHECKED: Write the name in theFLOW(),FLOWSUM()orCONV()call as a literal, or give every record it may read the same time unit. Then the read can be unit-checked.W_REF_UNSET: Set the asset parameter that thePOWER()orTS()call takes its name from to the source or series it should read. Or guard the read with a condition on that parameter.W_SD_RK4_BUS: Setsimulation.sd.methodtoeulerfor exactFLOW()andFLOWSUM()reads. Under RK4 the read lags by one stage; if that is acceptable, the warning can stay.W_SERIES_BEFORE_START: Check the series' dates againstsimulation.calendar.startand the run length. Trim or shift samples before the start, or a series whose samples all fall after the run ends.W_SERIES_PERIOD_UNUSED: Add"beyond": "repeat"to the series so it cycles everyperiod, or dropperiod. Without repeat the series holds its last value.W_UNIT_MISMATCH: Correct theunitof the level, flow or auxiliary, or its expression, so the expected and found units agree. If the mismatch is intended, setsimulation.sd.unitstooff.W_UNIT_MISSING: Add aunitto the level or flow, such aspeopleorpeople/day, so mismatches can be checked. Or setsimulation.sd.unitstowarn.W_UNIT_TIME: Write the rate'sunitin the model's base time unit, such aspeople/dayfor levels counted per day. If the scaling is intended, the warning can stay.W_UNIT_UNPARSED: Rewrite theunitstring in a form the unit parser reads, such askg,people/dayorm/s. Until then the record is not unit-checked.