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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin385
RA = 154.473, Dec = 7.2638
tmin = 339120001, tmax = 339379201
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='780459', job_status='RUN', time_executed='2021-09-01 16:18:00.039611', time_epoch_executed='1630538280.04' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780459

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780459/ft1_4FGL_J1017.8+0715_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780459/ft2_4FGL_J1017.8+0715_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780459/ft1_4FGL_J1017.8+0715_daily_bin385.fits outfile=/scratch/kocevski/780459/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin385.fits ra=154.473 dec=7.2638 rad=12.0 tmin=339120001.0 tmax=339379201.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 6.38
user 6.11
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780459/ft1_filtered_4FGL_J1017.8+0715_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/780459/ft2_4FGL_J1017.8+0715_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/780459/ltcube_339120001_339379201_4FGL_J1017.8+0715_daily_bin385.fits outfile=/scratch/kocevski/780459/expmap_339120001_339379201_4FGL_J1017.8+0715_daily_bin385.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/780459/ltcube_339120001_339379201_4FGL_J1017.8+0715_daily_bin385.fits
.....................!
real 195.93
user 190.05
sys 4.14

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/780459/ft1_filtered_4FGL_J1017.8+0715_daily_bin385.fits scfile=/scratch/kocevski/780459/ft2_4FGL_J1017.8+0715_daily_bin385.fits outfile=/scratch/kocevski/780459/cmap_339120001_339379201_4FGL_J1017.8+0715_daily_bin385.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.473 yref=7.2638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780459/ft1_filtered_4FGL_J1017.8+0715_daily_bin385.fits scfile=/scratch/kocevski/780459/ft2_4FGL_J1017.8+0715_daily_bin385.fits outfile=/scratch/kocevski/780459/cmap_HighResolution_339120001_339379201_4FGL_J1017.8+0715_daily_bin385.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.59
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61308       1.0000         .10000E-03   10000.    
     2 'norm      '    3.6385       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22565E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.489       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5575       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7852       1.0000         .10000E-03   10000.    
     8 'Prefactor '    76.347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.511       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .70726       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9767       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8349       1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.551       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9258       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .52343       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4477       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=   7183.322     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2211 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61314        1.3195       -.60124E-06   -.17502E-02
   2  norm          3.6386        .87514       -.43601E-08   -.17320E-03
   3  Prefactor     .10001E-03    6.0824        .49709E-06** at limit **
   4  Prefactor     .10000E-03    12.722        .12359E-04** at limit **
   5  Prefactor     13.488        25.004       -.72658E-06   -.28469E-04
   6  norm          3.5675        12.361       -.47075E-05   -.19734E-03
   7  Prefactor     9.7869        12.312        .10139E-04    .87953E-04
   8  Prefactor     76.366        63.717        .19065E-04    .54266E-04
   9  Prefactor     .10000E-03    60.794       -.36214E-05** at limit **
  10  Prefactor     22.484        61.606       -.48678E-04    .66741E-04
  11  Prefactor     .10000E-03    13.319       -.11923E-04** at limit **
  12  norm          .70741        .90851       -.19346E-07   -.66847E-03
  13  Prefactor     8.9771        6.3447        .11329E-06   -.13990E-03
  14  Prefactor     2.3775        3.0035       -.20981E-06   -.53615E-03
  15  Prefactor     8.8345        8.4132       -.42438E-06   -.10969E-03
  16  Prefactor     57.551        12.819        .34596E-07    .44636E-04
  17  norm          3.9259        .94463       -.42503E-07    .15646E-03
  18  Prefactor     .10000E-03    8.9139       -.32429E-06** at limit **
  19  Prefactor     .10000E-03    7.5054       -.98495E-07** at limit **
  20  Normalizat    .52345        .21083       -.20099E-05    .37773E-04
  21  Prefactor     1.4477        .17249        .94115E-06    .28652E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.613141
  norm       = 3.63858
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 13.4882
  norm       = 3.56752
  Prefactor  = 9.78694
  Prefactor  = 76.3656
  Prefactor  = 0.0001
  Prefactor  = 22.4839
  Prefactor  = 0.000100001
  norm       = 0.707407
  Prefactor  = 8.97714
  Prefactor  = 2.37753
  Prefactor  = 8.83445
  Prefactor  = 57.5512
  norm       = 3.92588
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.523452
  Prefactor  = 1.44768
 **********
 **   18 **HESSE 
 **********

 FCN=   7183.322     FROM HESSE     STATUS=OK           325 CALLS     2536 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61314        1.2827        .13074E-03   -1.5551    
   2  norm          3.6386        .87387        .36924E-04   -1.5326    
   3  Prefactor     .10001E-03    25.615        .37497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.488        24.997        .10906E-03   -1.4973    
   6  norm          3.5675        11.574        .21428E-03   -1.5330    
   7  Prefactor     9.7869        12.266        .12810E-03   -1.5082    
   8  Prefactor     76.366        63.661        .45956E-04   -1.3958    
   9  Prefactor     .10000E-03    61.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.484        61.002        .84423E-04   -1.4759    
  11  Prefactor     .10000E-03    13.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .70741        .78881        .88218E-03   -1.5540    
  13  Prefactor     8.9771        6.3228        .13377E-03   -1.5109    
  14  Prefactor     2.3775        2.9837        .15624E-03   -1.5400    
  15  Prefactor     8.8345        8.4121        .13485E-03   -1.5113    
  16  Prefactor     57.551        12.780        .52881E-04   -1.4189    
  17  norm          3.9259        .94309        .38774E-04   -1.5312    
  18  Prefactor     .10000E-03    9.0055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .52345        .22935        .39499E-03   -1.1134    
  21  Prefactor     1.4477        .19397        .22256E-03   -.79016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77118e-09
