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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin167
RA = 154.473, Dec = 7.2638
tmin = 282614401, tmax = 282873601
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='779148', job_status='RUN', time_executed='2021-09-01 16:13:50.302703', time_epoch_executed='1630538030.3' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779148/ft1_4FGL_J1017.8+0715_daily_bin167.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779148/ft2_4FGL_J1017.8+0715_daily_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779148/ft1_4FGL_J1017.8+0715_daily_bin167.fits outfile=/scratch/kocevski/779148/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin167.fits ra=154.473 dec=7.2638 rad=12.0 tmin=282614401.0 tmax=282873601.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.66
user 3.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779148/ft2_4FGL_J1017.8+0715_daily_bin167.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/779148/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/779148/ft1_filtered_4FGL_J1017.8+0715_daily_bin167.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779148/ft1_filtered_4FGL_J1017.8+0715_daily_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/779148/ft2_4FGL_J1017.8+0715_daily_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/779148/ltcube_282614401_282873601_4FGL_J1017.8+0715_daily_bin167.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/779148/ft2_4FGL_J1017.8+0715_daily_bin167.fits
.....................!
real 16.31
user 15.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779148/ft1_filtered_4FGL_J1017.8+0715_daily_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/779148/ft2_4FGL_J1017.8+0715_daily_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/779148/ltcube_282614401_282873601_4FGL_J1017.8+0715_daily_bin167.fits outfile=/scratch/kocevski/779148/expmap_282614401_282873601_4FGL_J1017.8+0715_daily_bin167.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/779148/ltcube_282614401_282873601_4FGL_J1017.8+0715_daily_bin167.fits
.....................!
real 191.14
user 186.00
sys 4.72

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/779148/ft1_filtered_4FGL_J1017.8+0715_daily_bin167.fits scfile=/scratch/kocevski/779148/ft2_4FGL_J1017.8+0715_daily_bin167.fits outfile=/scratch/kocevski/779148/cmap_282614401_282873601_4FGL_J1017.8+0715_daily_bin167.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.54
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3071       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.635       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10549E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0992       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7343       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2826       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47551       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1555       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0745       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=   5164.824     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2229 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .56641       -.67629E-07** at limit **
   2  norm          1.3074        .71403        .10842E-09    .55129E-04
   3  Prefactor     17.630        14.803        .55621E-06    .22073E-04
   4  Prefactor     .10000E-03    17.698       -.50003E-06** at limit **
   5  Prefactor     .10000E-03    25.627       -.36293E-06** at limit **
   6  norm          .10000E-03    11.386        .29011E-06** at limit **
   7  Prefactor     .10000E-03    5.4505        .28229E-06** at limit **
   8  Prefactor     8.1594        139.05       -.15046E-04    .22114E-05
   9  Prefactor     1.6763        129.90        .85688E-06   -.17462E-05
  10  Prefactor     .10000E-03    22.648        .10319E-05** at limit **
  11  Prefactor     .10000E-03    7.6314        .21467E-06** at limit **
  12  norm          .10000E-03    .42133        .26607E-07** at limit **
  13  Prefactor     3.7371        6.6972        .20264E-05    .44533E-04
  14  Prefactor     3.2818        3.0717        .85091E-07    .51849E-04
  15  Prefactor     .49228        4.5249        .56377E-06   -.21193E-03
  16  Prefactor     .10000E-03    13.550       -.33412E-07** at limit **
  17  norm          .10000E-03    .54302       -.15053E-06** at limit **
  18  Prefactor     .10000E-03    10.098       -.40080E-06** at limit **
  19  Prefactor     .10000E-03    9.7991        .14340E-06** at limit **
  20  Normalizat    1.1551        .21888       -.70484E-06    .29322E-04
  21  Prefactor     1.0745        .18334        .10238E-05    .58233E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.30741
  Prefactor  = 17.6303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.15935
  Prefactor  = 1.67633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.73709
  Prefactor  = 3.28183
  Prefactor  = 0.49228
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15513
  Prefactor  = 1.07454
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.824     FROM HESSE     STATUS=OK           317 CALLS     2546 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .58601        .10554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3074        .70758        .43227E-04   -1.5479    
   3  Prefactor     17.630        14.786        .95375E-04   -1.4868    
   4  Prefactor     .10000E-03    17.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4702        .16391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1594        141.50        .14088E-03   -1.5137    
   9  Prefactor     1.6763        131.72        .33463E-03   -1.5449    
  10  Prefactor     .10000E-03    22.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.6407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .42486        .45546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7371        6.7524        .10448E-02   -1.5321    
  14  Prefactor     3.2818        3.0670        .11703E-03   -1.5346    
  15  Prefactor     .49228        26.262        .28415E-02   -1.5568    
  16  Prefactor     .10000E-03    13.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.2752        .10169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.8056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1551        .25870        .25658E-03   -.88001    
  21  Prefactor     1.0745        .21769        .23222E-03   -.90285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24242e-10
Minuit parameter uncertainties:
  1  1.17317e-06
  2  0.70758
  3  14.7894
  4  1.65043e-06
  5  1.33704e-06
  6  2.61283e-05
  7  2.18134e-05
  8  68.1456
  9  29.7868
  10  4.35717e-05
  11  2.00423e-05
  12  2.70884e-07
  13  6.75377
  14  3.06715
  15  7.1938
  16  2.27057e-05
  17  1.05517e-05
  18  3.03983e-06
  19  5.38387e-06
  20  0.258988
  21  0.217873
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  8.159e+00  6.815e+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.075e+00  2.179e-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.155e+00  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/779148/likelihoodResults_282614401_282873601_4FGL_J1017.8+0715_daily_bin167.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) = 5164.81176081
delta logL = 0.0119110359747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5164.81128551
delta logL = 0.0123863299495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0853       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0951       1.0000          .0000       10.000    
     3 'Normalizat'    1.1499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0771       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=   5164.811     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      254 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1958        921.87        .33242E-02    .84096E-05
   2  Index         3.0888        2.3393        .50000        .10261E-04
   3  Normalizat    1.1487        .22617E-01    .58158E-01    .36635E-05
   4  Prefactor     1.0776        .19939E-01    .38529E-01   -.76860E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.19582
  Index      = 3.08876
  Normalizat = 1.14873
  Prefactor  = 1.07757
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.811     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1958        82.758        .13297E-03   -1.5101    
   2  Index         3.0888        2.2612        .87370E-02   -.39223    
   3  Normalizat    1.1487        .25252        .25720E-03   -.88202    
   4  Prefactor     1.0776        .21631        .23193E-03   -.90187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19364e-12
Minuit parameter uncertainties:
  1  55.2751
  2  2.36285
  3  0.252788
  4  0.216487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779148': 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) = 5164.81126299
delta logL = 0.0124088485572

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  9.196e+00  5.528e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.089e+00  2.363e+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:  1.078e+00  2.165e-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.149e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/779148/cmap_HighResolution_282614401_282873601_4FGL_J1017.8+0715_daily_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-01 16:23:08.597217', job_id='779148', GAL2='1.08', fit_tolerance='1e-08', EG2='1.15', EG='1.16', time_epoch_completed='1630538588.6', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.24e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='167' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:23:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 779148: <4FGL_J1017.8+0715_daily_bin167> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin167> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 16:10:51 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:13:41 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:13:41 2021
Terminated at Wed Sep  1 16:23:09 2021
Results reported at Wed Sep  1 16:23:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin167 154.473 7.2638 282614401 282873601 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 :                                   548.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            738 sec.

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

