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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin137
RA = 154.009, Dec = 5.2089
tmin = 274838401, tmax = 275097601
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='769571', job_status='RUN', time_executed='2021-09-01 15:44:21.629829', time_epoch_executed='1630536261.63' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769571/ft1_4FGL_J1016.0+0512_daily_bin137.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769571/ft2_4FGL_J1016.0+0512_daily_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769571/ft1_4FGL_J1016.0+0512_daily_bin137.fits outfile=/scratch/kocevski/769571/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin137.fits ra=154.009 dec=5.2089 rad=12.0 tmin=274838401.0 tmax=275097601.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 4.23
user 3.99
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769571/ft2_4FGL_J1016.0+0512_daily_bin137.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/769571/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin137.fits evtable="EVENTS" outfile="/scratch/kocevski/769571/ft1_filtered_4FGL_J1016.0+0512_daily_bin137.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769571/ft1_filtered_4FGL_J1016.0+0512_daily_bin137.fits" evtable="EVENTS" scfile=/scratch/kocevski/769571/ft2_4FGL_J1016.0+0512_daily_bin137.fits sctable="SC_DATA" outfile=/scratch/kocevski/769571/ltcube_274838401_275097601_4FGL_J1016.0+0512_daily_bin137.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/769571/ft2_4FGL_J1016.0+0512_daily_bin137.fits
.....................!
real 14.22
user 13.82
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769571/ft1_filtered_4FGL_J1016.0+0512_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/769571/ft2_4FGL_J1016.0+0512_daily_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/769571/ltcube_274838401_275097601_4FGL_J1016.0+0512_daily_bin137.fits outfile=/scratch/kocevski/769571/expmap_274838401_275097601_4FGL_J1016.0+0512_daily_bin137.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/769571/ltcube_274838401_275097601_4FGL_J1016.0+0512_daily_bin137.fits
.....................!
real 190.76
user 186.10
sys 4.05

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/769571/ft1_filtered_4FGL_J1016.0+0512_daily_bin137.fits scfile=/scratch/kocevski/769571/ft2_4FGL_J1016.0+0512_daily_bin137.fits outfile=/scratch/kocevski/769571/cmap_274838401_275097601_4FGL_J1016.0+0512_daily_bin137.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769571/ft1_filtered_4FGL_J1016.0+0512_daily_bin137.fits scfile=/scratch/kocevski/769571/ft2_4FGL_J1016.0+0512_daily_bin137.fits outfile=/scratch/kocevski/769571/cmap_HighResolution_274838401_275097601_4FGL_J1016.0+0512_daily_bin137.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85473       1.0000         .10000E-03   10000.    
     2 'norm      '    .56316       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3139       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.046       1.0000         .10000E-03   10000.    
     6 'norm      '    10.646       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7290       1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.432       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.169       1.0000         .10000E-03   10000.    
    11 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22028       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.318       1.0000         .10000E-03   10000.    
    15 'norm      '    .48310       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.329       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1763       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0439       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=   7293.528     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1739 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85457        .93542       -.91044E-07   -.42098E-03
   2  norm          .56309        .50390       -.58763E-07   -.11938E-02
   3  Prefactor     7.3139        8.8810       -.46845E-06   -.77745E-05
   4  Prefactor     .10000E-03    8.7341        .18750E-06** at limit **
   5  Prefactor     31.035        32.458       -.13413E-04    .71590E-05
   6  norm          10.647        11.799       -.65873E-06    .40496E-05
   7  Prefactor     2.7189        7.4529        .40825E-06   -.32405E-03
   8  Prefactor     66.437        50.175        .48057E-05    .39906E-04
   9  Prefactor     .10000E-03    45.183        .89456E-06** at limit **
  10  Prefactor     27.170        19.168        .10051E-05    .38880E-04
  11  norm          .10000E-03    .38462       -.78882E-07** at limit **
  12  Prefactor     .10000E-03    1.3873        .18658E-06** at limit **
  13  Prefactor     .20155        1.7408       -.84373E-06    .50135E-03
  14  Prefactor     11.324        9.5115       -.21986E-06    .21504E-03
  15  norm          .48404        .92398        .14123E-06   -.12827E-02
  16  Prefactor     24.314        16.912       -.84427E-06    .45204E-04
  17  Normalizat    1.1764        .19458        .17901E-05    .14818E-03
  18  Prefactor     1.0439        .15355       -.28135E-06    .26706E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.854569
  norm       = 0.563086
  Prefactor  = 7.31389
  Prefactor  = 0.0001
  Prefactor  = 31.0352
  norm       = 10.6466
  Prefactor  = 2.71885
  Prefactor  = 66.4367
  Prefactor  = 0.0001
  Prefactor  = 27.1696
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.20155
  Prefactor  = 11.324
  norm       = 0.484042
  Prefactor  = 24.3137
  Normalizat = 1.17643
  Prefactor  = 1.04389
 **********
 **   18 **HESSE 
 **********

 FCN=   7293.528     FROM HESSE     STATUS=OK           256 CALLS     1995 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85457        .91385        .83163E-04   -1.5523    
   2  norm          .56309        .47878        .54625E-03   -1.5558    
   3  Prefactor     7.3139        8.8773        .14831E-03   -1.5167    
   4  Prefactor     .10000E-03    8.7416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.035        32.559        .71910E-04   -1.4593    
   6  norm          10.647        11.787        .12279E-03   -1.5055    
   7  Prefactor     2.7189        7.3888        .24650E-03   -1.5378    
   8  Prefactor     66.437        50.342        .49241E-04   -1.4076    
   9  Prefactor     .10000E-03    45.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.170        19.154        .76857E-04   -1.4665    
  11  norm          .10000E-03    .55404        .10280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3929        .98243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .20155        17.528        .20161E-02   -1.5618    
  14  Prefactor     11.324        9.5466        .11908E-03   -1.5035    
  15  norm          .48404        .81535        .73680E-04   -1.5569    
  16  Prefactor     24.314        15.379        .81211E-04   -1.4721    
  17  Normalizat    1.1764        .22898        .27297E-03   -.87334    
  18  Prefactor     1.0439        .18040        .23969E-03   -.91281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59603e-09
