Question: I have an Abaqus script that needs to be run iteratively, and continue running even if the job submitted does not converge. This is no problem if the script is submitted from the command line as following:

`abaqus cae script=script.py`

However, when executing a python script in Abaqus from the command line such as:

`abaqus cae nogui=script.py`

the python script itself terminates running immediately after the job is aborted. Is there any way to keep running the script after the job within is aborted when it was called using nogui?

Thanks,

Andrew

The relevant part of my script looks like:

```
import os 
from odbAccess import * 
from job import *  
from abaqusConstants import * 

cjob = mdb.JobFromInputFile(name='abaqus_opt_rd',inputFileName='../FEM_in_out/abaqus_opt_rd.inp',numCpus=4,numDomains=4) 
cjob.submit() 
cjob.waitForCompletion() 
ef = cjob.status 
conv = ef != ABORTED 

if conv == True: 
    # perform desired operations ...
else:
    # perform operations for aborted job ...

```

Answer: 
Seems like probably what you are trying to achieve is not yet supported in angular version, you can instead create a directive of your own and do something like this;-

```
.directive('popover', function($compile, $timeout){
  return {
    restrict: 'A',
    link:function(scope, el, attrs){
      var content = attrs.content; //get the template from the attribute
      var elm = angular.element('<div />'); //create a temporary element
      elm.append(attrs.content); //append the content
      $compile(elm)(scope); //compile 
      $timeout(function() { //Once That is rendered
        el.removeAttr('popover').attr('data-content',elm.html()); //Update the attribute
        el.popover(); //set up popover
       });
    }
  }
})

```

and in your popover html add the directive attribute `popover`:-

```
 <a popover  id="showDays"
    type="button"
    class="btn btn-success btn-xs pull-left"
    data-toggle="popover"
    data-placement="right"
    data-html="true"
    title="Popover title"
    data-content=
    '<table class="table table-condensed">
       <tbody>
         <tr ng-repeat="d in days">
           <td ng-bind="d"></td>
         </tr>
       </tbody>
     </table>'>
      <i class="fa fa-clock-o fa-lg">Click me</i>
  </a>

```

**[Demo](http://plnkr.co/edit/IZuXvX?p=preview)**

Making it bit more configurable, pass the settings, **[Demo](http://plnkr.co/edit/Jo2OgV?p=preview)**:-
You can make this work out of the box using angular-strap popovers.

[Angular Strap Project](http://mgcrea.github.io/angular-strap/##popovers)

Angular Strap is native bootstrap directives done right. So basically it would look like this:

---

HTML for calling/activating popover
-----------------------------------

```
<a  id="showDays"
type="button"
class="btn btn-success btn-xs pull-right"
data-trigger="hover" //i wasn't sure what trigger you wanted
ng-model="days"
data-placement="left"
data-html="true"
title="Popover title" //optional
data-template="file-path/to-local-HTML-template.html"
bs-popover>
</a>

```

---

pop over template
-----------------

```
    <div class="popover" tabindex="-1">
    <div class="arrow"></div>
    <h3 class="popover-title" ng-bind-html="title">Your Title</h3>
    <div class="popover-content">
       <table class="table table-condensed">
           <tbody>
               <tr ng-repeat="d in days">
                   <td ng-bind="d"></td>
               </tr>
           </tbody>
       </table>'>
  <i class="fa fa-clock-o fa-lg">Click me</i>
    </div>
</div>

```

If that doesn't work it should be 99.9% there and it shouldn't take too much effort to fill in the gaps by looking at angular strap's documentation. They have great docs. The strap project also has great implementations for most of the rest of the boostrap 3 components.

[Plukr using the above code for popover demo](http://plnkr.co/edit/709KI19xhDFwTKbC1s08?p=preview)

Like I said that code up there is like 99% there, but just to go the extra mile I did up a plunk demo to show exactly how it's done.