question

Joswa avatar image
0 Likes"
Joswa asked Jeanette F commented

Adding network node increases model size

Hi, The attached model has only network node built, the file size has increased more than 20MB.

This phenomenon was not observed in previous versions.

Kindly suggest a solution to bring down the model size and what could be the cause for increase in model size.

NN_Test Model.fsm.jpg

File name : NN_Test Model.fsm

(kindly remove ".jpg" from the suffix )

FlexSim 22.2.1
network nodesfile size
· 5
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·

I tested adding a lot of network nodes to a model in version 21.2 and 22.2 and I don't see any difference in file size between the two. Maybe you saved the test in a previous version before resetting the model once, so that the distance table was not generated yet.

FlexSim keeps a table with the distance from each network node to each other node for a fast lookup during the model run. So the file size impact of network nodes scales with n².

In your model you seem to have a lot of "redundant" nodes. Or is there a reason why a straight path consists of many nodes instead of just two?

1662544583335.png

1 Like 1 ·
1662544583335.png (16.0 KiB)
Joswa avatar image Joswa Felix Möhlmann commented ·

Thanks for the response @Felix Möhlmann,

Kindly find the same model built in 21.1.4

NN_Test Model 21.1.4 .fsm.jpg


I agree on your suggestion to make lesser nodes in a path, yet this is a stripped down (scale 1:10) version of a bigger model where I need to put more connection and some triggers on the node.

Also for the observation the similar model built on 21.1.4 gives <400kb which is way lesser than the one built on 22.2 (23MB).


0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Joswa commented ·

As I assumes, you seem to have saved the model without resetting it at least once. Open the model, reset it (which will probably take some seconds), then save it again. You will see that the file size will have increase to around 14.5MB.

Infact, resetting your other model actually decreases the size, as you seem to have removed nodes without resetting. Both models files are very similar in size after resetting each.

1662547190591.png

Maybe using AGV paths instead might be a viable?

2 Likes 2 ·
1662547190591.png (14.8 KiB)
Show more comments
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Joswa, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Opening your model shows it's committing over 1.5GB of RAM. If you reopen the default workspace you'll see this decreases to under 1GB, saving 500MB. For a similar effect you can also close and reopen the docked Properties panel which seems to be the biggest hog of resources here. If after than you're still concerned at 20MB somewhere then please reply.

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

Joswa avatar image Joswa commented ·

Thanks for the response @Jason Lightfoot

this model is to be built further and I anticipate larger files size. Which in turn reflect runtime load. Thus wanted to reduce native file size as much as possible.

Also for the observation the similar model built on 21.1.4 gives <400kb which is way lesser than the one built on 22.2 (23MB).

NN_Test Model 21.1.4 .fsm.jpg


0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Joswa commented ·
If your system is constrained such that 0.5MB of memory is an issue you should update/upgrade.
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.