Skip to content

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's assignments only the keys target and expr. A misspelt key, such as value for expr, is otherwise dropped; rename or remove it.
  • E_ASSIGN_TARGET: Set the ASSIGN target to entity.<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 in auxiliaries: 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 in auxiliaries a non-empty name, and rename one of any two auxiliaries that share a name.
  • E_AUX_UNKNOWN: Declare the auxiliary in the auxiliaries section, or correct the name in the AUX("...") call. Names are case sensitive.
  • E_BUFFER_LEVEL: Declare the level named in the BUFFER's level parameter in the levels section, correct the name, or clear the level field.
  • E_CHARGE: On the CHARGE block, set sharing to equal or first_come and efficiency to a number above 0 and at most 1. If leave_when_full is false, also set a time_limit.
  • E_CONVERSION_CURVE: Fix the substrate in conversions.<name>.substrates: set yield to a number of 0 or more. Give either a positive half_life or a curve of [age, cumulative fraction] knots with increasing ages that ends at 1.0.
  • E_CONVERSION_INTERVAL: Set the conversion's cohort_interval to a positive number, or leave it out for the default of 1.
  • E_CONVERSION_NAME: Make every entry in conversions an object with a non-empty name, and rename one of any two conversions that share a name.
  • E_CONVERSION_SUBSTRATE: Give the conversion at least one entry in substrates, each with a non-empty name, and rename one of any two substrates that share a name.
  • E_CONVERSION_UNKNOWN: Declare the conversion in the conversions section, or correct the name in the CONV("...") call. Names are case sensitive.
  • E_CONVEYOR_DIVERT: Write each divert as at, condition and optionally time and when_full, with at on 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 remove conveyor from the level.
  • E_CONVEYOR_LEAK: Set the leak flow's from to a conveyor level, give its leak a fraction, and keep zone as [start, end] with 0 <= start < end <= 1. Otherwise drop leak from the flow.
  • E_CONVEYOR_MERGE: Write each merge as at, from and optionally priority, with at on the belt and from naming a block that links to the belt. Merges need an accumulating belt.
  • E_CONVEYOR_METHOD: Set simulation.sd.method to euler, or remove the conveyor. A conveyor moves one slat per DT, which rk4 cannot do.
  • E_CONVEYOR_OUTFLOW: Give the conveyor exactly one outflow without leak and mark the other outflows with leak. Set that primary outflow's rate to empty, since it takes what leaves the belt.
  • E_CONVEYOR_PARAM: On the CONVEYOR block, set speed and spacing to positive numbers and length to a number of 0 or more. With no length, set both from_node and to_node to declared network nodes; declare any exit_resource under resources.
  • E_CONVEYOR_SPEC: Give the conveyor level a conveyor.transit_time (a number or an expression), and set leak_kind to one of the kinds the hint lists, or leave it out.
  • E_CONVEYOR_STOP: Write each entry of the CONVEYOR's stops as {at, time, resource} only, with at between 0 and length (both excluded). Make time a number of 0 or more or an expression, and declare any resource under resources.
  • E_CONVEYOR_WRITE: Do not write a conveyor level directly. Point the TRANSFER, agent transfer action or BUFFER level at an ordinary level, drop it from initial_state.levels, and give each element its own conveyor instead of dims.
  • E_DASHBOARD_SERIES: Give a kpi or gauge widget an expr and no series. Give a line widget 1-4 and a bar widget 1-8 series entries, each with a unique non-empty label, and no expr.
  • E_DELAY_NAME: Give every entry in delays a non-empty name. Rename one of any two delays that share a name, or whose hidden stage names clash, such as f and the inline f#1.
  • E_DELAY_SPEC: Set the delay's kind to a known kind and fill in its required fields (input and delay_time for most kinds). A numeric delay_time must be greater than 0.
  • E_DELAY_UNKNOWN: Declare the delay in the delays section, or correct the name in the DELAY("...") call. Names are case sensitive.
  • E_DUPLICATE_REALITY_CHECK: Rename one of the two entries in reality_checks that share a name. Each reality check needs a unique name.
  • E_DUPLICATE_VARIABLE: Rename one of the two entries in variables that share a name, or delete the duplicate. Expressions and overrides refer to a variable by its name.
  • E_ENERGY_PRICE: Set simulation.energy_price to a number, such as 0.18 money 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, not MAX), use positional arguments only, and quote string arguments such as table names.
  • E_FIXED_COST_AMOUNT: Set the fixed cost's amount to a number, or to an expression over variables and model data that compiles, such as capacity_kwh * 600.
  • E_FIXED_COST_NAME: Make every entry in fixed_costs an object with a non-empty name, and rename one of any two fixed costs that share a name.
  • E_FLOW_BIFLOW: Set the flow's biflow to true or false. For a bi-directional flow, give the levels it joins "min": null and no capacity or power limit, or split it into two one-way flows.
  • E_FLOW_COMPONENT: Set the flow's components to 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's efficiency to a number above 0 and at most 1, or leave it out for a lossless flow.
  • E_FLOW_LEVEL: Set the flow's from and to to levels declared in levels, or leave the field out for a source or sink outside the model.
  • E_FLOW_MIN_RATE: Set the flow's min_rate to a number of 0 or more, or leave it out.
  • E_FLOW_NAME: Give every entry in flows a non-empty name, and rename one of any two flows that share a name.
  • E_FLOW_PEAK_PRICE: Set the flow's peak_price to a number (money per unit of peak rate), or leave it out. A time-varying tariff goes in price.
  • E_FLOW_TAG: Set the flow's tag to a string and its priority to a number. Give every flow that shares a tag the same rate_time_unit.
  • E_FLOW_THRESHOLD: Give each entry in the flow's thresholds a numeric value, a direction of falling, rising or both, and a numeric cost if any.
  • E_FLOW_UNKNOWN: Declare the flow in the flows section, or correct the name in the FLOW("...") call. Names are case sensitive.
  • E_LEVEL_BOUNDS: Give the level's capacity, min, initial, max_inflow and max_outflow numeric values, keep capacity at or above min, and start initial inside them. A value in initial_state.levels must be a number.
  • E_LEVEL_COMPONENT: Give each of the level's components a unique non-empty name and an initial_fraction between 0 and 1, and set blend_tolerance to a positive number.
  • E_LEVEL_NAME: Give every entry in levels a non-empty name, and rename one of any two levels that share a name.
  • E_LEVEL_THRESHOLD: Give each entry in the level's thresholds a numeric value, a direction of falling, rising or both, and a numeric cost if any.
  • E_LEVEL_UNKNOWN: Declare the level in the levels section, or correct the name in the LEVEL("...") call, the TRANSFER's level, the agent's transfer action or initial_state.levels.
  • E_LOG_LEVEL: Set simulation.log_level to one of the levels kpi, series or full, or to a profile: study, explore or replay. Remove it to let record_logs and timeseries_points decide.
  • 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 in resources, fleets or chargers, or correct the name in the POWER("...") call. Names are case sensitive.
  • E_REALITY_CHECK_INPUT: Set the reality check's inputs to an object of override path to value, such as {"auxiliaries.Workforce.expr": "0"}, with no empty path.
  • E_REALITY_CHECK_NAME: Give every entry in reality_checks a non-empty name.
  • E_REALITY_CHECK_WHEN: Set the reality check's when to always, final, after <t>, before <t>, between <t1> and <t2> (t1 not after t2), or eventually, alone or before one of those windows.
  • E_SD_DELAY_ORDER: Give the delay's order as a literal integer of 1 or more, such as DELAYN(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 with AUX(), LEVEL() or DELAY().
  • 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: Set simulation.sd.method to euler, 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: Make simulation.sd an object with a numeric dt above 0, a method from the listed ones and a time_unit of base or a known unit. Remove any other key, such as a misspelt one.
  • E_SERIES_MODE: Set the series' interpolation and beyond to one of the values the hint lists. A text period must be daily, weekly or yearly; otherwise give a number.
  • E_SERIES_NAME: Give every entry in timeseries_inputs a non-empty name, and rename one of two series that share a name. TS() calls find a series by its name.
  • E_SERIES_NO_CALENDAR: Add simulation.calendar with a start (and a timezone) so real timestamps can be placed on the model clock. Or give the series plain numeric times instead.
  • E_SERIES_SHAPE: Give the series one value per sample and either times or a step, not both. The sample count must match, and the times must increase.
  • E_SERIES_UNKNOWN: Declare the series under timeseries_inputs, or correct the name in the TS("name") call. Names are case sensitive.
  • E_SUBSCRIPT_AGGREGATE: Write a one-argument SUM(x) or MEAN(x) over a [*] index, such as SUM(LEVEL("Pop[*]")), in a level, flow, auxiliary or delay. Read the result elsewhere with AUX().
  • E_SUBSCRIPT_DIM: Give the record the dims its [dim] indexes name, list each dimension once, and keep [*] inside SUM or MEAN. A flow joining a subscripted level needs that level's dims.
  • E_SUBSCRIPT_ELEMENT: Make the record's elements an object keyed by element combinations of its own dims. Remove or rename overrides whose key matches no element.
  • E_SUBSCRIPT_MAP: Point the subscript's map_to at another declared subscript. Give elements one target element per element, or make both subscripts the same size so they map by position.
  • E_SUBSCRIPT_NAME: Give each entry in subscripts a unique identifier as name and a non-empty list of unique elements. Elements may not hold [, ], , or *, nor share a subscript's name.
  • E_SUBSCRIPT_RANGE: Set the subscript's parent to another declared subscript that holds every one of its elements, or remove parent. Add any missing elements to the parent first.
  • E_SUBSCRIPT_SIZE: Use fewer or smaller dimensions in the record's dims. The product of their element counts must stay within the 200,000 cap.
  • E_SUBSCRIPT_UNKNOWN: Make the record's dims a list of names declared under subscripts, 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 with columns, such as TABLE("name", k1, k2).
  • E_TABLE_MODE: Set the table's key_mode or column_mode to one of the listed lookup modes. Use exact for text keys, since step and linear interpolate only numeric keys.
  • E_TABLE_NAME: Give every entry in tables a non-empty name, 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 as columns, and no key may repeat.
  • E_TABLE_UNKNOWN: Declare the table under tables, or correct the name in the TABLE("name", ...) call. The hint lists the declared tables.
  • E_TABLE_VALUE: Make every cell in the table's values a number, and make default a number or drop it. Text such as "5" is not accepted.
  • E_TIME_UNIT: Set the named time_unit (or rate unit key) to one of the known time units, such as minutes or hours. A block or record field may also take base, the model's own unit.
  • E_TRANSFER_MODE: Set the TRANSFER block's or the agent transfer action's mode to remove or add.
  • E_UNDECLARED_VARIABLE: Declare the variable in the variables section, or correct the name in the expression or ASSIGN target. Names are case sensitive.
  • E_UNIT: Set the unit key, such as simulation.length_unit or a field's unit, to one of its quantity's units. A record field may also take base; the hint names the quantity.
  • E_UNIT_MISMATCH: Correct the unit of the level, flow or auxiliary, or the expression, so expected and found units agree. Or set simulation.sd.units to warn to report it as a warning only.
  • E_UNIT_TIME: Write the rate in the model's base time unit, or correct the record's unit so the time scales match. Or set simulation.sd.units to warn to 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 as min or TNOW. The hint lists the reserved names.
  • E_VARIABLE_UNKNOWN: Declare the variable under variables, or correct the name in the VAR("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: Remove capacity, min, max_inflow and max_outflow from the conveyor level. Set its content limit with conveyor.capacity and its inflow per time unit with conveyor.in_limit.
  • W_CONVEYOR_STOP_HELD: Release the resource before the part enters the belt, or remove the stop's resource, since the part already holds it. Otherwise the run stops with an error at that stop.
  • W_CONVEYOR_TRANSIT: Pick a simulation.sd.dt that divides the conveyor's transit_time, or change the transit time to a multiple of dt. Otherwise the belt runs with round(T/dt) slats.
  • W_FLOW_CLOCK_NO_GRID: Read a timetable from a timeseries_inputs entry with TS("name"), interpolation step and beyond repeat. Or add a step grid with simulation.sd.dt; each switch is then late by up to dt.
  • W_LOOP_HYBRID: Treat the scores as covering the SD layer only, since DES blocks and agents are read at initial values. Run naga loops on an SD-only model to score every loop; otherwise the warning can stay.
  • W_RATE_UNIT_CHANGED: Check that the flow's peak_price and thresholds are per its rate_time_unit, and a conversion's numbers per its time_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 with FLOW(), FLOWSUM() or CONV() the same time unit. Or convert the value in the expression.
  • W_RATE_UNIT_UNCHECKED: Write the name in the FLOW(), FLOWSUM() or CONV() 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 the POWER() or TS() 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: Set simulation.sd.method to euler for exact FLOW() and FLOWSUM() 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 against simulation.calendar.start and 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 every period, or drop period. Without repeat the series holds its last value.
  • W_UNIT_MISMATCH: Correct the unit of the level, flow or auxiliary, or its expression, so the expected and found units agree. If the mismatch is intended, set simulation.sd.units to off.
  • W_UNIT_MISSING: Add a unit to the level or flow, such as people or people/day, so mismatches can be checked. Or set simulation.sd.units to warn.
  • W_UNIT_TIME: Write the rate's unit in the model's base time unit, such as people/day for levels counted per day. If the scaling is intended, the warning can stay.
  • W_UNIT_UNPARSED: Rewrite the unit string in a form the unit parser reads, such as kg, people/day or m/s. Until then the record is not unit-checked.

All problem codes