/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 137 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 = 7397
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1016.0+0512_daily_bin571
RA = 154.009, Dec = 5.2089
tmin = 387331201, tmax = 387590401
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='774018', job_status='RUN', time_executed='2021-09-01 15:58:03.887196', time_epoch_executed='1630537083.89' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774018

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774018/ft1_4FGL_J1016.0+0512_daily_bin571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774018/ft2_4FGL_J1016.0+0512_daily_bin571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774018/ft1_4FGL_J1016.0+0512_daily_bin571.fits outfile=/scratch/kocevski/774018/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin571.fits ra=154.009 dec=5.2089 rad=12.0 tmin=387331201.0 tmax=387590401.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.46
user 4.20
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774018/ft1_filtered_4FGL_J1016.0+0512_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/774018/ft2_4FGL_J1016.0+0512_daily_bin571.fits sctable="SC_DATA" expcube=/scratch/kocevski/774018/ltcube_387331201_387590401_4FGL_J1016.0+0512_daily_bin571.fits outfile=/scratch/kocevski/774018/expmap_387331201_387590401_4FGL_J1016.0+0512_daily_bin571.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/774018/ltcube_387331201_387590401_4FGL_J1016.0+0512_daily_bin571.fits
.....................!
real 192.49
user 187.58
sys 4.23

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/774018/ft1_filtered_4FGL_J1016.0+0512_daily_bin571.fits scfile=/scratch/kocevski/774018/ft2_4FGL_J1016.0+0512_daily_bin571.fits outfile=/scratch/kocevski/774018/cmap_387331201_387590401_4FGL_J1016.0+0512_daily_bin571.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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774018/ft1_filtered_4FGL_J1016.0+0512_daily_bin571.fits scfile=/scratch/kocevski/774018/ft2_4FGL_J1016.0+0512_daily_bin571.fits outfile=/scratch/kocevski/774018/cmap_HighResolution_387331201_387590401_4FGL_J1016.0+0512_daily_bin571.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.009 yref=5.2089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9211       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2283       1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23124E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8448       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.353       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8810       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9151       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.007       1.0000         .10000E-03   10000.    
    15 'norm      '    .14863E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.472       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .83660       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2572       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=   5293.910     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1597 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .53542        .20506E-06** at limit **
   2  norm          2.9210        1.0098       -.12808E-07   -.14441E-04
   3  Prefactor     6.2993        14.192        .49442E-06    .40683E-04
   4  Prefactor     .10000E-03    15.687       -.50344E-06** at limit **
   5  Prefactor     5.1225        65.029       -.12051E-05   -.36862E-04
   6  norm          .10000E-03    13.683       -.40552E-06** at limit **
   7  Prefactor     .10000E-03    7.0797       -.65671E-06** at limit **
   8  Prefactor     9.8044        76.471        .31589E-06   -.60977E-05
   9  Prefactor     .10000E-03    51.818       -.81270E-06** at limit **
  10  Prefactor     11.335        16.053        .64655E-06    .59520E-04
  11  norm          .10000E-03    .53567       -.28112E-07** at limit **
  12  Prefactor     1.8804        5.2248        .63937E-06   -.14792E-04
  13  Prefactor     8.9145        4.6732        .40340E-06   -.46083E-04
  14  Prefactor     13.000        11.014       -.11778E-07   -.86941E-05
  15  norm          .43607E-02    .38482       -.99651E-07   -.20904E-02
  16  Prefactor     32.576        14.761        .16106E-05   -.12969E-04
  17  Normalizat    .83659        .22112        .16826E-05   -.32584E-04
  18  Prefactor     1.2572        .18403       -.12529E-05    .11710E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.92103
  Prefactor  = 6.29932
  Prefactor  = 0.0001
  Prefactor  = 5.12248
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.80439
  Prefactor  = 0.0001
  Prefactor  = 11.3355
  norm       = 0.0001
  Prefactor  = 1.88043
  Prefactor  = 8.91452
  Prefactor  = 13.0001
  norm       = 0.00436069
  Prefactor  = 32.5763
  Normalizat = 0.836589
  Prefactor  = 1.25719
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.910     FROM HESSE     STATUS=OK           262 CALLS     1859 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .94469        .10166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9210        1.0083        .40714E-04   -1.5366    
   3  Prefactor     6.2993        14.018        .15982E-03   -1.5206    
   4  Prefactor     .10000E-03    15.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1225        64.863        .17580E-03   -1.5255    
   6  norm          .10000E-03    13.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.567        .35317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.8044        75.524        .12771E-03   -1.5082    
   9  Prefactor     .10000E-03    51.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.335        15.694        .11890E-03   -1.5034    
  11  norm          .10000E-03    .71112        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8804        5.1702        .26613E-03   -1.5434    
  13  Prefactor     8.9145        4.6481        .52462E-03   -1.5111    
  14  Prefactor     13.000        10.992        .11107E-03   -1.4987    
  15  norm          .43607E-02    3.0471        .14081E-01   -1.5695    
  16  Prefactor     32.576        21.784        .70317E-04   -1.4566    
  17  Normalizat    .83659        .25246        .30696E-03   -.98726    
  18  Prefactor     1.2572        .21114        .22313E-03   -.84589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53395e-09
