question

Dj Moens avatar image
4 Likes"
Dj Moens asked Phil BoBo commented

Many nodes make loading the model exremely slow

Hi,

We ran into an issue regarding network nodes. A model containing over 8100 nodes (90x90) takes an awfull long time, whereas a model with about 2500 (50x50) is still reasonable. Attached is a model that cretes a node grid you can use to test. It almost look like it takes quadratic more time as a funtion of the number of nodes instead of linear extra time as would expected..

Is there an internal issue that it takes that long for larger networks. And can it be resloved is there be a workaround?


Rgds

DJ

Testnode2500.fsm

FlexSim 20.0.7
flexsim 20.0.7networknodes
testnode2500.fsm (1.6 MiB)
· 8
5 |100000

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

1 Answer

Phil BoBo avatar image
3 Likes"
Phil BoBo answered

I found the issue.

The problem is that the OnOpenModel scripts are explicitly calling optimizenetwork() in MAIN:/project/events/OnOpenModel/refresh stuff.

I'll take that line out for the next bugfix release (as the network itself is handling that in its own resetVariables and doesn't need to be explicitly called by the model open scripts.)

If you want to fix it in the meantime, you can make a module that replaces that node with a version without the optimizenetwork() call.

· 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.