/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 192 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1016.0+0512_daily_bin348
RA = 154.009, Dec = 5.2089
tmin = 329529601, tmax = 329788801
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='772441', job_status='RUN', time_executed='2021-09-01 15:54:08.891812', time_epoch_executed='1630536848.89' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772441

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772441/ft1_4FGL_J1016.0+0512_daily_bin348.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772441/ft2_4FGL_J1016.0+0512_daily_bin348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772441/ft1_4FGL_J1016.0+0512_daily_bin348.fits outfile=/scratch/kocevski/772441/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin348.fits ra=154.009 dec=5.2089 rad=12.0 tmin=329529601.0 tmax=329788801.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.58
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772441/ft1_filtered_4FGL_J1016.0+0512_daily_bin348.fits" evtable="EVENTS" scfile=/scratch/kocevski/772441/ft2_4FGL_J1016.0+0512_daily_bin348.fits sctable="SC_DATA" outfile=/scratch/kocevski/772441/ltcube_329529601_329788801_4FGL_J1016.0+0512_daily_bin348.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/772441/ft2_4FGL_J1016.0+0512_daily_bin348.fits
.....................!
real 17.69
user 17.08
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772441/ft1_filtered_4FGL_J1016.0+0512_daily_bin348.fits evtable="EVENTS" scfile=/scratch/kocevski/772441/ft2_4FGL_J1016.0+0512_daily_bin348.fits sctable="SC_DATA" expcube=/scratch/kocevski/772441/ltcube_329529601_329788801_4FGL_J1016.0+0512_daily_bin348.fits outfile=/scratch/kocevski/772441/expmap_329529601_329788801_4FGL_J1016.0+0512_daily_bin348.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/772441/ltcube_329529601_329788801_4FGL_J1016.0+0512_daily_bin348.fits
.....................!
real 192.88
user 187.44
sys 4.92

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/772441/ft1_filtered_4FGL_J1016.0+0512_daily_bin348.fits scfile=/scratch/kocevski/772441/ft2_4FGL_J1016.0+0512_daily_bin348.fits outfile=/scratch/kocevski/772441/cmap_329529601_329788801_4FGL_J1016.0+0512_daily_bin348.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772441/ft1_filtered_4FGL_J1016.0+0512_daily_bin348.fits scfile=/scratch/kocevski/772441/ft2_4FGL_J1016.0+0512_daily_bin348.fits outfile=/scratch/kocevski/772441/cmap_HighResolution_329529601_329788801_4FGL_J1016.0+0512_daily_bin348.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31556       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3118       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.343       1.0000         .10000E-03   10000.    
     6 'norm      '    7.1183       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.018       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .52252       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.055       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0692       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6686       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0089       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1760       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=   6792.011     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1562 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31599        1.0659        .25876E-07   -.13288E-03
   2  norm          1.3119        .70768       -.45354E-08   -.10095E-03
   3  Prefactor     .10000E-03    9.3817        .72814E-07** at limit **
   4  Prefactor     .10000E-03    11.629       -.22583E-07** at limit **
   5  Prefactor     33.348        28.025        .32110E-05    .14036E-04
   6  norm          7.1214        13.920       -.18395E-06   -.10924E-04
   7  Prefactor     17.018        11.295        .21875E-06   -.56438E-05
   8  Prefactor     .10000E-03    20.066       -.48143E-07** at limit **
   9  Prefactor     .10000E-03    30.424       -.87403E-07** at limit **
  10  Prefactor     .10000E-03    9.4009        .28941E-07** at limit **
  11  norm          .52322        1.1068       -.27854E-07   -.21903E-03
  12  Prefactor     .10000E-03    2.6034       -.52648E-07** at limit **
  13  Prefactor     2.5646        3.3985        .52926E-07   -.57445E-04
  14  Prefactor     28.055        11.072        .17605E-07   -.47002E-04
  15  norm          2.0693        .75494       -.20909E-08   -.21389E-04
  16  Prefactor     3.6687        2.6171        .78154E-07   -.54460E-03
  17  Normalizat    1.0088        .20158       -.47269E-06    .92063E-05
  18  Prefactor     1.1760        .16386        .12097E-06   -.22160E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.315985
  norm       = 1.31189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3485
  norm       = 7.12136
  Prefactor  = 17.0178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.523223
  Prefactor  = 0.0001
  Prefactor  = 2.56461
  Prefactor  = 28.055
  norm       = 2.06926
  Prefactor  = 3.66874
  Normalizat = 1.0088
  Prefactor  = 1.17603
 **********
 **   18 **HESSE 
 **********

 FCN=   6792.011     FROM HESSE     STATUS=OK           258 CALLS     1820 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31599        1.5120        .14624E-02   -1.5596    
   2  norm          1.3119        .69827        .48278E-04   -1.5479    
   3  Prefactor     .10000E-03    60.315        .47294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.348        28.027        .69396E-04   -1.4552    
   6  norm          7.1214        13.680        .15035E-03   -1.5174    
   7  Prefactor     17.018        11.240        .97087E-04   -1.4883    
   8  Prefactor     .10000E-03    20.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .52322        1.0738        .12045E-02   -1.5563    
  12  Prefactor     .10000E-03    2.6218        .12984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5646        3.3838        .16473E-03   -1.5388    
  14  Prefactor     28.055        11.052        .37819E-03   -1.4648    
  15  norm          2.0693        .78622        .41050E-04   -1.5420    
  16  Prefactor     3.6687        7.3129        .10544E-02   -1.5325    
  17  Normalizat    1.0088        .23696        .29985E-03   -.92736    
  18  Prefactor     1.1760        .19549        .23530E-03   -.87072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04519e-08
