Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Out of memory during assembly BUT the mesh number is just 3608

Please login with a confirmed email address before reporting spam

My model is 3D using Heat transfer in porous media, and the total mesh number is only 3608, but the error "out of memory during assembly" still occurred, why? Model file was attached.
My operation system is windows 32bit, and the internal memory is 2GB


10 Replies Last Post 21 nov. 2016, 14:21 UTC−5
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 24 avr. 2011, 12:47 UTC−4
Hi

it ran smoothly to some 576.375 seconds, using from 0.65 to 1.35 Gb (in bout the same time too almost 1:1), then it hangs, looks like your response is getting suddenly very non-linear (T slope almost vertical) so I ended stopping it, that took 4 minutes extra ;)

Have you tried stop some of the non essential running applications, to free more RAM ? As it might need a RAM boost/spike during meshing or assembly, I do not believe the indication is peak RAM use. On my PC I have plenty, but before on my laptop I used those tricks, also with 3.5 I ran it in server client mode, that gained some 30% on the number of DoF that passed. But I'm not sure how it behaves in V4, haven't tried that

--
Good luck
Ivar
Hi it ran smoothly to some 576.375 seconds, using from 0.65 to 1.35 Gb (in bout the same time too almost 1:1), then it hangs, looks like your response is getting suddenly very non-linear (T slope almost vertical) so I ended stopping it, that took 4 minutes extra ;) Have you tried stop some of the non essential running applications, to free more RAM ? As it might need a RAM boost/spike during meshing or assembly, I do not believe the indication is peak RAM use. On my PC I have plenty, but before on my laptop I used those tricks, also with 3.5 I ran it in server client mode, that gained some 30% on the number of DoF that passed. But I'm not sure how it behaves in V4, haven't tried that -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25 avr. 2011, 14:13 UTC−4

Hi

it ran smoothly to some 576.375 seconds, using from 0.65 to 1.35 Gb (in bout the same time too almost 1:1), then it hangs, looks like your response is getting suddenly very non-linear (T slope almost vertical) so I ended stopping it, that took 4 minutes extra ;)

Have you tried stop some of the non essential running applications, to free more RAM ? As it might need a RAM boost/spike during meshing or assembly, I do not believe the indication is peak RAM use. On my PC I have plenty, but before on my laptop I used those tricks, also with 3.5 I ran it in server client mode, that gained some 30% on the number of DoF that passed. But I'm not sure how it behaves in V4, haven't tried that

--
Good luck
Ivar


Thank you, Ivar
about the "suddenly very non-linear", do you any suggestions about how to fix such kind of problem?
[QUOTE] Hi it ran smoothly to some 576.375 seconds, using from 0.65 to 1.35 Gb (in bout the same time too almost 1:1), then it hangs, looks like your response is getting suddenly very non-linear (T slope almost vertical) so I ended stopping it, that took 4 minutes extra ;) Have you tried stop some of the non essential running applications, to free more RAM ? As it might need a RAM boost/spike during meshing or assembly, I do not believe the indication is peak RAM use. On my PC I have plenty, but before on my laptop I used those tricks, also with 3.5 I ran it in server client mode, that gained some 30% on the number of DoF that passed. But I'm not sure how it behaves in V4, haven't tried that -- Good luck Ivar [/QUOTE] Thank you, Ivar about the "suddenly very non-linear", do you any suggestions about how to fix such kind of problem?

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25 avr. 2011, 15:34 UTC−4
Hi
that is related to the equations, and probably your material properties, once you localise the place, you could try to ask the solver to take smaller steps you might chain several "{range(,,) range(,,)}" ... in a "{}" "list"

--
Good luck
Ivar
Hi that is related to the equations, and probably your material properties, once you localise the place, you could try to ask the solver to take smaller steps you might chain several "{range(,,) range(,,)}" ... in a "{}" "list" -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 21 févr. 2012, 11:57 UTC−5
I am getting an 'out of memory during assembly' error message when I am trying to solve a structural model. The characteristics of the mesh are as follows.

Number of vertex elements: 24
Number of edge elements: 872
Number of boundary elements: 34868
Number of elements: 949673
Minimum element quality: 0.1935

I do not think it is an issue with the shortage of phsyical memory, at least in my case. I am running this program on a computer which has 196 Gb of RAM. I was continuously checking the windows task manager to see how much memory COMSOL is utlizing while attempting to solve this model and it is around just 12 Gb. I know I can solve this problem using a coarser mesh but that still does not answer as to why COMSOL is giving me this error message when there is more than enough physical memory available in my computer. I have attached the COMSOL model. I have removed the mesh from the model as its size was more that could be attached. But I have left the mesh setting in the model.

