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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1067
RA = 19.4543, Dec = -21.1578
tmin = 515894401, tmax = 516153601
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='514760', job_status='RUN', time_executed='2021-08-13 21:35:30.697496', time_epoch_executed='1628915730.7' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514760/ft1_4FGL_J0117.8-2109_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514760/ft2_4FGL_J0117.8-2109_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514760/ft1_4FGL_J0117.8-2109_daily_bin1067.fits outfile=/scratch/kocevski/514760/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1067.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=515894401.0 tmax=516153601.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.01
user 3.48
sys 2.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514760/ft1_filtered_4FGL_J0117.8-2109_daily_bin1067.fits" evtable="EVENTS" scfile=/scratch/kocevski/514760/ft2_4FGL_J0117.8-2109_daily_bin1067.fits sctable="SC_DATA" outfile=/scratch/kocevski/514760/ltcube_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.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/514760/ft2_4FGL_J0117.8-2109_daily_bin1067.fits
.....................!
real 15.58
user 12.43
sys 3.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514760/ft1_filtered_4FGL_J0117.8-2109_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/514760/ft2_4FGL_J0117.8-2109_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/514760/ltcube_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.fits outfile=/scratch/kocevski/514760/expmap_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.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/514760/ltcube_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.fits
.....................!
real 196.78
user 187.42
sys 8.75

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/514760/ft1_filtered_4FGL_J0117.8-2109_daily_bin1067.fits scfile=/scratch/kocevski/514760/ft2_4FGL_J0117.8-2109_daily_bin1067.fits outfile=/scratch/kocevski/514760/cmap_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.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 2.74
user 0.38
sys 2.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514760/ft1_filtered_4FGL_J0117.8-2109_daily_bin1067.fits scfile=/scratch/kocevski/514760/ft2_4FGL_J0117.8-2109_daily_bin1067.fits outfile=/scratch/kocevski/514760/cmap_HighResolution_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.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 2.75
user 0.38
sys 2.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514760/ft1_filtered_4FGL_J0117.8-2109_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/514760/ft2_4FGL_J0117.8-2109_daily_bin1067.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514760/Model_4FGL_J0117.8-2109_daily_bin1067.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/514760/ft1_filtered_4FGL_J0117.8-2109_daily_bin1067.fits.....................!
real 50.30
user 45.66
sys 4.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514760/ft1_filtered_4FGL_J0117.8-2109_daily_bin1067.fits', '/scratch/kocevski/514760/ft2_4FGL_J0117.8-2109_daily_bin1067.fits', expMap='/scratch/kocevski/514760/expmap_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.fits', expCube='/scratch/kocevski/514760/ltcube_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514760/Model_4FGL_J0117.8-2109_daily_bin1067.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/514760/ft1_filtered_4FGL_J0117.8-2109_daily_bin1067.fits
Spacecraft file(s): /scratch/kocevski/514760/ft2_4FGL_J0117.8-2109_daily_bin1067.fits
Exposure map: /scratch/kocevski/514760/expmap_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.fits
Exposure cube: /scratch/kocevski/514760/ltcube_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514760/Model_4FGL_J0117.8-2109_daily_bin1067.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) = 5436.36223027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.457       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5068       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8634       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0762       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.234       1.0000         .10000E-03   10000.    
    10 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8978       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.2960       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7725       1.0000         .10000E-03   10000.    
    16 'norm      '    .12073E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5422       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13235E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12070E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72966       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90786       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.

 FCN=   5436.308     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2060 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.457        13.113        .19471E-02    .20880E-04
   2  norm          1.6188        5.5310        .83194E-02    .88157E-03
   3  Prefactor     .10000E-03    47.091        .90712E-02** at limit **
   4  Prefactor     .10000E-03    13.622        .90712E-02** at limit **
   5  norm          .10000E-03    5.8084        .90712E-02** at limit **
   6  Prefactor     4.5073        5.3583        .47413E-02    .40637E-03
   7  Prefactor     6.8636        8.1866        .38286E-02    .14744E-02
   8  Prefactor     6.0762        3.4297        .40720E-02    .12564E-03
   9  Prefactor     15.233        8.3169        .25654E-02    .16696E-03
  10  norm          .10000E-03    .76720        .90712E-02** at limit **
  11  norm          1.8978        1.5307        .75485E-02   -.70805E-03
  12  Prefactor     .10000E-03    2.6127        .90712E-02** at limit **
  13  Prefactor     .10000E-03    1.7576        .90712E-02** at limit **
  14  norm          6.2960        13.089        .39994E-02    .40763E-04
  15  norm          5.7728        1.5253        .41792E-02   -.36301E-03
  16  norm          .10000E-03    1.2136        .25390E-01** at limit **
  17  norm          3.5415        2.5558        .53692E-02    .34552E-03
  18  Prefactor     .10000E-03    79.321        .90712E-02** at limit **
  19  norm          .10000E-03    1.4600        .32196E-01** at limit **
  20  Prefactor     .10000E-03    18.290        .90712E-02** at limit **
  21  Normalizat    .72958        .15125        .42685E-01    .84480E-04
  22  Prefactor     .90792        .17397        .45105E-01    .70498E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.4566
  norm       = 1.61879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.50729
  Prefactor  = 6.86357
  Prefactor  = 6.07621
  Prefactor  = 15.2326
  norm       = 0.0001
  norm       = 1.89783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.29601
  norm       = 5.77275
  norm       = 0.0001
  norm       = 3.54152
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.729582
  Prefactor  = 0.907921
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.308     FROM HESSE     STATUS=OK           346 CALLS     2406 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.457        13.115        .77884E-04   -1.4679    
   2  norm          1.6188        5.5123        .30031E-03   -1.5454    
   3  Prefactor     .10000E-03    47.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8392        .17354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5073        5.3519        .17381E-03   -1.5283    
   7  Prefactor     6.8636        8.1718        .76573E-03   -1.5184    
   8  Prefactor     6.0762        3.4271        .98660E-04   -1.5215    
   9  Prefactor     15.233        8.2852        .10262E-03   -1.4927    
  10  norm          .10000E-03    .77417        .62743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8978        1.5349        .39680E-03   -1.5432    
  12  Prefactor     .10000E-03    2.6138        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8121        .19062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.2960        13.086        .15997E-03   -1.5206    
  15  norm          5.7728        1.5274        .44812E-04   -1.5227    
  16  norm          .10000E-03    2.7883        .15576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5415        2.5430        .95124E-04   -1.5332    
  18  Prefactor     .10000E-03    81.562        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7780        .17251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .72958        .17848        .22002E-03   -1.0274    
  22  Prefactor     .90792        .20670        .23777E-03   -.95865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.423e-11
