/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 30 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 = 7602
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1148
RA = 337.758, Dec = -44.2791
tmin = 536889601, tmax = 537148801
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='338208', job_status='RUN', time_executed='2021-09-28 13:31:19.989365', time_epoch_executed='1632861079.99' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338208

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338208/ft1_4FGL_J2231.0-4416_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338208/ft2_4FGL_J2231.0-4416_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338208/ft1_4FGL_J2231.0-4416_daily_bin1148.fits outfile=/scratch/kocevski/338208/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1148.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=536889601.0 tmax=537148801.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.65
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338208/ft2_4FGL_J2231.0-4416_daily_bin1148.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/338208/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1148.fits evtable="EVENTS" outfile="/scratch/kocevski/338208/ft1_filtered_4FGL_J2231.0-4416_daily_bin1148.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338208/ft1_filtered_4FGL_J2231.0-4416_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/338208/ft2_4FGL_J2231.0-4416_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/338208/ltcube_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.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/338208/ft2_4FGL_J2231.0-4416_daily_bin1148.fits
.....................!
real 12.49
user 12.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338208/ft1_filtered_4FGL_J2231.0-4416_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/338208/ft2_4FGL_J2231.0-4416_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/338208/ltcube_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.fits outfile=/scratch/kocevski/338208/expmap_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.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/338208/ltcube_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.fits
.....................!
real 190.74
user 185.31
sys 5.12

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/338208/ft1_filtered_4FGL_J2231.0-4416_daily_bin1148.fits scfile=/scratch/kocevski/338208/ft2_4FGL_J2231.0-4416_daily_bin1148.fits outfile=/scratch/kocevski/338208/cmap_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338208/ft1_filtered_4FGL_J2231.0-4416_daily_bin1148.fits scfile=/scratch/kocevski/338208/ft2_4FGL_J2231.0-4416_daily_bin1148.fits outfile=/scratch/kocevski/338208/cmap_HighResolution_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/338208/ft1_filtered_4FGL_J2231.0-4416_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/338208/ft2_4FGL_J2231.0-4416_daily_bin1148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338208/Model_4FGL_J2231.0-4416_daily_bin1148.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/338208/ft1_filtered_4FGL_J2231.0-4416_daily_bin1148.fits.....................!
real 40.98
user 39.72
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/338208/ft1_filtered_4FGL_J2231.0-4416_daily_bin1148.fits', '/scratch/kocevski/338208/ft2_4FGL_J2231.0-4416_daily_bin1148.fits', expMap='/scratch/kocevski/338208/expmap_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.fits', expCube='/scratch/kocevski/338208/ltcube_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/338208/Model_4FGL_J2231.0-4416_daily_bin1148.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/338208/ft1_filtered_4FGL_J2231.0-4416_daily_bin1148.fits
Spacecraft file(s): /scratch/kocevski/338208/ft2_4FGL_J2231.0-4416_daily_bin1148.fits
Exposure map: /scratch/kocevski/338208/expmap_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.fits
Exposure cube: /scratch/kocevski/338208/ltcube_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/338208/Model_4FGL_J2231.0-4416_daily_bin1148.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) = 4930.70888576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78501E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6199       1.0000         .10000E-03   10000.    
     4 'norm      '    3.5794       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.211       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.003       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6078       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.034       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.457       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3713       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.279       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2568       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.492       1.0000         .10000E-03   10000.    
    23 'Prefactor '    55.818       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .12435E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7588       1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.720       1.0000         .10000E-03   10000.    
    30 'norm      '    12.655       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2043       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .98052       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=   4930.662     FROM MIGRAD    STATUS=CONVERGED    943 CALLS     4879 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    50.085        .17973E-04** at limit **
   2  Prefactor     .10000E-03    18.537        .33607E-07** at limit **
   3  Prefactor     2.6183        5.0229       -.83031E-06   -.30156E-03
   4  norm          3.5771        4.7014       -.24677E-06   -.67463E-04
   5  Prefactor     14.207        14.155       -.25921E-06    .54466E-04
   6  Prefactor     .10000E-03    8.3932       -.49323E-06** at limit **
   7  Prefactor     .10000E-03    69.631       -.12183E-05** at limit **
   8  Prefactor     20.010        13.872       -.70095E-06   -.12464E-03
   9  Prefactor     .10000E-03    4.5027       -.36391E-06** at limit **
  10  Prefactor     .10001E-03    196.83        .71249E-05** at limit **
  11  norm          2.6061        6.5954       -.10972E-05   -.19033E-03
  12  Prefactor     20.043        14.230       -.54935E-06   -.35432E-04
  13  Prefactor     16.460        6.4953       -.76540E-07    .10770E-03
  14  Prefactor     .10000E-03    21.757       -.35560E-06** at limit **
  15  Prefactor     5.3734        6.1473       -.29176E-06   -.71661E-04
  16  Prefactor     .10000E-03    15.664        .21818E-06** at limit **
  17  Prefactor     9.2865        35.951       -.17640E-05    .28306E-05
  18  Prefactor     32.315        36.414       -.82275E-06   -.60231E-05
  19  Prefactor     .10000E-03    10.727       -.22876E-06** at limit **
  20  Prefactor     .10000E-03    81.135       -.53002E-06** at limit **
  21  Prefactor     1.2587        5.6639       -.24138E-05   -.35501E-03
  22  Prefactor     26.492        36.263       -.43578E-06   -.59420E-05
  23  Prefactor     55.835        65.662        .52481E-06    .46309E-04
  24  Prefactor     .10000E-03    7.5966       -.11908E-06** at limit **
  25  norm          .10000E-03    81.299       -.92729E-07** at limit **
  26  norm          .10000E-03    2.7401       -.25947E-07** at limit **
  27  norm          .10000E-03    2.9709       -.23559E-07** at limit **
  28  Prefactor     6.7620        6.7439       -.11120E-06    .46796E-04
  29  Prefactor     12.520        106.31       -.74781E-05   -.10052E-03
  30  norm          12.669        11.110       -.31129E-06   -.69457E-03
  31  Prefactor     .10000E-03    14.980        .16323E-06** at limit **
  32  norm          .10000E-03    .41957       -.89125E-08** at limit **
  33  Normalizat    1.2034        .26869        .34271E-05    .54047E-03
  34  Prefactor     .98140        .22940       -.73789E-07   -.52379E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010008
  Prefactor  = 0.0001
  Prefactor  = 2.61835
  norm       = 3.57707
  Prefactor  = 14.2067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0095
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 2.60613
  Prefactor  = 20.0426
  Prefactor  = 16.4602
  Prefactor  = 0.0001
  Prefactor  = 5.37342
  Prefactor  = 0.0001
  Prefactor  = 9.28651
  Prefactor  = 32.3146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.25867
  Prefactor  = 26.4924
  Prefactor  = 55.835
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.76201
  Prefactor  = 12.5204
  norm       = 12.6689
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.20341
  Prefactor  = 0.981402
 **********
 **   18 **HESSE 
 **********

 FCN=   4930.662     FROM HESSE     STATUS=OK           730 CALLS     5609 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    54.205        .41283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6183        5.0019        .20810E-03   -1.5384    
   4  norm          3.5771        4.6881        .16743E-03   -1.5330    
   5  Prefactor     14.207        14.149        .10625E-03   -1.4954    
   6  Prefactor     .10000E-03    8.4482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    69.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.010        13.928        .89554E-04   -1.4813    
   9  Prefactor     .10000E-03    4.6405        .29090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    197.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6061        6.5785        .25261E-03   -1.5385    
  12  Prefactor     20.043        14.310        .89484E-04   -1.4812    
  13  Prefactor     16.460        6.5064        .98730E-04   -1.4896    
  14  Prefactor     .10000E-03    21.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.3734        6.1444        .17340E-03   -1.5244    
  16  Prefactor     .10000E-03    15.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2865        36.115        .13117E-03   -1.5098    
  18  Prefactor     32.315        36.641        .70527E-04   -1.4570    
  19  Prefactor     .10000E-03    10.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    81.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2587        5.6637        .32598E-03   -1.5484    
  22  Prefactor     26.492        36.266        .77832E-04   -1.4678    
  23  Prefactor     55.835        65.640        .53692E-04   -1.4212    
  24  Prefactor     .10000E-03    7.6203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    84.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.7438        .11351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.9721        .11815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.7620        6.7318        .15434E-03   -1.5188    
  29  Prefactor     12.520        105.51        .11231E-03   -1.5000    
  30  norm          12.669        10.937        .56301E-03   -1.4996    
  31  Prefactor     .10000E-03    15.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    .42300        .44389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2034        .30428        .27176E-03   -.86498    
  34  Prefactor     .98140        .24919        .26565E-03   -.93352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63815e-09