Minuit parameter uncertainties:
  1  0.913863
  2  0.478783
  3  8.87889
  4  4.17886e-05
  5  32.5773
  6  11.7892
  7  7.39125
  8  50.3747
  9  0.000230405
  10  19.1583
  11  2.48273e-06
  12  4.99419e-06
  13  3.75939
  14  9.54793
  15  0.815371
  16  15.381
  17  0.229179
  18  0.180505
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.719e+00  7.391e+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

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.044e+00  1.805e-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.176e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 7.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769571/likelihoodResults_274838401_275097601_4FGL_J1016.0+0512_daily_bin137.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) = 7293.45773805
delta logL = 0.0700362995749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7293.43901257
delta logL = 0.0887617780436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2422       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7567       1.0000          .0000       10.000    
     3 'Normalizat'    1.1802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0416       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=   7293.439     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      245 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2429        8.4413        .19563E-03   -.12061E-02
   2  Index         1.7568        .99305        .16377E-01   -.23139E-03
   3  Normalizat    1.1802        .21381        .27258E-03    .16754E-03
   4  Prefactor     1.0415        .17896        .23990E-03    .20757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.24292
  Index      = 1.75676
  Normalizat = 1.18024
  Prefactor  = 1.04154
 **********
 **   18 **HESSE 
 **********

 FCN=   7293.439     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2429        8.4443        .78253E-05   -1.5296    
   2  Index         1.7568        .99417        .65508E-03   -.70581    
   3  Normalizat    1.1802        .21399        .10903E-04   -.87216    
   4  Prefactor     1.0415        .17912        .47980E-04   -.91357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53457e-09
Minuit parameter uncertainties:
  1  8.44668
  2  1.00584
  3  0.21415
  4  0.179218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769571': 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) = 7293.43901252
delta logL = 0.0887618324632

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  4.243e+00  8.447e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  1.757e+00  1.006e+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.042e+00  1.792e-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.180e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 154.009 5.209

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/769571/cmap_HighResolution_274838401_275097601_4FGL_J1016.0+0512_daily_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-09-01 15:54:00.461019', job_id='769571', GAL2='1.04', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630536840.46', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='8.88e-02', ts2='0.37', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='137' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:54:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 769571: <4FGL_J1016.0+0512_daily_bin137> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin137 154.009 5.2089 274838401 275097601 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 :                                   577.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             232.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            791 sec.

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

