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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1357
RA = 19.4543, Dec = -21.1578
tmin = 591062401, tmax = 591321601
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='516171', job_status='RUN', time_executed='2021-08-13 21:38:28.096301', time_epoch_executed='1628915908.1' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516171/ft1_4FGL_J0117.8-2109_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516171/ft2_4FGL_J0117.8-2109_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516171/ft1_4FGL_J0117.8-2109_daily_bin1357.fits outfile=/scratch/kocevski/516171/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1357.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=591062401.0 tmax=591321601.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.70
user 2.79
sys 0.84

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516171/ft2_4FGL_J0117.8-2109_daily_bin1357.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/516171/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1357.fits evtable="EVENTS" outfile="/scratch/kocevski/516171/ft1_filtered_4FGL_J0117.8-2109_daily_bin1357.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.13
user 0.31
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516171/ft1_filtered_4FGL_J0117.8-2109_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/516171/ft2_4FGL_J0117.8-2109_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/516171/ltcube_591062401_591321601_4FGL_J0117.8-2109_daily_bin1357.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/516171/ft2_4FGL_J0117.8-2109_daily_bin1357.fits
.....................!
real 13.19
user 12.01
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516171/ft1_filtered_4FGL_J0117.8-2109_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/516171/ft2_4FGL_J0117.8-2109_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/516171/ltcube_591062401_591321601_4FGL_J0117.8-2109_daily_bin1357.fits outfile=/scratch/kocevski/516171/expmap_591062401_591321601_4FGL_J0117.8-2109_daily_bin1357.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/516171/ltcube_591062401_591321601_4FGL_J0117.8-2109_daily_bin1357.fits
.....................!
real 191.71
user 185.10
sys 6.05

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/516171/ft1_filtered_4FGL_J0117.8-2109_daily_bin1357.fits scfile=/scratch/kocevski/516171/ft2_4FGL_J0117.8-2109_daily_bin1357.fits outfile=/scratch/kocevski/516171/cmap_591062401_591321601_4FGL_J0117.8-2109_daily_bin1357.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.15
user 0.37
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516171/ft1_filtered_4FGL_J0117.8-2109_daily_bin1357.fits scfile=/scratch/kocevski/516171/ft2_4FGL_J0117.8-2109_daily_bin1357.fits outfile=/scratch/kocevski/516171/cmap_HighResolution_591062401_591321601_4FGL_J0117.8-2109_daily_bin1357.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.17
user 0.37
sys 0.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516171/ft1_filtered_4FGL_J0117.8-2109_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/516171/ft2_4FGL_J0117.8-2109_daily_bin1357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516171/Model_4FGL_J0117.8-2109_daily_bin1357.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/516171/ft1_filtered_4FGL_J0117.8-2109_daily_bin1357.fits......................!
real 32.24
user 30.08
sys 2.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.4283       1.0000         .10000E-03   10000.    
     3 'Prefactor '    259.70       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7509       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0251       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10443E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7060       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.8645       1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4470       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .24874       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=   2806.567     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2386 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.6599        .32468E-06** at limit **
   2  norm          5.4279        7.5624        .41413E-05   -.38306E-04
   3  Prefactor     260.15        235.09        .10023E-04    .58844E-04
   4  Prefactor     .10000E-03    42.430        .21734E-05** at limit **
   5  norm          1.3931        121.57        .10366E-04   -.52028E-04
   6  Prefactor     5.7581        9.3303        .19111E-05   -.10911E-03
   7  Prefactor     .10000E-03    7.4189       -.16449E-06** at limit **
   8  Prefactor     5.0249        7.2470        .23723E-05   -.22766E-04
   9  Prefactor     .10000E-03    30.179        .26391E-06** at limit **
  10  norm          .10000E-03    2.9314        .36337E-06** at limit **
  11  norm          3.7049        2.7990        .23269E-06   -.32597E-04
  12  Prefactor     16.599        15.265        .31216E-06   -.24316E-04
  13  Prefactor     .10000E-03    9.7408       -.72145E-07** at limit **
  14  norm          .10000E-03    30.533       -.66514E-06** at limit **
  15  norm          .10000E-03    2.0613        .23411E-06** at limit **
  16  norm          4.8629        3.4579        .57146E-06   -.52639E-04
  17  norm          .10000E-03    1.6613       -.10645E-06** at limit **
  18  Prefactor     .10000E-03    19.550        .26782E-06** at limit **
  19  norm          11.362        6.9054        .72401E-06   -.29585E-04
  20  Prefactor     .10000E-03    7.4769        .98355E-08** at limit **
  21  Normalizat    1.4476        .30230       -.34510E-05   -.53732E-04
  22  Prefactor     .24834        .29743       -.44527E-05   -.11954E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.4279
  Prefactor  = 260.145
  Prefactor  = 0.0001
  norm       = 1.39306
  Prefactor  = 5.75808
  Prefactor  = 0.0001
  Prefactor  = 5.02485
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.70491
  Prefactor  = 16.5986
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 4.86289
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3623
  Prefactor  = 0.0001
  Normalizat = 1.44759
  Prefactor  = 0.248339
 **********
 **   18 **HESSE 
 **********

 FCN=   2806.567     FROM HESSE     STATUS=OK           342 CALLS     2728 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.6626        .15228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4279        7.6009        .82457E-03   -1.5242    
   3  Prefactor     260.15        240.01        .12575E-03   -1.2468    
   4  Prefactor     .10000E-03    42.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3931        122.13        .35720E-03   -1.5472    
   6  Prefactor     5.7581        9.2608        .83744E-03   -1.5228    
   7  Prefactor     .10000E-03    7.4310        .14091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0249        7.2509        .83012E-03   -1.5260    
   9  Prefactor     .10000E-03    30.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.7033        .17315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7049        2.7951        .74002E-04   -1.5323    
  12  Prefactor     16.599        15.258        .98317E-04   -1.4893    
  13  Prefactor     .10000E-03    9.8874        .16092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    30.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4144        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.8629        3.4646        .77428E-04   -1.5267    
  17  norm          .10000E-03    1.6720        .66617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.362        6.9229        .10294E-03   -1.5034    
  20  Prefactor     .10000E-03    7.4811        .14149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4476        .28675        .19298E-03   -.79262    
  22  Prefactor     .24834        .28168        .45111E-03   -1.2543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69052e-10
