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


Performing analysis on: 4FGL_J0816.7-2420_daily_bin1282
RA = 124.192, Dec = -24.3427
tmin = 571622401, tmax = 571881601
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='381703', job_status='RUN', time_executed='2021-08-29 15:57:18.774033', time_epoch_executed='1630277838.77' WHERE source_name='4FGL J0816.7-2420' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381703/ft1_4FGL_J0816.7-2420_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381703/ft1_4FGL_J0816.7-2420_daily_bin1282.fits outfile=/scratch/kocevski/381703/ft1_filteredMKT_4FGL_J0816.7-2420_daily_bin1282.fits ra=124.192 dec=-24.3427 rad=12.0 tmin=571622401.0 tmax=571881601.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 6.08
user 2.55
sys 3.04

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.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/381703/ft1_filteredMKT_4FGL_J0816.7-2420_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/381703/ft1_filtered_4FGL_J0816.7-2420_daily_bin1282.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 4.46
user 0.35
sys 2.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381703/ft1_filtered_4FGL_J0816.7-2420_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/381703/ltcube_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.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/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.fits
.....................!
real 16.50
user 12.70
sys 3.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381703/ft1_filtered_4FGL_J0816.7-2420_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/381703/ltcube_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.fits outfile=/scratch/kocevski/381703/expmap_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.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/381703/ltcube_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.fits
.....................!
real 194.75
user 185.43
sys 8.62

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
Extended source Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Added 172 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0816.7-2420 @ 124.192 -24.3427

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/381703/ft1_filtered_4FGL_J0816.7-2420_daily_bin1282.fits scfile=/scratch/kocevski/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.fits outfile=/scratch/kocevski/381703/cmap_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.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=124.192 yref=-24.3427 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 3.70
user 0.39
sys 2.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381703/ft1_filtered_4FGL_J0816.7-2420_daily_bin1282.fits scfile=/scratch/kocevski/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.fits outfile=/scratch/kocevski/381703/cmap_HighResolution_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.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=124.192 yref=-24.3427 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 3.51
user 0.39
sys 2.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/381703/ft1_filtered_4FGL_J0816.7-2420_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/381703/Model_4FGL_J0816.7-2420_daily_bin1282.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
adding source Puppis A
adding source Vela X
Working on...
/scratch/kocevski/381703/ft1_filtered_4FGL_J0816.7-2420_daily_bin1282.fits.....................!
real 185.68
user 180.06
sys 4.88

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/381703/ft1_filtered_4FGL_J0816.7-2420_daily_bin1282.fits', '/scratch/kocevski/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.fits', expMap='/scratch/kocevski/381703/expmap_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.fits', expCube='/scratch/kocevski/381703/ltcube_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/381703/Model_4FGL_J0816.7-2420_daily_bin1282.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0816.7-2420'

4FGL J0816.7-2420
   Spectrum: LogParabola
283         norm:  6.471e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
284        alpha:  2.442e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/381703/ft1_filtered_4FGL_J0816.7-2420_daily_bin1282.fits
Spacecraft file(s): /scratch/kocevski/381703/ft2_4FGL_J0816.7-2420_daily_bin1282.fits
Exposure map: /scratch/kocevski/381703/expmap_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.fits
Exposure cube: /scratch/kocevski/381703/ltcube_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/381703/Model_4FGL_J0816.7-2420_daily_bin1282.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) = 13323.6405002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.574       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0671       1.0000         .10000E-03   10000.    
     3 'norm      '    10.454       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.023       1.0000         .10000E-03   10000.    
     6 'norm      '    5.2881       1.0000         .10000E-03   10000.    
     7 'norm      '    14.190       1.0000         .10000E-03   10000.    
     8 'norm      '    4.7161       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.202       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Normalizat'    1.2377       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .97084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13323.15     FROM MIGRAD    STATUS=CONVERGED    201 CALLS      840 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.578        16.190       -.14642E-05   -.13224E-04
   2  norm          1.0651        7.4451       -.17111E-06   -.10445E-03
   3  norm          10.444        29.394       -.18156E-04   -.49837E-05
   4  Prefactor     .10000E-03    10.838        .83059E-07** at limit **
   5  norm          10.014        36.966       -.21520E-04   -.83908E-05
   6  norm          5.2882        3.8119        .49197E-06    .71552E-04
   7  norm          14.179        15.954        .28459E-05   -.28107E-04
   8  norm          4.7156        10.035        .10756E-05   -.15389E-03
   9  Prefactor     14.230        55.835        .66514E-04    .87068E-08
  10  Prefactor     .10000E-03    2.6204       -.15860E-07** at limit **
  11  Normalizat    1.2377        .29358       -.28535E-05   -.17042E-04
  12  Prefactor     .97085        .49020E-01    .18933E-06   -.29585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5785
  norm       = 1.06511
  norm       = 10.4439
  Prefactor  = 0.0001
  norm       = 10.0137
  norm       = 5.28822
  norm       = 14.1788
  norm       = 4.71561
  Prefactor  = 14.2304
  Prefactor  = 0.0001
  Normalizat = 1.23774
  Prefactor  = 0.970846
 **********
 **   18 **HESSE 
 **********

 FCN=   13323.15     FROM HESSE     STATUS=OK           137 CALLS      977 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.578        16.247        .90528E-04   -1.4823    
   2  norm          1.0651        71.258        .60282E-02   -1.5502    
   3  norm          10.444        29.405        .12392E-03   -1.5062    
   4  Prefactor     .10000E-03    11.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.014        36.994        .12657E-03   -1.5075    
   6  norm          5.2882        3.8090        .17478E-03   -1.5248    
   7  norm          14.179        15.950        .10633E-03   -1.4955    
   8  norm          4.7156        10.056        .18529E-03   -1.5274    
   9  Prefactor     14.230        55.749        .10628E-03   -1.4953    
  10  Prefactor     .10000E-03    2.6264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Normalizat    1.2377        .30404        .66298E-03   -.85444    
  12  Prefactor     .97085        .51528E-01    .12881E-03   -.93708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44493e-10
