/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 = 7483
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1117.0+2013_daily_bin222
RA = 169.271, Dec = 20.2294
tmin = 296870401, tmax = 297129601
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='630811', job_status='RUN', time_executed='2021-09-03 14:01:25.627539', time_epoch_executed='1630702885.63' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630811/ft1_4FGL_J1117.0+2013_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630811/ft2_4FGL_J1117.0+2013_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630811/ft1_4FGL_J1117.0+2013_daily_bin222.fits outfile=/scratch/kocevski/630811/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin222.fits ra=169.271 dec=20.2294 rad=12.0 tmin=296870401.0 tmax=297129601.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.94
user 3.48
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630811/ft2_4FGL_J1117.0+2013_daily_bin222.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/630811/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin222.fits evtable="EVENTS" outfile="/scratch/kocevski/630811/ft1_filtered_4FGL_J1117.0+2013_daily_bin222.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.63
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630811/ft1_filtered_4FGL_J1117.0+2013_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/630811/ft2_4FGL_J1117.0+2013_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/630811/ltcube_296870401_297129601_4FGL_J1117.0+2013_daily_bin222.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/630811/ft2_4FGL_J1117.0+2013_daily_bin222.fits
.....................!
real 13.61
user 12.95
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630811/ft1_filtered_4FGL_J1117.0+2013_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/630811/ft2_4FGL_J1117.0+2013_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/630811/ltcube_296870401_297129601_4FGL_J1117.0+2013_daily_bin222.fits outfile=/scratch/kocevski/630811/expmap_296870401_297129601_4FGL_J1117.0+2013_daily_bin222.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/630811/ltcube_296870401_297129601_4FGL_J1117.0+2013_daily_bin222.fits
.....................!
real 190.93
user 185.42
sys 4.51

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/630811/ft1_filtered_4FGL_J1117.0+2013_daily_bin222.fits scfile=/scratch/kocevski/630811/ft2_4FGL_J1117.0+2013_daily_bin222.fits outfile=/scratch/kocevski/630811/cmap_296870401_297129601_4FGL_J1117.0+2013_daily_bin222.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630811/ft1_filtered_4FGL_J1117.0+2013_daily_bin222.fits scfile=/scratch/kocevski/630811/ft2_4FGL_J1117.0+2013_daily_bin222.fits outfile=/scratch/kocevski/630811/cmap_HighResolution_296870401_297129601_4FGL_J1117.0+2013_daily_bin222.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3385       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.537       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0443       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4020       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1918       1.0000         .10000E-03   10000.    
    11 'norm      '    .10976E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.050       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3301       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9998       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4512       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79868       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=   6633.806     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2396 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6997        .40310E-05** at limit **
   2  Prefactor     .10000E-03    .64354        .29613E-08** at limit **
   3  Prefactor     3.0258        2.2585        .69536E-07   -.10703E-02
   4  Prefactor     .10000E-03    4.4308        .91434E-07** at limit **
   5  Prefactor     4.3362        5.4809        .52928E-07   -.34000E-04
   6  Prefactor     11.536        10.464        .32299E-07   -.10860E-04
   7  Prefactor     .10000E-03    24.639        .12016E-05** at limit **
   8  norm          2.0444        1.3263        .80651E-08    .79358E-04
   9  Prefactor     1.4027        2.6211        .51131E-07   -.56046E-04
  10  Prefactor     6.1912        6.0338        .16996E-07   -.43907E-05
  11  norm          .10000E-03    8.3280       -.59398E-06** at limit **
  12  norm          .10000E-03    7.8757       -.18244E-05** at limit **
  13  Prefactor     .10000E-03    3.2452       -.12587E-07** at limit **
  14  Prefactor     .10000E-03    8.1479        .27771E-05** at limit **
  15  Prefactor     11.053        42.022        .63514E-05    .21886E-04
  16  Prefactor     .10000E-03    5.3666       -.19621E-05** at limit **
  17  Prefactor     .10000E-03    13.651       -.82558E-06** at limit **
  18  Prefactor     .10000E-03    6.2979       -.26268E-05** at limit **
  19  Prefactor     3.3304        1.8481        .26670E-07    .59039E-04
  20  Prefactor     8.0006        5.3811        .73223E-07   -.45909E-03
  21  Normalizat    1.4511        .18068       -.36518E-06    .33253E-04
  22  Prefactor     .79870        .17951       -.23796E-06   -.92305E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.02576
  Prefactor  = 0.0001
  Prefactor  = 4.33617
  Prefactor  = 11.5359
  Prefactor  = 0.0001
  norm       = 2.0444
  Prefactor  = 1.40266
  Prefactor  = 6.19116
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33044
  Prefactor  = 8.00065
  Normalizat = 1.4511
  Prefactor  = 0.798702
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.806     FROM HESSE     STATUS=OK           342 CALLS     2738 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .64877        .63785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0258        5.9643        .11664E-02   -1.5360    
   4  Prefactor     .10000E-03    4.5059        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3362        5.4746        .19339E-03   -1.5291    
   6  Prefactor     11.536        10.376        .11795E-03   -1.5029    
   7  Prefactor     .10000E-03    25.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0444        1.3157        .72254E-04   -1.5422    
   9  Prefactor     1.4027        2.5776        .16559E-03   -1.5471    
  10  Prefactor     6.1912        6.0381        .16133E-03   -1.5210    
  11  norm          .10000E-03    46.961        .44115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.9290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2492        .14329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.1751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.053        41.858        .12052E-03   -1.5043    
  16  Prefactor     .10000E-03    5.3718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3304        1.8490        .79424E-04   -1.5343    
  20  Prefactor     8.0006        5.6445        .70880E-03   -1.5142    
  21  Normalizat    1.4511        .21363        .23038E-03   -.79162    
  22  Prefactor     .79870        .20971        .30701E-03   -.99776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44113e-09
