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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin44
RA = 154.009, Dec = 5.2089
tmin = 250732801, tmax = 250992001
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='769424', job_status='RUN', time_executed='2021-09-01 15:44:51.415136', time_epoch_executed='1630536291.42' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='44'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769424/ft1_4FGL_J1016.0+0512_daily_bin44.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769424/ft2_4FGL_J1016.0+0512_daily_bin44.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769424/ft1_4FGL_J1016.0+0512_daily_bin44.fits outfile=/scratch/kocevski/769424/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin44.fits ra=154.009 dec=5.2089 rad=12.0 tmin=250732801.0 tmax=250992001.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.46
user 1.29
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769424/ft2_4FGL_J1016.0+0512_daily_bin44.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/769424/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin44.fits evtable="EVENTS" outfile="/scratch/kocevski/769424/ft1_filtered_4FGL_J1016.0+0512_daily_bin44.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769424/ft1_filtered_4FGL_J1016.0+0512_daily_bin44.fits" evtable="EVENTS" scfile=/scratch/kocevski/769424/ft2_4FGL_J1016.0+0512_daily_bin44.fits sctable="SC_DATA" outfile=/scratch/kocevski/769424/ltcube_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.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/769424/ft2_4FGL_J1016.0+0512_daily_bin44.fits
.....................!
real 19.05
user 18.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769424/ft1_filtered_4FGL_J1016.0+0512_daily_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/769424/ft2_4FGL_J1016.0+0512_daily_bin44.fits sctable="SC_DATA" expcube=/scratch/kocevski/769424/ltcube_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.fits outfile=/scratch/kocevski/769424/expmap_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.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/769424/ltcube_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.fits
.....................!
real 193.56
user 188.73
sys 4.17

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/769424/ft1_filtered_4FGL_J1016.0+0512_daily_bin44.fits scfile=/scratch/kocevski/769424/ft2_4FGL_J1016.0+0512_daily_bin44.fits outfile=/scratch/kocevski/769424/cmap_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769424/ft1_filtered_4FGL_J1016.0+0512_daily_bin44.fits scfile=/scratch/kocevski/769424/ft2_4FGL_J1016.0+0512_daily_bin44.fits outfile=/scratch/kocevski/769424/cmap_HighResolution_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/769424/ft1_filtered_4FGL_J1016.0+0512_daily_bin44.fits', '/scratch/kocevski/769424/ft2_4FGL_J1016.0+0512_daily_bin44.fits', expMap='/scratch/kocevski/769424/expmap_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.fits', expCube='/scratch/kocevski/769424/ltcube_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/769424/Model_4FGL_J1016.0+0512_daily_bin44.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/769424/ft1_filtered_4FGL_J1016.0+0512_daily_bin44.fits
Spacecraft file(s): /scratch/kocevski/769424/ft2_4FGL_J1016.0+0512_daily_bin44.fits
Exposure map: /scratch/kocevski/769424/expmap_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.fits
Exposure cube: /scratch/kocevski/769424/ltcube_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/769424/Model_4FGL_J1016.0+0512_daily_bin44.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) = 8719.10115876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43444       1.0000         .10000E-03   10000.    
     4 'Prefactor '    72.694       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.273       1.0000         .10000E-03   10000.    
     6 'norm      '    6.0974       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    75.617       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43865E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .81260       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .78170       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44427       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4483       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8739       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2743       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93030       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=   8719.073     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1830 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .34205       -.27952E-07** at limit **
   2  norm          .10000E-03    .33611        .85135E-07** at limit **
   3  Prefactor     .38698        6.7740       -.17145E-05    .12815E-03
   4  Prefactor     72.711        42.759       -.16617E-06   -.22627E-05
   5  Prefactor     19.248        30.223        .56192E-06    .76218E-04
   6  norm          6.1101        12.514        .19259E-07   -.11125E-03
   7  Prefactor     28.250        14.322       -.32772E-06   -.23870E-03
   8  Prefactor     .10000E-03    16.359        .17316E-06** at limit **
   9  Prefactor     75.563        62.535       -.74992E-06   -.30084E-04
  10  Prefactor     .10000E-03    38.133        .22395E-05** at limit **
  11  norm          .81289        .98731       -.32763E-06   -.12837E-02
  12  Prefactor     .77651        10.077        .56623E-05   -.28205E-04
  13  Prefactor     .46819        1.8394        .76516E-06    .13726E-04
  14  Prefactor     8.4383        8.7959       -.76372E-07    .57615E-04
  15  norm          2.8743        .64675        .34754E-08    .97851E-04
  16  Prefactor     .10000E-03    3.6260       -.80774E-08** at limit **
  17  Normalizat    1.2740        .17337       -.12753E-06    .84430E-04
  18  Prefactor     .93054        .13596        .18562E-06    .66398E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.386979
  Prefactor  = 72.7112
  Prefactor  = 19.2484
  norm       = 6.11011
  Prefactor  = 28.2503
  Prefactor  = 0.0001
  Prefactor  = 75.5627
  Prefactor  = 0.000100004
  norm       = 0.812893
  Prefactor  = 0.776508
  Prefactor  = 0.468188
  Prefactor  = 8.43825
  norm       = 2.8743
  Prefactor  = 0.0001
  Normalizat = 1.27398
  Prefactor  = 0.930537
 **********
 **   18 **HESSE 
 **********

 FCN=   8719.073     FROM HESSE     STATUS=OK           262 CALLS     2092 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .52099        .10569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .94482        .10272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .38698        60.681        .40679E-02   -1.5584    
   4  Prefactor     72.711        42.650        .47087E-04   -1.4000    
   5  Prefactor     19.248        30.138        .91232E-04   -1.4830    
   6  norm          6.1101        12.779        .16259E-03   -1.5214    
   7  Prefactor     28.250        14.339        .75379E-04   -1.4644    
   8  Prefactor     .10000E-03    16.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     75.563        63.092        .23088E-03   -1.3967    
  10  Prefactor     .10000E-03    39.442        .42442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .81289        .91278        .10086E-02   -1.5528    
  12  Prefactor     .77651        10.613        .27900E-02   -1.5532    
  13  Prefactor     .46819        5.4604        .20760E-02   -1.5571    
  14  Prefactor     8.4383        8.6445        .13792E-03   -1.5127    
  15  norm          2.8743        .64619        .34177E-04   -1.5369    
  16  Prefactor     .10000E-03    3.6427        .17350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2740        .20095        .25990E-03   -.84346    
  18  Prefactor     .93054        .15911        .24849E-03   -.95082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07333e-08