Minuit parameter uncertainties:
  1  16.2502
  2  17.4447
  3  29.446
  4  1.96656e-05
  5  37.0787
  6  3.80922
  7  15.9552
  8  10.0594
  9  55.9547
  10  9.33586e-07
  11  0.304475
  12  0.0515307
Done.

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

Extracting fit parameters...

4FGL J0816.7-2420
   Spectrum: LogParabola
283         norm:  1.001e+01  3.708e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        alpha:  2.442e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  9.708e-01  5.153e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.238e+00  3.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 124.192 -24.343
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381703/likelihoodResults_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.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) = 13323.095882
delta logL = 0.0565972251788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13323.0873043
delta logL = 0.0651749672688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3171       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1339       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97231       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13323.09     FROM MIGRAD    STATUS=FAILED       105 CALLS      274 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2922        305.49        .74138E-03   -.97833E-05
   2  alpha         3.1369        3.4743        .35784E-01    .37705E-03
   3  Normalizat    1.2159        .29488        .66805E-03   -.23859E-04
   4  Prefactor     .97233        .50703E-01    .12872E-03   -.35153E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13323.09     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      354 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2922        305.49        .47585E-03   -1.5168    
   2  alpha         3.1369        3.4743        .35985E-02    .25761    
   3  Normalizat    1.2159        .29488        .39308E-03   -.86112    
   4  Prefactor     .97233        .50703E-01    .68110E-04   -.93658    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13323.09     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      383 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2922        26.771        .29655E-04   -.11807E-04
   2  alpha         3.1369        1.7392        .71568E-02   -.87368E-06
   3  Normalizat    1.2159        .29395        .26722E-04   -.23995E-04
   4  Prefactor     .97233        .50041E-01    .51487E-05   -.35329E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.2922
  alpha      = 3.13693
  Normalizat = 1.21592
  Prefactor  = 0.972333
 **********
 **   18 **HESSE 
 **********

 FCN=   13323.09     FROM HESSE     STATUS=OK            25 CALLS      408 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2922        24.932        .59311E-05   -1.5168    
   2  alpha         3.1369        1.6422        .28627E-03    .25761    
   3  Normalizat    1.2159        .29377        .53444E-05   -.86112    
   4  Prefactor     .97233        .49989E-01    .10297E-05   -.93658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82716e-12
Minuit parameter uncertainties:
  1  24.9678
  2  1.80546
  3  0.29417
  4  0.0499913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381703': 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) = 13323.0873011
delta logL = 0.0651780770186

Extracting fit parameters...

4FGL J0816.7-2420
   Spectrum: LogParabola
283         norm:  7.292e+00  2.497e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        alpha:  3.137e+00  1.805e+00  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  9.723e-01  4.999e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.216e+00  2.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 124.192 -24.343

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/381703/cmap_HighResolution_571622401_571881601_4FGL_J0816.7-2420_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-05', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-08-29 16:10:27.567395', job_id='381703', GAL2='0.97', fit_tolerance='1e-08', EG2='1.22', EG='1.24', time_epoch_completed='1630278627.57', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='6.52e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1282' AND source_name='4FGL J0816.7-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:10:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 381703: <4FGL_J0816.7-2420_daily_bin1282> in cluster <slac> Done

Job <4FGL_J0816.7-2420_daily_bin1282> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 15:55:41 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 15:55:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 15:55:43 2021
Terminated at Sun Aug 29 16:10:29 2021
Results reported at Sun Aug 29 16:10:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0816.7-2420_daily_bin1282 124.192 -24.3427 571622401 571881601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0816.7-2420 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   825.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            888 sec.

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

