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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin392
RA = 154.473, Dec = 7.2638
tmin = 340934401, tmax = 341193601
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='780470', job_status='RUN', time_executed='2021-09-01 16:18:22.228971', time_epoch_executed='1630538302.23' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780470

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780470/ft1_4FGL_J1017.8+0715_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780470/ft2_4FGL_J1017.8+0715_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780470/ft1_4FGL_J1017.8+0715_daily_bin392.fits outfile=/scratch/kocevski/780470/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin392.fits ra=154.473 dec=7.2638 rad=12.0 tmin=340934401.0 tmax=341193601.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.46
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780470/ft1_filtered_4FGL_J1017.8+0715_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/780470/ft2_4FGL_J1017.8+0715_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/780470/ltcube_340934401_341193601_4FGL_J1017.8+0715_daily_bin392.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/780470/ft2_4FGL_J1017.8+0715_daily_bin392.fits
.....................!
real 16.62
user 16.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780470/ft1_filtered_4FGL_J1017.8+0715_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/780470/ft2_4FGL_J1017.8+0715_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/780470/ltcube_340934401_341193601_4FGL_J1017.8+0715_daily_bin392.fits outfile=/scratch/kocevski/780470/expmap_340934401_341193601_4FGL_J1017.8+0715_daily_bin392.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/780470/ltcube_340934401_341193601_4FGL_J1017.8+0715_daily_bin392.fits
.....................!
real 193.44
user 187.10
sys 4.48

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/780470/ft1_filtered_4FGL_J1017.8+0715_daily_bin392.fits scfile=/scratch/kocevski/780470/ft2_4FGL_J1017.8+0715_daily_bin392.fits outfile=/scratch/kocevski/780470/cmap_340934401_341193601_4FGL_J1017.8+0715_daily_bin392.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.70
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780470/ft1_filtered_4FGL_J1017.8+0715_daily_bin392.fits scfile=/scratch/kocevski/780470/ft2_4FGL_J1017.8+0715_daily_bin392.fits outfile=/scratch/kocevski/780470/cmap_HighResolution_340934401_341193601_4FGL_J1017.8+0715_daily_bin392.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0144       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.983       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .65411       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.040       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.459       1.0000         .10000E-03   10000.    
    10 'Prefactor '    148.02       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12520E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12429E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3450       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.903       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8731       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12213E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .42622E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7407       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .49794       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6693.606     FROM MIGRAD    STATUS=FAILED       855 CALLS     2814 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .83112        .11235E-02** at limit **
   2  norm          1.0142        .66860        .53001E-03    .41074E-03
   3  Prefactor     .76246E-01    23.879        .73422E-01    .24321E-03
   4  Prefactor     .10000E-03    17.290        .18142E-02** at limit **
   5  Prefactor     41.958        37.267        .61868E-04    .63580E-05
   6  norm          .10000E-03    6.5843        .18142E-02** at limit **
   7  Prefactor     .65687        1325.2        .42953E-02    .12884E-03
   8  Prefactor     35.041        43.356        .67699E-04   -.79330E-04
   9  Prefactor     34.465        54.527        .68266E-04   -.31642E-05
  10  Prefactor     148.25        300.93        .16562E-03   -.22563E-03
  11  Prefactor     .10000E-03    32.903        .18142E-02** at limit **
  12  norm          .10000E-03    .58177        .11963E-03** at limit **
  13  Prefactor     .10000E-03    10.713        .31531E-02** at limit **
  14  Prefactor     4.3439        3.8052        .69553E-03    .69140E-04
  15  Prefactor     .10000E-03    4.0080        .15888E-02** at limit **
  16  Prefactor     12.906        9.2457        .11151E-03   -.37171E-03
  17  norm          2.8748        .87992        .40641E-04   -.35098E-02
  18  Prefactor     .10001E-03    64.125        .38715E-02** at limit **
  19  Prefactor     .10173E-03    173.68        .61857E-02** at limit **
  20  Normalizat    1.7410        .22926        .22709E-03    .39035E-03
  21  Prefactor     .49789        .17709        .32231E-03    .22955E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6693.606     FROM SIMPLEX   STATUS=UNCHANGED    983 CALLS     3797 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .83112        .86378E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0142        .66860        .67324E-06   -1.5507    
   3  Prefactor     .76246E-01    23.879        .73036E-06   -1.5653    
   4  Prefactor     .10000E-03    17.290        .50838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.958        37.267        .62542E-06   -1.4412    
   6  norm          .10000E-03    6.5843        .32314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .65687        1325.2        .13006E-05   -1.5546    
   8  Prefactor     35.041        43.356        .62975E-06   -1.4523    
   9  Prefactor     34.465        54.527        .64190E-06   -1.4533    
  10  Prefactor     148.25        300.93        .60179E-06   -1.3267    
  11  Prefactor     .10000E-03    32.903        .58227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .58177        .72325E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.713        .40479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3439        3.8052        .66219E-06   -1.5291    
  15  Prefactor     .10000E-03    4.0080        .98572E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.906        9.2457        .64879E-06   -1.4989    
  17  norm          2.8748        .87992        .66559E-06   -1.5369    
  18  Prefactor     .10001E-03    64.125        .12283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10173E-03    173.68        .16202E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.7410        .22926        .30829E-06   -.71213    
  21  Prefactor     .49789        .17709        .48545E-06   -1.1207    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6693.606     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     4114 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .83186        .22470E-03** at limit **
   2  norm          1.0142        .66844        .21201E-04    .26812E-05
   3  Prefactor     .76266E-01    15.464        .81470E-01    .19869E-03
   4  Prefactor     .10000E-03    17.291        .36285E-03** at limit **
   5  Prefactor     41.958        37.266        .12374E-04     .0000    
   6  norm          .10000E-03    6.5844        .36285E-03** at limit **
   7  Prefactor     .65541        315.65        .17181E-03    .15020E-04
   8  Prefactor     35.041        42.894        .13540E-04    .16793E-04
   9  Prefactor     34.465        54.555        .27306E-05    .83268E-06
  10  Prefactor     148.26        149.14        .33123E-04    .21211E-04
  11  Prefactor     .10000E-03    32.903        .36285E-03** at limit **
  12  norm          .10000E-03    .58178        .23927E-04** at limit **
  13  Prefactor     .10000E-03    10.787        .63063E-03** at limit **
  14  Prefactor     4.3438        3.7968        .27821E-04    .33508E-04
  15  Prefactor     .10000E-03    4.0095        .31776E-03** at limit **
  16  Prefactor     12.906        9.2422        .44605E-05    .75442E-04
  17  norm          2.8748        .87703        .81281E-05    .25512E-03
  18  Prefactor     .10000E-03    65.776        .15486E-03** at limit **
  19  Prefactor     .10000E-03    181.81        .24743E-03** at limit **
  20  Normalizat    1.7410        .22918        .45418E-04    .96971E-04
  21  Prefactor     .49789        .17704        .12892E-04    .54143E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.0142
  Prefactor  = 0.0762662
  Prefactor  = 0.0001
  Prefactor  = 41.9575
  norm       = 0.0001
  Prefactor  = 0.655411
  Prefactor  = 35.0409
  Prefactor  = 34.4654
  Prefactor  = 148.256
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34385
  Prefactor  = 0.0001
  Prefactor  = 12.9059
  norm       = 2.87484
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.74101
  Prefactor  = 0.497886
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.606     FROM HESSE     STATUS=OK           305 CALLS     4419 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .83189        .44939E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0142        .66848        .84802E-06   -1.5507    
   3  Prefactor     .76266E-01    16.400        .78487E-01   -1.5653    
   4  Prefactor     .10000E-03    17.291        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.958        37.266        .12374E-04   -1.4412    
   6  norm          .10000E-03    6.5844        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .65541        305.58        .68725E-05   -1.5546    
   8  Prefactor     35.041        42.892        .27080E-05   -1.4523    
   9  Prefactor     34.465        55.280        .54613E-06   -1.4533    
  10  Prefactor     148.26        146.90        .66247E-05   -1.3267    
  11  Prefactor     .10000E-03    32.903        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .58178        .47853E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.790        .12613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3438        3.7964        .11129E-05   -1.5291    
  15  Prefactor     .10000E-03    4.0096        .63553E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.906        9.2453        .89211E-06   -1.4989    
  17  norm          2.8748        .87703        .16256E-05   -1.5369    
  18  Prefactor     .10000E-03    65.778        .30972E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    181.82        .49486E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.7410        .22910        .90836E-05   -.71213    
  21  Prefactor     .49789        .17695        .25785E-05   -1.1207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6489e-10
