question

shaon S avatar image
0 Likes"
shaon S asked Jeanette F commented

Software calls to Python consume a lot of memory

When I use Flexsim to call Python, the software takes up a lot of memory. The model runs for 1 hour and takes up up to 50GB, maybe more. I found no exceptions using both the Memory Profiler and Performance Profiler tools.


This is a KiVa-like model, 300 KiVas in total, calling Astar script written in python. The model involves confidentiality and cannot be shared, I wonder if others have encountered similar problems and how to check what went wrong.

FlexSim 22.2.1
pythonkiva modelmemory
· 1
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @shaon S, was Joerg Vogel'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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered
This looks like you are testing each kiva agent against all other. Agent system in FlexSim uses a a zone detection, which reduces testing amount limited to agents inside zones. This reduces the amount of tests. I think it is a design problem rather than a problem of calling python scripts,
5 |100000

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