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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1553
RA = 169.271, Dec = 20.2294
tmin = 641865601, tmax = 642124801
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='639034', job_status='RUN', time_executed='2021-09-03 14:30:23.351583', time_epoch_executed='1630704623.35' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639034

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639034/ft1_4FGL_J1117.0+2013_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639034/ft2_4FGL_J1117.0+2013_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639034/ft1_4FGL_J1117.0+2013_daily_bin1553.fits outfile=/scratch/kocevski/639034/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1553.fits ra=169.271 dec=20.2294 rad=12.0 tmin=641865601.0 tmax=642124801.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 4.66
user 4.16
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639034/ft1_filtered_4FGL_J1117.0+2013_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/639034/ft2_4FGL_J1117.0+2013_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/639034/ltcube_641865601_642124801_4FGL_J1117.0+2013_daily_bin1553.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/639034/ft2_4FGL_J1117.0+2013_daily_bin1553.fits
.....................!
real 17.99
user 17.05
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639034/ft1_filtered_4FGL_J1117.0+2013_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/639034/ft2_4FGL_J1117.0+2013_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/639034/ltcube_641865601_642124801_4FGL_J1117.0+2013_daily_bin1553.fits outfile=/scratch/kocevski/639034/expmap_641865601_642124801_4FGL_J1117.0+2013_daily_bin1553.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/639034/ltcube_641865601_642124801_4FGL_J1117.0+2013_daily_bin1553.fits
.....................!
real 194.33
user 189.11
sys 4.27

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/639034/ft1_filtered_4FGL_J1117.0+2013_daily_bin1553.fits scfile=/scratch/kocevski/639034/ft2_4FGL_J1117.0+2013_daily_bin1553.fits outfile=/scratch/kocevski/639034/cmap_641865601_642124801_4FGL_J1117.0+2013_daily_bin1553.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639034/ft1_filtered_4FGL_J1117.0+2013_daily_bin1553.fits scfile=/scratch/kocevski/639034/ft2_4FGL_J1117.0+2013_daily_bin1553.fits outfile=/scratch/kocevski/639034/cmap_HighResolution_641865601_642124801_4FGL_J1117.0+2013_daily_bin1553.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .91364       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.063       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6182       1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0618       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0858       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50075       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.070       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4362       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9666       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.519       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.064       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3604       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .36551       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.5032       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=   5797.078     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2423 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.348        10.183        .30330E-05   -.29223E-03
   2  Prefactor     .91295        2.4595       -.15071E-05   -.13119E-02
   3  Prefactor     34.048        11.014       -.37442E-06    .30970E-03
   4  Prefactor     16.917        14.281        .18441E-05   -.26149E-03
   5  Prefactor     7.6198        12.500        .26723E-05   -.23449E-03
   6  Prefactor     50.385        16.824       -.49027E-07    .17924E-03
   7  Prefactor     3.0553        25.998        .56536E-05   -.14515E-03
   8  norm          1.0855        1.2063       -.17812E-06   -.33603E-02
   9  Prefactor     .10000E-03    1.4263       -.16964E-06** at limit **
  10  Prefactor     .47179        5.9330       -.13964E-05   -.33807E-03
  11  norm          .10000E-03    4.2013        .42076E-08** at limit **
  12  norm          .10000E-03    4.1338       -.17145E-07** at limit **
  13  Prefactor     14.075        16.456        .30991E-05   -.12892E-04
  14  Prefactor     5.3638        38.542       -.16555E-04    .13254E-06
  15  Prefactor     .10000E-03    13.254       -.34454E-06** at limit **
  16  Prefactor     8.0044        25.471        .11419E-04    .80634E-06
  17  Prefactor     25.485        24.862        .86451E-05   -.31693E-03
  18  Prefactor     28.066        15.913        .23722E-05   -.15047E-03
  19  Prefactor     2.4210        1.6269       -.23845E-06   -.36413E-04
  20  Prefactor     2.3630        3.0657       -.13523E-06   -.27286E-03
  21  Normalizat    .36564        .24275       -.10025E-04   -.38003E-04
  22  Prefactor     1.5032        .22806        .19080E-05    .11388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3485
  Prefactor  = 0.912946
  Prefactor  = 34.0478
  Prefactor  = 16.9175
  Prefactor  = 7.61982
  Prefactor  = 50.3853
  Prefactor  = 3.05526
  norm       = 1.08552
  Prefactor  = 0.0001
  Prefactor  = 0.471789
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.0749
  Prefactor  = 5.36375
  Prefactor  = 0.0001
  Prefactor  = 8.00437
  Prefactor  = 25.4845
  Prefactor  = 28.0663
  Prefactor  = 2.42104
  Prefactor  = 2.36298
  Normalizat = 0.365645
  Prefactor  = 1.50316
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.078     FROM HESSE     STATUS=OK           350 CALLS     2773 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.348        10.101        .96148E-04   -1.4875    
   2  Prefactor     .91295        2.4301        .18164E-03   -1.5517    
   3  Prefactor     34.048        10.939        .68661E-04   -1.4540    
   4  Prefactor     16.917        14.119        .97363E-04   -1.4885    
   5  Prefactor     7.6198        12.414        .14529E-03   -1.5156    
   6  Prefactor     50.385        16.765        .56501E-04   -1.4287    
   7  Prefactor     3.0553        24.821        .23184E-03   -1.5358    
   8  norm          1.0855        1.2180        .23030E-03   -1.5500    
   9  Prefactor     .10000E-03    1.4426        .88656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .47179        16.021        .34622E-02   -1.5571    
  11  norm          .10000E-03    4.2113        .15240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.1398        .15117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.075        16.325        .10678E-03   -1.4957    
  14  Prefactor     5.3638        36.623        .17234E-03   -1.5245    
  15  Prefactor     .10000E-03    13.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.0044        24.670        .14206E-03   -1.5142    
  17  Prefactor     25.485        24.312        .79299E-04   -1.4698    
  18  Prefactor     28.066        15.804        .75626E-04   -1.4648    
  19  Prefactor     2.4210        1.6251        .76124E-04   -1.5397    
  20  Prefactor     2.3630        3.0506        .14671E-03   -1.5401    
  21  Normalizat    .36564        .24279        .41627E-03   -1.1912    
  22  Prefactor     1.5032        .24262        .23529E-03   -.77451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86733e-09
