/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 219 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2231.0-4416_daily_bin848
RA = 337.758, Dec = -44.2791
tmin = 459129601, tmax = 459388801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='336477', job_status='RUN', time_executed='2021-09-28 13:29:09.112612', time_epoch_executed='1632860949.11' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336477

Creating custom pfile directory:
/scratch/kocevski/336477/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=459129601.0 && nMetStart<459388801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=459129601.0 && nMetStart<459388801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336477/ft1_4FGL_J2231.0-4416_daily_bin848.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=459129601.0 && nMetStart<459388801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336477/ft1_4FGL_J2231.0-4416_daily_bin848.fits outfile=/scratch/kocevski/336477/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin848.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=459129601.0 tmax=459388801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.92
user 3.68
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/336477/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin848.fits evtable="EVENTS" outfile="/scratch/kocevski/336477/ft1_filtered_4FGL_J2231.0-4416_daily_bin848.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336477/ft1_filtered_4FGL_J2231.0-4416_daily_bin848.fits" evtable="EVENTS" scfile=/scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits sctable="SC_DATA" outfile=/scratch/kocevski/336477/ltcube_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits
.....................!
real 11.75
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336477/ft1_filtered_4FGL_J2231.0-4416_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/336477/ltcube_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.fits outfile=/scratch/kocevski/336477/expmap_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/336477/ltcube_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.fits
.....................!
real 191.49
user 186.31
sys 4.87

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2231.0-4416 @ 337.758 -44.2791

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/336477/ft1_filtered_4FGL_J2231.0-4416_daily_bin848.fits scfile=/scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits outfile=/scratch/kocevski/336477/cmap_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=337.758 yref=-44.2791 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336477/ft1_filtered_4FGL_J2231.0-4416_daily_bin848.fits scfile=/scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits outfile=/scratch/kocevski/336477/cmap_HighResolution_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=337.758 yref=-44.2791 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/336477/ft1_filtered_4FGL_J2231.0-4416_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/336477/Model_4FGL_J2231.0-4416_daily_bin848.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/336477/ft1_filtered_4FGL_J2231.0-4416_daily_bin848.fits.....................!
real 36.55
user 35.32
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/336477/ft1_filtered_4FGL_J2231.0-4416_daily_bin848.fits', '/scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits', expMap='/scratch/kocevski/336477/expmap_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.fits', expCube='/scratch/kocevski/336477/ltcube_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/336477/Model_4FGL_J2231.0-4416_daily_bin848.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2231.0-4416'

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.304e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/336477/ft1_filtered_4FGL_J2231.0-4416_daily_bin848.fits
Spacecraft file(s): /scratch/kocevski/336477/ft2_4FGL_J2231.0-4416_daily_bin848.fits
Exposure map: /scratch/kocevski/336477/expmap_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.fits
Exposure cube: /scratch/kocevski/336477/ltcube_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/336477/Model_4FGL_J2231.0-4416_daily_bin848.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4251.90056702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4251.89080338

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4540       1.0000         .10000E-03   10000.    
     4 'norm      '    10.540       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2284       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.628       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .99654       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.374       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.367       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.431       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    118.95       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.094       1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.822       1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.456       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.548       1.0000         .10000E-03   10000.    
    25 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0878       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    4.7353       1.0000         .10000E-03   10000.    
    31 'Prefactor '    11.738       1.0000         .10000E-03   10000.    
    32 'norm      '    .84301       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .75967       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .95678       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4251.891     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4751 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3352       -.11225E-05** at limit **
   2  Prefactor     .10000E-03    21.266       -.11983E-07** at limit **
   3  Prefactor     5.4548        5.8700       -.14249E-06   -.17418E-03
   4  norm          10.541        5.9824       -.54835E-06   -.92755E-03
   5  Prefactor     5.2274        12.179       -.15872E-05   -.76528E-04
   6  Prefactor     .10000E-03    4.3101       -.14614E-05** at limit **
   7  Prefactor     57.618        43.565       -.98198E-05    .35192E-04
   8  Prefactor     .10000E-03    6.4974       -.17360E-05** at limit **
   9  Prefactor     .10000E-03    3.4708        .14719E-05** at limit **
  10  Prefactor     .10000E-03    33.357       -.69854E-05** at limit **
  11  norm          .10000E-03    5.5682        .18531E-05** at limit **
  12  Prefactor     .10000E-03    5.5644        .17844E-05** at limit **
  13  Prefactor     .99552        3.9469       -.13140E-05   -.76104E-03
  14  Prefactor     .10000E-03    23.484        .63966E-05** at limit **
  15  Prefactor     .10000E-03    6.3763       -.12395E-05** at limit **
  16  Prefactor     41.372        25.353       -.25698E-05    .13741E-05
  17  Prefactor     16.367        20.209       -.11144E-05    .26255E-05
  18  Prefactor     46.410        36.103       -.20266E-04   -.49189E-04
  19  Prefactor     .10000E-03    11.200        .68485E-05** at limit **
  20  Prefactor     118.94        114.72       -.13495E-06   -.21126E-04
  21  Prefactor     16.094        10.131       -.48935E-06    .29970E-04
  22  Prefactor     39.819        39.987       -.24945E-05    .11360E-04
  23  Prefactor     32.463        32.061        .82421E-05    .68905E-05
  24  Prefactor     11.548        14.248       -.70957E-06   -.42876E-03
  25  norm          .10000E-03    25.461        .96170E-05** at limit **
  26  norm          .10000E-03    3.1779        .45145E-06** at limit **
  27  norm          .10000E-03    1.6746       -.60947E-07** at limit **
  28  Prefactor     3.0750        8.9831       -.10776E-04   -.54432E-03
  29  Prefactor     .10000E-03    16.301       -.12835E-04** at limit **
  30  norm          4.7351        3.9952       -.28968E-06    .13917E-03
  31  Prefactor     11.755        20.529        .16081E-04    .73754E-04
  32  norm          .84312        1.0777       -.19739E-06   -.58271E-03
  33  Normalizat    .75999        .21486        .62310E-05   -.53337E-04
  34  Prefactor     .95650        .18912        .52114E-06    .76231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.45479
  norm       = 10.5406
  Prefactor  = 5.22745
  Prefactor  = 0.0001
  Prefactor  = 57.6183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.995518
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 41.3717
  Prefactor  = 16.3666
  Prefactor  = 46.4097
  Prefactor  = 0.000100002
  Prefactor  = 118.945
  Prefactor  = 16.0943
  Prefactor  = 39.8193
  Prefactor  = 32.4634
  Prefactor  = 11.5475
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.07501
  Prefactor  = 0.0001
  norm       = 4.73509
  Prefactor  = 11.7546
  norm       = 0.843123
  Normalizat = 0.759989
  Prefactor  = 0.956505
 **********
 **   18 **HESSE 
 **********

 FCN=   4251.891     FROM HESSE     STATUS=OK           732 CALLS     5483 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3423        .11629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4548        5.8780        .15623E-03   -1.5241    
   4  norm          10.541        5.9934        .58003E-03   -1.5059    
   5  Prefactor     5.2274        12.170        .17579E-03   -1.5251    
   6  Prefactor     .10000E-03    4.3149        .13217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     57.618        43.476        .52846E-04   -1.4188    
   8  Prefactor     .10000E-03    6.5901        .16216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6021        .23712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.6130        .15029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5874        .15013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .99552        3.9066        .24291E-03   -1.5508    
  14  Prefactor     .10000E-03    23.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4380        .16045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     41.372        25.355        .62320E-04   -1.4421    
  17  Prefactor     16.367        20.211        .98999E-04   -1.4899    
  18  Prefactor     46.410        36.119        .58843E-04   -1.4344    
  19  Prefactor     .10000E-03    11.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     118.94        114.70        .36897E-04   -1.3522    
  21  Prefactor     16.094        10.127        .99835E-04   -1.4905    
  22  Prefactor     39.819        39.978        .31759E-03   -1.4445    
  23  Prefactor     32.463        32.032        .70335E-04   -1.4568    
  24  Prefactor     11.548        14.253        .58945E-03   -1.5028    
  25  norm          .10000E-03    25.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.1840        .11350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.6749        .82408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.0750        8.9393        .23080E-03   -1.5357    
  29  Prefactor     .10000E-03    16.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          4.7351        3.9970        .11617E-03   -1.5273    
  31  Prefactor     11.755        20.479        .11692E-03   -1.5022    
  32  norm          .84312        1.0155        .73098E-03   -1.5524    
  33  Normalizat    .75999        .24818        .27047E-03   -1.0157    
  34  Prefactor     .95650        .22029        .22491E-03   -.94194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12911e-09
