/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 32 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 = 7529
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1308
RA = 169.271, Dec = 20.2294
tmin = 578361601, tmax = 578620801
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='637611', job_status='RUN', time_executed='2021-09-03 14:22:31.580847', time_epoch_executed='1630704151.58' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637611/ft1_4FGL_J1117.0+2013_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637611/ft2_4FGL_J1117.0+2013_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637611/ft1_4FGL_J1117.0+2013_daily_bin1308.fits outfile=/scratch/kocevski/637611/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1308.fits ra=169.271 dec=20.2294 rad=12.0 tmin=578361601.0 tmax=578620801.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.64
user 3.43
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/637611/ft2_4FGL_J1117.0+2013_daily_bin1308.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/637611/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1308.fits evtable="EVENTS" outfile="/scratch/kocevski/637611/ft1_filtered_4FGL_J1117.0+2013_daily_bin1308.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.50
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637611/ft1_filtered_4FGL_J1117.0+2013_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/637611/ft2_4FGL_J1117.0+2013_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/637611/ltcube_578361601_578620801_4FGL_J1117.0+2013_daily_bin1308.fits outfile=/scratch/kocevski/637611/expmap_578361601_578620801_4FGL_J1117.0+2013_daily_bin1308.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/637611/ltcube_578361601_578620801_4FGL_J1117.0+2013_daily_bin1308.fits
.....................!
real 193.75
user 188.67
sys 4.66

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/637611/ft1_filtered_4FGL_J1117.0+2013_daily_bin1308.fits scfile=/scratch/kocevski/637611/ft2_4FGL_J1117.0+2013_daily_bin1308.fits outfile=/scratch/kocevski/637611/cmap_578361601_578620801_4FGL_J1117.0+2013_daily_bin1308.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637611/ft1_filtered_4FGL_J1117.0+2013_daily_bin1308.fits scfile=/scratch/kocevski/637611/ft2_4FGL_J1117.0+2013_daily_bin1308.fits outfile=/scratch/kocevski/637611/cmap_HighResolution_578361601_578620801_4FGL_J1117.0+2013_daily_bin1308.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56991       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6534       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43926E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8411       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94224       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19844E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.508       1.0000         .10000E-03   10000.    
     8 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5642       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.641       1.0000         .10000E-03   10000.    
    11 'norm      '    10.591       1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.335       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2651       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8400       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2148       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80739       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=   5706.241     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2408 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57809        5.4435       -.53429E-06   -.16644E-03
   2  Prefactor     3.6534        2.6876       -.47296E-07   -.48324E-04
   3  Prefactor     .10002E-03    7.3887        .12898E-05** at limit **
   4  Prefactor     6.8368        12.951        .40056E-05   -.53194E-03
   5  Prefactor     .94794        17.434        .72809E-06   -.31668E-03
   6  Prefactor     .10000E-03    35.486       -.40804E-06** at limit **
   7  Prefactor     21.511        18.239       -.76198E-06    .82430E-04
   8  norm          .10000E-03    .84374       -.10350E-07** at limit **
   9  Prefactor     2.5640        3.3113        .25621E-06   -.11438E-03
  10  Prefactor     11.643        8.9244        .29211E-07   -.70708E-04
  11  norm          10.592        10.020       -.22776E-06   -.95814E-04
  12  norm          .10000E-03    15.165       -.28515E-06** at limit **
  13  Prefactor     .10000E-03    7.2914        .49754E-08** at limit **
  14  Prefactor     15.786        15.915        .46864E-06    .66023E-04
  15  Prefactor     19.353        40.311        .71695E-05    .27100E-03
  16  Prefactor     .10000E-03    3.3599        .15357E-07** at limit **
  17  Prefactor     11.710        20.614        .15480E-05    .11526E-03
  18  Prefactor     .10000E-03    5.3712       -.94428E-08** at limit **
  19  Prefactor     1.2653        1.2026       -.10888E-07    .11485E-04
  20  Prefactor     4.8409        4.0016       -.69776E-07   -.29115E-03
  21  Normalizat    1.2145        .20109       -.16714E-05   -.10928E-03
  22  Prefactor     .80754        .18609        .44225E-06   -.21531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.57809
  Prefactor  = 3.65342
  Prefactor  = 0.000100015
  Prefactor  = 6.83683
  Prefactor  = 0.947945
  Prefactor  = 0.0001
  Prefactor  = 21.5106
  norm       = 0.0001
  Prefactor  = 2.56398
  Prefactor  = 11.643
  norm       = 10.5922
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7861
  Prefactor  = 19.3527
  Prefactor  = 0.0001
  Prefactor  = 11.7104
  Prefactor  = 0.0001
  Prefactor  = 1.26531
  Prefactor  = 4.84089
  Normalizat = 1.21448
  Prefactor  = 0.807544
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.241     FROM HESSE     STATUS=OK           354 CALLS     2762 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57809        26.732        .31250E-02   -1.5556    
   2  Prefactor     3.6534        2.6636        .98026E-04   -1.5326    
   3  Prefactor     .10002E-03    22.466        .37857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8368        13.163        .76699E-03   -1.5185    
   5  Prefactor     .94794        16.409        .51840E-03   -1.5513    
   6  Prefactor     .10000E-03    36.651        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.511        18.626        .86366E-04   -1.4780    
   8  norm          .10000E-03    1.7942        .13333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5640        3.2866        .14655E-03   -1.5388    
  10  Prefactor     11.643        8.9313        .11741E-03   -1.5025    
  11  norm          10.592        10.037        .12311E-03   -1.5057    
  12  norm          .10000E-03    15.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.786        15.931        .10082E-03   -1.4913    
  15  Prefactor     19.353        43.087        .91087E-04   -1.4828    
  16  Prefactor     .10000E-03    3.3611        .13522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.710        20.674        .11709E-03   -1.5023    
  18  Prefactor     .10000E-03    5.3974        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2653        1.2189        .77209E-04   -1.5483    
  20  Prefactor     4.8409        4.0048        .13239E-03   -1.5268    
  21  Normalizat    1.2145        .23752        .23554E-03   -.86157    
  22  Prefactor     .80754        .22249        .28551E-03   -.99451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58261e-09
