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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin625
RA = 169.271, Dec = 20.2294
tmin = 401328001, tmax = 401587201
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='635769', job_status='RUN', time_executed='2021-09-03 14:17:18.938012', time_epoch_executed='1630703838.94' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635769/ft1_4FGL_J1117.0+2013_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635769/ft2_4FGL_J1117.0+2013_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635769/ft1_4FGL_J1117.0+2013_daily_bin625.fits outfile=/scratch/kocevski/635769/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin625.fits ra=169.271 dec=20.2294 rad=12.0 tmin=401328001.0 tmax=401587201.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.45
user 3.24
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/635769/ft2_4FGL_J1117.0+2013_daily_bin625.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/635769/ft2_4FGL_J1117.0+2013_daily_bin625.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/635769/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin625.fits evtable="EVENTS" outfile="/scratch/kocevski/635769/ft1_filtered_4FGL_J1117.0+2013_daily_bin625.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635769/ft1_filtered_4FGL_J1117.0+2013_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/635769/ft2_4FGL_J1117.0+2013_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/635769/ltcube_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.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/635769/ft2_4FGL_J1117.0+2013_daily_bin625.fits
.....................!
real 16.13
user 15.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635769/ft1_filtered_4FGL_J1117.0+2013_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/635769/ft2_4FGL_J1117.0+2013_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/635769/ltcube_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.fits outfile=/scratch/kocevski/635769/expmap_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.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/635769/ltcube_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.fits
.....................!
real 191.85
user 186.61
sys 4.70

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1117.0+2013 @ 169.271 20.2294

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/635769/ft1_filtered_4FGL_J1117.0+2013_daily_bin625.fits scfile=/scratch/kocevski/635769/ft2_4FGL_J1117.0+2013_daily_bin625.fits outfile=/scratch/kocevski/635769/cmap_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.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=169.271 yref=20.2294 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635769/ft1_filtered_4FGL_J1117.0+2013_daily_bin625.fits scfile=/scratch/kocevski/635769/ft2_4FGL_J1117.0+2013_daily_bin625.fits outfile=/scratch/kocevski/635769/cmap_HighResolution_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.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=169.271 yref=20.2294 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/635769/ft1_filtered_4FGL_J1117.0+2013_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/635769/ft2_4FGL_J1117.0+2013_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/635769/Model_4FGL_J1117.0+2013_daily_bin625.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/635769/ft1_filtered_4FGL_J1117.0+2013_daily_bin625.fits....................!
real 52.59
user 51.23
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/635769/ft1_filtered_4FGL_J1117.0+2013_daily_bin625.fits', '/scratch/kocevski/635769/ft2_4FGL_J1117.0+2013_daily_bin625.fits', expMap='/scratch/kocevski/635769/expmap_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.fits', expCube='/scratch/kocevski/635769/ltcube_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/635769/Model_4FGL_J1117.0+2013_daily_bin625.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1117.0+2013'

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.413e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/635769/ft1_filtered_4FGL_J1117.0+2013_daily_bin625.fits
Spacecraft file(s): /scratch/kocevski/635769/ft2_4FGL_J1117.0+2013_daily_bin625.fits
Exposure map: /scratch/kocevski/635769/expmap_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.fits
Exposure cube: /scratch/kocevski/635769/ltcube_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/635769/Model_4FGL_J1117.0+2013_daily_bin625.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) = 5258.34015288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3668       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.433       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3377       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.605       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.341       1.0000         .10000E-03   10000.    
     8 'norm      '    .98279       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5501       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9530       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.707       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .79736       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31023       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84387       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1617       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5258.302     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2048 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3693        7.3026       -.35134E-05   -.32216E-03
   2  Prefactor     .10000E-03    .62314        .11288E-06** at limit **
   3  Prefactor     13.432        7.3894       -.54250E-07    .28832E-05
   4  Prefactor     4.3392        7.4923       -.30205E-05   -.27011E-03
   5  Prefactor     .10000E-03    3.4566       -.47137E-07** at limit **
   6  Prefactor     11.611        11.441        .85580E-06    .96176E-04
   7  Prefactor     18.350        16.819       -.15670E-05   -.11244E-03
   8  norm          .98279        1.0170        .14353E-06    .12644E-03
   9  Prefactor     1.5473        1.6012        .61773E-06   -.34867E-02
  10  Prefactor     .10001E-03    6.6587        .21951E-06** at limit **
  11  norm          .10000E-03    5.0135        .58599E-07** at limit **
  12  norm          .10000E-03    2.9550       -.26208E-07** at limit **
  13  Prefactor     .10000E-03    6.7658       -.67487E-07** at limit **
  14  Prefactor     5.9576        19.759        .59314E-06    .73639E-05
  15  Prefactor     .10000E-03    82.893       -.30981E-05** at limit **
  16  Prefactor     27.707        16.357       -.31014E-07    .29155E-04
  17  Prefactor     .10000E-03    13.147       -.46382E-06** at limit **
  18  Prefactor     .79641        7.3308        .41216E-05   -.15826E-03
  19  Prefactor     1.0162        1.4127       -.12108E-06   -.38550E-03
  20  Prefactor     .31001        2.8567       -.53259E-06   -.50060E-03
  21  Normalizat    .84400        .17969        .20595E-05   -.32200E-04
  22  Prefactor     1.1616        .18846       -.49600E-06    .92772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36927
  Prefactor  = 0.0001
  Prefactor  = 13.4321
  Prefactor  = 4.33916
  Prefactor  = 0.0001
  Prefactor  = 11.6109
  Prefactor  = 18.3504
  norm       = 0.982786
  Prefactor  = 1.54732
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.95755
  Prefactor  = 0.000100001
  Prefactor  = 27.707
  Prefactor  = 0.0001
  Prefactor  = 0.796412
  Prefactor  = 1.01625
  Prefactor  = 0.310012
  Normalizat = 0.843996
  Prefactor  = 1.16159
 **********
 **   18 **HESSE 
 **********

 FCN=   5258.302     FROM HESSE     STATUS=OK           352 CALLS     2400 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3693        7.3380        .17347E-03   -1.5244    
   2  Prefactor     .10000E-03    .62844        .55929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.432        7.3883        .10929E-03   -1.4975    
   4  Prefactor     4.3392        7.4689        .19341E-03   -1.5291    
   5  Prefactor     .10000E-03    3.4597        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.611        11.935        .11760E-03   -1.5026    
   7  Prefactor     18.350        16.759        .93521E-04   -1.4851    
   8  norm          .98279        .98746        .71719E-03   -1.5510    
   9  Prefactor     1.5473        2.8312        .75023E-03   -1.5459    
  10  Prefactor     .10001E-03    36.153        .35734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.0275        .15855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.9585        .12174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9576        19.637        .16458E-03   -1.5220    
  15  Prefactor     .10000E-03    84.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.707        16.272        .76110E-04   -1.4655    
  17  Prefactor     .10000E-03    13.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .79641        7.3546        .38083E-03   -1.5529    
  19  Prefactor     1.0162        1.2678        .97680E-03   -1.5506    
  20  Prefactor     .31001        2.9762        .24025E-03   -1.5597    
  21  Normalizat    .84400        .20627        .25296E-03   -.98457    
  22  Prefactor     1.1616        .21797        .24155E-03   -.87522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3309e-09
