There was this post along the same topic in the FlexSim blog:
https://www.flexsim.com/lessons-from-a-massive-model/
Some other memory-related considerations:
- combine flowitems using join rather than pack whenever possible (minimizes number of flowitems)
- create flowitems only when they are needed and destroy them as soon as possible (minimizes number of flowitems)
- if flowitems do need to persist (or data related to flowitems), consider abstracting flowitems into rows of a bundle and only spawn "physical" 3D flowitems when needed
Other tricks for limiting RAM usage will be more on a case by case basis, depending on what your modeling, the approach you take, the inputs driving the model, and the required outputs.
But in general, a massive number of flowitems is usually where models can become unwieldy. The suggestions above could help.