Minuit parameter uncertainties:
  1  1.38226
  2  0.698275
  3  0.000110511
  4  7.9447e-06
  5  28.0379
  6  13.6858
  7  11.2415
  8  1.46387e-07
  9  9.44809e-06
  10  2.31634e-06
  11  1.07389
  12  2.16685e-06
  13  3.38409
  14  11.0529
  15  0.786223
  16  7.31468
  17  0.237211
  18  0.195614
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.702e+01  1.124e+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.176e+00  1.956e-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.009e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.24
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.57e-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) = 6791.87527142
delta logL = 0.135531919856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6791.87508946
delta logL = 0.135713887356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.479       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9851       1.0000          .0000       10.000    
     3 'Normalizat'    1.0209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1692       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6791.875     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      307 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.470        15.497        .86425E-04    .86950E-04
   2  Index         1.9847        .44710        .63690E-02    .24540E-03
   3  Normalizat    1.0209        .23102        .29827E-03    .13341E-04
   4  Prefactor     1.1692        .19417        .23587E-03    .39476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4702
  Index      = 1.98472
  Normalizat = 1.0209
  Prefactor  = 1.16921
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.875     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.470        15.280        .34570E-05   -1.4781    
   2  Index         1.9847        .44076        .12738E-02   -.64733    
   3  Normalizat    1.0209        .23119        .11931E-04   -.92334    
   4  Prefactor     1.1692        .19433        .94346E-05   -.87284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43204e-11
Minuit parameter uncertainties:
  1  15.2832
  2  0.44166
  3  0.231422
  4  0.194451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772441': 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) = 6791.8750884
delta logL = 0.135714944161

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.147e+01  1.528e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  1.985e+00  4.417e-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:  1.169e+00  1.945e-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.021e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.50
Ra Dec: 154.009 5.209
Photon Index (Free Index): 1.98 +/- 0.44
Photon Flux (Free Index): 4.55e-08 +/- 3.54e-08
Energy Flux (Free Index): 3.27e-05 +/- 3.03e-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/772441/cmap_HighResolution_329529601_329788801_4FGL_J1016.0+0512_daily_bin348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='3.27e-05', photon_flux_error='3.65e-08', dlogl='1.36e-01', energy_flux='2.38e-05', photon_flux2='4.55e-08', job_status='DONE', time_completed='2021-09-01 16:02:46.707190', photon_index_error2='0.44', photon_index2='1.98', ts='5.24', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.03e-05', EG='1.01', time_epoch_completed='1630537366.71', return_code='0', job_id='772441', GAL2='1.17', EG2='1.02', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='3.54e-08', ts2='5.50', photon_index='2.22' WHERE bin_id='348' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:02:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 772441: <4FGL_J1016.0+0512_daily_bin348> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin348> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 15:50:25 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:50:47 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:50:47 2021
Terminated at Wed Sep  1 16:02:47 2021
Results reported at Wed Sep  1 16:02:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin348 154.009 5.2089 329529601 329788801 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 :                                   518.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             250.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            742 sec.

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