Minuit parameter uncertainties:
  1  9.43077e-07
  2  8.69728e-06
  3  5.87859
  4  5.99373
  5  12.1758
  6  3.53665e-06
  7  43.4995
  8  7.399e-05
  9  1.79442e-05
  10  6.80713e-05
  11  2.39745e-05
  12  2.80621e-05
  13  3.90762
  14  5.86326e-06
  15  0.000189022
  16  25.3611
  17  20.2192
  18  36.1361
  19  0.000318035
  20  114.919
  21  10.128
  22  40.0046
  23  32.049
  24  14.257
  25  0.000199108
  26  1.1461e-05
  27  1.31042e-06
  28  8.94321
  29  4.02877e-05
  30  3.99722
  31  20.4907
  32  1.0155
  33  0.248553
  34  0.220499
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4251.89080057

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  9.955e-01  3.908e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.565e-01  2.205e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.600e-01  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/336477/likelihoodResults_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4251.88455886
delta logL = 0.00624170769061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4251.8843176
delta logL = 0.00648297110729

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94502       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6411       1.0000          .0000       10.000    
     3 'Normalizat'    .75734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4251.884     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94454        54.773        .12970E-01    .49985E-03
   2  Index         2.6439        2.5158        .46125       -.61217E-04
   3  Normalizat    .75722        .22232E-01    .43051E-01   -.11745E-03
   4  Prefactor     .95785        .20648E-01    .45736E-01   -.55996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.944538
  Index      = 2.64389
  Normalizat = 0.757216
  Prefactor  = 0.957847
 **********
 **   18 **HESSE 
 **********

 FCN=   4251.884     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94454        3.7493        .21652E-03   -1.5514    
   2  Index         2.6439        1.9423        .88713E-02   -.49067    
   3  Normalizat    .75722        .23425        .27094E-03   -1.0168    
   4  Prefactor     .95785        .21534        .22477E-03   -.94148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50877e-10
Minuit parameter uncertainties:
  1  3.75026
  2  2.01128
  3  0.234565
  4  0.215533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336477': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4251.88431636
delta logL = 0.00648421013466

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  9.445e-01  3.750e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.644e+00  2.011e+00  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.578e-01  2.155e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.572e-01  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 337.758 -44.279

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/336477/cmap_HighResolution_459129601_459388801_4FGL_J2231.0-4416_daily_bin848.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/336477

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-28 13:41:18.057339', job_id='336477', GAL2='0.96', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632861678.06', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.48e-03', ts2='0.09', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='848' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:41:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 336477: <4FGL_J2231.0-4416_daily_bin848> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin848> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 13:25:20 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:25:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 13:25:21 2021
Terminated at Tue Sep 28 13:41:18 2021
Results reported at Tue Sep 28 13:41:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin848 337.758 -44.2791 459129601 459388801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2231.0-4416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            958 sec.

The output (if any) is above this job summary.

