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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin675
RA = 154.473, Dec = 7.2638
tmin = 414288001, tmax = 414547201
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='782038', job_status='RUN', time_executed='2021-09-01 16:24:48.244893', time_epoch_executed='1630538688.24' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782038/ft1_4FGL_J1017.8+0715_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782038/ft2_4FGL_J1017.8+0715_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782038/ft1_4FGL_J1017.8+0715_daily_bin675.fits outfile=/scratch/kocevski/782038/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin675.fits ra=154.473 dec=7.2638 rad=12.0 tmin=414288001.0 tmax=414547201.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 5.50
user 5.23
sys 0.26

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782038/ft1_filtered_4FGL_J1017.8+0715_daily_bin675.fits" evtable="EVENTS" scfile=/scratch/kocevski/782038/ft2_4FGL_J1017.8+0715_daily_bin675.fits sctable="SC_DATA" outfile=/scratch/kocevski/782038/ltcube_414288001_414547201_4FGL_J1017.8+0715_daily_bin675.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/782038/ft2_4FGL_J1017.8+0715_daily_bin675.fits
.....................!
real 15.80
user 15.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782038/ft1_filtered_4FGL_J1017.8+0715_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/782038/ft2_4FGL_J1017.8+0715_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/782038/ltcube_414288001_414547201_4FGL_J1017.8+0715_daily_bin675.fits outfile=/scratch/kocevski/782038/expmap_414288001_414547201_4FGL_J1017.8+0715_daily_bin675.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/782038/ltcube_414288001_414547201_4FGL_J1017.8+0715_daily_bin675.fits
.....................!
real 191.96
user 186.59
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/782038/ft1_filtered_4FGL_J1017.8+0715_daily_bin675.fits scfile=/scratch/kocevski/782038/ft2_4FGL_J1017.8+0715_daily_bin675.fits outfile=/scratch/kocevski/782038/cmap_414288001_414547201_4FGL_J1017.8+0715_daily_bin675.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782038/ft1_filtered_4FGL_J1017.8+0715_daily_bin675.fits scfile=/scratch/kocevski/782038/ft2_4FGL_J1017.8+0715_daily_bin675.fits outfile=/scratch/kocevski/782038/cmap_HighResolution_414288001_414547201_4FGL_J1017.8+0715_daily_bin675.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2902       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4449       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10887E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.3285       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7124       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3059       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13536E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48651E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3423       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.170       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6425       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .48315       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3975       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78338       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=   5251.760     FROM MIGRAD    STATUS=FAILED       796 CALLS     2234 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2899        1.6717        .63459E-04    .50162E-05
   2  norm          2.4447        .94976        .41832E-04   -.63866E-04
   3  Prefactor     .10000E-03    7.3962        .18142E-02** at limit **
   4  Prefactor     .10000E-03    22.298        .18142E-02** at limit **
   5  Prefactor     .10000E-03    14.135        .18142E-02** at limit **
   6  norm          9.3257        11.936        .13122E-03    .28158E-04
   7  Prefactor     8.7196        8.5709        .13580E-03    .52992E-04
   8  Prefactor     4.2981        219.57        .19414E-03   -.35136E-05
   9  Prefactor     .10000E-03    74.343        .18142E-02** at limit **
  10  Prefactor     .10000E-03    19.394        .18142E-02** at limit **
  11  Prefactor     .10000E-03    5.5634        .16692E-02** at limit **
  12  norm          3.3584        1.6424        .62680E-04   -.64207E-04
  13  Prefactor     .10000E-03    10.635        .18142E-02** at limit **
  14  Prefactor     .10005E-03    46.109        .19865E-02** at limit **
  15  Prefactor     1.3461        12.610        .37820E-03   -.52334E-04
  16  Prefactor     11.164        11.360        .11987E-03   -.12301E-03
  17  norm          2.6430        1.0551        .25081E-04   -.21848E-03
  18  Prefactor     .10000E-03    8.7792        .18142E-02** at limit **
  19  Prefactor     .39624        23.151        .11219        .41367E-02
  20  Normalizat    1.3976        .27013        .25339E-03   -.16410E-03
  21  Prefactor     .78340        .21177        .27151E-03   -.12993E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5251.760     FROM SIMPLEX   STATUS=UNCHANGED    962 CALLS     3196 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2899        1.6717        .24476E-06   -1.5345    
   2  norm          2.4447        .94976        .24635E-06   -1.5395    
   3  Prefactor     .10000E-03    7.3962        .39607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.298        .61618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.135        .57265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.3257        11.936        .24007E-06   -1.5097    
   7  Prefactor     8.7196        8.5709        .24031E-06   -1.5117    
   8  Prefactor     4.2981        219.57        .24695E-06   -1.5293    
   9  Prefactor     .10000E-03    74.343        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.394        .17666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5634        .16546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3584        1.6424        .24401E-06   -1.5341    
  13  Prefactor     .10000E-03    10.635        .33450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    46.109        .50581E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3461        12.610        .24835E-06   -1.5476    
  16  Prefactor     11.164        11.360        .24058E-06   -1.5040    
  17  norm          2.6430        1.0551        .24496E-06   -1.5383    
  18  Prefactor     .10000E-03    8.7792        .29625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .39624        23.151        .24785E-06   -1.5582    
  20  Normalizat    1.3976        .27013        .12835E-06   -.80697    
  21  Prefactor     .78340        .21177        .15957E-06   -1.0034    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5251.760     FROM MIGRAD    STATUS=CONVERGED    309 CALLS     3505 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2899        1.6716        .25384E-05    .89575E-06
   2  norm          2.4447        .94966        .16733E-05    .17345E-04
   3  Prefactor     .10000E-03    7.3967        .36285E-03** at limit **
   4  Prefactor     .10000E-03    22.300        .36285E-03** at limit **
   5  Prefactor     .10000E-03    14.136        .36285E-03** at limit **
   6  norm          9.3256        11.935        .52486E-05   -.38989E-05
   7  Prefactor     8.7196        8.5698        .54320E-05   -.54415E-05
   8  Prefactor     4.2981        219.09        .77656E-05    .20496E-05
   9  Prefactor     .10000E-03    74.352        .36285E-03** at limit **
  10  Prefactor     .10000E-03    19.394        .36285E-03** at limit **
  11  Prefactor     .10000E-03    5.5634        .33385E-03** at limit **
  12  norm          3.3584        1.6423        .25072E-05    .28113E-04
  13  Prefactor     .10000E-03    10.644        .36285E-03** at limit **
  14  Prefactor     .10000E-03    47.274        .79458E-04** at limit **
  15  Prefactor     1.3461        12.598        .15128E-04    .78155E-05
  16  Prefactor     11.164        11.356        .47948E-05    .29401E-04
  17  norm          2.6430        1.0550        .10032E-05    .12399E-05
  18  Prefactor     .10000E-03    8.7812        .36285E-03** at limit **
  19  Prefactor     .39636        15.419        .16649       -.36933E-04
  20  Normalizat    1.3976        .27041        .50678E-04    .29477E-04
  21  Prefactor     .78340        .21197        .10860E-04    .24495E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.28988
  norm       = 2.44472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.32563
  Prefactor  = 8.71957
  Prefactor  = 4.29814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.35841
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.34615
  Prefactor  = 11.1637
  norm       = 2.64296
  Prefactor  = 0.0001
  Prefactor  = 0.396356
  Normalizat = 1.39764
  Prefactor  = 0.783398
 **********
 **   18 **HESSE 
 **********

 FCN=   5251.760     FROM HESSE     STATUS=OK           299 CALLS     3804 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2899        1.6715        .50767E-06   -1.5345    
   2  norm          2.4447        .94977        .36705E-06   -1.5395    
   3  Prefactor     .10000E-03    7.3967        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.300        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.136        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.3256        11.933        .10497E-05   -1.5097    
   7  Prefactor     8.7196        8.5674        .10864E-05   -1.5117    
   8  Prefactor     4.2981        212.23        .15531E-05   -1.5293    
   9  Prefactor     .10000E-03    74.352        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.394        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5634        .66770E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3584        1.6420        .50144E-06   -1.5341    
  13  Prefactor     .10000E-03    10.644        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.272        .15892E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3461        12.597        .30256E-05   -1.5476    
  16  Prefactor     11.164        11.328        .95897E-06   -1.5040    
  17  norm          2.6430        1.0548        .36675E-06   -1.5383    
  18  Prefactor     .10000E-03    8.7813        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .39636        248.79        .54744E-02   -1.5582    
  20  Normalizat    1.3976        .26928        .10136E-04   -.80697    
  21  Prefactor     .78340        .21200        .21721E-05   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84903e-09
