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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin343
RA = 154.009, Dec = 5.2089
tmin = 328233601, tmax = 328492801
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='771242', job_status='RUN', time_executed='2021-09-01 15:50:26.827498', time_epoch_executed='1630536626.83' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771242

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771242/ft1_4FGL_J1016.0+0512_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771242/ft2_4FGL_J1016.0+0512_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771242/ft1_4FGL_J1016.0+0512_daily_bin343.fits outfile=/scratch/kocevski/771242/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin343.fits ra=154.009 dec=5.2089 rad=12.0 tmin=328233601.0 tmax=328492801.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.99
user 3.75
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771242/ft1_filtered_4FGL_J1016.0+0512_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/771242/ft2_4FGL_J1016.0+0512_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/771242/ltcube_328233601_328492801_4FGL_J1016.0+0512_daily_bin343.fits outfile=/scratch/kocevski/771242/expmap_328233601_328492801_4FGL_J1016.0+0512_daily_bin343.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/771242/ltcube_328233601_328492801_4FGL_J1016.0+0512_daily_bin343.fits
.....................!
real 191.27
user 186.20
sys 4.71

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/771242/ft1_filtered_4FGL_J1016.0+0512_daily_bin343.fits scfile=/scratch/kocevski/771242/ft2_4FGL_J1016.0+0512_daily_bin343.fits outfile=/scratch/kocevski/771242/cmap_328233601_328492801_4FGL_J1016.0+0512_daily_bin343.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771242/ft1_filtered_4FGL_J1016.0+0512_daily_bin343.fits scfile=/scratch/kocevski/771242/ft2_4FGL_J1016.0+0512_daily_bin343.fits outfile=/scratch/kocevski/771242/cmap_HighResolution_328233601_328492801_4FGL_J1016.0+0512_daily_bin343.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1340       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7901       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1059       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2511       1.0000         .10000E-03   10000.    
     6 'norm      '    16.893       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0149       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19970       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .32038E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12327E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2718       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9624       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.159       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .76140       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2050       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5394.093     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     1479 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1341        1.7017        .14807E-07    .21878E-04
   2  norm          3.7900        .99282        .58847E-07   -.70834E-04
   3  Prefactor     9.0645        15.418        .27497E-05    .66894E-03
   4  Prefactor     .10000E-03    15.552        .72095E-05** at limit **
   5  Prefactor     3.2523        1.0404       -.42792E-09   -.17186E-03
   6  norm          16.908        2.6200       -.54135E-06    .78803E-02
   7  Prefactor     6.0150        1.9855       -.23957E-06    .13101E-02
   8  Prefactor     .19953        .44850       -.42760E-07    .12868E-03
   9  Prefactor     .10000E-03    24.556       -.29555E-05** at limit **
  10  Prefactor     .10000E-03    5.8039        .21465E-05** at limit **
  11  norm          .10000E-03    .64585       -.14622E-05** at limit **
  12  Prefactor     .10012E-03    199.48        .19832E-04** at limit **
  13  Prefactor     .10000E-03    4.4873        .32376E-05** at limit **
  14  Prefactor     2.2733        7.5351        .40436E-06    .37801E-03
  15  norm          2.9621        .92024        .17396E-06    .12829E-03
  16  Prefactor     14.154        3.1323        .38278E-06    .10518E-02
  17  Normalizat    .76126        .24777       -.20234E-05   -.17796E-04
  18  Prefactor     1.2051        .21100       -.12183E-05   -.37181E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.13412
  norm       = 3.79003
  Prefactor  = 9.06455
  Prefactor  = 0.0001
  Prefactor  = 3.25232
  norm       = 16.9083
  Prefactor  = 6.015
  Prefactor  = 0.199531
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100121
  Prefactor  = 0.0001
  Prefactor  = 2.27331
  norm       = 2.96213
  Prefactor  = 14.1537
  Normalizat = 0.761259
  Prefactor  = 1.20511
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.093     FROM HESSE     STATUS=OK           306 CALLS     1785 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1341        1.7038        .44358E-02   -1.5255    
   2  norm          3.7900        .99410        .51838E-02   -1.5319    
   3  Prefactor     9.0645        16.070        .33204E-02   -1.5106    
   4  Prefactor     .10000E-03    15.555        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2523        31.718        .56155E-02   -1.5347    
   6  norm          16.908        16.358        .24361E-02   -1.4885    
   7  Prefactor     6.0150        9.3018        .40929E-02   -1.5217    
   8  Prefactor     .19953        45.670        .14231       -1.5619    
   9  Prefactor     .10000E-03    24.573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .62506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10012E-03    6.1510        .58883E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3152        .36569E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2733        7.8978        .68116E-02   -1.5406    
  15  norm          2.9621        1.0086        .58981E-02   -1.5364    
  16  Prefactor     14.154        13.748        .26611E-02   -1.4955    
  17  Normalizat    .76126        .21546        .70105E-01   -1.0152    
  18  Prefactor     1.2051        .17778        .49832E-01   -.86174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42919e-08
