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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1420
RA = 19.4543, Dec = -21.1578
tmin = 607392001, tmax = 607651201
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='516263', job_status='RUN', time_executed='2021-08-13 21:38:47.760642', time_epoch_executed='1628915927.76' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516263

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516263/ft1_4FGL_J0117.8-2109_daily_bin1420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516263/ft1_4FGL_J0117.8-2109_daily_bin1420.fits outfile=/scratch/kocevski/516263/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1420.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=607392001.0 tmax=607651201.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 6.08
user 5.04
sys 1.00

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.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/516263/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1420.fits evtable="EVENTS" outfile="/scratch/kocevski/516263/ft1_filtered_4FGL_J0117.8-2109_daily_bin1420.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.38
user 0.32
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516263/ft1_filtered_4FGL_J0117.8-2109_daily_bin1420.fits" evtable="EVENTS" scfile=/scratch/kocevski/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.fits sctable="SC_DATA" outfile=/scratch/kocevski/516263/ltcube_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.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/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.fits
.....................!
real 12.86
user 11.50
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516263/ft1_filtered_4FGL_J0117.8-2109_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.fits sctable="SC_DATA" expcube=/scratch/kocevski/516263/ltcube_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.fits outfile=/scratch/kocevski/516263/expmap_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.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/516263/ltcube_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.fits
.....................!
real 193.17
user 186.30
sys 6.31

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

Setting source of interest to:
4FGL J0117.8-2109 @ 19.4543 -21.1578

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/516263/ft1_filtered_4FGL_J0117.8-2109_daily_bin1420.fits scfile=/scratch/kocevski/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.fits outfile=/scratch/kocevski/516263/cmap_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.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=19.4543 yref=-21.1578 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 1.37
user 0.37
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516263/ft1_filtered_4FGL_J0117.8-2109_daily_bin1420.fits scfile=/scratch/kocevski/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.fits outfile=/scratch/kocevski/516263/cmap_HighResolution_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.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=19.4543 yref=-21.1578 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 1.38
user 0.38
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516263/ft1_filtered_4FGL_J0117.8-2109_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516263/Model_4FGL_J0117.8-2109_daily_bin1420.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/516263/ft1_filtered_4FGL_J0117.8-2109_daily_bin1420.fits.....................!
real 52.90
user 50.61
sys 2.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/516263/ft1_filtered_4FGL_J0117.8-2109_daily_bin1420.fits', '/scratch/kocevski/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.fits', expMap='/scratch/kocevski/516263/expmap_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.fits', expCube='/scratch/kocevski/516263/ltcube_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/516263/Model_4FGL_J0117.8-2109_daily_bin1420.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0117.8-2109'

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  4.691e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/516263/ft1_filtered_4FGL_J0117.8-2109_daily_bin1420.fits
Spacecraft file(s): /scratch/kocevski/516263/ft2_4FGL_J0117.8-2109_daily_bin1420.fits
Exposure map: /scratch/kocevski/516263/expmap_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.fits
Exposure cube: /scratch/kocevski/516263/ltcube_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/516263/Model_4FGL_J0117.8-2109_daily_bin1420.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) = 6251.90394259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    110.23       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0379       1.0000         .10000E-03   10000.    
     5 'norm      '    .14911E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13253E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6333       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.823       1.0000         .10000E-03   10000.    
    10 'norm      '    .10301E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.215       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0215       1.0000         .10000E-03   10000.    
    14 'norm      '    31.444       1.0000         .10000E-03   10000.    
    15 'norm      '    .29873E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .28415E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1213       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.864       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6726       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75856       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6251.899     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2464 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8637        .16786E-07** at limit **
   2  norm          .10000E-03    1.9296        .25836E-06** at limit **
   3  Prefactor     110.09        92.656        .62474E-06   -.26255E-04
   4  Prefactor     6.0371        22.134        .58269E-06   -.19326E-05
   5  norm          .10000E-03    24.780       -.75743E-05** at limit **
   6  Prefactor     .10002E-03    4.6677       -.15209E-05** at limit **
   7  Prefactor     .10000E-03    8.9548        .55286E-06** at limit **
   8  Prefactor     2.6332        3.0708        .17768E-06   -.11044E-04
   9  Prefactor     12.824        11.103       -.13102E-05   -.91380E-04
  10  norm          .10000E-03    1.6057        .31491E-07** at limit **
  11  norm          2.3043        1.6626        .47176E-07    .24488E-04
  12  Prefactor     13.216        10.173       -.25959E-06   -.13263E-04
  13  Prefactor     1.0226        3.9497        .26395E-05    .18465E-03
  14  norm          31.446        30.369       -.48625E-07    .33831E-05
  15  norm          .10000E-03    .51521       -.37930E-07** at limit **
  16  norm          .10002E-03    .66271       -.10865E-06** at limit **
  17  norm          1.1217        1.6680        .58702E-06    .69598E-03
  18  Prefactor     39.865        39.211       -.39836E-06   -.62732E-05
  19  norm          1.6730        2.8125        .40355E-06   -.19375E-04
  20  Prefactor     .10000E-03    8.6657        .17295E-06** at limit **
  21  Normalizat    .75851        .15989        .56676E-06    .73768E-04
  22  Prefactor     1.2302        .18198       -.15294E-05    .20966E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 110.085
  Prefactor  = 6.03712
  norm       = 0.000100001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 2.63325
  Prefactor  = 12.8238
  norm       = 0.0001
  norm       = 2.30431
  Prefactor  = 13.2163
  Prefactor  = 1.02256
  norm       = 31.4463
  norm       = 0.000100001
  norm       = 0.000100023
  norm       = 1.12172
  Prefactor  = 39.8645
  norm       = 1.67296
  Prefactor  = 0.0001
  Normalizat = 0.758512
  Prefactor  = 1.23019
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.899     FROM HESSE     STATUS=OK           362 CALLS     2826 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8698        .15179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.8188        .21318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     110.09        92.579        .19156E-03   -1.3606    
   4  Prefactor     6.0371        22.071        .16340E-03   -1.5217    
   5  norm          .10000E-03    24.364        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    10.908        .31031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6332        3.0556        .14328E-03   -1.5383    
   9  Prefactor     12.824        10.758        .11186E-03   -1.4992    
  10  norm          .10000E-03    1.6239        .19210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3043        1.6604        .83677E-04   -1.5404    
  12  Prefactor     13.216        10.161        .11019E-03   -1.4981    
  13  Prefactor     1.0226        3.9094        .25914E-03   -1.5506    
  14  norm          31.446        30.342        .71455E-04   -1.4586    
  15  norm          .10000E-03    5.1610        .10827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    1.4268        .22798E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1217        1.4855        .12323E-02   -1.5496    
  18  Prefactor     39.865        39.180        .63485E-04   -1.4444    
  19  norm          1.6730        2.7965        .16360E-03   -1.5449    
  20  Prefactor     .10000E-03    8.6910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75851        .18439        .24017E-03   -1.0163    
  22  Prefactor     1.2302        .21343        .23504E-03   -.85407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35722e-09
