Out of memory - mode_compute=10

I am trying to estimate my model using mode_compute=10,
but after several hours I get a message: "out of memory … " How could I solve this?
mod.rar (147 KB)
out_fo_memory.rar (227 KB)

Please try the attached file. You have to replace the original in matlab/optimization
simpsa.m (20.1 KB)