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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin294
RA = 154.473, Dec = 7.2638
tmin = 315532801, tmax = 315792001
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='779300', job_status='RUN', time_executed='2021-09-01 16:18:06.739278', time_epoch_executed='1630538286.74' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779300

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779300/ft1_4FGL_J1017.8+0715_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779300/ft2_4FGL_J1017.8+0715_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779300/ft1_4FGL_J1017.8+0715_daily_bin294.fits outfile=/scratch/kocevski/779300/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin294.fits ra=154.473 dec=7.2638 rad=12.0 tmin=315532801.0 tmax=315792001.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.84
user 3.59
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779300/ft1_filtered_4FGL_J1017.8+0715_daily_bin294.fits" evtable="EVENTS" scfile=/scratch/kocevski/779300/ft2_4FGL_J1017.8+0715_daily_bin294.fits sctable="SC_DATA" outfile=/scratch/kocevski/779300/ltcube_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.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/779300/ft2_4FGL_J1017.8+0715_daily_bin294.fits
.....................!
real 15.76
user 15.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779300/ft1_filtered_4FGL_J1017.8+0715_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/779300/ft2_4FGL_J1017.8+0715_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/779300/ltcube_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.fits outfile=/scratch/kocevski/779300/expmap_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.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/779300/ltcube_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.fits
.....................!
real 193.26
user 187.66
sys 4.95

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/779300/ft1_filtered_4FGL_J1017.8+0715_daily_bin294.fits scfile=/scratch/kocevski/779300/ft2_4FGL_J1017.8+0715_daily_bin294.fits outfile=/scratch/kocevski/779300/cmap_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779300/ft1_filtered_4FGL_J1017.8+0715_daily_bin294.fits scfile=/scratch/kocevski/779300/ft2_4FGL_J1017.8+0715_daily_bin294.fits outfile=/scratch/kocevski/779300/cmap_HighResolution_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.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.60
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/779300/ft1_filtered_4FGL_J1017.8+0715_daily_bin294.fits', '/scratch/kocevski/779300/ft2_4FGL_J1017.8+0715_daily_bin294.fits', expMap='/scratch/kocevski/779300/expmap_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.fits', expCube='/scratch/kocevski/779300/ltcube_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/779300/Model_4FGL_J1017.8+0715_daily_bin294.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/779300/ft1_filtered_4FGL_J1017.8+0715_daily_bin294.fits
Spacecraft file(s): /scratch/kocevski/779300/ft2_4FGL_J1017.8+0715_daily_bin294.fits
Exposure map: /scratch/kocevski/779300/expmap_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.fits
Exposure cube: /scratch/kocevski/779300/ltcube_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/779300/Model_4FGL_J1017.8+0715_daily_bin294.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) = 5538.94155607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7624       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4562       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3946       1.0000         .10000E-03   10000.    
     6 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    101.64       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.886       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10953E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .80424E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5882       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95559E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.731       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9872       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5310       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1124       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .60151       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1636       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=   5538.916     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2239 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7622        1.6719        .24169E-07   -.21035E-04
   2  norm          1.4561        .76851        .22871E-07   -.49425E-04
   3  Prefactor     .10000E-03    14.756       -.69447E-06** at limit **
   4  Prefactor     .10000E-03    7.0335        .15579E-07** at limit **
   5  Prefactor     9.3903        18.576        .70495E-08    .41830E-06
   6  norm          .10000E-03    18.688       -.93981E-06** at limit **
   7  Prefactor     .10000E-03    9.1942       -.81176E-06** at limit **
   8  Prefactor     101.61        67.099        .27565E-05   -.49364E-04
   9  Prefactor     32.881        54.485        .80084E-06   -.86600E-05
  10  Prefactor     .10000E-03    81.442       -.22693E-05** at limit **
  11  Prefactor     .10000E-03    10.859       -.47366E-06** at limit **
  12  norm          .77781E-01    .83883        .97744E-07   -.21985E-03
  13  Prefactor     6.5876        5.1347        .38088E-07   -.28828E-04
  14  Prefactor     .10000E-03    1.7924        .11794E-06** at limit **
  15  Prefactor     23.730        11.633        .49065E-08   -.72287E-05
  16  Prefactor     6.9926        8.7667       -.77846E-07    .15221E-05
  17  norm          2.5311        .94659       -.21662E-06   -.54919E-04
  18  Prefactor     3.7561        11.048        .41529E-05   -.16283E-04
  19  Prefactor     9.1044        30.430        .99005E-06   -.12990E-04
  20  Normalizat    .60158        .21962        .40168E-06    .25502E-04
  21  Prefactor     1.1636        .17339       -.85530E-06   -.89079E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.76217
  norm       = 1.45609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.39033
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.611
  Prefactor  = 32.8812
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0777808
  Prefactor  = 6.58763
  Prefactor  = 0.000100003
  Prefactor  = 23.7305
  Prefactor  = 6.99263
  norm       = 2.53109
  Prefactor  = 3.75606
  Prefactor  = 9.10435
  Normalizat = 0.601585
  Prefactor  = 1.16357
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.916     FROM HESSE     STATUS=OK           325 CALLS     2564 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7622        1.6665        .70763E-04   -1.5376    
   2  norm          1.4561        .75862        .44649E-04   -1.5467    
   3  Prefactor     .10000E-03    14.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3903        18.571        .13075E-03   -1.5095    
   6  norm          .10000E-03    18.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     101.61        67.389        .19939E-03   -1.3688    
   9  Prefactor     32.881        54.437        .69875E-04   -1.4560    
  10  Prefactor     .10000E-03    82.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .77781E-01    2.2858        .12934E-02   -1.5652    
  13  Prefactor     6.5876        5.1244        .14281E-03   -1.5195    
  14  Prefactor     .10000E-03    16.596        .18315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.730        11.675        .82227E-04   -1.4733    
  16  Prefactor     6.9926        8.6114        .15177E-03   -1.5179    
  17  norm          2.5311        .94954        .37174E-04   -1.5390    
  18  Prefactor     3.7561        11.119        .10415E-02   -1.5320    
  19  Prefactor     9.1044        30.421        .13277E-03   -1.5104    
  20  Normalizat    .60158        .24282        .33070E-03   -1.0792    
  21  Prefactor     1.1636        .19598        .21111E-03   -.87460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42716e-08
