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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1610
RA = 19.4543, Dec = -21.1578
tmin = 656640001, tmax = 656899201
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='138187', job_status='RUN', time_executed='2021-12-07 12:02:22.894478', time_epoch_executed='1638907342.89' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138187

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138187/ft1_4FGL_J0117.8-2109_daily_bin1610.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138187/ft2_4FGL_J0117.8-2109_daily_bin1610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138187/ft1_4FGL_J0117.8-2109_daily_bin1610.fits outfile=/scratch/kocevski/138187/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1610.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=656640001.0 tmax=656899201.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.60
user 3.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/138187/ft2_4FGL_J0117.8-2109_daily_bin1610.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/138187/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1610.fits evtable="EVENTS" outfile="/scratch/kocevski/138187/ft1_filtered_4FGL_J0117.8-2109_daily_bin1610.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138187/ft1_filtered_4FGL_J0117.8-2109_daily_bin1610.fits" evtable="EVENTS" scfile=/scratch/kocevski/138187/ft2_4FGL_J0117.8-2109_daily_bin1610.fits sctable="SC_DATA" outfile=/scratch/kocevski/138187/ltcube_656640001_656899201_4FGL_J0117.8-2109_daily_bin1610.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/138187/ft2_4FGL_J0117.8-2109_daily_bin1610.fits
.....................!
real 14.01
user 13.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138187/ft1_filtered_4FGL_J0117.8-2109_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/138187/ft2_4FGL_J0117.8-2109_daily_bin1610.fits sctable="SC_DATA" expcube=/scratch/kocevski/138187/ltcube_656640001_656899201_4FGL_J0117.8-2109_daily_bin1610.fits outfile=/scratch/kocevski/138187/expmap_656640001_656899201_4FGL_J0117.8-2109_daily_bin1610.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/138187/ltcube_656640001_656899201_4FGL_J0117.8-2109_daily_bin1610.fits
.....................!
real 192.69
user 187.19
sys 5.16

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/138187/ft1_filtered_4FGL_J0117.8-2109_daily_bin1610.fits scfile=/scratch/kocevski/138187/ft2_4FGL_J0117.8-2109_daily_bin1610.fits outfile=/scratch/kocevski/138187/cmap_656640001_656899201_4FGL_J0117.8-2109_daily_bin1610.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 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138187/ft1_filtered_4FGL_J0117.8-2109_daily_bin1610.fits scfile=/scratch/kocevski/138187/ft2_4FGL_J0117.8-2109_daily_bin1610.fits outfile=/scratch/kocevski/138187/cmap_HighResolution_656640001_656899201_4FGL_J0117.8-2109_daily_bin1610.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 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/138187/ft1_filtered_4FGL_J0117.8-2109_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/138187/ft2_4FGL_J0117.8-2109_daily_bin1610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/138187/Model_4FGL_J0117.8-2109_daily_bin1610.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/138187/ft1_filtered_4FGL_J0117.8-2109_daily_bin1610.fits.....................!
real 50.94
user 49.61
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2361       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8025       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.700       1.0000         .10000E-03   10000.    
     5 'norm      '    5.1828       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5292       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47108       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4726       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3494       1.0000         .10000E-03   10000.    
    11 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.957       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9373       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .60971       1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4269       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88458       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0247       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=   6057.637     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2117 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2361        8.1196       -.18665E-07    .19747E-04
   2  norm          8.7423        7.1043       -.17137E-06    .13649E-03
   3  Prefactor     1.7331        350.33        .68484E-05    .28894E-04
   4  Prefactor     10.701        16.642       -.24523E-06    .24751E-04
   5  norm          5.1842        6.9126        .10265E-05    .31350E-03
   6  Prefactor     1.5255        5.6081        .61714E-06    .76936E-03
   7  Prefactor     .52653        22.660       -.45169E-05    .60478E-03
   8  Prefactor     4.4726        3.0118       -.70066E-07    .67710E-04
   9  Prefactor     .10000E-03    9.1767       -.25879E-06** at limit **
  10  norm          3.3494        1.9947        .25216E-07    .57507E-03
  11  norm          .10000E-03    1.4817       -.55369E-06** at limit **
  12  Prefactor     26.962        12.877        .35050E-06    .56182E-03
  13  Prefactor     1.9372        3.4206       -.16731E-06    .22492E-03
  14  norm          .10000E-03    29.104       -.65727E-06** at limit **
  15  norm          .60957        .71594       -.12865E-06   -.36391E-03
  16  norm          .10000E-03    .73002       -.23748E-06** at limit **
  17  norm          .10000E-03    .88341       -.36215E-06** at limit **
  18  Prefactor     .10000E-03    8.6993       -.10211E-06** at limit **
  19  norm          3.4268        2.2146       -.64338E-07    .70517E-04
  20  Prefactor     .10000E-03    5.0285       -.17091E-06** at limit **
  21  Normalizat    .88461        .15383        .10180E-05    .92414E-03
  22  Prefactor     1.0247        .17853        .99252E-06    .80685E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.23606
  norm       = 8.7423
  Prefactor  = 1.7331
  Prefactor  = 10.7006
  norm       = 5.18419
  Prefactor  = 1.52548
  Prefactor  = 0.526532
  Prefactor  = 4.47261
  Prefactor  = 0.0001
  norm       = 3.34937
  norm       = 0.000100001
  Prefactor  = 26.9625
  Prefactor  = 1.9372
  norm       = 0.0001
  norm       = 0.609571
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.42682
  Prefactor  = 0.0001
  Normalizat = 0.884608
  Prefactor  = 1.02468
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.637     FROM HESSE     STATUS=OK           354 CALLS     2471 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2361        8.1231        .13970E-03   -1.5134    
   2  norm          8.7423        7.1120        .13556E-03   -1.5117    
   3  Prefactor     1.7331        355.24        .31134E-02   -1.5445    
   4  Prefactor     10.701        16.651        .12248E-03   -1.5054    
   5  norm          5.1842        6.8769        .17658E-03   -1.5253    
   6  Prefactor     1.5255        5.7187        .16163E-02   -1.5461    
   7  Prefactor     .52653        59.989        .43699E-02   -1.5563    
   8  Prefactor     4.4726        3.0120        .10711E-03   -1.5285    
   9  Prefactor     .10000E-03    9.3251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3494        1.9778        .78579E-04   -1.5342    
  11  norm          .10000E-03    3.0645        .17496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.962        12.825        .77158E-04   -1.4669    
  13  Prefactor     1.9372        3.3878        .17506E-03   -1.5430    
  14  norm          .10000E-03    29.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .60957        .68077        .69244E-03   -1.5552    
  16  norm          .10000E-03    .75849        .13014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4668        .14118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4268        2.2152        .90078E-04   -1.5338    
  20  Prefactor     .10000E-03    5.0487        .17050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88461        .18021        .22215E-03   -.97003    
  22  Prefactor     1.0247        .20942        .24842E-03   -.91911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92812e-09
