I am addressing a problem in which I’m doing multiple bayesian inversions and reliability analysis after initializing a UQLab session. Since these repeated analysis are being carried out within a function, I’m assuming that once the control comes out of the function, the memory gets free.
My problem is that within one of such function runs, the system is getting out of memory if the number of MCS analysis is large despite clearing the Analysis object.
For example, if I have 800 MCS analysis with 3e5 samples each, then despite clearing the analysis object which results from
uq_createAnalysis(MCSOpts) after extracting the probability of failure, the system goes out of memory after a few iterations. I also noticed that UQLab seems to keep a count of the number of simulations it has previously carried out, which can be seen from the
Name variable inside the analysis object.
Is there anyway to save memory space when doing such multiple UQLab analysis? Do I need to run analysis with the
-private flag to avoid memory issues?