/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 79 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 = 6705
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1016.0+0512_daily_bin59
RA = 154.009, Dec = 5.2089
tmin = 254620801, tmax = 254880001
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='769448', job_status='RUN', time_executed='2021-09-01 15:43:08.702789', time_epoch_executed='1630536188.7' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769448

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769448/ft1_4FGL_J1016.0+0512_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769448/ft2_4FGL_J1016.0+0512_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769448/ft1_4FGL_J1016.0+0512_daily_bin59.fits outfile=/scratch/kocevski/769448/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin59.fits ra=154.009 dec=5.2089 rad=12.0 tmin=254620801.0 tmax=254880001.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 1.39
user 1.19
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/769448/ft2_4FGL_J1016.0+0512_daily_bin59.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769448/ft2_4FGL_J1016.0+0512_daily_bin59.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/769448/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/769448/ft1_filtered_4FGL_J1016.0+0512_daily_bin59.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769448/ft1_filtered_4FGL_J1016.0+0512_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/769448/ft2_4FGL_J1016.0+0512_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/769448/ltcube_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.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/769448/ft2_4FGL_J1016.0+0512_daily_bin59.fits
.....................!
real 15.93
user 15.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769448/ft1_filtered_4FGL_J1016.0+0512_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/769448/ft2_4FGL_J1016.0+0512_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/769448/ltcube_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.fits outfile=/scratch/kocevski/769448/expmap_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.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/769448/ltcube_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.fits
.....................!
real 191.35
user 186.42
sys 4.46

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

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/769448/ft1_filtered_4FGL_J1016.0+0512_daily_bin59.fits scfile=/scratch/kocevski/769448/ft2_4FGL_J1016.0+0512_daily_bin59.fits outfile=/scratch/kocevski/769448/cmap_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.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=154.009 yref=5.2089 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769448/ft1_filtered_4FGL_J1016.0+0512_daily_bin59.fits scfile=/scratch/kocevski/769448/ft2_4FGL_J1016.0+0512_daily_bin59.fits outfile=/scratch/kocevski/769448/cmap_HighResolution_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.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=154.009 yref=5.2089 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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/769448/ft1_filtered_4FGL_J1016.0+0512_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/769448/ft2_4FGL_J1016.0+0512_daily_bin59.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769448/Model_4FGL_J1016.0+0512_daily_bin59.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/769448/ft1_filtered_4FGL_J1016.0+0512_daily_bin59.fits.....................!
real 51.88
user 50.53
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/769448/ft1_filtered_4FGL_J1016.0+0512_daily_bin59.fits', '/scratch/kocevski/769448/ft2_4FGL_J1016.0+0512_daily_bin59.fits', expMap='/scratch/kocevski/769448/expmap_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.fits', expCube='/scratch/kocevski/769448/ltcube_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/769448/Model_4FGL_J1016.0+0512_daily_bin59.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/769448/ft1_filtered_4FGL_J1016.0+0512_daily_bin59.fits
Spacecraft file(s): /scratch/kocevski/769448/ft2_4FGL_J1016.0+0512_daily_bin59.fits
Exposure map: /scratch/kocevski/769448/expmap_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.fits
Exposure cube: /scratch/kocevski/769448/ltcube_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/769448/Model_4FGL_J1016.0+0512_daily_bin59.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) = 5214.39915701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5425       1.0000         .10000E-03   10000.    
     2 'norm      '    .73063E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.865       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.758       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.458       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.678       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    100.03       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .82611       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9078       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9216       1.0000         .10000E-03   10000.    
    15 'norm      '    .94649       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.552       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .62138       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1720       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5214.371     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     2015 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5424        1.6653        .58589E-07   -.63387E-04
   2  norm          .73137E-01    .50798        .29556E-06   -.56136E-03
   3  Prefactor     11.869        10.429       -.12086E-07   -.19061E-04
   4  Prefactor     30.759        30.791       -.29038E-07   -.42270E-04
   5  Prefactor     .10000E-03    10.069       -.14424E-06** at limit **
   6  norm          11.464        12.603       -.10202E-06   -.28043E-04
   7  Prefactor     24.673        19.611       -.40009E-06    .89765E-05
   8  Prefactor     5.2199        157.09        .60592E-05   -.35016E-05
   9  Prefactor     100.14        95.273       -.22794E-07    .42917E-04
  10  Prefactor     .10000E-03    12.901        .25968E-05** at limit **
  11  norm          .82605        1.1449        .80357E-06   -.17212E-03
  12  Prefactor     .10000E-03    1.9228       -.54386E-07** at limit **
  13  Prefactor     1.9075        3.2515        .19160E-06   -.57478E-04
  14  Prefactor     1.9206        7.1762        .17995E-05   -.38736E-04
  15  norm          .94618        .61603       -.65930E-07   -.12560E-03
  16  Prefactor     16.559        11.229       -.32631E-07   -.16608E-04
  17  Normalizat    .62141        .20166       -.24252E-05   -.87656E-04
  18  Prefactor     1.1721        .16560        .27536E-06   -.19504E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.54243
  norm       = 0.0731365
  Prefactor  = 11.8693
  Prefactor  = 30.7585
  Prefactor  = 0.0001
  norm       = 11.4637
  Prefactor  = 24.6725
  Prefactor  = 5.21995
  Prefactor  = 100.137
  Prefactor  = 0.0001
  norm       = 0.826046
  Prefactor  = 0.0001
  Prefactor  = 1.90753
  Prefactor  = 1.9206
  norm       = 0.946185
  Prefactor  = 16.5589
  Normalizat = 0.621407
  Prefactor  = 1.17206
 **********
 **   18 **HESSE 
 **********

 FCN=   5214.371     FROM HESSE     STATUS=OK           254 CALLS     2269 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5424        1.6655        .53891E-04   -1.5282    
   2  norm          .73137E-01    1.1044        .93112E-03   -1.5654    
   3  Prefactor     11.869        10.423        .11630E-03   -1.5019    
   4  Prefactor     30.759        30.795        .72245E-04   -1.4598    
   5  Prefactor     .10000E-03    10.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.464        12.587        .11835E-03   -1.5031    
   7  Prefactor     24.673        19.660        .80637E-04   -1.4714    
   8  Prefactor     5.2199        155.12        .17259E-03   -1.5251    
   9  Prefactor     100.14        94.812        .20098E-03   -1.3703    
  10  Prefactor     .10000E-03    12.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .82605        1.1452        .25074E-03   -1.5526    
  12  Prefactor     .10000E-03    1.9295        .97765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9075        3.2159        .15814E-03   -1.5432    
  14  Prefactor     1.9206        7.1374        .29974E-03   -1.5431    
  15  norm          .94618        .61753        .40620E-04   -1.5513    
  16  Prefactor     16.559        11.361        .98445E-04   -1.4894    
  17  Normalizat    .62141        .22271        .31248E-03   -1.0708    
  18  Prefactor     1.1721        .18604        .20347E-03   -.87196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1422e-08
