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


Performing analysis on: 4FGL_J0816.4-1311_daily_bin1473
RA = 124.112, Dec = -13.1973
tmin = 621129601, tmax = 621388801
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='372992', job_status='RUN', time_executed='2021-08-29 15:32:04.621899', time_epoch_executed='1630276324.62' WHERE source_name='4FGL J0816.4-1311' and cadence='daily' and bin_id='1473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372992/ft1_4FGL_J0816.4-1311_daily_bin1473.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372992/ft1_4FGL_J0816.4-1311_daily_bin1473.fits outfile=/scratch/kocevski/372992/ft1_filteredMKT_4FGL_J0816.4-1311_daily_bin1473.fits ra=124.112 dec=-13.1973 rad=12.0 tmin=621129601.0 tmax=621388801.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.10
user 2.90
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.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/372992/ft1_filteredMKT_4FGL_J0816.4-1311_daily_bin1473.fits evtable="EVENTS" outfile="/scratch/kocevski/372992/ft1_filtered_4FGL_J0816.4-1311_daily_bin1473.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372992/ft1_filtered_4FGL_J0816.4-1311_daily_bin1473.fits" evtable="EVENTS" scfile=/scratch/kocevski/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.fits sctable="SC_DATA" outfile=/scratch/kocevski/372992/ltcube_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.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/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.fits
.....................!
real 12.86
user 12.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372992/ft1_filtered_4FGL_J0816.4-1311_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.fits sctable="SC_DATA" expcube=/scratch/kocevski/372992/ltcube_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.fits outfile=/scratch/kocevski/372992/expmap_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.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/372992/ltcube_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.fits
.....................!
real 192.02
user 186.13
sys 5.24

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J0816.4-1311 @ 124.112 -13.1973

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/372992/ft1_filtered_4FGL_J0816.4-1311_daily_bin1473.fits scfile=/scratch/kocevski/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.fits outfile=/scratch/kocevski/372992/cmap_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.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.112 yref=-13.1973 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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372992/ft1_filtered_4FGL_J0816.4-1311_daily_bin1473.fits scfile=/scratch/kocevski/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.fits outfile=/scratch/kocevski/372992/cmap_HighResolution_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.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.112 yref=-13.1973 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372992/ft1_filtered_4FGL_J0816.4-1311_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372992/Model_4FGL_J0816.4-1311_daily_bin1473.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/372992/ft1_filtered_4FGL_J0816.4-1311_daily_bin1473.fits.....................!
real 140.00
user 138.50
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/372992/ft1_filtered_4FGL_J0816.4-1311_daily_bin1473.fits', '/scratch/kocevski/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.fits', expMap='/scratch/kocevski/372992/expmap_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.fits', expCube='/scratch/kocevski/372992/ltcube_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/372992/Model_4FGL_J0816.4-1311_daily_bin1473.xml', optimizer='MINUIT')

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

4FGL J0816.4-1311
   Spectrum: PowerLaw
287    Prefactor:  2.040e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.850e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  2.915e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/372992/ft1_filtered_4FGL_J0816.4-1311_daily_bin1473.fits
Spacecraft file(s): /scratch/kocevski/372992/ft2_4FGL_J0816.4-1311_daily_bin1473.fits
Exposure map: /scratch/kocevski/372992/expmap_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.fits
Exposure cube: /scratch/kocevski/372992/ltcube_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/372992/Model_4FGL_J0816.4-1311_daily_bin1473.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) = 11038.9653848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8857       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .24647E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0996       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.060       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4294       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7115       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3449       1.0000         .10000E-03   10000.    
    12 'norm      '    8.1738       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9455       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2760       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.314       1.0000         .10000E-03   10000.    
    17 'norm      '    9.0384       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9006       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.208       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.589       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0585       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97963       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11038.94     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2093 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8855        1.4087        .28628E-07   -.10443E-03
   2  norm          .10000E-03    4.6739       -.21899E-07** at limit **
   3  norm          .10021E-03    7.1653        .30887E-05** at limit **
   4  norm          .10000E-03    2.0641        .53248E-06** at limit **
   5  norm          .10000E-03    18.738        .52102E-06** at limit **
   6  Prefactor     6.1001        7.7952        .80217E-07   -.13743E-05
   7  norm          .10000E-03    1.5136        .38632E-08** at limit **
   8  Prefactor     12.062        7.8357        .69903E-08   -.11763E-03
   9  norm          2.4297        1.3603        .18650E-07   -.50069E-04
  10  Prefactor     5.7108        9.4195        .71860E-06    .11194E-03
  11  Prefactor     2.3451        3.5000        .11245E-06    .20366E-04
  12  norm          8.1729        14.439        .13129E-06    .47242E-05
  13  norm          .10000E-03    6.2715        .10692E-06** at limit **
  14  norm          5.9455        3.2362       -.68368E-07   -.31109E-04
  15  norm          3.2760        5.9293        .21421E-05    .52969E-03
  16  Prefactor     10.247        32.312        .98780E-05    .14339E-03
  17  norm          9.0417        10.745       -.36184E-06   -.32353E-04
  18  norm          1.9012        2.7288       -.33970E-07   -.33136E-04
  19  Prefactor     12.208        8.6836       -.20617E-07    .11296E-04
  20  Prefactor     26.589        16.702       -.15281E-07   -.86898E-05
  21  Normalizat    1.0583        .21177       -.83281E-06   -.79100E-04
  22  Prefactor     .97971        .65542E-01   -.68268E-07   -.78899E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.88551
  norm       = 0.0001
  norm       = 0.000100207
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 6.10005
  norm       = 0.0001
  Prefactor  = 12.0623
  norm       = 2.42971
  Prefactor  = 5.71075
  Prefactor  = 2.34506
  norm       = 8.17287
  norm       = 0.0001
  norm       = 5.94548
  norm       = 3.27598
  Prefactor  = 10.2466
  norm       = 9.04171
  norm       = 1.90124
  Prefactor  = 12.2084
  Prefactor  = 26.5895
  Normalizat = 1.05833
  Prefactor  = 0.979708
 **********
 **   18 **HESSE 
 **********

 FCN=   11038.94     FROM HESSE     STATUS=OK           354 CALLS     2447 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8855        1.4103        .64668E-04   -1.5266    
   2  norm          .10000E-03    4.6775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10021E-03    26.538        .43575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.1918        .28674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    18.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1001        7.7905        .16256E-03   -1.5214    
   7  norm          .10000E-03    1.5432        .12593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.062        7.8117        .11535E-03   -1.5013    
   9  norm          2.4297        1.3505        .85445E-04   -1.5396    
  10  Prefactor     5.7108        9.4136        .84036E-03   -1.5230    
  11  Prefactor     2.3451        3.4818        .23182E-03   -1.5402    
  12  norm          8.1729        14.430        .14023E-03   -1.5136    
  13  norm          .10000E-03    6.2726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9455        3.2354        .13478E-03   -1.5220    
  15  norm          3.2760        6.0399        .11186E-02   -1.5346    
  16  Prefactor     10.247        32.744        .12476E-03   -1.5068    
  17  norm          9.0417        10.717        .13332E-03   -1.5106    
  18  norm          1.9012        2.6992        .19639E-03   -1.5432    
  19  Prefactor     12.208        8.6822        .11465E-03   -1.5009    
  20  Prefactor     26.589        16.679        .77690E-04   -1.4676    
  21  Normalizat    1.0583        .22550        .44504E-03   -.91101    
  22  Prefactor     .97971        .69273E-01    .15436E-03   -.93409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55971e-09