Minuit parameter uncertainties:
  1  1.70379
  2  0.994108
  3  16.0776
  4  2.84079e-05
  5  20.3269
  6  16.362
  7  9.30407
  8  6.04055
  9  0.000262146
  10  6.94509e-06
  11  8.29828e-07
  12  0.00172272
  13  5.51956e-06
  14  7.90143
  15  1.00857
  16  13.751
  17  0.2157
  18  0.177865
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.015e+00  9.304e+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.205e+00  1.779e-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:  7.613e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/771242/likelihoodResults_328233601_328492801_4FGL_J1016.0+0512_daily_bin343.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) = 5393.83313543
delta logL = 0.259389892973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5393.82306547
delta logL = 0.26945985609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5101       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0483       1.0000          .0000       10.000    
     3 'Normalizat'    .72685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2235       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=   5393.823     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      258 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5138        78.219        .64476E-02    .27360E-03
   2  Index         3.0476        3.8226        .11271        .11268E-03
   3  Normalizat    .72661        .71150E-01    .71603E-01   -.66749E-04
   4  Prefactor     1.2236        .56181E-01    .49494E-01   -.68490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51383
  Index      = 3.04764
  Normalizat = 0.726613
  Prefactor  = 1.22364
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.823     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5138        9.6306        .12072E-03   -1.5391    
   2  Index         3.0476        1.8834        .66595E-02   -.40114    
   3  Normalizat    .72661        .25094        .31690E-03   -1.0285    
   4  Prefactor     1.2236        .21500        .21879E-03   -.85607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87997e-08
Minuit parameter uncertainties:
  1  9.63652
  2  1.94031
  3  0.251334
  4  0.215152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771242': 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) = 5393.82306475
delta logL = 0.269460570653

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.514e+00  9.637e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  3.048e+00  1.940e+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.224e+00  2.152e-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:  7.266e-01  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 154.009 5.209
Photon Index (Free Index): 3.05 +/- 1.94
Photon Flux (Free Index): 4.49e-08 +/- 5.62e-08
Energy Flux (Free Index): 8.76e-06 +/- 9.96e-06

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/771242/cmap_HighResolution_328233601_328492801_4FGL_J1016.0+0512_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', comment='SUCCESS', energy_flux2='8.76e-06', dlogl='2.69e-01', photon_flux2='4.49e-08', job_status='DONE', time_completed='2021-09-01 15:58:55.901665', photon_index_error2='1.94', photon_index2='3.05', ts='0.67', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='9.83e-08', energy_flux_error2='9.96e-06', EG='0.76', time_epoch_completed='1630537135.9', return_code='0', job_id='771242', GAL2='1.22', EG2='0.73', return_code2='0', photon_flux_error2='5.62e-08', ts2='1.24', photon_index='2.22' WHERE bin_id='343' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:58:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 771242: <4FGL_J1016.0+0512_daily_bin343> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin343> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 15:45:40 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:46:27 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:46:27 2021
Terminated at Wed Sep  1 15:58:56 2021
Results reported at Wed Sep  1 15:58:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin343 154.009 5.2089 328233601 328492801 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 :                                   508.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            796 sec.

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