Minuit parameter uncertainties:
  1  1.67153
  2  0.949779
  3  6.29124e-06
  4  2.81455e-06
  5  7.02535e-07
  6  11.9365
  7  8.56863
  8  60.6327
  9  4.43252e-06
  10  8.57744e-06
  11  2.41673e-06
  12  1.64204
  13  3.85166e-06
  14  0.000615457
  15  8.23802
  16  11.3298
  17  1.05478
  18  6.93478e-07
  19  19.9415
  20  0.269553
  21  0.212221
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  4.298e+00  6.063e+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:  7.834e-01  2.122e-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.398e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/782038/likelihoodResults_414288001_414547201_4FGL_J1017.8+0715_daily_bin675.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): 102
logL (Free Index) = 5251.32225779
delta logL = 0.437559012421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5251.32205939
delta logL = 0.437757411652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0809       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6862       1.0000          .0000       10.000    
     3 'Normalizat'    1.2970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83638       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=   5251.322     FROM MIGRAD    STATUS=FAILED        82 CALLS      287 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0779        324.78        .16281E-03   -.21680E-02
   2  Index         4.6851        7.1361        .76222E-02   -.54030E-03
   3  Normalizat    1.2972        .24289        .26134E-03   -.12199E-02
   4  Prefactor     .83645        .19599        .26364E-03   -.80790E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5251.322     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      380 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0779        324.78        .20787E-03   -.21680E-02
   2  Index         4.6851        7.1361        .87716E-03   -.54030E-03
   3  Normalizat    1.2972        .24289        .10911E-03   -.12199E-02
   4  Prefactor     .83645        .19599        .18358E-03   -.80790E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5251.322     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      411 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0767        21.340        .65126E-05   -.11626E-03
   2  Index         4.6852        2.2026        .30489E-03   -.21813E-04
   3  Normalizat    1.2972        .27531        .52267E-04   -.32148E-04
   4  Prefactor     .83645        .21868        .52728E-04    .55196E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.07673
  Index      = 4.68523
  Normalizat = 1.29722
  Prefactor  = 0.836445
 **********
 **   18 **HESSE 
 **********

 FCN=   5251.322     FROM HESSE     STATUS=OK            23 CALLS      434 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0767        20.750        .13025E-05   -1.5215    
   2  Index         4.6852        2.1451        .12196E-04   -.62995E-01
   3  Normalizat    1.2972        .27538        .10453E-04   -.83649    
   4  Prefactor     .83645        .21872        .10546E-04   -.98399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24867e-11
Minuit parameter uncertainties:
  1  20.7747
  2  2.2173
  3  0.275693
  4  0.218943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782038': 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) = 5251.32205598
delta logL = 0.437760818214

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  6.077e+00  2.077e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  4.685e+00  2.217e+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:  8.364e-01  2.189e-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.297e+00  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/782038/cmap_HighResolution_414288001_414547201_4FGL_J1017.8+0715_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-01 16:35:27.836324', job_id='782038', GAL2='0.84', fit_tolerance='1e-08', EG2='1.30', EG='1.40', time_epoch_completed='1630539327.84', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.38e-01', ts2='1.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='675' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:35:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 782038: <4FGL_J1017.8+0715_daily_bin675> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin675> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 16:20:31 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:20:43 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:20:43 2021
Terminated at Wed Sep  1 16:35:32 2021
Results reported at Wed Sep  1 16:35:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin675 154.473 7.2638 414288001 414547201 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             216.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            901 sec.

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

