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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1524
RA = 19.4543, Dec = -21.1578
tmin = 634348801, tmax = 634608001
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='516401', job_status='RUN', time_executed='2021-08-13 21:40:58.709856', time_epoch_executed='1628916058.71' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516401

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516401/ft1_4FGL_J0117.8-2109_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516401/ft2_4FGL_J0117.8-2109_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516401/ft1_4FGL_J0117.8-2109_daily_bin1524.fits outfile=/scratch/kocevski/516401/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1524.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=634348801.0 tmax=634608001.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.20
user 3.53
sys 2.61

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516401/ft2_4FGL_J0117.8-2109_daily_bin1524.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/516401/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1524.fits evtable="EVENTS" outfile="/scratch/kocevski/516401/ft1_filtered_4FGL_J0117.8-2109_daily_bin1524.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.98
user 0.34
sys 2.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516401/ft1_filtered_4FGL_J0117.8-2109_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/516401/ft2_4FGL_J0117.8-2109_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/516401/ltcube_634348801_634608001_4FGL_J0117.8-2109_daily_bin1524.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/516401/ft2_4FGL_J0117.8-2109_daily_bin1524.fits
.....................!
real 15.36
user 12.25
sys 2.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516401/ft1_filtered_4FGL_J0117.8-2109_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/516401/ft2_4FGL_J0117.8-2109_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/516401/ltcube_634348801_634608001_4FGL_J0117.8-2109_daily_bin1524.fits outfile=/scratch/kocevski/516401/expmap_634348801_634608001_4FGL_J0117.8-2109_daily_bin1524.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/516401/ltcube_634348801_634608001_4FGL_J0117.8-2109_daily_bin1524.fits
.....................!
real 194.91
user 185.60
sys 8.06

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/516401/ft1_filtered_4FGL_J0117.8-2109_daily_bin1524.fits scfile=/scratch/kocevski/516401/ft2_4FGL_J0117.8-2109_daily_bin1524.fits outfile=/scratch/kocevski/516401/cmap_634348801_634608001_4FGL_J0117.8-2109_daily_bin1524.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.93
user 0.38
sys 2.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516401/ft1_filtered_4FGL_J0117.8-2109_daily_bin1524.fits scfile=/scratch/kocevski/516401/ft2_4FGL_J0117.8-2109_daily_bin1524.fits outfile=/scratch/kocevski/516401/cmap_HighResolution_634348801_634608001_4FGL_J0117.8-2109_daily_bin1524.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.93
user 0.38
sys 2.52

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516401/ft1_filtered_4FGL_J0117.8-2109_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/516401/ft2_4FGL_J0117.8-2109_daily_bin1524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516401/Model_4FGL_J0117.8-2109_daily_bin1524.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/516401/ft1_filtered_4FGL_J0117.8-2109_daily_bin1524.fits.....................!
real 59.51
user 54.96
sys 4.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    48.956       1.0000         .10000E-03   10000.    
     2 'norm      '    85.343       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.099       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31249E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1611       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.620       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4113       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5987       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11487E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5043       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8516       1.0000         .10000E-03   10000.    
    17 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9137       1.0000         .10000E-03   10000.    
    19 'norm      '    .33060       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75228       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99417       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=   6635.536     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     2493 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          48.954        19.554        .57312E-04    .57129E-05
   2  norm          85.343        12.595        .43485E-04    .34771E-04
   3  Prefactor     .10000E-03    78.190        .18142E-02** at limit **
   4  Prefactor     30.099        19.799        .73030E-04   -.45145E-05
   5  norm          .10000E-03    5.2738        .18142E-02** at limit **
   6  Prefactor     4.2686        5.9750        .97517E-03    .58976E-03
   7  Prefactor     .10001E-03    11.082        .62389E-01** at limit **
   8  Prefactor     4.1610        3.3547        .12785E-03   -.42771E-04
   9  Prefactor     16.620        9.6166        .98243E-04   -.49760E-05
  10  norm          2.4113        1.9490        .89768E-04   -.89918E-05
  11  norm          1.5989        1.6165        .10073E-03   -.91082E-04
  12  Prefactor     .10000E-03    10.030        .18142E-02** at limit **
  13  Prefactor     .10000E-03    1.0793        .82331E-03** at limit **
  14  norm          .10000E-03    30.238        .18142E-02** at limit **
  15  norm          1.5042        1.0251        .65566E-04    .23581E-04
  16  norm          2.8520        1.7153        .78815E-04   -.62660E-03
  17  norm          .10002E-03    4.0085        .16016E-02** at limit **
  18  Prefactor     4.9040        38.780        .18145E-03   -.15977E-04
  19  norm          .33027        1.4987        .19041E-03    .55825E-04
  20  Prefactor     .10000E-03    5.8358        .18142E-02** at limit **
  21  Normalizat    .75217        .17463        .24516E-03   -.14579E-03
  22  Prefactor     .99431        .20346        .25578E-03   -.77650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 48.9544
  norm       = 85.3426
  Prefactor  = 0.0001
  Prefactor  = 30.0985
  norm       = 0.0001
  Prefactor  = 4.26859
  Prefactor  = 0.000100013
  Prefactor  = 4.16096
  Prefactor  = 16.6203
  norm       = 2.41128
  norm       = 1.59895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.50425
  norm       = 2.85203
  norm       = 0.000100019
  Prefactor  = 4.90403
  norm       = 0.330271
  Prefactor  = 0.0001
  Normalizat = 0.752167
  Prefactor  = 0.994307
 **********
 **   18 **HESSE 
 **********

 FCN=   6635.536     FROM HESSE     STATUS=OK           330 CALLS     2823 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          48.954        19.554        .11462E-04   -1.4307    
   2  norm          85.343        12.595        .17394E-05   -1.3858    
   3  Prefactor     .10000E-03    78.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.099        19.797        .29212E-05   -1.4610    
   5  norm          .10000E-03    5.2744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2686        5.9680        .39007E-04   -1.5295    
   7  Prefactor     .10001E-03    9.3299        .70202E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1610        3.3546        .51140E-05   -1.5300    
   9  Prefactor     16.620        9.6172        .39297E-05   -1.4892    
  10  norm          2.4113        1.9491        .35907E-05   -1.5397    
  11  norm          1.5989        1.6163        .40291E-05   -1.5455    
  12  Prefactor     .10000E-03    10.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0794        .16466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    30.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5042        1.0250        .26227E-05   -1.5463    
  16  norm          2.8520        1.7152        .31526E-05   -1.5370    
  17  norm          .10002E-03    4.0300        .32033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9040        38.753        .72579E-05   -1.5265    
  19  norm          .33027        1.4983        .76165E-05   -1.5593    
  20  Prefactor     .10000E-03    5.8375        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75217        .17480        .98066E-05   -1.0187    
  22  Prefactor     .99431        .20367        .10231E-04   -.92920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1102e-09