Minuit parameter uncertainties:
  1  7.8652
  2  2.66369
  3  0.00117763
  4  13.1688
  5  7.88999
  6  8.00954e-06
  7  18.6313
  8  7.69654e-06
  9  3.28683
  10  8.93235
  11  10.0382
  12  1.59974e-05
  13  1.4382e-06
  14  15.9351
  15  43.1564
  16  3.4066e-07
  17  20.6867
  18  3.15342e-06
  19  1.21897
  20  4.00507
  21  0.237729
  22  0.222742
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.164e+01  8.932e+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:  8.075e-01  2.227e-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:  1.214e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 2.31e-05

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) = 5705.83169869
delta logL = 0.409389339041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5705.8283957
delta logL = 0.412692332593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7737       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5246       1.0000          .0000       10.000    
     3 'Normalizat'    1.1525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84393       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=   5705.828     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      254 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7782        85.104        .35955E-02    .57530E-03
   2  Index         2.5251        2.9256        .91996E-01    .27460E-03
   3  Normalizat    1.1522        .10384        .54448E-01   -.29007E-03
   4  Prefactor     .84418        .75269E-01    .44286E-01   -.17526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.7782
  Index      = 2.52511
  Normalizat = 1.15222
  Prefactor  = 0.844177
 **********
 **   18 **HESSE 
 **********

 FCN=   5705.828     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7782        9.0502        .11411E-03   -1.5150    
   2  Index         2.5251        .69087        .45184E-02   -.51781    
   3  Normalizat    1.1522        .23328        .24076E-03   -.88092    
   4  Prefactor     .84418        .22669        .27946E-03   -.98120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51204e-10
Minuit parameter uncertainties:
  1  9.05175
  2  0.693811
  3  0.233491
  4  0.226938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637611': 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) = 5705.82839271
delta logL = 0.41269532385

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  7.778e+00  9.052e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.525e+00  6.938e-01  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:  8.442e-01  2.269e-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:  1.152e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.36
Ra Dec: 169.271 20.229
Photon Index (Free Index): 2.53 +/- 0.69
Photon Flux (Free Index): 8.78e-08 +/- 7.20e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.48e-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/637611/cmap_HighResolution_578361601_578620801_4FGL_J1117.0+2013_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='2.48e-05', photon_flux_error='3.00e-08', dlogl='4.13e-01', energy_flux='3.02e-05', photon_flux2='8.78e-08', job_status='DONE', time_completed='2021-09-03 14:32:24.520146', photon_index_error2='0.69', photon_index2='2.53', ts='7.50', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.21', time_epoch_completed='1630704744.52', return_code='0', job_id='637611', GAL2='0.84', EG2='1.15', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='7.20e-08', ts2='8.36', photon_index='1.96' WHERE bin_id='1308' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:32:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 637611: <4FGL_J1117.0+2013_daily_bin1308> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1308 169.271 20.2294 578361601 578620801 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 :                                   593.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            655 sec.

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

