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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin553
RA = 169.271, Dec = 20.2294
tmin = 382665601, tmax = 382924801
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='635656', job_status='RUN', time_executed='2021-09-03 14:16:50.433410', time_epoch_executed='1630703810.43' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635656

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635656/ft1_4FGL_J1117.0+2013_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635656/ft2_4FGL_J1117.0+2013_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635656/ft1_4FGL_J1117.0+2013_daily_bin553.fits outfile=/scratch/kocevski/635656/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin553.fits ra=169.271 dec=20.2294 rad=12.0 tmin=382665601.0 tmax=382924801.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.37
user 3.14
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/635656/ft2_4FGL_J1117.0+2013_daily_bin553.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/635656/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin553.fits evtable="EVENTS" outfile="/scratch/kocevski/635656/ft1_filtered_4FGL_J1117.0+2013_daily_bin553.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.51
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635656/ft1_filtered_4FGL_J1117.0+2013_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/635656/ft2_4FGL_J1117.0+2013_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/635656/ltcube_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.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/635656/ft2_4FGL_J1117.0+2013_daily_bin553.fits
.....................!
real 15.10
user 14.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635656/ft1_filtered_4FGL_J1117.0+2013_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/635656/ft2_4FGL_J1117.0+2013_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/635656/ltcube_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.fits outfile=/scratch/kocevski/635656/expmap_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.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/635656/ltcube_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.fits
.....................!
real 191.09
user 186.03
sys 4.67

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/635656/ft1_filtered_4FGL_J1117.0+2013_daily_bin553.fits scfile=/scratch/kocevski/635656/ft2_4FGL_J1117.0+2013_daily_bin553.fits outfile=/scratch/kocevski/635656/cmap_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635656/ft1_filtered_4FGL_J1117.0+2013_daily_bin553.fits scfile=/scratch/kocevski/635656/ft2_4FGL_J1117.0+2013_daily_bin553.fits outfile=/scratch/kocevski/635656/cmap_HighResolution_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.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.57
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/635656/ft1_filtered_4FGL_J1117.0+2013_daily_bin553.fits', '/scratch/kocevski/635656/ft2_4FGL_J1117.0+2013_daily_bin553.fits', expMap='/scratch/kocevski/635656/expmap_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.fits', expCube='/scratch/kocevski/635656/ltcube_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/635656/Model_4FGL_J1117.0+2013_daily_bin553.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/635656/ft1_filtered_4FGL_J1117.0+2013_daily_bin553.fits
Spacecraft file(s): /scratch/kocevski/635656/ft2_4FGL_J1117.0+2013_daily_bin553.fits
Exposure map: /scratch/kocevski/635656/expmap_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.fits
Exposure cube: /scratch/kocevski/635656/ltcube_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/635656/Model_4FGL_J1117.0+2013_daily_bin553.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) = 5223.50204148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12278E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.491       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49968       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3780       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3185       1.0000         .10000E-03   10000.    
    11 'norm      '    .12977E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .33060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.359       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4305       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0834       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .51796E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0225       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95993       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0777       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5223.497     FROM MIGRAD    STATUS=FAILED       876 CALLS     3160 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7217        .92516E-03** at limit **
   2  Prefactor     .10000E-03    3.6193        .17944E-02** at limit **
   3  Prefactor     11.490        7.8467        .11818E-03    .10341E-03
   4  Prefactor     .52196        29.429        .28190E-02   -.38682E-03
   5  Prefactor     13.137        10.631        .11046E-03    .30875E-05
   6  Prefactor     .10000E-03    11.536        .18142E-02** at limit **
   7  Prefactor     .10000E-03    4.7674        .15395E-02** at limit **
   8  norm          .10000E-03    .58659        .91946E-03** at limit **
   9  Prefactor     1.3782        1.9110        .11483E-03    .53758E-04
  10  Prefactor     2.3187        6.3478        .13470E-02    .33478E-03
  11  norm          .10025E-03    117.15        .39160E-02** at limit **
  12  norm          .10001E-03    7.5022        .61166E-01** at limit **
  13  Prefactor     .10000E-03    23.688        .18142E-02** at limit **
  14  Prefactor     .10000E-03    6.1103        .17438E-02** at limit **
  15  Prefactor     24.348        37.693        .81162E-04    .13862E-03
  16  Prefactor     1.4338        22.529        .36119E-03    .41862E-05
  17  Prefactor     .10000E-03    4.8882        .15597E-02** at limit **
  18  Prefactor     2.0857        14.201        .28607E-03    .25434E-05
  19  Prefactor     .52471E-01    3.2338        .13473E-02    .54697E-02
  20  Prefactor     3.0232        3.0829        .12303E-03    .16541E-04
  21  Normalizat    .95966        .21070        .23308E-03    .43388E-03
  22  Prefactor     1.0778        .22032        .24337E-03    .52447E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5223.497     FROM SIMPLEX   STATUS=UNCHANGED   1185 CALLS     4345 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7217        .18391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6193        .83498E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.490        7.8467        .98786E-06   -1.5030    
   4  Prefactor     .52196        29.429        .99630E-06   -1.5563    
   5  Prefactor     13.137        10.631        .98435E-06   -1.4983    
   6  Prefactor     .10000E-03    11.536        .27323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7674        .26523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .58659        .10294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3782        1.9110        .10133E-05   -1.5473    
  10  Prefactor     2.3187        6.3478        .10230E-05   -1.5403    
  11  norm          .10025E-03    117.15        .61977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    7.5022        .10478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.688        .40852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1103        .33626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.348        37.693        .97160E-06   -1.4721    
  16  Prefactor     1.4338        22.529        .10202E-05   -1.5468    
  17  Prefactor     .10000E-03    4.8882        .22088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0857        14.201        .10224E-05   -1.5419    
  19  Prefactor     .52471E-01    3.2338        .10557E-05   -1.5662    
  20  Prefactor     3.0232        3.0829        .10133E-05   -1.5360    
  21  Normalizat    .95966        .21070        .63132E-06   -.94394    
  22  Prefactor     1.0778        .22032        .59408E-06   -.90179    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5223.497     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     4684 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7217        .18503E-03** at limit **
   2  Prefactor     .10000E-03    3.6377        .35889E-03** at limit **
   3  Prefactor     11.490        7.8456        .47271E-05    .19240E-06
   4  Prefactor     .52235        28.263        .11276E-03    .11696E-04
   5  Prefactor     13.137        10.456        .44186E-05   -.74615E-04
   6  Prefactor     .10000E-03    11.542        .36285E-03** at limit **
   7  Prefactor     .10000E-03    4.7675        .30789E-03** at limit **
   8  norm          .10000E-03    .58709        .18389E-03** at limit **
   9  Prefactor     1.3782        1.9107        .45933E-05   -.21285E-04
  10  Prefactor     2.3187        6.3427        .53881E-04   -.61189E-05
  11  norm          .10000E-03    120.21        .15664E-03** at limit **
  12  norm          .10001E-03    7.4322        .61643E-01** at limit **
  13  Prefactor     .10000E-03    23.707        .36285E-03** at limit **
  14  Prefactor     .10000E-03    6.1104        .34875E-03** at limit **
  15  Prefactor     24.348        37.663        .16232E-04    .23532E-04
  16  Prefactor     1.4338        22.504        .14448E-04   -.48787E-05
  17  Prefactor     .10000E-03    4.8883        .31194E-03** at limit **
  18  Prefactor     2.0857        14.185        .11443E-04   -.39740E-06
  19  Prefactor     .52479E-01    3.2626        .26946E-03    .11687E-04
  20  Prefactor     3.0232        3.0823        .49212E-05   -.36962E-05
  21  Normalizat    .95966        .21013        .46617E-04   -.17120E-04
  22  Prefactor     1.0778        .22034        .48674E-04    .33167E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4901
  Prefactor  = 0.522347
  Prefactor  = 13.137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.37821
  Prefactor  = 2.31865
  norm       = 0.000100001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3482
  Prefactor  = 1.43384
  Prefactor  = 0.0001
  Prefactor  = 2.08575
  Prefactor  = 0.0524795
  Prefactor  = 3.02316
  Normalizat = 0.959661
  Prefactor  = 1.07779
 **********
 **   18 **HESSE 
 **********

 FCN=   5223.497     FROM HESSE     STATUS=OK           332 CALLS     5016 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7217        .37007E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6384        .71777E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.490        7.8455        .47271E-05   -1.5030    
   4  Prefactor     .52235        28.228        .45103E-05   -1.5563    
   5  Prefactor     13.137        10.460        .88372E-06   -1.4983    
   6  Prefactor     .10000E-03    11.542        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7675        .61578E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .58711        .36778E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3782        1.9104        .91867E-06   -1.5473    
  10  Prefactor     2.3187        6.3442        .21552E-05   -1.5403    
  11  norm          .10000E-03    120.22        .31328E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    7.4438        .61561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.707        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1104        .69750E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.348        37.665        .32465E-05   -1.4721    
  16  Prefactor     1.4338        22.548        .28895E-05   -1.5468    
  17  Prefactor     .10000E-03    4.8884        .62389E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0857        14.197        .22886E-05   -1.5419    
  19  Prefactor     .52479E-01    3.2621        .10778E-04   -1.5662    
  20  Prefactor     3.0232        3.0826        .98424E-06   -1.5360    
  21  Normalizat    .95966        .21017        .93233E-05   -.94394    
  22  Prefactor     1.0778        .22039        .97348E-05   -.90179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15545e-11
