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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin498
RA = 154.473, Dec = 7.2638
tmin = 368409601, tmax = 368668801
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='780621', job_status='RUN', time_executed='2021-09-01 16:18:44.283222', time_epoch_executed='1630538324.28' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780621/ft1_4FGL_J1017.8+0715_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780621/ft2_4FGL_J1017.8+0715_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780621/ft1_4FGL_J1017.8+0715_daily_bin498.fits outfile=/scratch/kocevski/780621/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin498.fits ra=154.473 dec=7.2638 rad=12.0 tmin=368409601.0 tmax=368668801.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.58
user 3.13
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/780621/ft2_4FGL_J1017.8+0715_daily_bin498.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/780621/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin498.fits evtable="EVENTS" outfile="/scratch/kocevski/780621/ft1_filtered_4FGL_J1017.8+0715_daily_bin498.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.79
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780621/ft1_filtered_4FGL_J1017.8+0715_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/780621/ft2_4FGL_J1017.8+0715_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/780621/ltcube_368409601_368668801_4FGL_J1017.8+0715_daily_bin498.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/780621/ft2_4FGL_J1017.8+0715_daily_bin498.fits
.....................!
real 18.27
user 17.64
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780621/ft1_filtered_4FGL_J1017.8+0715_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/780621/ft2_4FGL_J1017.8+0715_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/780621/ltcube_368409601_368668801_4FGL_J1017.8+0715_daily_bin498.fits outfile=/scratch/kocevski/780621/expmap_368409601_368668801_4FGL_J1017.8+0715_daily_bin498.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/780621/ltcube_368409601_368668801_4FGL_J1017.8+0715_daily_bin498.fits
.....................!
real 195.23
user 187.09
sys 4.74

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/780621/ft1_filtered_4FGL_J1017.8+0715_daily_bin498.fits scfile=/scratch/kocevski/780621/ft2_4FGL_J1017.8+0715_daily_bin498.fits outfile=/scratch/kocevski/780621/cmap_368409601_368668801_4FGL_J1017.8+0715_daily_bin498.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780621/ft1_filtered_4FGL_J1017.8+0715_daily_bin498.fits scfile=/scratch/kocevski/780621/ft2_4FGL_J1017.8+0715_daily_bin498.fits outfile=/scratch/kocevski/780621/cmap_HighResolution_368409601_368668801_4FGL_J1017.8+0715_daily_bin498.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6672       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.967       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.316       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10844E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7592       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.250       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3880       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9386       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.265       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87269       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4000       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=   6489.088     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2174 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6675        1.3163       -.94075E-08   -.33409E-03
   2  norm          1.8405        .82053        .57776E-07   -.38358E-03
   3  Prefactor     .10000E-03    9.1650        .39673E-06** at limit **
   4  Prefactor     .10000E-03    54.157       -.95525E-05** at limit **
   5  Prefactor     .10000E-03    32.099       -.10797E-04** at limit **
   6  norm          .10000E-03    22.266       -.31355E-05** at limit **
   7  Prefactor     10.964        11.030       -.38705E-06   -.42030E-04
   8  Prefactor     23.320        50.986        .72554E-05   -.53676E-05
   9  Prefactor     .10000E-03    21.787        .46314E-05** at limit **
  10  Prefactor     .10000E-03    37.745        .58746E-05** at limit **
  11  Prefactor     .10000E-03    15.375       -.43715E-06** at limit **
  12  norm          .10000E-03    .48686        .22192E-07** at limit **
  13  Prefactor     .10035E-03    5.2875        .16594E-05** at limit **
  14  Prefactor     7.7596        4.0774       -.63803E-08   -.15413E-03
  15  Prefactor     13.253        9.8460       -.20312E-06   -.69346E-04
  16  Prefactor     5.3893        8.9044        .30539E-06   -.15442E-03
  17  norm          1.9386        .77231        .66008E-07    .79532E-05
  18  Prefactor     .10000E-03    3.3101        .33962E-07** at limit **
  19  Prefactor     33.258        34.726       -.71794E-05   -.67210E-05
  20  Normalizat    .87253        .21397       -.16034E-05   -.87935E-04
  21  Prefactor     1.4000        .17621        .69124E-06   -.21951E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66753
  norm       = 1.84047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9641
  Prefactor  = 23.3204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100349
  Prefactor  = 7.75961
  Prefactor  = 13.2527
  Prefactor  = 5.38931
  norm       = 1.93856
  Prefactor  = 0.0001
  Prefactor  = 33.2578
  Normalizat = 0.872534
  Prefactor  = 1.40001
 **********
 **   18 **HESSE 
 **********

 FCN=   6489.088     FROM HESSE     STATUS=OK           319 CALLS     2493 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6675        1.3147        .77810E-04   -1.5450    
   2  norm          1.8405        .81455        .46222E-04   -1.5437    
   3  Prefactor     .10000E-03    9.2526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    22.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.964        11.009        .12098E-03   -1.5046    
   8  Prefactor     23.320        50.991        .82955E-04   -1.4742    
   9  Prefactor     .10000E-03    21.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .49353        .54845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10035E-03    40.721        .34688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7596        4.0764        .11127E-03   -1.5151    
  15  Prefactor     13.253        9.8926        .11004E-03   -1.4980    
  16  Prefactor     5.3893        8.8659        .17312E-03   -1.5244    
  17  norm          1.9386        .77265        .43253E-04   -1.5429    
  18  Prefactor     .10000E-03    3.3132        .14311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.258        34.746        .69477E-04   -1.4554    
  20  Normalizat    .87253        .24952        .32721E-03   -.97432    
  21  Prefactor     1.4000        .20660        .23154E-03   -.80380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09785e-09
