467,211 Members | 1,205 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,211 developers. It's quick & easy.

Python code in Abaqus 6.9 always crashes after one hour.

Hi all,

I have written a program in python which runs an inverse analysis in Abaqus 6.9.

The program basically runs the same job several times with different material properties to determine the correct material setup.

The program seems to run fine, but whenever it reaches one hour running time, Abaqus gives the message "Disconnecting from Abaqus license server" and exits both the python program and Abaqus.

It always happens just after the input file is written for a new job, then exits before the job is actually started.

There is a crash dump file which says:
"ABQcaeK.exe caused an EXCEPTION_ACCESS_VIOLATION in module ABQCAE_ModKerHigh.dll at 001B:100DF066, ajbK_JobIntObj::ParseOptionalArguments1()+9158 byte(s)"

I am not sure if this is relevant.

Thanks in advance for any help I can get on this, as I am completely stuck at the moment.

Danny
Aug 24 '10 #1
  • viewed: 4211
Share:
1 Reply
Hello,

I believe the problem is due to a recheck of the license and how Abaqus poorly handles the running job when that happens. At least this is what is assumed by other users.

http://old.nabble.com/ABAQUS-crashes...d29303851.html

The simplest solution is to create two scripts, one that calls abaqus to run the script, repeatedly, and a script you actually want to use.
For example:
Expand|Select|Wrap|Line Numbers
  1. from os import system
  2. from time import sleep, ctime
  3. ## her u can define sleeping time
  4. sleeppingTime=3## 3 sec before trying the second attempt
  5. ##---------------------
  6. count      = 100
  7. scriptName = 'myScript.py'
  8. print 'Attempting to call ABAQUS CAE at:',ctime().split()[3]
  9. print '                      Attempt No: ', count
  10. a=system('Abaqus cae script='+scriptName)
  11. while count<100000000:
  12.    if a==1:
  13.        sleep(sleeppingTime)
  14.        print 'Attempting to call ABAQUS CAE at:',ctime().split()[3]
  15.        print '                      Attempt No: ', count+1
  16.        a=system('Abaqus cae script='+scriptName)
  17.    count=count+1
this was adapted from http://abaqusscript.blogspot.com/. Script not working perfectly yet though.

the myScript will have to write and read from a log file in case of the eventual crash. Also the looper program will need to check for a completed analysis. This process should automate the analysis, even if abaqus crashes alot.
Aug 16 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by planetthoughtful | last post: by
12 posts views Thread by ishtar2020 | last post: by
4 posts views Thread by fortepianissimo | last post: by
14 posts views Thread by mistral | last post: by
4 posts views Thread by Andrew Markebo | last post: by
3 posts views Thread by kaens | last post: by
3 posts views Thread by Alex | last post: by
12 posts views Thread by WaterWalk | last post: by
4 posts views Thread by jayjaygibbs@hotmail.co.uk | last post: by
2 posts views Thread by John Nagle | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.