Minuit parameter uncertainties:
  1  13.1162
  2  5.51398
  3  3.42459e-05
  4  2.7375e-06
  5  4.40656e-05
  6  5.35246
  7  8.17313
  8  3.42723
  9  8.28585
  10  2.94844e-06
  11  1.53494
  12  1.3111e-08
  13  5.60283e-06
  14  13.092
  15  1.52737
  16  3.6297e-06
  17  2.54308
  18  0.0002852
  19  3.68374e-06
  20  4.6768e-05
  21  0.178619
  22  0.206881
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.523e+01  8.286e+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

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  9.079e-01  2.069e-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.296e-01  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.29
Ra Dec: 19.454 -21.158
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.00e-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) = 5436.27215814
delta logL = 0.0356994069571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5436.27005163
delta logL = 0.0378059172835

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5436.270     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      282 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.939        11.916        .11135E-03    .31488E-03
   2  Index         2.5240        .59000        .43654E-02    .75575E-04
   3  Normalizat    .71995        .17611        .22128E-03   -.42779E-03
   4  Prefactor     .91516        .20710        .23689E-03   -.51393E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9388
  Index      = 2.52399
  Normalizat = 0.719949
  Prefactor  = 0.915164
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.270     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.939        10.898        .44539E-05   -1.4988    
   2  Index         2.5240        .53936        .17462E-03   -.51807    
   3  Normalizat    .71995        .17580        .44256E-04   -1.0311    
   4  Prefactor     .91516        .20701        .47379E-04   -.95613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63229e-10
Minuit parameter uncertainties:
  1  10.9001
  2  0.540759
  3  0.175937
  4  0.207191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514760': 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) = 5436.27004997
delta logL = 0.0378075696726

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.294e+01  1.090e+01  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.524e+00  5.408e-01  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:  9.152e-01  2.072e-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.199e-01  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.37
Ra Dec: 19.454 -21.158
Photon Index (Free Index): 2.52 +/- 0.54
Photon Flux (Free Index): 6.15e-08 +/- 4.00e-08
Energy Flux (Free Index): 1.74e-05 +/- 9.57e-06

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/514760/cmap_HighResolution_515894401_516153601_4FGL_J0117.8-2109_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='1.74e-05', photon_flux_error='2.96e-08', dlogl='3.78e-02', energy_flux='1.85e-05', photon_flux2='6.15e-08', job_status='DONE', time_completed='2021-08-13 21:44:53.429524', photon_index_error2='0.54', photon_index2='2.52', ts='10.29', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='9.57e-06', EG='0.73', time_epoch_completed='1628916293.43', return_code='0', job_id='514760', GAL2='0.92', EG2='0.72', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.00e-08', ts2='10.37', photon_index='2.38' WHERE bin_id='1067' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:44:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0146>
Subject: Job 514760: <4FGL_J0117.8-2109_daily_bin1067> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1067> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 21:30:45 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:34:04 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:34:04 2021
Terminated at Fri Aug 13 21:44:54 2021
Results reported at Fri Aug 13 21:44:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1067 19.4543 -21.1578 515894401 516153601 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 :                                   595.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            849 sec.

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

