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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1555
RA = 19.4543, Dec = -21.1578
tmin = 642384001, tmax = 642643201
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='516432', job_status='RUN', time_executed='2021-08-13 21:40:19.127872', time_epoch_executed='1628916019.13' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516432

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516432/ft1_4FGL_J0117.8-2109_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516432/ft2_4FGL_J0117.8-2109_daily_bin1555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516432/ft1_4FGL_J0117.8-2109_daily_bin1555.fits outfile=/scratch/kocevski/516432/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1555.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=642384001.0 tmax=642643201.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.96
user 2.82
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516432/ft2_4FGL_J0117.8-2109_daily_bin1555.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/516432/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1555.fits evtable="EVENTS" outfile="/scratch/kocevski/516432/ft1_filtered_4FGL_J0117.8-2109_daily_bin1555.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.40
user 0.27
sys 1.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516432/ft1_filtered_4FGL_J0117.8-2109_daily_bin1555.fits" evtable="EVENTS" scfile=/scratch/kocevski/516432/ft2_4FGL_J0117.8-2109_daily_bin1555.fits sctable="SC_DATA" outfile=/scratch/kocevski/516432/ltcube_642384001_642643201_4FGL_J0117.8-2109_daily_bin1555.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/516432/ft2_4FGL_J0117.8-2109_daily_bin1555.fits
.....................!
real 10.99
user 9.59
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516432/ft1_filtered_4FGL_J0117.8-2109_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/516432/ft2_4FGL_J0117.8-2109_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/516432/ltcube_642384001_642643201_4FGL_J0117.8-2109_daily_bin1555.fits outfile=/scratch/kocevski/516432/expmap_642384001_642643201_4FGL_J0117.8-2109_daily_bin1555.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/516432/ltcube_642384001_642643201_4FGL_J0117.8-2109_daily_bin1555.fits
.....................!
real 157.34
user 152.15
sys 4.80

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/516432/ft1_filtered_4FGL_J0117.8-2109_daily_bin1555.fits scfile=/scratch/kocevski/516432/ft2_4FGL_J0117.8-2109_daily_bin1555.fits outfile=/scratch/kocevski/516432/cmap_642384001_642643201_4FGL_J0117.8-2109_daily_bin1555.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.36
user 0.30
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516432/ft1_filtered_4FGL_J0117.8-2109_daily_bin1555.fits scfile=/scratch/kocevski/516432/ft2_4FGL_J0117.8-2109_daily_bin1555.fits outfile=/scratch/kocevski/516432/cmap_HighResolution_642384001_642643201_4FGL_J0117.8-2109_daily_bin1555.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.36
user 0.32
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516432/ft1_filtered_4FGL_J0117.8-2109_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/516432/ft2_4FGL_J0117.8-2109_daily_bin1555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516432/Model_4FGL_J0117.8-2109_daily_bin1555.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/516432/ft1_filtered_4FGL_J0117.8-2109_daily_bin1555.fits.....................!
real 38.65
user 36.32
sys 2.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5725       1.0000         .10000E-03   10000.    
     2 'norm      '    35.865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2392       1.0000         .10000E-03   10000.    
     5 'norm      '    14.955       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83914       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.027       1.0000         .10000E-03   10000.    
    10 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4808       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.396       1.0000         .10000E-03   10000.    
    15 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .30722E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.707       1.0000         .10000E-03   10000.    
    19 'norm      '    7.9897       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.352       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81592       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1648       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=   5452.054     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2457 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5715        8.7767        .96046E-07   -.20163E-04
   2  norm          35.863        9.9519        .36695E-07   -.84132E-04
   3  Prefactor     .10000E-03    62.107        .83073E-07** at limit **
   4  Prefactor     8.2387        12.952        .12466E-05   -.19755E-04
   5  norm          14.954        12.315        .35166E-07   -.31270E-05
   6  Prefactor     6.1439        7.2203        .22161E-06   -.26762E-04
   7  Prefactor     .10000E-03    3.6124        .13464E-08** at limit **
   8  Prefactor     .83581        4.9436        .27398E-05   -.42281E-04
   9  Prefactor     24.041        13.636        .10644E-06   -.33039E-04
  10  norm          .10000E-03    1.8397       -.89686E-07** at limit **
  11  norm          4.4806        2.5299        .16431E-07   -.10594E-04
  12  Prefactor     18.152        14.777        .11070E-06   -.14009E-04
  13  Prefactor     .10000E-03    2.4570        .12725E-06** at limit **
  14  norm          15.404        37.271       -.11064E-05   -.18150E-04
  15  norm          .10000E-03    .54631        .16677E-06** at limit **
  16  norm          .10000E-03    1.1943       -.58798E-07** at limit **
  17  norm          .10000E-03    1.5119       -.34958E-07** at limit **
  18  Prefactor     62.671        54.666       -.17412E-06   -.11079E-03
  19  norm          7.9894        3.5758        .38485E-07   -.28599E-04
  20  Prefactor     13.354        13.369        .77189E-07   -.19410E-05
  21  Normalizat    .81596        .18233       -.32640E-06   -.17000E-03
  22  Prefactor     1.1650        .20482       -.77670E-06   -.12741E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.57146
  norm       = 35.8629
  Prefactor  = 0.0001
  Prefactor  = 8.23865
  norm       = 14.9537
  Prefactor  = 6.1439
  Prefactor  = 0.0001
  Prefactor  = 0.835811
  Prefactor  = 24.041
  norm       = 0.0001
  norm       = 4.4806
  Prefactor  = 18.1521
  Prefactor  = 0.0001
  norm       = 15.4036
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 62.6711
  norm       = 7.98943
  Prefactor  = 13.354
  Normalizat = 0.815964
  Prefactor  = 1.16497
 **********
 **   18 **HESSE 
 **********

 FCN=   5452.054     FROM HESSE     STATUS=OK           354 CALLS     2811 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5715        8.7726        .17019E-03   -1.5236    
   2  norm          35.863        9.9436        .66919E-04   -1.4510    
   3  Prefactor     .10000E-03    62.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2387        12.907        .69835E-03   -1.5134    
   5  norm          14.954        12.314        .10357E-03   -1.4934    
   6  Prefactor     6.1439        7.2246        .16193E-03   -1.5212    
   7  Prefactor     .10000E-03    3.6144        .13704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .83581        4.9982        .30157E-02   -1.5525    
   9  Prefactor     24.041        12.402        .81719E-04   -1.4727    
  10  norm          .10000E-03    2.9215        .17663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4806        2.5300        .83958E-04   -1.5285    
  12  Prefactor     18.152        14.735        .94013E-04   -1.4856    
  13  Prefactor     .10000E-03    12.772        .21480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.404        37.273        .10208E-03   -1.4923    
  15  norm          .10000E-03    .76630        .10496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2395        .15715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.5271        .17348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     62.671        54.285        .50674E-04   -1.4123    
  19  norm          7.9894        3.5766        .90140E-04   -1.5143    
  20  Prefactor     13.354        13.363        .10962E-03   -1.4977    
  21  Normalizat    .81596        .21166        .25889E-03   -.99479    
  22  Prefactor     1.1650        .24046        .25850E-03   -.87416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67088e-08
