question

Lou Keller avatar image
0 Likes"
Lou Keller asked Matthew Gillespie edited

Network Node errors

One of my major limiting factors in technical support is the deciphering of cryptic error messages. In the attached model for example, there is a series of error messages that aren't explicitly intuitive to me. Because the model uses 5 different Patient Tracks keyed to different ESIs, the errors are repeated for each track which simultaneously makes life both simpler and more complex. Here are the 7, simultaneous errors...

time: 18.645993 exception: Exception Caught in NetworkNode::getSplinePos(int port, double perc, double * returnloc) object: /NN12

time: 18.645993 exception: Exception Caught in NetworkNode::getPlaceOffset(treenode traveler, treenode reqnode, int port, double* returnarray) object: /NN12

time: 18.645993 exception: Exception Caught in NetworkNavigator::navigateToObject(treenode traveler, treenode destination, double endspeed) object: /DefaultNetworkNavigator

time: 18.645993 exception: Exception Caught in TaskExecuter::beginTask(treenode task) object: /ESI Level 3_ID1

time: 18.645993 exception: Exception Caught in TaskExecuter::finishTask(treenode task) object: /ESI Level 3_ID1

time: 18.645993 exception: Exception Caught in TaskExecuter::onTimerEvent(treenode involved, int code, char *datastr) object: /ESI Level 3_ID1

time: 18.645993 exception: Exception Caught in ObjectFunction237__project_library_FlexSimObject_behaviour_eventfunctions_OnTimerEvent object: /ESI Level 3_ID1 i: /ESI Level 3_ID1>variables/activetasksequence/ts1/task1 class: /ESI Level 3_ID1

The bottom line is that I suspect some, if not all, of the problems may be the result of the user either working in the Tree with little if any knowledge of its purpose or function, or manipulating various object characteristics as a matter of simple curiosity. Whatever the case, their immediate question is, "why aren't there any arrivals in the model?" What I need is a simple explanation of the errors and what generated them so I can repair the model, educate the user and get on with equally important items.

FlexSim HC 5.0.12
flexsim hcnetwork nodeerror messagestreedefault network navigator
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

Can you attach the model? If the model is confidential you can make the question private.

Those error messages aren't very helpful if you can't look at the model. You'd need to look at what is happening in the model at time 18.64. Otherwise all I can infer is that the first patient is trying to travel on a network node and can't for some reason.

0 Likes 0 ·
Lou Keller avatar image Lou Keller commented ·

You are absolutely right! My error. Here you are: crmhedver5-lou.fsm

0 Likes 0 ·
crmhedver5-lou.fsm (3.2 MiB)

1 Answer

·
Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Matthew Gillespie commented

You're seeing this issue because there are two Default Network Navigators in your model. It looks like you somehow moved the original one into the tools folder which caused the model to create a new one in the model when it couldn't find the original.

Here is some code that will merge the two navigators together, just run this in a script window and then reset and run:

treenode original = node("Tools/DefaultNetworkNavigator", model());
treenode duplicate = node("DefaultNetworkNavigator", model());

treenode one = getvarnode(duplicate, "nodemembers");
treenode two = getvarnode(original, "nodemembers");

while (content(one) > 0)
	transfernode(first(one), two);
	
one = getvarnode(duplicate, "travelmembers");
two = getvarnode(original, "travelmembers");

while (content(one) > 0)
	transfernode(first(one), two);
	
destroyobject(duplicate);
transfernode(original, model());
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

@Lou Keller I had to update the script since the first one didn't fix the issue completely.

0 Likes 0 ·
Lou Keller avatar image Lou Keller commented ·

Is what's now posted the most current version?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Lou Keller commented ·

Yes.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.