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.

COMSOL with matlab always stop looping

Please login with a confirmed email address before reporting spam

DERA All, I use COMSOL with matlab to run my model with a for-loop (change some parameters every time) . But, when the loop time achieved about 15, it will be ended, and says my computer's memory is not enough. What from where it ends, and after about 15 times loop, it comes again. And, the problem described by COMSOL is bellow:

  Java exception occurred:
  Exception:
  com.comsol.util.exceptions.FlException: The following feature has encountered a problem
  Messages:
  以下特征遇到问题:
  - 特征: 稳态求解器 1 (sol1/s1)
  找不到解。
  执行稀疏矩阵操作时内存不足。
  返回的解不收敛。
  没有返回所有参数步长。
  Stack trace:
  at com.comsol.solver.SolverOperation.execute(SourceFile:284)
  at com.comsol.solver.SolverOperation.addError(SourceFile:442)
  at com.comsol.solver.SolverOperation.execute(SourceFile:292)
  at com.comsol.model.method.SolverSequenceMethod.doRun(SourceFile:2168)
  at com.comsol.model.method.SolverSequenceMethod.doRun(SourceFile:2710)
  at com.comsol.model.dbmodel.SolverSequenceDb.run(SourceFile:186)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at com.comsol.bridge.command.b.a(SourceFile:145)
  at com.comsol.bridge.command.b.run(SourceFile:90)
  at com.comsol.bridge.command.i.execute(SourceFile:45)
  at com.comsol.bridge.command.j.d(SourceFile:711)
  at com.comsol.bridge.command.j.a(SourceFile:699)
  at com.comsol.bridge.command.j$3.a(SourceFile:600)
  at com.comsol.bridge.command.j$3.call(SourceFile:1)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  at java.lang.Thread.run(Thread.java:748)

Can somebody help me ? Thanks!


2 Replies Last Post 15.11.2019, 07:52 GMT-5
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 14.11.2019, 06:33 GMT-5

Hi 慧明 汪

There has been a few problems with memory leaks in Comsol 5.4. You should make sure you have installed the latest update: https://www.comsol.com/product-update

If that doesn't solve your problem then there is another solution related to the MUMPS solver here: https://www.comsol.com/support/knowledgebase/1264

-------------------
Lars Gregersen
Comsol Denmark
Hi 慧明 汪 There has been a few problems with memory leaks in Comsol 5.4. You should make sure you have installed the latest update: https://www.comsol.com/product-update If that doesn't solve your problem then there is another solution related to the MUMPS solver here: https://www.comsol.com/support/knowledgebase/1264

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 15.11.2019, 07:52 GMT-5

Thanks! Lars Gregersen! Your suggestion did help me a lot!

Thanks! Lars Gregersen! Your suggestion did help me a lot!

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.