Minuit parameter uncertainties:
  1  0.00417127
  2  2.37881e-05
  3  5.00269
  4  4.68858
  5  14.1519
  6  7.7051e-05
  7  0.000368343
  8  13.9303
  9  3.82369e-05
  10  0.0032591
  11  6.58037
  12  14.3122
  13  6.50671
  14  4.72547e-05
  15  6.14512
  16  1.49243e-05
  17  36.2003
  18  36.6664
  19  5.08134e-05
  20  0.000211622
  21  5.34057
  22  36.296
  23  65.7247
  24  1.11672e-05
  25  0.000568458
  26  3.08882e-06
  27  8.00138e-06
  28  6.73254
  29  72.8655
  30  10.9387
  31  2.25497e-05
  32  1.09723e-07
  33  0.304726
  34  0.249482
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.646e+01  6.507e+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.814e-01  2.495e-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:  1.203e+00  3.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.53
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 5.97e-08
Energy Flux (Fixed Index): 4.78e-05 +/- 1.89e-05

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) = 4929.34137275
delta logL = 1.3209794861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4929.32674441
delta logL = 1.3356078297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.984       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7170       1.0000          .0000       10.000    
     3 'Normalizat'    1.3123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92523       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=   4929.327     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      207 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.984        7.3918        .25867E-02    .55044E-02
   2  Index         1.7170        .31913        .13630        .12128E-04
   3  Normalizat    1.3123        .22726        .59313E-01   -.40947E-05
   4  Prefactor     .92519        .20133        .45326E-01    .14071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9842
  Index      = 1.71698
  Normalizat = 1.31228
  Prefactor  = 0.92519
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.327     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.984        9.2015        .10347E-03   -1.4934    
   2  Index         1.7170        .42596        .56069E-02   -.71631    
   3  Normalizat    1.3123        .26805        .26232E-03   -.83200    
   4  Prefactor     .92519        .23586        .27277E-03   -.95266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84015e-08
