question

shaghayegh avatar image
0 Likes"
shaghayegh asked Phil BoBo edited

Reduce the size of the fsm. file

How can the file size fsm. reduced?

FlexSim 22.1.4
.fsm
5 |100000

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

Steven Hamoen avatar image
1 Like"
Steven Hamoen answered Jason Lightfoot edited

@shaghayegh Things that usually make your file big, are imported 3D object or CAD drawings. So if you for instance have changed 1 layout for another, the first one might still be in there. You can look in the model tree inside the model node where the packedmedia treenode can be found and there delete the old CAD file.

Other thing that makes your fsm file large are large tables. But if you need the data you cannot make your model smaller.

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·
You can try to use bundle data instead of treenode tables to reduce the memory used.
0 Likes 0 ·
shaghayegh avatar image shaghayegh Jason Lightfoot ♦♦ commented ·

Hi @Jason Lightfoot. Thank you for your reply. How to create bundle data?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ shaghayegh commented ·

Use the checkbox in the table properties panel:

1695223522773.png

You can also In the tree set a node to bundle data type and use various bundle commands like addbundlefield() and addbundleentry().

0 Likes 0 ·
1695223522773.png (8.6 KiB)
shaghayegh avatar image shaghayegh commented ·

Hi @Steven Hamoen

Yes, exactly because of the two things you said, the file size has increased. I removed the dashboards from the tree model, but the file size did not decrease.

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ commented ·

@Steven Hamoen When you reopen the model (or otherwise reload media) and then save the model, unused packed media will be deleted automatically. You don't need to delete it manually from the tree.

0 Likes 0 ·
Kavika F avatar image
1 Like"
Kavika F answered Phil BoBo edited

Hey @shaghayegh, you can use the memory profiler to see what is taking up memory in the tree. The model will only have stuff that you need or stuff that you put in there. The memory profiler will help you identify what's taking up space. You can then figure out if you actually need that stuff - if you don't, then delete it to reduce memory taken up.

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

shaghayegh avatar image shaghayegh commented ·

Hi @Kavika F Thank you for your reply... where is this memory profiler located?

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ shaghayegh commented ·
On the main menu. Debug > Memory Profiler.
0 Likes 0 ·
shaghayegh avatar image shaghayegh Phil BoBo ♦♦ commented ·

Hi @Phil BoBo.Thank you for your reply.

I'm having trouble simulating an emergency department, can you @Phil BoBo help me? I ask a new question. If anyone knows, please help me. I need its answer immediately to simulate the rest of the project.

0 Likes 0 ·
shaghayegh avatar image shaghayegh commented ·

Hi @Kavika F. I found the item that increased the file size in memory profiler, but how can I delete it? I do not see an option to delete

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ shaghayegh commented ·

How to delete it will depend on what it is. The memory profiler shows you the path in the tree to where the node is.

Whether you delete it in the 3D view, the Toolbox, the Tree view, etc. will depend on what it is you want to delete.

You also shouldn't haphazardly delete something just because it takes up memory. If that data is critical to your simulation, then you shouldn't just delete it.

Use the memory profiler to understand what is taking up space in your model tree. Then deal with the thing appropriately. No one can tell you what "appropriately" means except yourself. You know your model; we don't.

1 Like 1 ·