Minuit parameter uncertainties:
  1  3.2036e-06
  2  0.668488
  3  2.23594
  4  3.08753e-06
  5  37.2867
  6  4.34741e-07
  7  28.4492
  8  42.9293
  9  55.3619
  10  147.266
  11  4.23467e-05
  12  3.11956e-07
  13  2.99014e-06
  14  3.79659
  15  2.21186e-06
  16  9.24632
  17  0.877036
  18  7.90007e-05
  19  0.0013163
  20  0.229244
  21  0.177142
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.504e+01  4.293e+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:  4.979e-01  1.771e-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:  1.741e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 2.96e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 6.95e-06 +/- 8.52e-06

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

Saving results to:
/scratch/kocevski/780470/likelihoodResults_340934401_341193601_4FGL_J1017.8+0715_daily_bin392.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) = 6693.40455405
delta logL = 0.201647668139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6693.39930227
delta logL = 0.206899448803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.160       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9006       1.0000          .0000       10.000    
     3 'Normalizat'    1.7635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48615       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.

 FCN=   6693.399     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.160        37.907        .17664E-02   -.60269E-03
   2  Index         1.9007        .68563        .26395       -.61875E-04
   3  Normalizat    1.7630        .18999        .51135E-01    .31162E-05
   4  Prefactor     .48630        .15450        .73579E-01    .39371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.1604
  Index      = 1.90065
  Normalizat = 1.76301
  Prefactor  = 0.486296
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.399     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.160        41.565        .70656E-04   -1.4573    
   2  Index         1.9007        .98134        .13941E-01   -.66858    
   3  Normalizat    1.7630        .21589        .22605E-03   -.70633    
   4  Prefactor     .48630        .17517        .32581E-03   -1.1261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19282e-09