Minuit parameter uncertainties:
  1  6.8311e-06
  2  1.25244e-07
  3  5.9655
  4  3.23742e-07
  5  5.47524
  6  10.3778
  7  2.01438e-06
  8  1.31573
  9  2.57776
  10  6.03872
  11  0.000251035
  12  6.9291e-06
  13  3.46164e-08
  14  7.42011e-06
  15  41.9697
  16  7.92615e-07
  17  5.40092e-06
  18  1.11978e-06
  19  1.84904
  20  5.64487
  21  0.213761
  22  0.209919
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  6.191e+00  6.039e+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:  7.987e-01  2.099e-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.451e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.56e-05

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

Saving results to:
/scratch/kocevski/630811/likelihoodResults_296870401_297129601_4FGL_J1117.0+2013_daily_bin222.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) = 6633.76409085
delta logL = 0.041960681946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6633.75335879
delta logL = 0.0526927431656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2870       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2218       1.0000          .0000       10.000    
     3 'Normalizat'    1.4393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80513       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=   6633.753     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      261 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2860        6.6863        .16329E-03    .79793E-03
   2  Index         2.2221        .89124        .86803E-02    .11644E-03
   3  Normalizat    1.4390        .21021        .23118E-03   -.41425E-03
   4  Prefactor     .80535        .21163        .30586E-03   -.43800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28603
  Index      = 2.22213
  Normalizat = 1.43901
  Prefactor  = 0.805349
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.753     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2860        6.1739        .65317E-05   -1.5248    
   2  Index         2.2221        .82235        .34721E-03   -.58905    
   3  Normalizat    1.4390        .20947        .46237E-04   -.79507    
   4  Prefactor     .80535        .21137        .61172E-04   -.99531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98694e-10
Minuit parameter uncertainties:
  1  6.17468
  2  0.827806
  3  0.209597
  4  0.211586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630811': 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) = 6633.75335803
delta logL = 0.0526935007601

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  5.286e+00  6.175e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.222e+00  8.278e-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.053e-01  2.116e-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.439e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.11
Ra Dec: 169.271 20.229
Photon Index (Free Index): 2.22 +/- 0.83
Photon Flux (Free Index): 3.05e-08 +/- 4.17e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.33e-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/630811/cmap_HighResolution_296870401_297129601_4FGL_J1117.0+2013_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='1.31e-05', photon_flux_error='2.03e-08', dlogl='5.27e-02', energy_flux='1.60e-05', photon_flux2='3.05e-08', job_status='DONE', time_completed='2021-09-03 14:13:35.354557', photon_index_error2='0.83', photon_index2='2.22', ts='3.01', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='7.57e-08', energy_flux_error2='1.33e-05', EG='1.45', time_epoch_completed='1630703615.35', return_code='0', job_id='630811', GAL2='0.81', EG2='1.44', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='4.17e-08', ts2='3.11', photon_index='1.96' WHERE bin_id='222' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:13:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 630811: <4FGL_J1117.0+2013_daily_bin222> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin222> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 13:57:53 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:00:26 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:00:26 2021
Terminated at Fri Sep  3 14:13:36 2021
Results reported at Fri Sep  3 14:13:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin222 169.271 20.2294 296870401 297129601 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 :                                   710.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            943 sec.

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

