You are here

Error message

hi,

I have a model and following error message pops up:

expected boolean value but got "-1.#IND"
while executing
"if {$b} {
return $b
}"
(procedure "SampleFrom" line 8)
invoked from within
"SampleFrom $timeplotvars($winName,entry)"
(procedure "UpdateDisplay" line 27)
invoked from within
"UpdateDisplay $winId [lindex [GetModelValue [lindex $status 1]] 0] $time"
(procedure "origplot72514::display" line 4)
invoked from within
"${helperId}::display $winId $current $display $exec"
(procedure "DoDisplay" line 7)
invoked from within
"DoDisplay $current $display $update"
(procedure "RollSimulation" line 47)
invoked from within
"RollSimulation $winId"
(procedure "runcontrol33857::SetMode" line 31)
invoked from within
"${defHelper}::SetMode $helperId reset"
(procedure "RunDialog" line 16)
invoked from within
"RunDialog "Current model""
(procedure "update_c_executable" line 13)
invoked from within
"update_c_executable .mswindow00001.canvas"
invoked from within
"catch $args retVal"

how do I know where (i.e. which variabel) the problem is?

regards martin

Forums: 

Hi,

Try displaying the same variable using the Plotter and/or Data Table displays without using the "Plot variable against time" display. In the Plotter all variables but the one with bad values should produce a a trace. In the "Data Table" the bad values should be displayed as #IND, or such.

I hope this helps. If not let me know.

Jonathan.

This sort of value is the result of an arithmetic error such as dividing by zero. The easiest way to see where it occurs is to run the model in Tcl -- you will get an error message similar to the above but including the names of the model components that caused the problem.

We are working on better debugging tools for models and have made some progress in this direction with the (soon to be released) Simile v4.0

--Jasper