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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin647
RA = 154.473, Dec = 7.2638
tmin = 407030401, tmax = 407289601
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='780839', job_status='RUN', time_executed='2021-09-01 16:20:01.382409', time_epoch_executed='1630538401.38' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780839/ft1_4FGL_J1017.8+0715_daily_bin647.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780839/ft2_4FGL_J1017.8+0715_daily_bin647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780839/ft1_4FGL_J1017.8+0715_daily_bin647.fits outfile=/scratch/kocevski/780839/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin647.fits ra=154.473 dec=7.2638 rad=12.0 tmin=407030401.0 tmax=407289601.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.55
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/780839/ft2_4FGL_J1017.8+0715_daily_bin647.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/780839/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin647.fits evtable="EVENTS" outfile="/scratch/kocevski/780839/ft1_filtered_4FGL_J1017.8+0715_daily_bin647.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780839/ft1_filtered_4FGL_J1017.8+0715_daily_bin647.fits" evtable="EVENTS" scfile=/scratch/kocevski/780839/ft2_4FGL_J1017.8+0715_daily_bin647.fits sctable="SC_DATA" outfile=/scratch/kocevski/780839/ltcube_407030401_407289601_4FGL_J1017.8+0715_daily_bin647.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/780839/ft2_4FGL_J1017.8+0715_daily_bin647.fits
.....................!
real 15.48
user 15.11
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780839/ft1_filtered_4FGL_J1017.8+0715_daily_bin647.fits evtable="EVENTS" scfile=/scratch/kocevski/780839/ft2_4FGL_J1017.8+0715_daily_bin647.fits sctable="SC_DATA" expcube=/scratch/kocevski/780839/ltcube_407030401_407289601_4FGL_J1017.8+0715_daily_bin647.fits outfile=/scratch/kocevski/780839/expmap_407030401_407289601_4FGL_J1017.8+0715_daily_bin647.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/780839/ltcube_407030401_407289601_4FGL_J1017.8+0715_daily_bin647.fits
.....................!
real 192.68
user 187.75
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/780839/ft1_filtered_4FGL_J1017.8+0715_daily_bin647.fits scfile=/scratch/kocevski/780839/ft2_4FGL_J1017.8+0715_daily_bin647.fits outfile=/scratch/kocevski/780839/cmap_407030401_407289601_4FGL_J1017.8+0715_daily_bin647.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780839/ft1_filtered_4FGL_J1017.8+0715_daily_bin647.fits scfile=/scratch/kocevski/780839/ft2_4FGL_J1017.8+0715_daily_bin647.fits outfile=/scratch/kocevski/780839/cmap_HighResolution_407030401_407289601_4FGL_J1017.8+0715_daily_bin647.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6760       1.0000         .10000E-03   10000.    
     2 'norm      '    .51632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.235       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11803E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.7125       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .74585E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58583E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11160E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6865       1.0000         .10000E-03   10000.    
    12 'norm      '    8.7497       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2841       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5404       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.117       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.768       1.0000         .10000E-03   10000.    
    17 'norm      '    .89088       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.060       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7538       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93482       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98103       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=   6164.228     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     2597 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6754        1.1604        .67322E-04   -.20264E-04
   2  norm          .51610        .51897        .56748E-03    .30870E-02
   3  Prefactor     22.233        14.842        .84944E-04   -.13116E-04
   4  Prefactor     .10000E-03    28.275        .18142E-02** at limit **
   5  Prefactor     .10000E-03    13.254        .18142E-02** at limit **
   6  norm          7.7550        14.861        .14439E-03   -.13385E-04
   7  Prefactor     .10042E-03    11.705        .64101E-01** at limit **
   8  Prefactor     59.593        61.565        .51970E-04   -.39814E-05
   9  Prefactor     .10000E-03    47.511        .16257    ** at limit **
  10  Prefactor     .10000E-03    33.303        .18142E-02** at limit **
  11  Prefactor     4.7107        11.163        .18589E-03   -.25870E-04
  12  norm          8.7501        2.2711        .57176E-04   -.43546E-04
  13  Prefactor     3.2822        5.5326        .11172E-02    .42284E-03
  14  Prefactor     2.5401        2.5748        .60747E-03   -.16918E-04
  15  Prefactor     19.114        9.6220        .91604E-04    .45547E-04
  16  Prefactor     22.768        10.892        .83945E-04    .22211E-04
  17  norm          .89088        .71072        .50610E-04   -.93448E-04
  18  Prefactor     10.058        12.931        .12633E-03   -.35096E-05
  19  Prefactor     6.7435        18.224        .15440E-03    .19145E-05
  20  Normalizat    .93510        .23527        .28064E-03    .39213E-04
  21  Prefactor     .98099        .19184        .23824E-03    .15175E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67542
  norm       = 0.516104
  Prefactor  = 22.2331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.75499
  Prefactor  = 0.000100418
  Prefactor  = 59.5926
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.71071
  norm       = 8.7501
  Prefactor  = 3.2822
  Prefactor  = 2.54009
  Prefactor  = 19.1144
  Prefactor  = 22.7681
  norm       = 0.890885
  Prefactor  = 10.0575
  Prefactor  = 6.74352
  Normalizat = 0.935103
  Prefactor  = 0.980994
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.228     FROM HESSE     STATUS=OK           321 CALLS     2918 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6754        1.1604        .26929E-05   -1.5449    
   2  norm          .51610        .51882        .11350E-03   -1.5564    
   3  Prefactor     22.233        14.843        .33978E-05   -1.4765    
   4  Prefactor     .10000E-03    28.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.7550        14.848        .57758E-05   -1.5151    
   7  Prefactor     .10042E-03    10.309        .70140E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.593        61.576        .10394E-04   -1.4163    
   9  Prefactor     .10000E-03    48.011        .16127       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.304        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7107        11.156        .74356E-05   -1.5274    
  12  norm          8.7501        2.2710        .22870E-05   -1.5116    
  13  Prefactor     3.2822        5.5310        .22343E-03   -1.5346    
  14  Prefactor     2.5401        2.5741        .24299E-04   -1.5389    
  15  Prefactor     19.114        9.6225        .36642E-05   -1.4833    
  16  Prefactor     22.768        10.890        .33578E-05   -1.4753    
  17  norm          .89088        .71073        .20244E-05   -1.5519    
  18  Prefactor     10.058        12.931        .50534E-05   -1.5074    
  19  Prefactor     6.7435        18.224        .61758E-05   -1.5189    
  20  Normalizat    .93510        .23550        .11226E-04   -.95237    
  21  Prefactor     .98099        .19203        .95297E-05   -.93366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11517e-10