Minuit parameter uncertainties:
  1  8.77467
  2  9.94405
  3  2.14864e-05
  4  12.9114
  5  12.3159
  6  7.22565
  7  3.59428e-07
  8  4.08809
  9  12.4033
  10  9.16716e-06
  11  2.53001
  12  14.7378
  13  2.45345e-05
  14  37.329
  15  3.09998e-06
  16  2.4657e-06
  17  0.000113957
  18  54.3283
  19  3.57672
  20  13.3658
  21  0.211876
  22  0.240685
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  2.404e+01  1.240e+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.165e+00  2.407e-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:  8.160e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.00
Ra Dec: 19.454 -21.158
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 8.61e-08 +/- 4.44e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 1.50e-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) = 5452.05361327
delta logL = 1.82396615855e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5452.05361109
delta logL = 4.00016688218e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.077       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3746       1.0000          .0000       10.000    
     3 'Normalizat'    .81603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1650       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=   5452.054     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      250 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.078        18.955        .81636E-04    .94698E-05
   2  Index         2.3745        .58231        .46624E-02   -.16593E-04
   3  Normalizat    .81613        .21458        .25887E-03    .16465E-03
   4  Prefactor     1.1648        .24320        .25852E-03    .25026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.078
  Index      = 2.37455
  Normalizat = 0.816135
  Prefactor  = 1.16484
 **********
 **   18 **HESSE 
 **********

 FCN=   5452.054     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.078        17.782        .32654E-05   -1.4726    
   2  Index         2.3745        .54531        .18650E-03   -.55282    
   3  Normalizat    .81613        .21375        .10355E-04   -.99473    
   4  Prefactor     1.1648        .24282        .51703E-04   -.87420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20168e-10
Minuit parameter uncertainties:
  1  17.786
  2  0.546809
  3  0.213967
  4  0.243055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516432': 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) = 5452.05361089
delta logL = 4.20075684815e-06

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  2.408e+01  1.779e+01  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.375e+00  5.468e-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:  1.165e+00  2.431e-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:  8.161e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.94
Ra Dec: 19.454 -21.158
Photon Index (Free Index): 2.37 +/- 0.55
Photon Flux (Free Index): 8.60e-08 +/- 6.14e-08
Energy Flux (Free Index): 2.92e-05 +/- 1.67e-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/516432/cmap_HighResolution_642384001_642643201_4FGL_J0117.8-2109_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.61e-08', energy_flux2='2.92e-05', photon_flux_error='4.44e-08', dlogl='4.20e-06', energy_flux='2.91e-05', photon_flux2='8.60e-08', job_status='DONE', time_completed='2021-08-13 21:47:52.745050', photon_index_error2='0.55', photon_index2='2.37', ts='12.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.82', time_epoch_completed='1628916472.75', return_code='0', job_id='516432', GAL2='1.16', EG2='0.82', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.14e-08', ts2='11.94', photon_index='2.38' WHERE bin_id='1555' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:47:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 516432: <4FGL_J0117.8-2109_daily_bin1555> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1555 19.4543 -21.1578 642384001 642643201 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 :                                   465.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   496 sec.
    Turnaround time :                            716 sec.

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