Minuit parameter uncertainties:
  1  1.17868e-07
  2  7.03673e-07
  3  7.84619
  4  7.68284
  5  10.4614
  6  2.30502e-06
  7  1.56165e-06
  8  1.68377e-07
  9  1.91046
  10  6.34606
  11  0.000600785
  12  0.000535827
  13  1.45402e-05
  14  2.26004e-07
  15  37.7022
  16  11.3766
  17  1.7245e-07
  18  10.8866
  19  0.826768
  20  3.08279
  21  0.21035
  22  0.220573
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  2.319e+00  6.346e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.078e+00  2.206e-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:  9.597e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/635656/likelihoodResults_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.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) = 5220.95648688
delta logL = 2.54086691544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5220.72483703
delta logL = 2.7725167644

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.8605       1.0000          .0000       10.000    
     3 'Normalizat'    .80451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1970       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5223.578     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      517 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    11.601        .17744E-02** at limit **
   2  Index         1.5482        8.1082        .50000        .10658E-03
   3  Normalizat    .96960        .19670        .23198E-03   -.68364E-04
   4  Prefactor     1.0742        .21731        .24375E-03   -.73227E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100075
  Index      = 1.54825
  Normalizat = 0.969603
  Prefactor  = 1.07421
 **********
 **   18 **HESSE 
 **********

 FCN=   5223.578     FROM HESSE     STATUS=OK            29 CALLS      546 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    6.5122        .35487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5482        7.3386        .50000       -2.3796    
   3  Normalizat    .96960        .19689        .92794E-05   -.94056    
   4  Prefactor     1.0742        .21752        .97498E-05   -.90295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02381e-08
Minuit parameter uncertainties:
  1  0.00139573
  2  3.65202
  3  0.197034
  4  0.217702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635656': 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) = 5223.57761087
delta logL = -0.080257077344

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.001e-04  1.396e-03  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.548e+00  3.652e+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.074e+00  2.177e-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:  9.696e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 169.271 20.229

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/635656/cmap_HighResolution_382665601_382924801_4FGL_J1117.0+2013_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-09-03 14:30:24.068349', job_id='635656', GAL2='1.07', fit_tolerance='1e-08', EG2='0.97', EG='0.96', time_epoch_completed='1630704624.07', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-8.03e-02', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='553' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:30:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 635656: <4FGL_J1117.0+2013_daily_bin553> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin553> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 14:16:21 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:16:33 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:16:33 2021
Terminated at Fri Sep  3 14:30:24 2021
Results reported at Fri Sep  3 14:30:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin553 169.271 20.2294 382665601 382924801 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 :                                   809.00 sec.
    Max Memory :                                 1022 MB
    Average Memory :                             299.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            843 sec.

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