Minuit parameter uncertainties:
  1  1.46147e-06
  2  4.44045e-06
  3  9.70049
  4  42.6677
  5  30.1616
  6  12.7844
  7  14.3409
  8  2.05983e-06
  9  63.1483
  10  0.000842336
  11  0.912791
  12  5.74227
  13  3.19782
  14  8.64573
  15  0.646189
  16  2.66807e-06
  17  0.201077
  18  0.15919
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.825e+01  1.434e+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:  9.305e-01  1.592e-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:  1.274e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.69
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 9.18e-08 +/- 4.66e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 2.00e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8719.02547764
delta logL = 0.0478493075825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8719.02205329
delta logL = 0.0512736641631

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.992       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3296       1.0000          .0000       10.000    
     3 'Normalizat'    1.2655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93496       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=   8719.022     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      261 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.002        160.41        .20032E-02    .44266E-04
   2  Index         2.3300        2.4087        .11009        .19492E-03
   3  Normalizat    1.2655        .99488E-01    .58927E-01    .13285E-03
   4  Prefactor     .93489        .63744E-01    .45449E-01   -.43474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0019
  Index      = 2.33004
  Normalizat = 1.26545
  Prefactor  = 0.934886
 **********
 **   18 **HESSE 
 **********

 FCN=   8719.022     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.002        15.467        .80129E-04   -1.4708    
   2  Index         2.3300        .35662        .42907E-02   -.56331    
   3  Normalizat    1.2655        .19174        .26060E-03   -.84604    
   4  Prefactor     .93489        .15810        .24797E-03   -.94933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01584e-10
Minuit parameter uncertainties:
  1  15.4695
  2  0.357046
  3  0.191843
  4  0.158177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769424': 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) = 8719.02204936
delta logL = 0.0512775913285

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.500e+01  1.547e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.330e+00  3.570e-01  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:  9.349e-01  1.582e-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:  1.265e+00  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.98
Ra Dec: 154.009 5.209
Photon Index (Free Index): 2.33 +/- 0.36
Photon Flux (Free Index): 9.95e-08 +/- 4.62e-08
Energy Flux (Free Index): 3.60e-05 +/- 1.83e-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/769424/cmap_HighResolution_250732801_250992001_4FGL_J1016.0+0512_daily_bin44.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.18e-08', energy_flux2='3.60e-05', photon_flux_error='4.66e-08', dlogl='5.13e-02', energy_flux='3.95e-05', photon_flux2='9.95e-08', job_status='DONE', time_completed='2021-09-01 15:54:49.387013', photon_index_error2='0.36', photon_index2='2.33', ts='11.69', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.27', time_epoch_completed='1630536889.39', return_code='0', job_id='769424', GAL2='0.93', EG2='1.27', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='4.62e-08', ts2='11.98', photon_index='2.22' WHERE bin_id='44' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:54:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 769424: <4FGL_J1016.0+0512_daily_bin44> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin44> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 15:40:39 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:41:18 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:18 2021
Terminated at Wed Sep  1 15:54:50 2021
Results reported at Wed Sep  1 15:54:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin44 154.009 5.2089 250732801 250992001 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 :                                   596.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            851 sec.

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