Minuit parameter uncertainties:
  1  1.16043
  2  0.51882
  3  14.8453
  4  6.76293e-06
  5  2.8895e-06
  6  14.855
  7  0.00415078
  8  61.6423
  9  0.000681977
  10  1.06579e-05
  11  11.1605
  12  2.27102
  13  5.53186
  14  2.57424
  15  9.62325
  16  10.8913
  17  0.710736
  18  12.9341
  19  18.2386
  20  0.23576
  21  0.192162
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  5.959e+01  6.164e+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:  9.810e-01  1.922e-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.351e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 5.04e-08 +/- 5.21e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/780839/likelihoodResults_407030401_407289601_4FGL_J1017.8+0715_daily_bin647.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) = 6164.05425924
delta logL = 0.173912728654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6164.04387864
delta logL = 0.184293325145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.466       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1124       1.0000          .0000       10.000    
     3 'Normalizat'    .96321       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96446       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=   6164.044     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      274 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.486        80.652        .47487E-04    .31793E-04
   2  Index         2.1128        .94518        .11000E-01   -.15215E-04
   3  Normalizat    .96337        .22300        .27698E-03   -.86605E-05
   4  Prefactor     .96427        .18944        .23997E-03   -.12673E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.4857
  Index      = 2.11281
  Normalizat = 0.96337
  Prefactor  = 0.964273
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.044     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.486        83.238        .94975E-05   -1.4015    
   2  Index         2.1128        .97488        .44001E-03   -.61559    
   3  Normalizat    .96337        .22369        .11079E-04   -.94268    
   4  Prefactor     .96427        .18967        .95989E-05   -.93930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62e-11
Minuit parameter uncertainties:
  1  83.3743
  2  0.984393
  3  0.223903
  4  0.189805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780839': 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) = 6164.04387806
delta logL = 0.184293911091

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.149e+01  8.337e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.113e+00  9.844e-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:  9.643e-01  1.898e-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.634e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 154.473 7.264
Photon Index (Free Index): 2.11 +/- 0.98
Photon Flux (Free Index): 3.03e-08 +/- 5.45e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.92e-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/780839/cmap_HighResolution_407030401_407289601_4FGL_J1017.8+0715_daily_bin647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='5.04e-08', energy_flux2='1.62e-05', photon_flux_error='5.21e-08', dlogl='1.84e-01', energy_flux='1.18e-05', photon_flux2='3.03e-08', job_status='DONE', time_completed='2021-09-01 16:30:27.290854', photon_index_error2='0.98', photon_index2='2.11', ts='1.31', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.92e-05', EG='0.94', time_epoch_completed='1630539027.29', return_code='0', job_id='780839', GAL2='0.96', EG2='0.96', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='5.45e-08', ts2='1.65', photon_index='2.73' WHERE bin_id='647' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 780839: <4FGL_J1017.8+0715_daily_bin647> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin647> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 16:15:46 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:18:01 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:18:01 2021
Terminated at Wed Sep  1 16:30:27 2021
Results reported at Wed Sep  1 16:30:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin647 154.473 7.2638 407030401 407289601 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 :                                   623.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            881 sec.

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