Minuit parameter uncertainties:
  1  2.10122e-05
  2  1.00834
  3  14.0249
  4  5.07533e-07
  5  36.5047
  6  6.14558e-06
  7  0.000374206
  8  54.5183
  9  0.000106508
  10  15.6993
  11  1.85796e-06
  12  5.1714
  13  4.64824
  14  10.9941
  15  0.227895
  16  21.7888
  17  0.252812
  18  0.21128
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  3.742e-04  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.257e+00  2.113e-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:  8.366e-01  2.528e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774018/likelihoodResults_387331201_387590401_4FGL_J1016.0+0512_daily_bin571.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) = 5293.90982753
delta logL = -0.000154954356731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5293.90982751
delta logL = -0.000154927437507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96334E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2235       1.0000          .0000       10.000    
     3 'Normalizat'    .83659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2572       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=   5293.910     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      225 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .21416        .90715E-01** at limit **
   2  Index         2.2146        7.5693        .50000        .19187E-05
   3  Normalizat    .83659        .98250E-03    .69373E-01    .17996E-04
   4  Prefactor     1.2572        .86036E-03    .50473E-01    .14470E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21463
  Normalizat = 0.836591
  Prefactor  = 1.25719
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.910     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.960        .35564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2146        5.4664        .50000       -.59086    
   3  Normalizat    .83659        .67895E-02    .30695E-03   -.98725    
   4  Prefactor     1.2572        .59539E-02    .22313E-03   -.84589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.65588e-09
Minuit parameter uncertainties:
  1  2.2337e-05
  2  87.2846
  3  0.00678952
  4  0.0059539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774018': 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) = 5293.90967258
delta logL = 4.43105818704e-09

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.234e-05  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.215e+00  8.728e+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.257e+00  5.954e-03  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:  8.366e-01  6.790e-03  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/774018/cmap_HighResolution_387331201_387590401_4FGL_J1016.0+0512_daily_bin571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', job_status='DONE', photon_flux_upper_limit='8.42e-08', time_completed='2021-09-01 16:06:40.286864', job_id='774018', GAL2='1.26', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630537600.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='4.43e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='571' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:06:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 774018: <4FGL_J1016.0+0512_daily_bin571> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin571> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 15:55:28 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:55:37 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:55:37 2021
Terminated at Wed Sep  1 16:06:41 2021
Results reported at Wed Sep  1 16:06:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin571 154.009 5.2089 387331201 387590401 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 :                                   509.53 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             250.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            673 sec.

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