Minuit parameter uncertainties:
  1  1.4103
  2  5.2116e-07
  3  0.00468619
  4  0.000234696
  5  3.2982e-05
  6  7.79176
  7  4.5869e-07
  8  7.81232
  9  1.3505
  10  9.41601
  11  3.48208
  12  14.4365
  13  2.91608e-06
  14  3.23545
  15  6.04102
  16  32.801
  17  10.7194
  18  2.69934
  19  8.68306
  20  16.682
  21  0.225707
  22  0.0692796
Done.

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

Extracting fit parameters...

4FGL J0816.4-1311
   Spectrum: PowerLaw
287    Prefactor:  2.345e+00  3.482e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.850e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  2.915e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.797e-01  6.928e-02  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.058e+00  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 124.112 -13.197
Photon Flux Upper Limit: 7.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/372992/likelihoodResults_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.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) = 11038.4487161
delta logL = 0.486499354507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11038.4469272
delta logL = 0.488288258966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1416       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0160       1.0000          .0000       10.000    
     3 'Normalizat'    1.0644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97977       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+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.

 FCN=   11038.45     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      296 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1420        3.4612        .18497E-03   -.12170E-04
   2  Index         1.0160        .80482        .18232E-01   -.14708E-04
   3  Normalizat    1.0644        .20091        .44381E-03   -.28587E-04
   4  Prefactor     .97979        .67916E-01    .15435E-03    .31389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.142
  Index      = 1.01603
  Normalizat = 1.06435
  Prefactor  = 0.979793
 **********
 **   18 **HESSE 
 **********

 FCN=   11038.45     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1420        3.6868        .73987E-05   -1.5415    
   2  Index         1.0160        .85599        .72929E-03   -.92197    
   3  Normalizat    1.0644        .20096        .17753E-04   -.90905    
   4  Prefactor     .97979        .67934E-01    .30870E-04   -.93406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77413e-11
Minuit parameter uncertainties:
  1  3.68721
  2  0.867875
  3  0.201106
  4  0.0679402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372992': 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) = 11038.4469271
delta logL = 0.488288353439

Extracting fit parameters...

4FGL J0816.4-1311
   Spectrum: PowerLaw
287    Prefactor:  2.142e+00  3.687e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.016e+00  8.679e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  2.915e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.798e-01  6.794e-02  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.064e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 124.112 -13.197
Photon Index (Free Index): 1.02 +/- 0.87
Photon Flux (Free Index): 4.31e-09 +/- 7.37e-09
Energy Flux (Free Index): 5.99e-05 +/- 9.45e-05

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/372992/cmap_HighResolution_621129601_621388801_4FGL_J0816.4-1311_daily_bin1473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', comment='SUCCESS', energy_flux2='5.99e-05', dlogl='4.88e-01', photon_flux2='4.31e-09', job_status='DONE', time_completed='2021-08-29 15:47:02.462575', photon_index_error2='0.87', photon_index2='1.02', ts='0.71', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='7.21e-08', energy_flux_error2='9.45e-05', EG='1.06', time_epoch_completed='1630277222.46', return_code='0', job_id='372992', GAL2='0.98', EG2='1.06', return_code2='0', photon_flux_error2='7.37e-09', ts2='1.68', photon_index='1.85' WHERE bin_id='1473' AND source_name='4FGL J0816.4-1311' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 15:47:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 372992: <4FGL_J0816.4-1311_daily_bin1473> in cluster <slac> Done

Job <4FGL_J0816.4-1311_daily_bin1473> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 15:30:41 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 15:30:42 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:30:42 2021
Terminated at Sun Aug 29 15:47:04 2021
Results reported at Sun Aug 29 15:47:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0816.4-1311_daily_bin1473 124.112 -13.1973 621129601 621388801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0816.4-1311 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   893.19 sec.
    Max Memory :                                 1209 MB
    Average Memory :                             302.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

