<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Speed and Memory downgrading during long time simulation process in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601810#M95345</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Your statical data increases while you run a model. All objects collect data. It is not important if you show it in a chart or not, it is available in the tree. If you absolutely sure you do not need statistical of unimportant objects you can try to reset statistical data of those objects.&lt;/P&gt;&lt;P&gt;You can also export data for example to an excel table and delete exported data from your model. &lt;BR /&gt;In the past there existed for 3D sinks an option to recycle used items. I’m not aware if it is still so. &lt;BR /&gt;You could implement something similar, if you don’t delete items rather than to erase all individual data and reuse them later again. But you must be aware of that there exists coupled data to modules like warehouse and conveyors. &lt;/P&gt;&lt;P&gt;You can let run a model without an opened 3D view.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 31 Jan 2024 09:25:59 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2024-01-31T09:25:59Z</dc:date>
    <item>
      <title>Speed and Memory downgrading during long time simulation process</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601809#M95344</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;Hi all, we have a complex model and we need to improve the actual speed (during all simulation) to get the result &amp;amp; stats faster&lt;/P&gt;
 &lt;P&gt;Below the explanation and a few questions…&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;STRONG&gt;Model&lt;/STRONG&gt;&lt;/P&gt;
 &lt;P&gt;Model which manages around 20 cranes and other Task Executers (railcars in paths, transfer cars, etc), around 20,000 objects at a time (boxes) and a lot of code with logic.&lt;/P&gt;
 &lt;P&gt;We are creating the 3D objects through the process and after some processing they disappear (it ends up in a Conveyor, connected to a Sink object) .&lt;/P&gt;
 &lt;P&gt;We have only a few and light Dashboards with few data.&lt;/P&gt;
 &lt;P&gt;We have a lot of Global Variables (around 200), but mainly of integer type&lt;/P&gt;
 &lt;P&gt;This model needs to run around 10 real hours or more to get the results we need.&lt;/P&gt;
 &lt;P&gt;The firsts hours, model consume around 1.5 Gb RAM (windows task manager) and run at real speed of 1000 X average&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Hardware: Core i7 13th, 32 Gb RAM, NVidia RTX 4050&lt;/P&gt;
 &lt;P&gt;Flexsim: 23.1.2&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;/P&gt;
 &lt;P&gt;As the hours go by, the memory grows and the real speed of the simulation decreases&lt;/P&gt;
 &lt;P&gt;After 12 hours, we have around 18 Gb RAM (task manager) and real simulation speed drops to around 100 X&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;We need to increase the actual speed to improve the total simulation time (get the results faster)&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;STRONG&gt;We have checked&lt;/STRONG&gt;&lt;/P&gt;
 &lt;P&gt;Memory Profile: ~500 Mb summing all items in snapshot. Where are the other 17 Gb ? Could be accumulating information in somewhere ?&lt;/P&gt;
 &lt;P&gt;Performance Profiler: recording around real 100 seconds —&amp;gt; 58 sec consumed are reported. Where are the other 42 sec ? Is 3D drawing tasks or something ?&lt;/P&gt;
 &lt;P&gt;TreeNode: we have checked token count in all process flows and remain stable like at the simulation start (not growing token count)&lt;/P&gt;
 &lt;P&gt;GlobalList: not cumulating items. Remaining stable.&lt;/P&gt;
 &lt;P&gt;Tables: not cumulating rows. Remaining stable.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;STRONG&gt;Questions&lt;/STRONG&gt;&lt;/P&gt;
 &lt;P&gt;1. What else can we check to ensure model speed remains stable through all the simulation ? Could have accumulation of objects or data in other places in the model ?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;2. Can we force some memory flush (garbage collector or someting) for freeing up memory?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;3. Are the 3D objects destroying really at the conveyor connected with the Sink ? Or the objects could be accumulating and are not visible ?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thanks!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Jan 2024 18:27:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601809#M95344</guid>
      <dc:creator>fabio_g10</dc:creator>
      <dc:date>2024-01-30T18:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Speed and Memory downgrading during long time simulation process</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601810#M95345</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Your statical data increases while you run a model. All objects collect data. It is not important if you show it in a chart or not, it is available in the tree. If you absolutely sure you do not need statistical of unimportant objects you can try to reset statistical data of those objects.&lt;/P&gt;&lt;P&gt;You can also export data for example to an excel table and delete exported data from your model. &lt;BR /&gt;In the past there existed for 3D sinks an option to recycle used items. I’m not aware if it is still so. &lt;BR /&gt;You could implement something similar, if you don’t delete items rather than to erase all individual data and reuse them later again. But you must be aware of that there exists coupled data to modules like warehouse and conveyors. &lt;/P&gt;&lt;P&gt;You can let run a model without an opened 3D view.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jan 2024 09:25:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601810#M95345</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-01-31T09:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Speed and Memory downgrading during long time simulation process</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601811#M95346</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Please use the &lt;A href="https://docs.flexsim.com/en/23.1/Reference/Tools/MemoryProfiler/MemoryProfiler.html#app"&gt;memory profiler &lt;/A&gt;to see where the memory is being used in the model.&lt;/P&gt;&lt;P&gt;Use the &lt;A href="https://docs.flexsim.com/en/23.1/Reference/Tools/PerformanceProfiler/PerformanceProfiler.html#app"&gt;performance profiler&lt;/A&gt; to see why the model is slow.&lt;/P&gt;&lt;P&gt;You can disable stats collectors if they are the cause of consuming too much memory through constant data collection.&lt;/P&gt;&lt;P&gt;Do you have any errors in your system console?  If you do that could indicate an issue which conceivably could leak memory (a guess).&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jan 2024 11:54:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601811#M95346</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-01-31T11:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Speed and Memory downgrading during long time simulation process</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601812#M95347</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you Jason. i've tried profilers and I couldn't detect any issue. I will come back on it to check with more detail. System is not showing errors. My guess is there is data collecting or accumulating on dead tokens, 3d objects, items used previously &lt;SPAN style="background-color: initial;"&gt;in lists or something that is hidden to us (or perhaps I can't find the way to see it) or 3d objects that are not really destroyed and stay consuming data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jan 2024 19:48:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601812#M95347</guid>
      <dc:creator>fabio_g10</dc:creator>
      <dc:date>2024-01-31T19:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Speed and Memory downgrading during long time simulation process</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601813#M95348</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you Joerg, I will check the reset option on certain unimportant objects. i will explore reusing objects too. 
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;These object stats that you mentioned for example on simple 3D objects like a Box is data which is accumulating or only general stats ? How can I check these ? Thanks 
&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jan 2024 19:54:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601813#M95348</guid>
      <dc:creator>fabio_g10</dc:creator>
      <dc:date>2024-01-31T19:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Speed and Memory downgrading during long time simulation process</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601814#M95349</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/38524/fabiog10.html" nodeid="38524"&gt;@Fabio G10,&lt;/A&gt; You can test it and build a simple model.&lt;P&gt;hit several times in memory profiler: take snapshot and compare colored surfaces.&lt;/P&gt;&lt;P&gt;test large amount of items increasing or static amaount stable.&lt;BR /&gt;test dashboard data over time.&lt;/P&gt;&lt;P&gt;20k items are around 130 MB.&lt;/P&gt;&lt;P&gt;Dashboard data increases while model runs. &lt;/P&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Feb 2024 14:50:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601814#M95349</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-02-01T14:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Speed and Memory downgrading during long time simulation process</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601815#M95350</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/38524/fabiog10.html" nodeid="38524"&gt;@Fabio G10&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.&lt;/P&gt;&lt;P&gt;If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can &lt;A href="https://flexs.im/contact"&gt;contact your local FlexSim distributor&lt;/A&gt; for phone or email help.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Feb 2024 14:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601815#M95350</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-02-07T14:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Speed and Memory downgrading during long time simulation process</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601816#M95351</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Hi Jason.. I'm working on optimizing my model: checking code, eliminating unused tokens, reusing objects.. so I think the problem is the sum of small things that I need to continue optimizing. About the memory issue, it seems Flexsim (or Windows) frees unused memory when stopped or when system needs it. I'm continue working on this (I will accept the answer). If I have something new in the next days, I will reopen the case. Thanks for your help !
&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Feb 2024 14:58:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/speed-and-memory-downgrading-during-long-time-simulation-process/m-p/13601816#M95351</guid>
      <dc:creator>fabio_g10</dc:creator>
      <dc:date>2024-02-07T14:58:21Z</dc:date>
    </item>
  </channel>
</rss>

