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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin447
RA = 154.009, Dec = 5.2089
tmin = 355190401, tmax = 355449601
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='772594', job_status='RUN', time_executed='2021-09-01 15:55:08.244939', time_epoch_executed='1630536908.24' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772594

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772594/ft1_4FGL_J1016.0+0512_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772594/ft2_4FGL_J1016.0+0512_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772594/ft1_4FGL_J1016.0+0512_daily_bin447.fits outfile=/scratch/kocevski/772594/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin447.fits ra=154.009 dec=5.2089 rad=12.0 tmin=355190401.0 tmax=355449601.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.41
user 3.15
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772594/ft1_filtered_4FGL_J1016.0+0512_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/772594/ft2_4FGL_J1016.0+0512_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/772594/ltcube_355190401_355449601_4FGL_J1016.0+0512_daily_bin447.fits outfile=/scratch/kocevski/772594/expmap_355190401_355449601_4FGL_J1016.0+0512_daily_bin447.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/772594/ltcube_355190401_355449601_4FGL_J1016.0+0512_daily_bin447.fits
.....................!
real 193.43
user 187.35
sys 4.56

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/772594/ft1_filtered_4FGL_J1016.0+0512_daily_bin447.fits scfile=/scratch/kocevski/772594/ft2_4FGL_J1016.0+0512_daily_bin447.fits outfile=/scratch/kocevski/772594/cmap_355190401_355449601_4FGL_J1016.0+0512_daily_bin447.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.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772594/ft1_filtered_4FGL_J1016.0+0512_daily_bin447.fits scfile=/scratch/kocevski/772594/ft2_4FGL_J1016.0+0512_daily_bin447.fits outfile=/scratch/kocevski/772594/cmap_HighResolution_355190401_355449601_4FGL_J1016.0+0512_daily_bin447.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4076       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1304       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12493       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.799       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.700       1.0000         .10000E-03   10000.    
     6 'norm      '    .10580E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11801E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    155.92       1.0000         .10000E-03   10000.    
     9 'Prefactor '    94.663       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2307       1.0000         .10000E-03   10000.    
    11 'norm      '    .86352       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4774       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.685       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6476       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1787       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1932       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .87054       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=   5457.053     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     1779 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4073        1.5515        .24190E-06   -.44903E-03
   2  norm          1.1303        .65348        .95925E-07   -.30110E-03
   3  Prefactor     .10218E-03    15.238        .36909E-05** at limit **
   4  Prefactor     11.796        29.060        .29667E-07   -.37343E-04
   5  Prefactor     35.700        43.567        .74120E-06   -.53136E-04
   6  norm          .10000E-03    12.235        .14928E-05** at limit **
   7  Prefactor     .10000E-03    7.6035        .27776E-05** at limit **
   8  Prefactor     156.02        75.827        .12203E-05   -.15179E-03
   9  Prefactor     94.770        83.069       -.11178E-06   -.14782E-03
  10  Prefactor     5.2250        25.658       -.17785E-05   -.14813E-03
  11  norm          .86248        1.1608        .39082E-06    .91471E-03
  12  Prefactor     .10000E-03    7.9741       -.17326E-06** at limit **
  13  Prefactor     4.4768        3.1316        .24012E-06   -.16719E-03
  14  Prefactor     20.679        11.323        .67799E-07   -.27289E-03
  15  norm          1.6477        .90843        .24235E-07   -.33261E-04
  16  Prefactor     2.1740        21.112        .13229E-05    .61733E-05
  17  Normalizat    1.1934        .24832       -.97322E-05   -.45420E-03
  18  Prefactor     .87068        .19043        .48072E-05   -.82908E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.40728
  norm       = 1.13026
  Prefactor  = 0.000102183
  Prefactor  = 11.7965
  Prefactor  = 35.7005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 156.019
  Prefactor  = 94.77
  Prefactor  = 5.22496
  norm       = 0.86248
  Prefactor  = 0.0001
  Prefactor  = 4.47676
  Prefactor  = 20.6794
  norm       = 1.64766
  Prefactor  = 2.17397
  Normalizat = 1.19338
  Prefactor  = 0.870682
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.053     FROM HESSE     STATUS=OK           256 CALLS     2035 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4073        1.5464        .69712E-04   -1.5398    
   2  norm          1.1303        .64599        .43499E-04   -1.5495    
   3  Prefactor     .10218E-03    20.937        .75640E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.796        29.027        .11662E-03   -1.5021    
   5  Prefactor     35.700        43.554        .67073E-04   -1.4512    
   6  norm          .10000E-03    12.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     156.02        76.494        .16143E-03   -1.3203    
   9  Prefactor     94.770        83.117        .20654E-03   -1.3758    
  10  Prefactor     5.2250        25.636        .17576E-03   -1.5251    
  11  norm          .86248        1.0543        .90307E-03   -1.5522    
  12  Prefactor     .10000E-03    8.1354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4768        3.1289        .10411E-03   -1.5285    
  14  Prefactor     20.679        11.295        .88067E-04   -1.4798    
  15  norm          1.6477        .93221        .41085E-04   -1.5451    
  16  Prefactor     2.1740        22.399        .27892E-03   -1.5413    
  17  Normalizat    1.1934        .25862        .26367E-03   -.86808    
  18  Prefactor     .87068        .20393        .25239E-03   -.97173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96183e-09
Minuit parameter uncertainties:
  1  1.54638
  2  0.645993
  3  0.0135254
  4  29.0614
  5  43.5925
  6  3.59467e-05
  7  8.67801e-05
  8  76.543
  9  83.2197
  10  23.163
  11  1.05435
  12  5.77747e-05
  13  3.12904
  14  11.2966
  15  0.932215
  16  13.9626
  17  0.258901
  18  0.204109
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  8.678e-05  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:  8.707e-01  2.041e-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.193e+00  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/772594/likelihoodResults_355190401_355449601_4FGL_J1016.0+0512_daily_bin447.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): 102
logL (Free Index) = 5457.05364319
delta logL = -0.000618253111497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5457.05302512
delta logL = -1.82316398423e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2124       1.0000          .0000       10.000    
     3 'Normalizat'    1.1935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87058       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=   5457.053     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10039E-03    75.749        .18142E-02** at limit **
   2  Index         2.1801        7.3520        .50000        .97236E-05
   3  Normalizat    1.1934        .16559E-01    .26368E-03    .15047E-04
   4  Prefactor     .87069        .13847E-01    .25238E-03    .12793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100392
  Index      = 2.1801
  Normalizat = 1.19338
  Prefactor  = 0.870688
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.053     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10039E-03    346.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1801        6.9960        .50000       -.59920    
   3  Normalizat    1.1934        .37050E-01    .10547E-04   -.86808    
   4  Prefactor     .87069        .30978E-01    .10095E-04   -.97173    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.50898e-09
Minuit parameter uncertainties:
  1  0.0234495
  2  660.047
  3  0.0370504
  4  0.0309791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772594': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5457.05302485
delta logL = 9.00272425497e-08

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.004e-04  2.345e-02  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.180e+00  6.600e+02  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:  8.707e-01  3.098e-02  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.193e+00  3.705e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.009 5.209

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/772594/cmap_HighResolution_355190401_355449601_4FGL_J1016.0+0512_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-03', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-01 16:03:52.061465', job_id='772594', GAL2='0.87', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630537432.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='9.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='447' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:03:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 772594: <4FGL_J1016.0+0512_daily_bin447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin447 154.009 5.2089 355190401 355449601 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 :                                   520.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             236.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            795 sec.

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