Minuit parameter uncertainties:
  1  8.1242
  2  7.11264
  3  49.9267
  4  16.6584
  5  6.87794
  6  5.72078
  7  11.2508
  8  3.01207
  9  3.67033e-05
  10  1.9778
  11  0.000103016
  12  12.826
  13  3.38813
  14  0.000105743
  15  0.680776
  16  6.34936e-06
  17  1.49032e-07
  18  8.29686e-06
  19  2.21523
  20  1.31658e-05
  21  0.180332
  22  0.20959
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  3.670e-05  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.025e+00  2.096e-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.846e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 19.454 -21.158
Photon Flux Upper Limit: 6.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/138187/likelihoodResults_656640001_656899201_4FGL_J0117.8-2109_daily_bin1610.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) = 6057.63776834
delta logL = -0.000511350571287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6057.63725698
delta logL = 5.26688381797e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3627       1.0000          .0000       10.000    
     3 'Normalizat'    .88460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0247       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=   6057.637     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      246 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10159E-03    .83824E-01    .65672E-01** at limit **
   2  Index         2.2891        8.5627        .50000        .11555E-04
   3  Normalizat    .88461        .46232E-03    .22215E-03   -.11540E-03
   4  Prefactor     1.0247        .55541E-03    .24842E-03   -.13276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101587
  Index      = 2.28909
  Normalizat = 0.884607
  Prefactor  = 1.02468
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.637     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10159E-03    27.917        .35079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2891        5.9404        .50000       -.57303    
   3  Normalizat    .88461        .62537E-02    .88858E-05   -.97003    
   4  Prefactor     1.0247        .75130E-02    .99367E-05   -.91911    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.6354e-09
Minuit parameter uncertainties:
  1  0.0133181
  2  262.269
  3  0.00625373
  4  0.00751297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138187': 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) = 6057.63725682
delta logL = 1.66580321093e-07

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.016e-04  1.332e-02  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.289e+00  2.623e+02  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.025e+00  7.513e-03  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.846e-01  6.254e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 19.454 -21.158

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/138187/cmap_HighResolution_656640001_656899201_4FGL_J0117.8-2109_daily_bin1610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-12-07 12:12:33.556612', job_id='138187', GAL2='1.02', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1638907953.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1610' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:12:33 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 138187: <4FGL_J0117.8-2109_daily_bin1610> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1610> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 12:00:25 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:01:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:01:53 2021
Terminated at Tue Dec  7 12:12:34 2021
Results reported at Tue Dec  7 12:12:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1610 19.4543 -21.1578 656640001 656899201 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 :                                   610.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            729 sec.

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

