Messages: Failed to initialize physics interface

Please login with a confirmed email address before reporting spam

When I try to load a COMSOL file into Python using "client = mph.start()" and "model = client.load("./test.mph")", I encounter the following error. Some files load without any issues, while others fail. I suspect it is not a license or version problem, but rather an issue caused by specific settings within the file itself. "Even a blank file with no components, only physics(heat transfer in solids) added causes an error when loading.

Traceback (most recent call last): File "java.lang.Thread.java", line 0, in java.lang.Thread.run

Exception: Java Exception

com.comsol.util.exceptions.com.comsol.util.exceptions.FlException: Exception: com.comsol.util.exceptions.FlException: Failed to initialize physics interface. Messages: Failed to initialize physics interface.



1 Reply Last Post 18 nov 2025, 11:39 GMT-5
COMSOL Moderator

Hello Wonbin Song

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 7 hours ago 18 nov 2025, 11:39 GMT-5

We have encountered this same issue with COMSOL 6.3's Java API. When calling com.comsol.model.util.ModelUtil.load with a particular file, it throws an exception and fails to load the file. I have included a stack trace for the exception that is thrown. This does not happen with all COMSOL files. It has only been a particular file causing the problem. The only noteworthy thing I can think of is that it uses Unicode characters for most of the descriptions.

We have encountered this same issue with COMSOL 6.3's Java API. When calling `com.comsol.model.util.ModelUtil.load` with a particular file, it throws an exception and fails to load the file. I have included a stack trace for the exception that is thrown. This does not happen with all COMSOL files. It has only been a particular file causing the problem. The only noteworthy thing I can think of is that it uses Unicode characters for most of the descriptions.

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.