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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin518
RA = 154.473, Dec = 7.2638
tmin = 373593601, tmax = 373852801
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='780650', job_status='RUN', time_executed='2021-09-01 16:20:19.098077', time_epoch_executed='1630538419.1' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780650

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780650/ft1_4FGL_J1017.8+0715_daily_bin518.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780650/ft2_4FGL_J1017.8+0715_daily_bin518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780650/ft1_4FGL_J1017.8+0715_daily_bin518.fits outfile=/scratch/kocevski/780650/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin518.fits ra=154.473 dec=7.2638 rad=12.0 tmin=373593601.0 tmax=373852801.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.49
user 3.28
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/780650/ft2_4FGL_J1017.8+0715_daily_bin518.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/780650/ft2_4FGL_J1017.8+0715_daily_bin518.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/780650/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin518.fits evtable="EVENTS" outfile="/scratch/kocevski/780650/ft1_filtered_4FGL_J1017.8+0715_daily_bin518.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780650/ft1_filtered_4FGL_J1017.8+0715_daily_bin518.fits" evtable="EVENTS" scfile=/scratch/kocevski/780650/ft2_4FGL_J1017.8+0715_daily_bin518.fits sctable="SC_DATA" outfile=/scratch/kocevski/780650/ltcube_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.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/780650/ft2_4FGL_J1017.8+0715_daily_bin518.fits
.....................!
real 15.73
user 15.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780650/ft1_filtered_4FGL_J1017.8+0715_daily_bin518.fits evtable="EVENTS" scfile=/scratch/kocevski/780650/ft2_4FGL_J1017.8+0715_daily_bin518.fits sctable="SC_DATA" expcube=/scratch/kocevski/780650/ltcube_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.fits outfile=/scratch/kocevski/780650/expmap_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.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/780650/ltcube_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.fits
.....................!
real 190.54
user 185.81
sys 4.00

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1017.8+0715 @ 154.473 7.2638

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/780650/ft1_filtered_4FGL_J1017.8+0715_daily_bin518.fits scfile=/scratch/kocevski/780650/ft2_4FGL_J1017.8+0715_daily_bin518.fits outfile=/scratch/kocevski/780650/cmap_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.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.473 yref=7.2638 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780650/ft1_filtered_4FGL_J1017.8+0715_daily_bin518.fits scfile=/scratch/kocevski/780650/ft2_4FGL_J1017.8+0715_daily_bin518.fits outfile=/scratch/kocevski/780650/cmap_HighResolution_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.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.473 yref=7.2638 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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/780650/ft1_filtered_4FGL_J1017.8+0715_daily_bin518.fits evtable="EVENTS" scfile=/scratch/kocevski/780650/ft2_4FGL_J1017.8+0715_daily_bin518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/780650/Model_4FGL_J1017.8+0715_daily_bin518.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/780650/ft1_filtered_4FGL_J1017.8+0715_daily_bin518.fits.....................!
real 62.16
user 60.63
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/780650/ft1_filtered_4FGL_J1017.8+0715_daily_bin518.fits', '/scratch/kocevski/780650/ft2_4FGL_J1017.8+0715_daily_bin518.fits', expMap='/scratch/kocevski/780650/expmap_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.fits', expCube='/scratch/kocevski/780650/ltcube_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/780650/Model_4FGL_J1017.8+0715_daily_bin518.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/780650/ft1_filtered_4FGL_J1017.8+0715_daily_bin518.fits
Spacecraft file(s): /scratch/kocevski/780650/ft2_4FGL_J1017.8+0715_daily_bin518.fits
Exposure map: /scratch/kocevski/780650/expmap_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.fits
Exposure cube: /scratch/kocevski/780650/ltcube_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/780650/Model_4FGL_J1017.8+0715_daily_bin518.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) = 6047.04924549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9942       1.0000         .10000E-03   10000.    
     2 'norm      '    4.9685       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8981       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.137       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.7038       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.423       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.303       1.0000         .10000E-03   10000.    
    12 'norm      '    .86095       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7423       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3948       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4739       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.792       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.719       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91584       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0548       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6046.986     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2210 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9943        1.3861        .32650E-07    .25533E-06
   2  norm          4.9685        1.0266        .10161E-07   -.38280E-04
   3  Prefactor     2.8974        6.3570        .43741E-06    .16321E-04
   4  Prefactor     21.205        37.356       -.17480E-06    .61029E-05
   5  Prefactor     .10000E-03    19.580        .80905E-06** at limit **
   6  norm          3.7107        13.520       -.77368E-06    .42806E-04
   7  Prefactor     .10000E-03    8.5006       -.30850E-05** at limit **
   8  Prefactor     19.186        47.483       -.29288E-06    .15153E-04
   9  Prefactor     .10000E-03    100.18       -.38744E-06** at limit **
  10  Prefactor     16.236        188.17       -.27308E-05    .33811E-04
  11  Prefactor     19.323        35.594        .10503E-05    .99745E-04
  12  norm          .86046        1.4645        .61943E-06    .10575E-03
  13  Prefactor     .10000E-03    2.8552        .20005E-06** at limit **
  14  Prefactor     3.7425        2.4531       -.48597E-07   -.52960E-06
  15  Prefactor     .10000E-03    3.9176       -.15288E-06** at limit **
  16  Prefactor     4.3966        8.0922        .30903E-06   -.17416E-05
  17  norm          2.4738        1.0211       -.41068E-08   -.60433E-04
  18  Prefactor     13.792        15.782       -.55743E-08   -.64522E-05
  19  Prefactor     13.716        20.822        .11341E-06   -.92515E-06
  20  Normalizat    .91571        .20749        .15968E-05   -.54933E-04
  21  Prefactor     1.0549        .17705       -.17019E-05    .73151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.99428
  norm       = 4.96849
  Prefactor  = 2.89741
  Prefactor  = 21.2045
  Prefactor  = 0.0001
  norm       = 3.71066
  Prefactor  = 0.0001
  Prefactor  = 19.1858
  Prefactor  = 0.0001
  Prefactor  = 16.2359
  Prefactor  = 19.3228
  norm       = 0.860456
  Prefactor  = 0.0001
  Prefactor  = 3.74252
  Prefactor  = 0.0001
  Prefactor  = 4.39663
  norm       = 2.47375
  Prefactor  = 13.7918
  Prefactor  = 13.716
  Normalizat = 0.91571
  Prefactor  = 1.05489
 **********
 **   18 **HESSE 
 **********

 FCN=   6046.986     FROM HESSE     STATUS=OK           329 CALLS     2539 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9943        1.3780        .71910E-04   -1.5426    
   2  norm          4.9685        1.0265        .90211E-04   -1.5262    
   3  Prefactor     2.8974        6.3259        .23870E-03   -1.5368    
   4  Prefactor     21.205        37.330        .87121E-04   -1.4787    
   5  Prefactor     .10000E-03    19.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.7107        13.375        .20984E-03   -1.5323    
   7  Prefactor     .10000E-03    8.5315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.186        47.441        .91444E-04   -1.4832    
   9  Prefactor     .10000E-03    100.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.236        187.84        .98833E-04   -1.4902    
  11  Prefactor     19.323        35.607        .91163E-04   -1.4829    
  12  norm          .86046        1.4480        .11692E-03   -1.5522    
  13  Prefactor     .10000E-03    2.8692        .12822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7425        2.4544        .94527E-04   -1.5321    
  15  Prefactor     .10000E-03    8.9480        .29578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3966        8.0532        .19211E-03   -1.5289    
  17  norm          2.4738        1.0433        .41752E-04   -1.5393    
  18  Prefactor     13.792        16.099        .10785E-03   -1.4965    
  19  Prefactor     13.716        20.815        .10814E-03   -1.4967    
  20  Normalizat    .91571        .22897        .28031E-03   -.95910    
  21  Prefactor     1.0549        .19631        .23227E-03   -.90922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07102e-10