Minuit parameter uncertainties:
  1  19.5563
  2  12.595
  3  0.000337641
  4  19.8012
  5  9.41351e-06
  6  5.96878
  7  0.000693368
  8  3.35474
  9  9.61804
  10  1.94918
  11  1.61635
  12  4.39084e-05
  13  1.97496e-06
  14  2.06529e-05
  15  1.02505
  16  1.71526
  17  0.000552363
  18  27.5957
  19  1.40675
  20  8.08558e-05
  21  0.174926
  22  0.20383
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.662e+01  9.618e+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.943e-01  2.038e-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.522e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.38
Ra Dec: 19.454 -21.158
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.95e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.17e-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) = 6634.77920415
delta logL = 0.756946187979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6634.77920268
delta logL = 0.756947653788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.373       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8253       1.0000          .0000       10.000    
     3 'Normalizat'    .78345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97142       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=   6634.779     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.361        359.85        .19881E-02    .56433E-04
   2  Index         1.8255        5.8114        .18533        .34003E-04
   3  Normalizat    .78375        .14976        .43394E-01    .44235E-03
   4  Prefactor     .97119        .98829E-01    .45909E-01    .39105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3615
  Index      = 1.82546
  Normalizat = 0.783746
  Prefactor  = 0.971187
 **********
 **   18 **HESSE 
 **********

 FCN=   6634.779     FROM HESSE     STATUS=OK            27 CALLS      261 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.361        14.210        .79526E-04   -1.4700    
   2  Index         1.8255        .40920        .66484E-02   -.68789    
   3  Normalizat    .78375        .16903        .24075E-03   -1.0067    
   4  Prefactor     .97119        .19981        .25843E-03   -.93696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71137e-10
Minuit parameter uncertainties:
  1  14.212
  2  0.409972
  3  0.169145
  4  0.199962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516401': 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) = 6634.77920056
delta logL = 0.756949774774

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  2.536e+01  1.421e+01  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  1.825e+00  4.100e-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.712e-01  2.000e-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.837e-01  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.95
Ra Dec: 19.454 -21.158
Photon Index (Free Index): 1.83 +/- 0.41
Photon Flux (Free Index): 3.58e-08 +/- 2.67e-08
Energy Flux (Free Index): 3.98e-05 +/- 3.58e-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/516401/cmap_HighResolution_634348801_634608001_4FGL_J0117.8-2109_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.95e-08', energy_flux2='3.98e-05', photon_flux_error='3.44e-08', dlogl='7.57e-01', energy_flux='2.01e-05', photon_flux2='3.58e-08', job_status='DONE', time_completed='2021-08-13 21:51:37.780766', photon_index_error2='0.41', photon_index2='1.83', ts='8.38', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.58e-05', EG='0.75', time_epoch_completed='1628916697.78', return_code='0', job_id='516401', GAL2='0.97', EG2='0.78', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.67e-08', ts2='9.95', photon_index='2.38' WHERE bin_id='1524' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:51:37 PDT 2021


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

Job <4FGL_J0117.8-2109_daily_bin1524> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 21:35:54 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:39:10 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:39:10 2021
Terminated at Fri Aug 13 21:51:38 2021
Results reported at Fri Aug 13 21:51:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1524 19.4543 -21.1578 634348801 634608001 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 :                                   671.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            944 sec.

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

