RuntimeError: std::bad_alloc after failed depletion on all other openmc runs!

Hi, so I’ve been building my reactor just fine and have had no real issues until i started trying to run depletions. Now, I have realized that my reactor is probably too big and complicated for my 8-core 16gb laptop, as it is 6m x 5m x 5m, but the issue then arises when i try running my code that i KNOW works! I pushed it to git many hours earlier and it worked just fine then, but now won’t run past reading the materials. After just trying a normal run with openmc.run() with everything else as before thisis what the error thrown at me looks like with some context:

Reading Gd160 from /home/usr/endfb-vii.1-hdf5/neutron/Gd160.h5
Reading Be9 from /home/usr/endfb-vii.1-hdf5/neutron/Be9.h5
Reading c_O_in_UO2 from /home/usr/endfb-vii.1-hdf5/neutron/c_O_in_UO2.h5
Reading c_D_in_D2O from /home/usr/endfb-vii.1-hdf5/neutron/c_D_in_D2O.h5
Minimum neutron data temperature: 294 K
Maximum neutron data temperature: 294 K
Reading tallies XML file…
Preparing distributed cell instances…
Reading plot XML file…
Writing summary.h5 file…
Maximum neutron transport energy: 20000000 eV for U235
terminate called after throwing an instance of ‘std::bad_alloc’
what(): std::bad_alloc
Traceback (most recent call last):
File “/home/usr/FYS3580/Part_2/Part2C/BWR_reactor_assembly_and_RPV.py”, line 802, in
reactor_model = reactor_run(enrichment_urox = enrichment_urox, control_rods_in= “no”, r_fuel=r_fuel, r_gap=r_gap, r_clad=r_clad, batches=100, reactor_size_type = reactor_size_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/usr/FYS3580/Part_2/Part2C/BWR_reactor_assembly_and_RPV.py”, line 749, in reactor_run
openmc.run()
File “/home/usr/openmc/openmc_env/lib/python3.12/site-packages/openmc/executor.py”, line 314, in run
_run(args, output, cwd)
File “/home/usr/openmc/openmc_env/lib/python3.12/site-packages/openmc/executor.py”, line 125, in _run
raise RuntimeError(error_msg)
RuntimeError: std::bad_alloc

And now you’ll say do a clean install of openmc. I already did that and i still get the same error using that enviroment. I am doing this in WSL on my otherwise windows laptop. I wonder if g++ has been corrupted or something like that? I’m not super familiar with stuff like that, but either that or some other system wide install that is messing things up.

The error that i kept getting for the depletion is like this:

     Reading Es254_m1 from /home/usr/endfb-vii.1-hdf5/neutron/Es254_m1.h5

    Reading Es255 from /home/usr/endfb-vii.1-hdf5/neutron/Es255.h5

    Reading Fm255 from /home/usr/endfb-vii.1-hdf5/neutron/Fm255.h5

    Maximum neutron transport energy: 8100000 eV for Be7

    WARNING: Maximum neutron energy is below 20 MeV. This may bias the results.

    terminate called after throwing an instance of 'std::bad_alloc'

        what():  std::bad_alloc

    Aborted (core dumped)

I also got this error on another little bit more powerful computer, so thats why i think my reactor is too big, but still, i should be able to run my reactor as long as i dont try to deplete.

If its relevant, my settings are just 500 batches, 50 inactive and 10000 particles.