bizarre issue when running abaqus in parallel from an app exe created with matlab

6 vues (au cours des 30 derniers jours)
Hi,
I have a really weird problem that I hope someone can help with:
I have developed an interface with matlab app designer. This app modifies some abaqus models, submit simulations and collects results. Until two weeks ago it was working fine. Now suddenly the abaqus runs start crashing when using multiple CPUs.
Here are some additional points:
  • matlab creates a bat file to run models, for example:
cd C:\Users\...Abaqus\Simulations\AbaqusModel & ^
abaqus job=AbaqusModel input=AbaqusModel ask_delete=OFF cpus=2 interactive
  • then it runs this bat file with:
system([SbatchFileName ' &']);
  • when this bat is executed by the standalone exe created by matlab, the abaqus run fails after start right when it is trying to do the domain decomposition by using multiple CPUs
  • if number of CPUs is set to one, it works fine
  • if one just double-clicks on the bat file, then it runs fine even with multiple CPUs (hence nothing wrong with bat file or the model)
  • it even runs without issue when the bat is executed from the interface, but the interface needs to be started within the matlab app designer (i.e. not using the standalone exe)
Does anybody has any idea why this might be? I find it puzzling since there is nothing wrong with the model or the bat file. Also abaqus does not complain during pre-processing and starts the analysis. It fails only when trying to use multiple CPUs.
I was wondering if it could be due to some recent windows security update, maybe the system does not trust an exe accessing CPUs?
any help would be appreciated.
Best regards,
Murat

Réponses (1)

Ashutosh Thakur
Ashutosh Thakur le 15 Déc 2023
Hi Murat,
I can understand that you are facing issues with interface developed with MATLAB app designer as it is crashing while running with multiple CPUs.
Following could be the reasons why the EXE app is getting crashed:
  • Their could be some issues with the recent windows update, try to run the executable as an administrator to see if the issue occurs.
  • Also the absence of MATLAB compiler runtime which provides access of the MATLAB APIs may cause some issues with the execution of the application. Ensure to install appropriate version of MATLAB Compiler runtime based on the release.
  • Also see if the Environment Variable are correctly set for the standalone EXE application to run successfully.
The following documentation link would help you with the above suggested approach:
I hope this helps you!

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by