Minuit parameter uncertainties:
  1  1.31474
  2  0.814555
  3  1.09832e-05
  4  4.15248e-05
  5  8.62424e-06
  6  2.18216e-05
  7  11.0114
  8  51.0868
  9  3.06781e-06
  10  5.11589e-05
  11  2.20842e-05
  12  5.62521e-07
  13  0.0075436
  14  4.07656
  15  9.89378
  16  8.86804
  17  0.772653
  18  2.61154e-06
  19  34.7671
  20  0.249853
  21  0.206719
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.332e+01  5.109e+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.400e+00  2.067e-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:  8.725e-01  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/780621/likelihoodResults_368409601_368668801_4FGL_J1017.8+0715_daily_bin498.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) = 6488.54572636
delta logL = 0.54263656788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6488.54263106
delta logL = 0.545731867737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.321       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4990       1.0000          .0000       10.000    
     3 'Normalizat'    .89250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3873       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=   6488.543     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      219 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 18.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.399        44.715        .37217E-04   -.23445E-03
   2  Index         1.5002        .88108        .14869E-03    .56702E-04
   3  Normalizat    .89247        .19957       -.20580E-05   -.16623E-03
   4  Prefactor     1.3873        .17447        .32043E-06   -.19222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.3992
  Index      = 1.50022
  Normalizat = 0.892467
  Prefactor  = 1.38733
 **********
 **   18 **HESSE 
 **********

 FCN=   6488.543     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.399        41.847        .41473E-03   -1.4740    
   2  Index         1.5002        .82448        .11083E-01   -.77534    
   3  Normalizat    .89247        .23354        .32377E-03   -.96725    
   4  Prefactor     1.3873        .20458        .23228E-03   -.80746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6718e-10
Minuit parameter uncertainties:
  1  41.9
  2  0.831982
  3  0.233802
  4  0.204698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780621': 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) = 6488.5426295
delta logL = 0.545733424302

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.340e+01  4.190e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.500e+00  8.320e-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.387e+00  2.047e-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:  8.925e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 154.473 7.264
Photon Index (Free Index): 1.50 +/- 0.83
Photon Flux (Free Index): 7.00e-09 +/- 1.27e-08
Energy Flux (Free Index): 2.21e-05 +/- 4.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/780621/cmap_HighResolution_368409601_368668801_4FGL_J1017.8+0715_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', comment='SUCCESS', energy_flux2='2.21e-05', dlogl='5.46e-01', photon_flux2='7.00e-09', job_status='DONE', time_completed='2021-09-01 16:28:55.010582', photon_index_error2='0.83', photon_index2='1.50', ts='0.26', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='4.42e-05', EG='0.87', time_epoch_completed='1630538935.01', return_code='0', job_id='780621', GAL2='1.39', EG2='0.89', return_code2='0', photon_flux_error2='1.27e-08', ts2='1.35', photon_index='2.73' WHERE bin_id='498' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:28:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 780621: <4FGL_J1017.8+0715_daily_bin498> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin498 154.473 7.2638 368409601 368668801 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 :                                   598.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            804 sec.

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

