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


Performing analysis on: 4FGL_J0814.2-1013_daily_bin1302
RA = 123.551, Dec = -10.2172
tmin = 576806401, tmax = 577065601
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='335421', job_status='RUN', time_executed='2021-08-29 13:38:07.705075', time_epoch_executed='1630269487.71' WHERE source_name='4FGL J0814.2-1013' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335421/ft1_4FGL_J0814.2-1013_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335421/ft1_4FGL_J0814.2-1013_daily_bin1302.fits outfile=/scratch/kocevski/335421/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin1302.fits ra=123.551 dec=-10.2172 rad=12.0 tmin=576806401.0 tmax=577065601.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.06
user 2.85
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.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/335421/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin1302.fits evtable="EVENTS" outfile="/scratch/kocevski/335421/ft1_filtered_4FGL_J0814.2-1013_daily_bin1302.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.54
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335421/ft1_filtered_4FGL_J0814.2-1013_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/335421/ltcube_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.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/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.fits
.....................!
real 12.37
user 11.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335421/ft1_filtered_4FGL_J0814.2-1013_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/335421/ltcube_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.fits outfile=/scratch/kocevski/335421/expmap_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.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/335421/ltcube_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.fits
.....................!
real 190.73
user 185.05
sys 5.08

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

Setting source of interest to:
4FGL J0814.2-1013 @ 123.551 -10.2172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/335421/ft1_filtered_4FGL_J0814.2-1013_daily_bin1302.fits scfile=/scratch/kocevski/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.fits outfile=/scratch/kocevski/335421/cmap_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.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=123.551 yref=-10.2172 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335421/ft1_filtered_4FGL_J0814.2-1013_daily_bin1302.fits scfile=/scratch/kocevski/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.fits outfile=/scratch/kocevski/335421/cmap_HighResolution_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.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=123.551 yref=-10.2172 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335421/ft1_filtered_4FGL_J0814.2-1013_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335421/Model_4FGL_J0814.2-1013_daily_bin1302.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/335421/ft1_filtered_4FGL_J0814.2-1013_daily_bin1302.fits.....................!
real 119.56
user 117.97
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335421/ft1_filtered_4FGL_J0814.2-1013_daily_bin1302.fits', '/scratch/kocevski/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.fits', expMap='/scratch/kocevski/335421/expmap_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.fits', expCube='/scratch/kocevski/335421/ltcube_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335421/Model_4FGL_J0814.2-1013_daily_bin1302.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0814.2-1013'

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  3.187e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.113e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/335421/ft1_filtered_4FGL_J0814.2-1013_daily_bin1302.fits
Spacecraft file(s): /scratch/kocevski/335421/ft2_4FGL_J0814.2-1013_daily_bin1302.fits
Exposure map: /scratch/kocevski/335421/expmap_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.fits
Exposure cube: /scratch/kocevski/335421/ltcube_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335421/Model_4FGL_J0814.2-1013_daily_bin1302.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) = 9588.53461734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3545       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.033       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11078E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0150       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .21692       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2485       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3327       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7268       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45252       1.0000         .10000E-03   10000.    
    17 'norm      '    34.579       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0606       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92309       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9587.833     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     1947 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3549        1.3314        .20002E-07   -.59179E-04
   2  Prefactor     13.032        15.276       -.83099E-06   -.19147E-03
   3  Prefactor     .10000E-03    15.380       -.59640E-07** at limit **
   4  norm          .10000E-03    6.7743        .81033E-07** at limit **
   5  norm          .10000E-03    19.390        .21416E-06** at limit **
   6  norm          2.0146        3.1972        .42615E-06   -.17412E-03
   7  Prefactor     .10000E-03    1.9821        .65443E-08** at limit **
   8  norm          .10000E-03    6.4527        .10725E-08** at limit **
   9  norm          3.1228        2.1129       -.11725E-06   -.28429E-03
  10  Prefactor     .10000E-03    1.6959       -.48151E-07** at limit **
  11  norm          .21615        .73104        .78699E-06   -.36204E-03
  12  Prefactor     6.2625        8.0721       -.82368E-06   -.33234E-03
  13  Prefactor     1.3321        1.9798        .58281E-07   -.24401E-04
  14  norm          3.7274        27.451        .17160E-05    .21750E-04
  15  norm          .10000E-03    2.7236        .11936E-07** at limit **
  16  Prefactor     .22313        18.328       -.79218E-08    .12651E-04
  17  norm          34.588        12.760        .39796E-07    .89836E-04
  18  norm          2.6104        3.3733        .23582E-06   -.83999E-04
  19  Prefactor     .10000E-03    8.6760       -.79553E-07** at limit **
  20  Normalizat    1.0610        .17837       -.60135E-06   -.71372E-04
  21  Prefactor     .92295        .73910E-01   -.19530E-07   -.16559E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.35487
  Prefactor  = 13.0319
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.01456
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.12278
  Prefactor  = 0.0001
  norm       = 0.216147
  Prefactor  = 6.2625
  Prefactor  = 1.33206
  norm       = 3.72735
  norm       = 0.0001
  Prefactor  = 0.223134
  norm       = 34.5881
  norm       = 2.61044
  Prefactor  = 0.0001
  Normalizat = 1.06099
  Prefactor  = 0.922951
 **********
 **   18 **HESSE 
 **********

 FCN=   9587.833     FROM HESSE     STATUS=OK           327 CALLS     2274 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3549        1.3378        .67847E-04   -1.5342    
   2  Prefactor     13.032        15.635        .11095E-03   -1.4986    
   3  Prefactor     .10000E-03    15.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.7920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    20.177        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0146        3.2049        .21227E-03   -1.5424    
   7  Prefactor     .10000E-03    1.9857        .13461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.5319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1228        2.1076        .11152E-03   -1.5355    
  10  Prefactor     .10000E-03    1.7003        .12450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .21615        .74426        .14744E-03   -1.5615    
  12  Prefactor     6.2625        8.3571        .16059E-03   -1.5207    
  13  Prefactor     1.3321        1.9464        .16371E-03   -1.5477    
  14  norm          3.7274        27.914        .20917E-03   -1.5322    
  15  norm          .10000E-03    2.7322        .15781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22313        22.751        .11876       -1.5614    
  17  norm          34.588        12.774        .68148E-04   -1.4531    
  18  norm          2.6104        3.3623        .19267E-03   -1.5385    
  19  Prefactor     .10000E-03    8.6904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0610        .19686        .36792E-03   -.91014    
  21  Prefactor     .92295        .81846E-01    .16276E-03   -.95344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.431e-10