Minuit parameter uncertainties:
  1  9.20233
  2  0.426873
  3  0.268337
  4  0.236119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338208': 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) = 4929.32674439
delta logL = 1.33560784667

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.498e+01  9.202e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  1.717e+00  4.269e-01  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.252e-01  2.361e-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:  1.312e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.98
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 1.72 +/- 0.43
Photon Flux (Free Index): 6.53e-08 +/- 5.35e-08
Energy Flux (Free Index): 1.01e-04 +/- 8.49e-05

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/338208/cmap_HighResolution_536889601_537148801_4FGL_J2231.0-4416_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='1.01e-04', photon_flux_error='5.97e-08', dlogl='1.34e+00', energy_flux='4.78e-05', photon_flux2='6.53e-08', job_status='DONE', time_completed='2021-09-28 13:43:27.486243', photon_index_error2='0.43', photon_index2='1.72', ts='21.53', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='8.49e-05', EG='1.20', time_epoch_completed='1632861807.49', return_code='0', job_id='338208', GAL2='0.93', EG2='1.31', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='5.35e-08', ts2='23.98', photon_index='2.43' WHERE bin_id='1148' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:43:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 338208: <4FGL_J2231.0-4416_daily_bin1148> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1148> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 13:30:40 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:30:42 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:30:42 2021
Terminated at Tue Sep 28 13:43:27 2021
Results reported at Tue Sep 28 13:43:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1148 337.758 -44.2791 536889601 537148801 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 :                                   726.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

