

I have to close the program and rerun it to reset the memory on the MacOs system.

I have tried all the method on the discussion forum like removing all the model objects by using the command: ModelUtil.clear or disabling the model history by using: after I tried these two commands, the memory usage for the LiveLink server still increase everytime I run the model. My initial optimization took like 40hours. But I realized that the optimiziation starts to be really slow. With Matlab I want to make a 4 dimensional Inteprolation to have it in x,y,z,t. Right now I do have a my pressure distribution over time (constant in x,y,z). These different conditions need to be run in a single run for optimization purposes, thus the option of separating them into smaller chuck cannot apply here. Hello, I want Matlab to calculate my pressure distribution for an optimization. Since I am running many iterations, my computer slowly run out of memory before I can finish all the possible conditions. Even after clearing the workspace (clear all), the program comsolmphserver.exe is still consuming a lot of memory and it runs slower. Unexpectedly, as the simulation is running the memory usage slowly piles up and the running time of each loop increases. Situation: I'm solving the simulation with varying parameters in a for loop.
COMSOL WITH MATLAB MPHINTERP OUT OF MEMORY COMSOL 5.3 HOW TO
How to solve this problem on the MacOS system? However,I only found solutions for other systems, but no corresponding solutions for MacOS system.

I have tried all the method on the discussion forum. It was definitely not obvious for me that my problem stems from a memory leakage bug in the Fortran Runtime Libraries.Question: How can I eliminate the LiveLink for MATLAB and COMSOL server from storing "things" in my computer memory when I run it on my Macbook? I hope that this post can help more people solve their RAM issues when working with MATLAB LiveLink (this doesn't seem to happen in COMSOL client with GUI). Luckily for me, the solution in the knowledge base entry 1264 presented by Lars Gregersen worked for me! Now I can perform all of my simulations since the RAM usage resets after each simulation. This continued until my SWAP-memory ran out, and finally everything crashed and was shut down. This caused the RAM usage to slowly accumulate until I hit the 16 GB limit on my computer, and then COMSOL switched to use the SWAP-memory of Linux. In my case, the used RAM would "partly reset" (around 50% RAM reset) after each simulaton, but still COMSOL stored about half of the data from the previous simulation to the next. I am performing many simulations in a sequence via the MATLAB LiveLink module. This was a well formulated forum post Yu Hui Lui, thank you for posting! I also stumbled into the exact same problem (Ubuntu 18.04.2 LTS, COMSOL 5.4). Please let me know if you have any suggestions. I have to close the program and rerun it to reset the memory. We can disable the model history by using: Įven after I tried these two commands, the memory usage for the LiveLink server still increase everytime I run the model. We can remove all the model objects by using the following command: ModelUtil.clearĢ. I have look through the User Guide for LiveLink for MATLAB and here are what I found:ġ. Why can't the LiveLink for MATLAB runs like the normal COMSOL software, where with each new run the memory usage is reset. These different conditions need to be run in a single run for optimization purposes, thus the option of separating them into smaller chuck cannot apply here. I am working on simulating li-ion battery at different conditions using For-loop function in MATLAB.

Question: How can I eliminate the LiveLink for MATLAB server from storing "things" in my computer memory when I run it?
