Sorting out memory leakage

Yes, I indeed use PEPSolve. You are right, this bug is not likely to solve the issue. Nevertheless, I started a run with your fix, and I will report back when I get the results.

Well, I run the same simulation using the modification you posted above, but I did not experience any reduction in the RAM usage as expected :frowning: .