Minuit parameter uncertainties:
  1  10.1015
  2  2.43035
  3  10.9392
  4  14.1216
  5  12.418
  6  16.7665
  7  17.4263
  8  1.21802
  9  1.35014e-05
  10  5.49953
  11  1.44963e-05
  12  9.63353e-09
  13  16.3307
  14  28.0558
  15  3.19546e-05
  16  24.7011
  17  24.3215
  18  15.8066
  19  1.62517
  20  3.05081
  21  0.243492
  22  0.242811
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  4.718e-01  5.500e+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.503e+00  2.428e-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:  3.656e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/639034/likelihoodResults_641865601_642124801_4FGL_J1117.0+2013_daily_bin1553.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) = 5796.97535721
delta logL = 0.102740044427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5796.958353
delta logL = 0.119744249323

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91733       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6968       1.0000          .0000       10.000    
     3 'Normalizat'    .35250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5075       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=   5796.958     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      238 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91599        33.266        .36736E-01    .92087E-03
   2  Index         2.6978        2.8393        .16943        .85787E-04
   3  Normalizat    .35260        .24775E-01    .95656E-01    .47864E-04
   4  Prefactor     1.5073        .27059E-01    .53158E-01   -.17273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.915991
  Index      = 2.69781
  Normalizat = 0.352605
  Prefactor  = 1.50728
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.958     FROM HESSE     STATUS=OK            35 CALLS      273 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91599        17.004        .16523E-02   -1.5517    
   2  Index         2.6978        3.1154        .99359E-02   -.47849    
   3  Normalizat    .35260        .22156        .42374E-03   -1.1983    
   4  Prefactor     1.5073        .24109        .23500E-03   -.77336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36289e-09
Minuit parameter uncertainties:
  1  7.89536
  2  3.45352
  3  0.222115
  4  0.241277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639034': 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) = 5796.95835156
delta logL = 0.119745695615

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  9.160e-01  7.895e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.698e+00  3.454e+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.507e+00  2.413e-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:  3.526e-01  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/639034/cmap_HighResolution_641865601_642124801_4FGL_J1117.0+2013_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.20e-08', time_completed='2021-09-03 14:41:33.973144', job_id='639034', GAL2='1.51', fit_tolerance='1e-08', EG2='0.35', EG='0.37', time_epoch_completed='1630705293.97', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.50', dlogl='1.20e-01', ts2='0.26', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1553' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:41:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 639034: <4FGL_J1117.0+2013_daily_bin1553> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1553> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 14:26:28 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:27:39 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:27:39 2021
Terminated at Fri Sep  3 14:41:34 2021
Results reported at Fri Sep  3 14:41:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1553 169.271 20.2294 641865601 642124801 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 :                                   663.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            906 sec.

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