Minuit parameter uncertainties:
  1  1.66556
  2  0.568045
  3  10.4243
  4  30.8105
  5  4.25632e-06
  6  12.5899
  7  19.6649
  8  57.0736
  9  94.9559
  10  2.10609e-05
  11  1.14519
  12  7.48104e-07
  13  3.21621
  14  7.14059
  15  0.617536
  16  11.363
  17  0.22303
  18  0.186143
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.467e+01  1.966e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.172e+00  1.861e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  6.214e-01  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.32
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 8.01e-08 +/- 6.38e-08
Energy Flux (Fixed Index): 3.45e-05 +/- 2.75e-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): 102
logL (Free Index) = 5212.66383317
delta logL = 1.70703185122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5212.44297814
delta logL = 1.92788688646

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5212.443     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      329 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22960E-01    .14383        .91399E-03    .94611E-02
   2  Index         5.6014        1.8473        .53167E-01    .25736E-03
   3  Normalizat    .47759        .73034E-01    .79625E-01    .60020E-04
   4  Prefactor     1.2690        .63446E-01    .33175E-01    .69545E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0229602
  Index      = 5.60136
  Normalizat = 0.477586
  Prefactor  = 1.26904
 **********
 **   18 **HESSE 
 **********

 FCN=   5212.443     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      362 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22960E-01    .21271        .45053E-05   -1.5678    
   2  Index         5.6014        2.3250        .22630E-02    .12056    
   3  Normalizat    .47759        .19953        .35265E-03   -1.1347    
   4  Prefactor     1.2690        .17205        .19695E-03   -.84232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43001e-10
Minuit parameter uncertainties:
  1  0.139466
  2  2.4197
  3  0.199832
  4  0.172126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769448': 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): 102
logL (Free Index) = 5212.44297066
delta logL = 1.92789435966

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.296e-02  1.395e-01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  5.601e+00  2.420e+00  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.269e+00  1.721e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  4.776e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.19
Ra Dec: 154.009 5.209
Photon Index (Free Index): 5.60 +/- 2.42
Photon Flux (Free Index): 1.78e-07 +/- 7.70e-08
Energy Flux (Free Index): 2.26e-05 +/- 1.09e-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/769448/cmap_HighResolution_254620801_254880001_4FGL_J1016.0+0512_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.01e-08', energy_flux2='2.26e-05', photon_flux_error='6.38e-08', dlogl='1.93e+00', energy_flux='3.45e-05', photon_flux2='1.78e-07', job_status='DONE', time_completed='2021-09-01 15:51:12.653898', photon_index_error2='2.42', photon_index2='5.60', ts='4.32', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='0.62', time_epoch_completed='1630536672.65', return_code='0', job_id='769448', GAL2='1.27', EG2='0.48', return_code2='102', energy_flux_error='2.75e-05', photon_flux_error2='7.70e-08', ts2='9.19', photon_index='2.22' WHERE bin_id='59' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:51:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 769448: <4FGL_J1016.0+0512_daily_bin59> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin59> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 15:40:41 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:41:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 15:41:24 2021
Terminated at Wed Sep  1 15:51:13 2021
Results reported at Wed Sep  1 15:51:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin59 154.009 5.2089 254620801 254880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1016.0+0512 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   484.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            632 sec.

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

