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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin924
RA = 154.473, Dec = 7.2638
tmin = 478828801, tmax = 479088001
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='782386', job_status='RUN', time_executed='2021-09-01 16:26:50.480295', time_epoch_executed='1630538810.48' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782386/ft1_4FGL_J1017.8+0715_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782386/ft2_4FGL_J1017.8+0715_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782386/ft1_4FGL_J1017.8+0715_daily_bin924.fits outfile=/scratch/kocevski/782386/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin924.fits ra=154.473 dec=7.2638 rad=12.0 tmin=478828801.0 tmax=479088001.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.49
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782386/ft1_filtered_4FGL_J1017.8+0715_daily_bin924.fits" evtable="EVENTS" scfile=/scratch/kocevski/782386/ft2_4FGL_J1017.8+0715_daily_bin924.fits sctable="SC_DATA" outfile=/scratch/kocevski/782386/ltcube_478828801_479088001_4FGL_J1017.8+0715_daily_bin924.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/782386/ft2_4FGL_J1017.8+0715_daily_bin924.fits
.....................!
real 15.05
user 14.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782386/ft1_filtered_4FGL_J1017.8+0715_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/782386/ft2_4FGL_J1017.8+0715_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/782386/ltcube_478828801_479088001_4FGL_J1017.8+0715_daily_bin924.fits outfile=/scratch/kocevski/782386/expmap_478828801_479088001_4FGL_J1017.8+0715_daily_bin924.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/782386/ltcube_478828801_479088001_4FGL_J1017.8+0715_daily_bin924.fits
.....................!
real 191.45
user 186.26
sys 4.57

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/782386/ft1_filtered_4FGL_J1017.8+0715_daily_bin924.fits scfile=/scratch/kocevski/782386/ft2_4FGL_J1017.8+0715_daily_bin924.fits outfile=/scratch/kocevski/782386/cmap_478828801_479088001_4FGL_J1017.8+0715_daily_bin924.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8717       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2693       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27117E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.545       1.0000         .10000E-03   10000.    
     6 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12308E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.499       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7577       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0189       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.705       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8864       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0912       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1467       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=   5704.081     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2689 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8718        1.5394        .96437E-07   -.17628E-04
   2  norm          1.2694        .79480        .12749E-08    .56703E-04
   3  Prefactor     .10000E-03    12.079        .51746E-06** at limit **
   4  Prefactor     .10000E-03    104.28       -.99859E-05** at limit **
   5  Prefactor     21.494        65.122       -.31712E-05   -.42575E-04
   6  norm          .10000E-03    6.5601        .15555E-06** at limit **
   7  Prefactor     .10000E-03    8.5528        .88346E-06** at limit **
   8  Prefactor     .10000E-03    37.156        .36382E-07** at limit **
   9  Prefactor     .10000E-03    14.638       -.89141E-07** at limit **
  10  Prefactor     21.512        32.125       -.14481E-05    .10517E-04
  11  Prefactor     .10000E-03    15.819        .23527E-05** at limit **
  12  norm          2.7578        1.5045       -.14433E-07    .48075E-04
  13  Prefactor     .10000E-03    4.7290       -.44464E-06** at limit **
  14  Prefactor     .10000E-03    1.7344        .97636E-07** at limit **
  15  Prefactor     7.0187        6.6394        .20774E-05   -.79305E-04
  16  Prefactor     10.706        9.8562        .23478E-06   -.19887E-04
  17  norm          1.8866        .86003        .54933E-07   -.65374E-04
  18  Prefactor     .10000E-03    9.4179        .16678E-06** at limit **
  19  Prefactor     .10000E-03    27.305        .76950E-06** at limit **
  20  Normalizat    1.0910        .20591        .69679E-06   -.47667E-04
  21  Prefactor     1.1469        .17684       -.11433E-05    .46610E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87181
  norm       = 1.26938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4938
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5118
  Prefactor  = 0.0001
  norm       = 2.75777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.01872
  Prefactor  = 10.7055
  norm       = 1.88664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.091
  Prefactor  = 1.14687
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.081     FROM HESSE     STATUS=OK           313 CALLS     3002 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8718        1.5303        .80467E-04   -1.5434    
   2  norm          1.2694        .78008        .50860E-04   -1.5483    
   3  Prefactor     .10000E-03    12.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    103.37        .21432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.494        65.141        .86292E-04   -1.4780    
   6  norm          .10000E-03    6.5692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.512        32.200        .86386E-04   -1.4780    
  11  Prefactor     .10000E-03    16.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7578        1.5044        .66031E-04   -1.5376    
  13  Prefactor     .10000E-03    4.7668        .16023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.7863        .19405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0187        6.6792        .75711E-03   -1.5178    
  16  Prefactor     10.706        9.8482        .12245E-03   -1.5053    
  17  norm          1.8866        .85628        .45093E-04   -1.5433    
  18  Prefactor     .10000E-03    9.4616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0910        .24350        .27724E-03   -.90041    
  21  Prefactor     1.1469        .20859        .23782E-03   -.87982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0827e-10
Minuit parameter uncertainties:
  1  1.53029
  2  0.780085
  3  3.72599e-05
  4  0.000250474
  5  65.3579
  6  4.54801e-06
  7  1.96874e-05
  8  0.00019047
  9  4.4967e-05
  10  32.2255
  11  1.33458e-06
  12  1.50441
  13  1.01675e-05
  14  1.13023e-06
  15  6.67989
  16  9.84966
  17  0.856289
  18  2.87853e-05
  19  0.000226033
  20  0.243752
  21  0.208743
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.905e-04  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.147e+00  2.087e-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.091e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782386/likelihoodResults_478828801_479088001_4FGL_J1017.8+0715_daily_bin924.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) = 5704.08115645
delta logL = -0.000127811299535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5704.08102865
delta logL = -5.54609869141e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6943       1.0000          .0000       10.000    
     3 'Normalizat'    1.0910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1469       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=   5704.081     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      207 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.152        .90712E-02** at limit **
   2  Index         2.6786        6.3390        .50000        .38370E-05
   3  Normalizat    1.0910        .19774        .62679E-01    .17046E-04
   4  Prefactor     1.1469        .17423        .53788E-01    .10131E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.67863
  Normalizat = 1.091
  Prefactor  = 1.14687
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.081     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6786        6.3311        .50000       -.48281    
   3  Normalizat    1.0910        .23446        .27724E-03   -.90041    
   4  Prefactor     1.1469        .20671        .23782E-03   -.87982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60656e-11
Minuit parameter uncertainties:
  1  5.29098e-05
  2  4.45792
  3  0.234686
  4  0.206856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782386': 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) = 5704.08102859
delta logL = 4.53437678516e-08

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  5.291e-05  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.679e+00  4.458e+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.147e+00  2.069e-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.091e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/782386/cmap_HighResolution_478828801_479088001_4FGL_J1017.8+0715_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', job_status='DONE', photon_flux_upper_limit='9.31e-08', time_completed='2021-09-01 16:36:46.455005', job_id='782386', GAL2='1.15', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630539406.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='4.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='924' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:36:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 782386: <4FGL_J1017.8+0715_daily_bin924> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin924> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 16:21:02 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:23:46 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:23:46 2021
Terminated at Wed Sep  1 16:36:47 2021
Results reported at Wed Sep  1 16:36:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin924 154.473 7.2638 478828801 479088001 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 :                                   595.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             243.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            945 sec.

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