Minuit parameter uncertainties:
  1  1.28275
  2  0.873871
  3  0.00105955
  4  1.45709e-06
  5  25.0166
  6  11.5812
  7  12.2687
  8  63.7183
  9  2.1182e-05
  10  61.1717
  11  0.000247509
  12  0.788823
  13  6.32324
  14  2.98389
  15  8.41326
  16  12.7807
  17  0.943097
  18  1.2389e-05
  19  1.6979e-06
  20  0.229762
  21  0.194067
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.637e+01  6.372e+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.448e+00  1.941e-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:  5.235e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.19
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 6.46e-08 +/- 5.38e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/780459/likelihoodResults_339120001_339379201_4FGL_J1017.8+0715_daily_bin385.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) = 7183.31731453
delta logL = 0.00429892011107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7183.31248103
delta logL = 0.00913242298702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.050       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6110       1.0000          .0000       10.000    
     3 'Normalizat'    .52939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4434       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=   7183.312     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      265 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.037        87.800        .43816E-04    .16336E-03
   2  Index         2.6110        .91292        .85988E-02    .87281E-04
   3  Normalizat    .52952        .22053        .39282E-03   -.43851E-03
   4  Prefactor     1.4433        .19445        .22283E-03   -.87621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.0366
  Index      = 2.61097
  Normalizat = 0.52952
  Prefactor  = 1.44326
 **********
 **   18 **HESSE 
 **********

 FCN=   7183.312     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.037        83.002        .87632E-05   -1.3872    
   2  Index         2.6110        .86212        .34395E-03   -.49816    
   3  Normalizat    .52952        .22023        .15713E-04   -1.1107    
   4  Prefactor     1.4433        .19418        .44565E-04   -.79141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93022e-10
Minuit parameter uncertainties:
  1  83.1164
  2  0.867756
  3  0.220596
  4  0.19428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780459': 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) = 7183.31248082
delta logL = 0.00913262585891

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  8.404e+01  8.312e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.611e+00  8.678e-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.443e+00  1.943e-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:  5.295e-01  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 154.473 7.264
Photon Index (Free Index): 2.61 +/- 0.87
Photon Flux (Free Index): 6.12e-08 +/- 5.49e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/780459/cmap_HighResolution_339120001_339379201_4FGL_J1017.8+0715_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', photon_flux='6.46e-08', energy_flux2='1.59e-05', photon_flux_error='5.38e-08', dlogl='9.13e-03', energy_flux='1.52e-05', photon_flux2='6.12e-08', job_status='DONE', time_completed='2021-09-01 16:28:59.477864', photon_index_error2='0.87', photon_index2='2.61', ts='2.19', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.36e-05', EG='0.52', time_epoch_completed='1630538939.48', return_code='0', job_id='780459', GAL2='1.44', EG2='0.53', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.49e-08', ts2='2.19', photon_index='2.73' WHERE bin_id='385' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:28:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 780459: <4FGL_J1017.8+0715_daily_bin385> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin385 154.473 7.2638 339120001 339379201 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 :                                   655.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            821 sec.

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

