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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin826
RA = 154.009, Dec = 5.2089
tmin = 453427201, tmax = 453686401
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='774400', job_status='RUN', time_executed='2021-09-01 15:59:59.876519', time_epoch_executed='1630537199.88' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='826'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774400/ft1_4FGL_J1016.0+0512_daily_bin826.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774400/ft2_4FGL_J1016.0+0512_daily_bin826.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774400/ft1_4FGL_J1016.0+0512_daily_bin826.fits outfile=/scratch/kocevski/774400/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin826.fits ra=154.009 dec=5.2089 rad=12.0 tmin=453427201.0 tmax=453686401.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.62
user 3.41
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774400/ft1_filtered_4FGL_J1016.0+0512_daily_bin826.fits evtable="EVENTS" scfile=/scratch/kocevski/774400/ft2_4FGL_J1016.0+0512_daily_bin826.fits sctable="SC_DATA" expcube=/scratch/kocevski/774400/ltcube_453427201_453686401_4FGL_J1016.0+0512_daily_bin826.fits outfile=/scratch/kocevski/774400/expmap_453427201_453686401_4FGL_J1016.0+0512_daily_bin826.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/774400/ltcube_453427201_453686401_4FGL_J1016.0+0512_daily_bin826.fits
.....................!
real 190.20
user 185.96
sys 3.78

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/774400/ft1_filtered_4FGL_J1016.0+0512_daily_bin826.fits scfile=/scratch/kocevski/774400/ft2_4FGL_J1016.0+0512_daily_bin826.fits outfile=/scratch/kocevski/774400/cmap_453427201_453686401_4FGL_J1016.0+0512_daily_bin826.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774400/ft1_filtered_4FGL_J1016.0+0512_daily_bin826.fits scfile=/scratch/kocevski/774400/ft2_4FGL_J1016.0+0512_daily_bin826.fits outfile=/scratch/kocevski/774400/cmap_HighResolution_453427201_453686401_4FGL_J1016.0+0512_daily_bin826.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9878       1.0000         .10000E-03   10000.    
     2 'norm      '    .78144       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.495       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    78.787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11474E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5658       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74924       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1479       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .92658       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2662       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=   6232.733     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1740 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9873        1.7750        .18535E-07   -.53855E-04
   2  norm          .78107        .76052        .48063E-07   -.78764E-04
   3  Prefactor     2.2740        11.755        .55644E-05   -.22865E-04
   4  Prefactor     24.480        46.394        .33877E-05   -.82804E-05
   5  Prefactor     .10000E-03    14.196        .13929E-08** at limit **
   6  norm          .10000E-03    11.054       -.55759E-06** at limit **
   7  Prefactor     .10000E-03    6.5382       -.78698E-06** at limit **
   8  Prefactor     78.726        69.002        .64982E-05   -.49296E-06
   9  Prefactor     .10000E-03    41.631       -.14608E-05** at limit **
  10  Prefactor     .10000E-03    8.2574       -.42907E-06** at limit **
  11  norm          1.5654        1.6458       -.70726E-08   -.11279E-03
  12  Prefactor     .74793        3.7583        .69851E-07   -.31166E-04
  13  Prefactor     .25545        1.8675       -.13772E-06    .40445E-04
  14  Prefactor     .10000E-03    3.3582        .48206E-07** at limit **
  15  norm          1.1480        .56338        .24250E-07   -.49217E-04
  16  Prefactor     .10000E-03    3.6318        .18047E-07** at limit **
  17  Normalizat    .92661        .21470        .61618E-06    .34292E-04
  18  Prefactor     1.2663        .17102       -.17890E-05    .29111E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.98729
  norm       = 0.781066
  Prefactor  = 2.27404
  Prefactor  = 24.48
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.7257
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.5654
  Prefactor  = 0.747927
  Prefactor  = 0.255446
  Prefactor  = 0.0001
  norm       = 1.14798
  Prefactor  = 0.0001
  Normalizat = 0.926614
  Prefactor  = 1.26633
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.733     FROM HESSE     STATUS=OK           252 CALLS     1992 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9873        1.7768        .66414E-04   -1.5309    
   2  norm          .78107        .73207        .63123E-03   -1.5531    
   3  Prefactor     2.2740        11.920        .13614E-02   -1.5406    
   4  Prefactor     24.480        46.300        .80936E-04   -1.4718    
   5  Prefactor     .10000E-03    14.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     78.726        69.451        .22622E-03   -1.3931    
   9  Prefactor     .10000E-03    41.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5654        1.6160        .96396E-04   -1.5458    
  12  Prefactor     .74793        14.246        .28273E-02   -1.5535    
  13  Prefactor     .25545        11.840        .19899E-02   -1.5607    
  14  Prefactor     .10000E-03    3.3716        .14122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1480        .56012        .40218E-04   -1.5494    
  16  Prefactor     .10000E-03    3.6463        .14685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .92661        .25018        .30391E-03   -.95531    
  18  Prefactor     1.2663        .19934        .22400E-03   -.84314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70965e-08
Minuit parameter uncertainties:
  1  1.77685
  2  0.732082
  3  10.4159
  4  46.3677
  5  1.02521e-05
  6  0.000108748
  7  8.35574e-05
  8  69.5226
  9  0.000328327
  10  5.17915e-05
  11  1.61607
  12  6.52965
  13  3.47828
  14  3.06644e-06
  15  0.560122
  16  1.62495e-06
  17  0.250491
  18  0.19946
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  8.356e-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:  1.266e+00  1.995e-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:  9.266e-01  2.505e-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: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774400/likelihoodResults_453427201_453686401_4FGL_J1016.0+0512_daily_bin826.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) = 6232.73328158
delta logL = -0.000720756361261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6232.73256102
delta logL = -1.9821436581e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2345       1.0000          .0000       10.000    
     3 'Normalizat'    .92655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2664       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=   6232.733     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    294.69        .90712E-02** at limit **
   2  Index         2.2456        5.7352        .50000       -.14731E-04
   3  Normalizat    .92661        .35825E-01    .68695E-01    .45297E-04
   4  Prefactor     1.2663        .30447E-01    .50668E-01    .27673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24556
  Normalizat = 0.926614
  Prefactor  = 1.26633
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.733     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2456        6.6377        .50000       -.58343    
   3  Normalizat    .92661        .22875        .30391E-03   -.95531    
   4  Prefactor     1.2663        .19482        .22400E-03   -.84314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35229e-09
Minuit parameter uncertainties:
  1  3.59388e-05
  2  11.1105
  3  0.228988
  4  0.194933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774400': 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) = 6232.73256075
delta logL = 7.53061613068e-08

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  3.594e-05  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.246e+00  1.111e+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.266e+00  1.949e-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:  9.266e-01  2.290e-01  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/774400/cmap_HighResolution_453427201_453686401_4FGL_J1016.0+0512_daily_bin826.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-01 16:08:54.875320', job_id='774400', GAL2='1.27', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630537734.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='7.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='826' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:08:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 774400: <4FGL_J1016.0+0512_daily_bin826> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin826 154.009 5.2089 453427201 453686401 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 :                                   534.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            779 sec.

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