Minuit parameter uncertainties:
  1  1.37805
  2  1.0265
  3  6.32731
  4  37.3716
  5  2.7234e-06
  6  13.3855
  7  1.90481e-05
  8  47.5341
  9  3.28814e-05
  10  110.89
  11  35.6463
  12  1.44809
  13  3.4707e-06
  14  2.45443
  15  3.31561e-05
  16  8.05519
  17  1.04328
  18  16.1036
  19  20.826
  20  0.22921
  21  0.196444
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.919e+01  4.753e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.055e+00  1.964e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.157e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780650/likelihoodResults_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.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) = 6046.95367246
delta logL = 0.0319755527507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6046.94652906
delta logL = 0.039118946509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.395       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2121       1.0000          .0000       10.000    
     3 'Normalizat'    .90506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   6046.947     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      258 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.399        49.117        .10557E-03    .55892E-04
   2  Index         3.2106        2.1808        .14249E-01    .19374E-04
   3  Normalizat    .90637        .22395        .28161E-03    .40404E-03
   4  Prefactor     1.0603        .19467        .23176E-03    .88353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3987
  Index      = 3.21064
  Normalizat = 0.906374
  Prefactor  = 1.06027
 **********
 **   18 **HESSE 
 **********

 FCN=   6046.947     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.399        40.351        .42227E-05   -1.4949    
   2  Index         3.2106        1.8105        .56996E-03   -.36599    
   3  Normalizat    .90637        .22417        .56322E-04   -.96237    
   4  Prefactor     1.0603        .19469        .46352E-04   -.90746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04992e-09
Minuit parameter uncertainties:
  1  40.4271
  2  1.85927
  3  0.224405
  4  0.19482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780650': 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) = 6046.94650974
delta logL = 0.0391382674616

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.440e+01  4.043e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.211e+00  1.859e+00  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.060e+00  1.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.064e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 154.473 7.264

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/780650/cmap_HighResolution_373593601_373852801_4FGL_J1017.8+0715_daily_bin518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-01 16:30:12.414738', job_id='780650', GAL2='1.06', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1630539012.41', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.91e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='518' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 780650: <4FGL_J1017.8+0715_daily_bin518> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin518> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 16:15:33 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:16:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:16:53 2021
Terminated at Wed Sep  1 16:30:12 2021
Results reported at Wed Sep  1 16:30:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin518 154.473 7.2638 373593601 373852801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1017.8+0715 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   592.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            879 sec.

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