Minuit parameter uncertainties:
  1  41.6023
  2  0.991874
  3  0.216009
  4  0.175367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780470': 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) = 6693.39929605
delta logL = 0.206905663289

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.216e+01  4.160e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.901e+00  9.919e-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:  4.863e-01  1.754e-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:  1.763e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 154.473 7.264
Photon Index (Free Index): 1.90 +/- 0.99
Photon Flux (Free Index): 1.14e-08 +/- 1.97e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.93e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/780470/cmap_HighResolution_340934401_341193601_4FGL_J1017.8+0715_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', photon_flux='2.96e-08', energy_flux2='1.02e-05', photon_flux_error='3.63e-08', dlogl='2.07e-01', energy_flux='6.95e-06', photon_flux2='1.14e-08', job_status='DONE', time_completed='2021-09-01 16:31:11.020182', photon_index_error2='0.99', photon_index2='1.90', ts='1.53', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.93e-05', EG='1.74', time_epoch_completed='1630539071.02', return_code='0', job_id='780470', GAL2='0.49', EG2='1.76', return_code2='0', energy_flux_error='8.52e-06', photon_flux_error2='1.97e-08', ts2='1.95', photon_index='2.73' WHERE bin_id='392' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 780470: <4FGL_J1017.8+0715_daily_bin392> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin392> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 16:15:21 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:15:52 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:15:52 2021
Terminated at Wed Sep  1 16:31:11 2021
Results reported at Wed Sep  1 16:31:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin392 154.473 7.2638 340934401 341193601 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 :                                   766.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            950 sec.

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