Minuit parameter uncertainties:
  1  1.79544e-06
  2  2.11818e-05
  3  92.7007
  4  22.1012
  5  0.000286244
  6  0.000952988
  7  4.93269e-05
  8  3.05576
  9  10.7599
  10  1.6254e-06
  11  1.66039
  12  10.162
  13  3.91034
  14  30.3566
  15  0.000111023
  16  0.000358894
  17  1.48552
  18  39.2057
  19  2.79676
  20  1.60554e-05
  21  0.184541
  22  0.21358
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.282e+01  1.076e+01  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.230e+00  2.136e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  7.585e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 19.454 -21.158
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 4.59e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.30e-05

TS (Fixed Index): 2.24
Ra Dec: 19.454 -21.158
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516263/likelihoodResults_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.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) = 6249.2719427
delta logL = 2.62689899242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6248.61316345
delta logL = 3.28567823982

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 'Index     '    7.8682       1.0000          .0000       10.000    
     3 'Normalizat'    .60815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3796       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6248.613     FROM MIGRAD    STATUS=CONVERGED    251 CALLS      666 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .96643E-03    .11248E-06** at limit **
   2  Index         7.8680        .18071        .20715E-06    .45613E-03
   3  Normalizat    .60841        .18672        .35860E-05   -.12550E-03
   4  Prefactor     1.3797        .22136       -.77936E-06   -.15599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.86804
  Normalizat = 0.608409
  Prefactor  = 1.37965
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.613     FROM HESSE     STATUS=NOT POSDEF    45 CALLS      711 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .20338E-02    .24817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8680        1.7401        .70267E-01    .61090    
   3  Normalizat    .60841        .52300E-01    .59997E-01   -1.0763    
   4  Prefactor     1.3797        .61872E-01    .50654E-01   -.80968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.7876e-08
Minuit parameter uncertainties:
  1  2.31633e-08
  2  1.79722
  3  0.0523039
  4  0.061875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516263': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6248.61315523
delta logL = 3.2856864616

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.316e-08  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  7.868e+00  1.797e+00  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.380e+00  6.187e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  6.084e-01  5.230e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.84
Ra Dec: 19.454 -21.158
Photon Index (Free Index): 7.87 +/- 1.80
Photon Flux (Free Index): 1.22e-07 +/- 5.30e-07
Energy Flux (Free Index): 1.42e-05 +/- 6.14e-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/516263/cmap_HighResolution_607392001_607651201_4FGL_J0117.8-2109_daily_bin1420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', comment='SUCCESS', photon_flux='4.59e-08', energy_flux2='1.42e-05', photon_flux_error='3.85e-08', dlogl='3.29e+00', energy_flux='1.55e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-08-13 21:50:17.933497', photon_index_error2='1.80', photon_index2='7.87', ts='2.24', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='6.14e-05', EG='0.76', time_epoch_completed='1628916617.93', return_code='0', job_id='516263', GAL2='1.38', EG2='0.61', return_code2='102', energy_flux_error='1.30e-05', photon_flux_error2='5.30e-07', ts2='9.84', photon_index='2.38' WHERE bin_id='1420' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:50:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 516263: <4FGL_J0117.8-2109_daily_bin1420> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1420> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 21:35:44 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:37:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 21:37:59 2021
Terminated at Fri Aug 13 21:50:18 2021
Results reported at Fri Aug 13 21:50:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1420 19.4543 -21.1578 607392001 607651201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0117.8-2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   702.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            874 sec.

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

