<?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: FlexSimPy Crashes After Repeated Simulation Runs in the Same Python Process in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/flexsimpy-crashes-after-repeated-simulation-runs-in-the-same/m-p/14242537#M101894</link>
    <description>&lt;P class=""&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to kindly follow up on this topic.&lt;/P&gt;&lt;P&gt;Has anyone encountered similar behavior when running multiple simulations through FlexSimPy in the same Python process, or have any suggestions on what might be causing the crashes?&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2026 05:49:55 GMT</pubDate>
    <dc:creator>jenny_chungVEV4M</dc:creator>
    <dc:date>2026-08-24T05:49:55Z</dc:date>
    <item>
      <title>FlexSimPy Crashes After Repeated Simulation Runs in the Same Python Process</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexsimpy-crashes-after-repeated-simulation-runs-in-the-same/m-p/14239090#M101864</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using FlexSimPy to repeatedly run a FlexSim model from Python while modifying a few parameters between runs.&lt;/P&gt;&lt;P&gt;The simulation runs successfully at first, but after multiple iterations, FlexSim unexpectedly crashes and closes. The crash does not occur at a consistent iteration count; in my testing, it has occurred anywhere from around 4 runs to more than 30 runs. No Python exception or error message is reported when this happens.&lt;/P&gt;&lt;P&gt;The issue appears to be reproducible with the attached model and Python script.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FlexSim 2026&lt;/LI&gt;&lt;LI&gt;Python 3.11&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The only reliable workaround I have found is to start a completely new Python process for each simulation run. This avoids the crash, but significantly increases execution time because FlexSim must be restarted for every iteration.&lt;/P&gt;&lt;P&gt;Has anyone encountered a similar issue, or is there a recommended way to repeatedly execute simulations through FlexSimPy without restarting the process?&lt;/P&gt;&lt;P&gt;The attached model and Python script should reproduce the issue.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 02:43:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexsimpy-crashes-after-repeated-simulation-runs-in-the-same/m-p/14239090#M101864</guid>
      <dc:creator>jenny_chungVEV4M</dc:creator>
      <dc:date>2026-08-20T02:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSimPy Crashes After Repeated Simulation Runs in the Same Python Process</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexsimpy-crashes-after-repeated-simulation-runs-in-the-same/m-p/14242537#M101894</link>
      <description>&lt;P class=""&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to kindly follow up on this topic.&lt;/P&gt;&lt;P&gt;Has anyone encountered similar behavior when running multiple simulations through FlexSimPy in the same Python process, or have any suggestions on what might be causing the crashes?&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2026 05:49:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexsimpy-crashes-after-repeated-simulation-runs-in-the-same/m-p/14242537#M101894</guid>
      <dc:creator>jenny_chungVEV4M</dc:creator>
      <dc:date>2026-08-24T05:49:55Z</dc:date>
    </item>
  </channel>
</rss>

