Abaqus Error: Detected lock file Job-1.lck DURING OPTIMIZATION PROCESS IN MATLAB
Abaqus Error: Detected lock file Job-1.lck DURING OPTIMIZATION PROCESS IN MATLAB
(OP)
Dear all,
I'm optimizing a structure by using an algorithm in matlab. The structural analysis part is performed by abaqus and abaqus writes its results (stresses, displacements,etc.) to a text file, which is read by matlab. The process is thus an iterative process. However, I'm dealing with next problem:
"Abaqus Error: Detected lock file Job-1.lck. Please confirm that no other applications are attempting to write to the output database associated with this job before removing the lock file and resubmitting.
Abaqus/Analysis exited with errors
Abaqus/Analysis exited with error.
Abaqus Error: cae exited with an error. "
This fail occurs randomly during the optimization: with this I mean that sometimes an iteration works, and sometimes it fails. Can anybody help me?
Kind regards
I'm optimizing a structure by using an algorithm in matlab. The structural analysis part is performed by abaqus and abaqus writes its results (stresses, displacements,etc.) to a text file, which is read by matlab. The process is thus an iterative process. However, I'm dealing with next problem:
"Abaqus Error: Detected lock file Job-1.lck. Please confirm that no other applications are attempting to write to the output database associated with this job before removing the lock file and resubmitting.
Abaqus/Analysis exited with errors
Abaqus/Analysis exited with error.
Abaqus Error: cae exited with an error. "
This fail occurs randomly during the optimization: with this I mean that sometimes an iteration works, and sometimes it fails. Can anybody help me?
Kind regards





RE: Abaqus Error: Detected lock file Job-1.lck DURING OPTIMIZATION PROCESS IN MATLAB
*.lck file is created by Abaqus when the analysis start and removed after finish.
It is just a flag for the Abaqus that the analysis is still running.
As long the file is in a directory you cannot run Abaqus analysis in this directory.
There are two options, or some of your jobs in optimization loop finished abnormally and Abaqus did not deleted the file.
Then you can manually remove the file with a script before you submit another Abaqus run.
The other option is that matlab is to fast and does not wait before Abaqus remove *.lck file.
It is a good idea to wait a little bit (1-5 sec) after Abaqus finish the analysis before matlab will run another iteration.
Regards,
Bartosz
RE: Abaqus Error: Detected lock file Job-1.lck DURING OPTIMIZATION PROCESS IN MATLAB