Minuit parameter uncertainties:
  1  7.3392
  2  7.40919e-06
  3  7.3888
  4  7.4705
  5  2.02608e-05
  6  11.937
  7  16.7637
  8  0.987474
  9  2.83144
  10  0.000975596
  11  7.82474e-06
  12  3.27188e-06
  13  1.47028e-05
  14  19.6582
  15  0.000481214
  16  16.2747
  17  3.47623e-05
  18  4.84083
  19  1.26784
  20  1.92091
  21  0.206466
  22  0.218139
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  9.756e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.162e+00  2.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.440e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 169.271 20.229
Photon Flux Upper Limit: 6.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/635769/likelihoodResults_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5258.30261941
delta logL = -0.000130139938847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5258.30244395
delta logL = 4.532017374e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22952E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1250       1.0000          .0000       10.000    
     3 'Normalizat'    .84397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1616       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5257.056     FROM MIGRAD    STATUS=CONVERGED    199 CALLS      373 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .28057E-02    .31647E-03** at limit **
   2  Index         6.7279        2.0151        .86151E-01    .88147E-04
   3  Normalizat    .73655        .47600E-01    .44181E-01    .12340E-03
   4  Prefactor     1.2387        .51269E-01    .53162E-01    .10911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.72787
  Normalizat = 0.73655
  Prefactor  = 1.23869
 **********
 **   18 **HESSE 
 **********

 FCN=   5257.056     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      412 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .23571E-01    .13460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7279        3.2442        .33729E-02    .35285    
   3  Normalizat    .73655        .11611        .26899E-03   -1.0247    
   4  Prefactor     1.2387        .12592        .23503E-03   -.85149    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.61377e-09
Minuit parameter uncertainties:
  1  2.47151e-07
  2  3.58219
  3  0.116144
  4  0.125955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635769': 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): 102
logL (Free Index) = 5257.05625586
delta logL = 1.24623340984

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.472e-07  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  6.728e+00  3.582e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.239e+00  1.260e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  7.365e-01  1.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 169.271 20.229
Photon Index (Free Index): 6.73 +/- 3.58
Photon Flux (Free Index): 7.40e-08 +/- 7.26e-07
Energy Flux (Free Index): 8.92e-06 +/- 8.68e-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/635769/cmap_HighResolution_401328001_401587201_4FGL_J1117.0+2013_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', comment='SUCCESS', energy_flux2='8.92e-06', dlogl='1.25e+00', photon_flux2='7.40e-08', job_status='DONE', time_completed='2021-09-03 14:27:44.081056', photon_index_error2='3.58', photon_index2='6.73', ts='-0.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='6.93e-08', energy_flux_error2='8.68e-05', EG='0.84', time_epoch_completed='1630704464.08', return_code='0', job_id='635769', GAL2='1.24', EG2='0.74', return_code2='102', photon_flux_error2='7.26e-07', ts2='2.74', photon_index='1.96' WHERE bin_id='625' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:27:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 635769: <4FGL_J1117.0+2013_daily_bin625> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin625> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 14:16:31 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:17:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 14:17:06 2021
Terminated at Fri Sep  3 14:27:44 2021
Results reported at Fri Sep  3 14:27:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin625 169.271 20.2294 401328001 401587201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1117.0+2013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   623.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            673 sec.

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

