473,396 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
1 4551
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

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

Similar topics

6
by: planetthoughtful | last post by:
Hi All, I've written my first piece of practical Python code (included below), and would appreciate some comments. My situation was that I had a directory with a number of subdirectories that...
12
by: ishtar2020 | last post by:
Hi everybody I've been writing my very first application in Python and everything is running smoothly, except for a strange problem that pops up every once in a while. I'm sure is the kind of...
4
by: fortepianissimo | last post by:
Is there a solution to enable Java programmers to call functions written in Python? Any wrapper generator that wraps Python code into some Java-callable form? I briefly looked at Jython, but if...
14
by: mistral | last post by:
Need compile python code, source is in html and starts with parameters: #!/bin/sh - "exec" "python" "-O" "$0" "$@" I have installed ActivePython for windows.
4
by: Andrew Markebo | last post by:
Alalalala lint.. alalalala lint... Ehm :-) Are there any python-code linter out there - or the code is so easy to write that it always is so perfekt? :-) /Andy --
3
by: kaens | last post by:
Hey everyone, I'm relatively new to python - I actually picked it up to see how quickly I could start building non-trivial apps with it. Needless to say, I was quite pleased. Anyhow, I'm...
3
by: Alex | last post by:
Which library could you recommend to perform simple editing of Python code (from Python program)? For example, open *.py file, find specific function definition, add another function call inside,...
12
by: WaterWalk | last post by:
Hello. I wonder what's the effective way of figuring out how a piece of python code works. With C I often find it very useful to be able to run the code in step mode and set breakpoints in a...
4
by: jayjaygibbs | last post by:
Is their a program that lets you design a GUI by hand (like gambas) not by code (like wxpython) but the commands are in python? A program similar to gambas or vb Gambas with python code...
2
by: John Nagle | last post by:
koblas wrote: PyPy was supposed to help, but that project has been dragging on for half a decade now. Personally, I think the Shed Skin approach is more promising. PyPy has too many different...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.