Minuit parameter uncertainties:
  1  1.66648
  2  0.758627
  3  0.000109603
  4  1.20642e-06
  5  18.5821
  6  0.000169762
  7  9.82929e-05
  8  67.4394
  9  54.5189
  10  0.000806808
  11  7.16183e-05
  12  0.842795
  13  5.12478
  14  0.000468611
  15  11.6763
  16  8.61296
  17  0.949545
  18  11.1254
  19  30.473
  20  0.243247
  21  0.196098
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.016e+02  6.744e+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.164e+00  1.961e-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:  6.016e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.56
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 8.59e-08 +/- 5.70e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.34e-05

TS (Fixed Index): 3.56
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.97e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779300/likelihoodResults_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.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) = 5538.89581587
delta logL = 0.0201999671563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5538.88681637
delta logL = 0.0291994660502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    112.22       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6054       1.0000          .0000       10.000    
     3 'Normalizat'    .60751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1596       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=   5538.887     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     112.17        84.613        .18987E-03   -.64189E-04
   2  Index         2.6054        .52615        .65062E-02    .25043E-04
   3  Normalizat    .60750        .22632        .32913E-03   -.68322E-04
   4  Prefactor     1.1596        .19325        .21140E-03   -.32988E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 112.17
  Index      = 2.60544
  Normalizat = 0.607497
  Prefactor  = 1.15965
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.887     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     112.17        82.917        .75946E-05   -1.3586    
   2  Index         2.6054        .51529        .26025E-03   -.49941    
   3  Normalizat    .60750        .22648        .13165E-04   -1.0767    
   4  Prefactor     1.1596        .19334        .42280E-04   -.87582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70907e-11
Minuit parameter uncertainties:
  1  83.0027
  2  0.516481
  3  0.22683
  4  0.193462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779300': 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) = 5538.88681614
delta logL = 0.0291996943106

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.122e+02  8.300e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.605e+00  5.165e-01  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.160e+00  1.935e-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:  6.075e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 154.473 7.264
Photon Index (Free Index): 2.61 +/- 0.52
Photon Flux (Free Index): 8.11e-08 +/- 5.77e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.45e-05

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/779300/cmap_HighResolution_315532801_315792001_4FGL_J1017.8+0715_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='8.59e-08', energy_flux2='2.12e-05', photon_flux_error='5.70e-08', dlogl='2.92e-02', energy_flux='2.02e-05', photon_flux2='8.11e-08', job_status='DONE', time_completed='2021-09-01 16:27:35.839850', photon_index_error2='0.52', photon_index2='2.61', ts='3.56', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.97e-07', energy_flux_error2='1.45e-05', EG='0.60', time_epoch_completed='1630538855.84', return_code='0', job_id='779300', GAL2='1.16', EG2='0.61', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.77e-08', ts2='3.54', photon_index='2.73' WHERE bin_id='294' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:27:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 779300: <4FGL_J1017.8+0715_daily_bin294> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin294> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 16:11:04 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:14:54 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:14:54 2021
Terminated at Wed Sep  1 16:27:36 2021
Results reported at Wed Sep  1 16:27:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin294 154.473 7.2638 315532801 315792001 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 :                                   559.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            992 sec.

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