Minuit parameter uncertainties:
  1  1.33777
  2  15.6402
  3  6.28377e-06
  4  9.49337e-06
  5  1.07932e-05
  6  3.20521
  7  3.61339e-07
  8  9.46084e-07
  9  2.1076
  10  4.90071e-07
  11  0.744292
  12  8.35866
  13  1.94646
  14  20.4134
  15  2.08048e-07
  16  4.50703
  17  12.7753
  18  3.36257
  19  1.23177e-05
  20  0.196996
  21  0.081857
Done.

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

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  6.263e+00  8.359e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.113e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  9.230e-01  8.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  1.061e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 123.551 -10.217
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.57e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.83e-05

TS (Fixed Index): 1.01
Ra Dec: 123.551 -10.217
Photon Flux Upper Limit: 9.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335421/likelihoodResults_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.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) = 9587.76749358
delta logL = 0.0651046527255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9587.75097125
delta logL = 0.0816269870811

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9587.751     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      211 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8566        358.44        .35750E-02    .73078E-04
   2  Index         1.8510        5.6168        .20467        .55026E-04
   3  Normalizat    1.0670        .10283        .82894E-01    .19248E-04
   4  Prefactor     .92181        .32302E-01    .45283E-01   -.22586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85659
  Index      = 1.85099
  Normalizat = 1.06699
  Prefactor  = 0.921811
 **********
 **   18 **HESSE 
 **********

 FCN=   9587.751     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8566        9.3871        .14300E-03   -1.5147    
   2  Index         1.8510        .62879        .11244E-01   -.68130    
   3  Normalizat    1.0670        .18651        .36700E-03   -.90819    
   4  Prefactor     .92181        .77901E-01    .16284E-03   -.95383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91792e-12
Minuit parameter uncertainties:
  1  9.38884
  2  0.631567
  3  0.186627
  4  0.0779105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335421': 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) = 9587.75097086
delta logL = 0.0816273707642

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  7.857e+00  9.389e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  1.851e+00  6.316e-01  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  9.218e-01  7.791e-02  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  1.067e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 123.551 -10.217
Photon Index (Free Index): 1.85 +/- 0.63
Photon Flux (Free Index): 1.97e-08 +/- 2.80e-08
Energy Flux (Free Index): 2.03e-05 +/- 3.11e-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/335421/cmap_HighResolution_576806401_577065601_4FGL_J0814.2-1013_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', comment='SUCCESS', photon_flux='2.57e-08', energy_flux2='2.03e-05', photon_flux_error='3.43e-08', dlogl='8.16e-02', energy_flux='1.37e-05', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-08-29 13:51:00.621248', photon_index_error2='0.63', photon_index2='1.85', ts='1.01', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.80e-08', energy_flux_error2='3.11e-05', EG='1.06', time_epoch_completed='1630270260.62', return_code='0', job_id='335421', GAL2='0.92', EG2='1.07', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='2.80e-08', ts2='1.18', photon_index='2.11' WHERE bin_id='1302' AND source_name='4FGL J0814.2-1013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:51:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 335421: <4FGL_J0814.2-1013_daily_bin1302> in cluster <slac> Done

Job <4FGL_J0814.2-1013_daily_bin1302> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 13:35:57 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:36:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 13:36:00 2021
Terminated at Sun Aug 29 13:51:01 2021
Results reported at Sun Aug 29 13:51:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0814.2-1013_daily_bin1302 123.551 -10.2172 576806401 577065601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0814.2-1013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   762.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