Could some one provide me with an explanation to this issue and possible solutions?
I am getting an 'out of memory during assembly' error message when I am trying to solve a structural model. The characteristics of the mesh are as follows. Number of vertex elements: 24 Number of edge elements: 872 Number of boundary elements: 34868 Number of elements: 949673 Minimum element quality: 0.1935 I do not think it is an issue with the shortage of phsyical memory, at least in my case. I am running this program on a computer which has 196 Gb of RAM. I was continuously checking the windows task manager to see how much memory COMSOL is utlizing while attempting to solve this model and it is around just 12 Gb. I know I can solve this problem using a coarser mesh but that still does not answer as to why COMSOL is giving me this error message when there is more than enough physical memory available in my computer. I have attached the COMSOL model. I have removed the mesh from the model as its size was more that could be attached. But I have left the mesh setting in the model. Could some one provide me with an explanation to this issue and possible solutions?


Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 21 févr. 2012, 15:42 UTC−5
Hi

indeed looks strange, that is not so many elements and DoF's and you seem to have really plenty of RAM.

Are you sure it has nothing to do with your Java heap size (check/search the Forum and the KB) ?

else it could be from some weird BC settings making COMSOL run in loops, or perhaps a frame reference that makes the model excessively non linear ?


I can only suggest to use the later versions, they have greatly improved the stability of COMSOL since 4.1

And I'm not by my COMSOL WS so I cannot look at your model, it's soon the middle of the night for me ;)

--
Good luck
Ivar
Hi indeed looks strange, that is not so many elements and DoF's and you seem to have really plenty of RAM. Are you sure it has nothing to do with your Java heap size (check/search the Forum and the KB) ? else it could be from some weird BC settings making COMSOL run in loops, or perhaps a frame reference that makes the model excessively non linear ? I can only suggest to use the later versions, they have greatly improved the stability of COMSOL since 4.1 And I'm not by my COMSOL WS so I cannot look at your model, it's soon the middle of the night for me ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 22 févr. 2012, 12:04 UTC−5
Ivar,

Thanks for the reply.

I am sucessful in running the model for several coarser meshes. I ran the model from 'Normal' to 'Extra Fine' mesh setting of COMSOL. I am not able to run it for 'Extremely Fine' option as it is giving the Failed to find consistent initial values' error message. The fact that I am able to run for coarser meshes gives me the impression that the BCs are correct. As you suggested I will shift to COMSOL 4.2 and hopefuly this issue would be resolved.

Once again, thanks.

Bobby
Ivar, Thanks for the reply. I am sucessful in running the model for several coarser meshes. I ran the model from 'Normal' to 'Extra Fine' mesh setting of COMSOL. I am not able to run it for 'Extremely Fine' option as it is giving the Failed to find consistent initial values' error message. The fact that I am able to run for coarser meshes gives me the impression that the BCs are correct. As you suggested I will shift to COMSOL 4.2 and hopefuly this issue would be resolved. Once again, thanks. Bobby

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 mars 2012, 14:37 UTC−5
I switched to COMSOL 4.2a. Things are better with COMSOL 4.2a but not perfect. I am able to simulate several mesh settings with COMSOL 4.2a which I was not able to run with COMSOL 4.1. But even COMSOL 4.2a gives me 'out of memory' error for many other finer mesh settings even though it is only using a fraction of the total physical memory of my computer.

Bobby
Ruston, LA.
I switched to COMSOL 4.2a. Things are better with COMSOL 4.2a but not perfect. I am able to simulate several mesh settings with COMSOL 4.2a which I was not able to run with COMSOL 4.1. But even COMSOL 4.2a gives me 'out of memory' error for many other finer mesh settings even though it is only using a fraction of the total physical memory of my computer. Bobby Ruston, LA.

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 4 mars 2012, 02:28 UTC−5
Hi

when nothing else works, (or even before) often support can help particularly for such specific more programming / RAM management issues. Pls report back here as it is of general interest.
I use often a few million DoF, but has so far seldom got your error, but I have managed often to saturatemy 48Gb of RAM ;)

--
Good luck
Ivar
Hi when nothing else works, (or even before) often support can help particularly for such specific more programming / RAM management issues. Pls report back here as it is of general interest. I use often a few million DoF, but has so far seldom got your error, but I have managed often to saturatemy 48Gb of RAM ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 25 août 2015, 16:57 UTC−4
sir guide me how to use comsol in client mode. i have tried alot but could not do
thanx in advance
sir guide me how to use comsol in client mode. i have tried alot but could not do thanx in advance

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 21 nov. 2016, 14:21 UTC−5
Hi everyone
FYI : I managed to remove this error (Out of memory ...) by playing with meshes.
It is not about how many elements you use. You need to figure out where to use finer meshes.
Hope this helps you.
Hi everyone FYI : I managed to remove this error (Out of memory ...) by playing with meshes. It is not about how many elements you use. You need to figure out where to use finer meshes. Hope this helps you.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.