Minuit parameter uncertainties:
  1  2.16458e-07
  2  7.60226
  3  240.932
  4  0.000140502
  5  26.1416
  6  9.26311
  7  3.508e-06
  8  7.25218
  9  1.84138e-05
  10  1.25276e-07
  11  2.79519
  12  15.2614
  13  2.93068e-05
  14  2.60527e-05
  15  0.000149138
  16  3.46473
  17  1.08667e-05
  18  2.69286e-05
  19  6.92334
  20  1.175e-05
  21  0.287069
  22  0.283242
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.841e-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:  2.483e-01  2.832e-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:  1.448e+00  2.871e-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: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516171/likelihoodResults_591062401_591321601_4FGL_J0117.8-2109_daily_bin1357.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) = 2806.56670634
delta logL = -0.00015614920494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2806.56655097
delta logL = -7.73337887949e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2996       1.0000          .0000       10.000    
     3 'Normalizat'    1.4476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .24835       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=   2806.567     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      282 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    769.56        .18142E-02** at limit **
   2  Index         2.3937        8.3109        .50000       -.49939E-04
   3  Normalizat    1.4476        .28740E-01    .19299E-03   -.41441E-03
   4  Prefactor     .24834        .29642E-01    .45107E-03   -.14336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100105
  Index      = 2.39371
  Normalizat = 1.44759
  Prefactor  = 0.248345
 **********
 **   18 **HESSE 
 **********

 FCN=   2806.567     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    6422.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3937        7.9760        .50000       -.54832    
   3  Normalizat    1.4476        .63369E-01    .38598E-04   -.79262    
   4  Prefactor     .24834        .65342E-01    .18043E-04   -1.2543    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.77965e-09
Minuit parameter uncertainties:
  1  0.0365403
  2  41.0037
  3  0.063372
  4  0.0653613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516171': 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) = 2806.56655
delta logL = 1.97409917746e-07

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.001e-04  3.654e-02  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.394e+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:  2.483e-01  6.536e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.448e+00  6.337e-02  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/516171/cmap_HighResolution_591062401_591321601_4FGL_J0117.8-2109_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-08-13 21:46:07.787029', job_id='516171', GAL2='0.25', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1628916367.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.25', dlogl='1.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1357' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:46:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 516171: <4FGL_J0117.8-2109_daily_bin1357> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1357 19.4543 -21.1578 591062401 591321601 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 :                                   467.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   541 sec.
    Turnaround time :                            630 sec.

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

