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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1557
RA = 19.4543, Dec = -21.1578
tmin = 642902401, tmax = 643161601
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='516434', job_status='RUN', time_executed='2021-08-13 21:40:29.692033', time_epoch_executed='1628916029.69' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516434

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516434/ft1_4FGL_J0117.8-2109_daily_bin1557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516434/ft2_4FGL_J0117.8-2109_daily_bin1557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516434/ft1_4FGL_J0117.8-2109_daily_bin1557.fits outfile=/scratch/kocevski/516434/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1557.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=642902401.0 tmax=643161601.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.38
user 3.33
sys 2.99

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516434/ft2_4FGL_J0117.8-2109_daily_bin1557.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/516434/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1557.fits evtable="EVENTS" outfile="/scratch/kocevski/516434/ft1_filtered_4FGL_J0117.8-2109_daily_bin1557.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 3.06
user 0.33
sys 2.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516434/ft1_filtered_4FGL_J0117.8-2109_daily_bin1557.fits" evtable="EVENTS" scfile=/scratch/kocevski/516434/ft2_4FGL_J0117.8-2109_daily_bin1557.fits sctable="SC_DATA" outfile=/scratch/kocevski/516434/ltcube_642902401_643161601_4FGL_J0117.8-2109_daily_bin1557.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/516434/ft2_4FGL_J0117.8-2109_daily_bin1557.fits
.....................!
real 15.70
user 12.41
sys 3.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516434/ft1_filtered_4FGL_J0117.8-2109_daily_bin1557.fits evtable="EVENTS" scfile=/scratch/kocevski/516434/ft2_4FGL_J0117.8-2109_daily_bin1557.fits sctable="SC_DATA" expcube=/scratch/kocevski/516434/ltcube_642902401_643161601_4FGL_J0117.8-2109_daily_bin1557.fits outfile=/scratch/kocevski/516434/expmap_642902401_643161601_4FGL_J0117.8-2109_daily_bin1557.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/516434/ltcube_642902401_643161601_4FGL_J0117.8-2109_daily_bin1557.fits
.....................!
real 193.86
user 184.67
sys 8.74

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/516434/ft1_filtered_4FGL_J0117.8-2109_daily_bin1557.fits scfile=/scratch/kocevski/516434/ft2_4FGL_J0117.8-2109_daily_bin1557.fits outfile=/scratch/kocevski/516434/cmap_642902401_643161601_4FGL_J0117.8-2109_daily_bin1557.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 3.06
user 0.39
sys 2.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516434/ft1_filtered_4FGL_J0117.8-2109_daily_bin1557.fits scfile=/scratch/kocevski/516434/ft2_4FGL_J0117.8-2109_daily_bin1557.fits outfile=/scratch/kocevski/516434/cmap_HighResolution_642902401_643161601_4FGL_J0117.8-2109_daily_bin1557.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 3.09
user 0.38
sys 2.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516434/ft1_filtered_4FGL_J0117.8-2109_daily_bin1557.fits evtable="EVENTS" scfile=/scratch/kocevski/516434/ft2_4FGL_J0117.8-2109_daily_bin1557.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516434/Model_4FGL_J0117.8-2109_daily_bin1557.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/516434/ft1_filtered_4FGL_J0117.8-2109_daily_bin1557.fits.....................!
real 55.52
user 50.64
sys 4.50

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.151       1.0000         .10000E-03   10000.    
     2 'norm      '    11.422       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.333       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.299       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3955       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.586       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3064       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3952       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0149       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   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      '    1.2296       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0367       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.300       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .87499       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79724       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91508       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=   6126.394     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2365 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.150        13.087       -.11766E-05   -.10432E-04
   2  norm          11.422        5.4521       -.53355E-07   -.61688E-04
   3  Prefactor     51.331        60.337       -.25635E-05   -.38636E-05
   4  Prefactor     26.299        20.145       -.16003E-05   -.58413E-04
   5  norm          6.3940        12.771       -.15675E-05   -.69543E-04
   6  Prefactor     10.586        6.0820       -.42476E-06   -.35550E-03
   7  Prefactor     .10000E-03    11.289        .71325E-05** at limit **
   8  Prefactor     .35462        2.2980        .12851E-05   -.17621E-02
   9  Prefactor     8.3069        8.1580       -.18457E-06   -.12040E-03
  10  norm          2.3952        2.1400        .30967E-07   -.42453E-03
  11  norm          1.0150        .97161        .20474E-07    .13751E-03
  12  Prefactor     .10000E-03    6.7013        .47274E-06** at limit **
  13  Prefactor     .10000E-03    1.1604        .27735E-08** at limit **
  14  norm          .10000E-03    10.611       -.65838E-05** at limit **
  15  norm          1.2296        .80678       -.38394E-07   -.29827E-03
  16  norm          .10000E-03    .72970        .22839E-07** at limit **
  17  norm          2.0369        2.5843       -.10144E-06   -.61967E-03
  18  Prefactor     .10000E-03    28.077       -.12991E-05** at limit **
  19  norm          21.301        4.5156        .13743E-05    .12940E-03
  20  Prefactor     .83177        11.219       -.20996E-05    .24023E-04
  21  Normalizat    .79709        .15301       -.35593E-06   -.97016E-04
  22  Prefactor     .91529        .17436        .58721E-07   -.11714E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.1495
  norm       = 11.4215
  Prefactor  = 51.3312
  Prefactor  = 26.299
  norm       = 6.394
  Prefactor  = 10.5855
  Prefactor  = 0.0001
  Prefactor  = 0.354622
  Prefactor  = 8.30688
  norm       = 2.39515
  norm       = 1.01505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.22959
  norm       = 0.0001
  norm       = 2.03693
  Prefactor  = 0.0001
  norm       = 21.3007
  Prefactor  = 0.831771
  Normalizat = 0.797091
  Prefactor  = 0.915293
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.394     FROM HESSE     STATUS=OK           356 CALLS     2721 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.150        13.104        .10648E-03   -1.4955    
   2  norm          11.422        5.4545        .11854E-03   -1.5032    
   3  Prefactor     51.331        60.374        .55976E-04   -1.4274    
   4  Prefactor     26.299        20.162        .78116E-04   -1.4682    
   5  norm          6.3940        12.812        .15871E-03   -1.5202    
   6  Prefactor     10.586        6.1156        .12314E-03   -1.5057    
   7  Prefactor     .10000E-03    11.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .35462        4.7458        .22096E-02   -1.5589    
   9  Prefactor     8.3069        8.2950        .13910E-03   -1.5131    
  10  norm          2.3952        2.1650        .87160E-04   -1.5398    
  11  norm          1.0150        1.0119        .73528E-03   -1.5506    
  12  Prefactor     .10000E-03    6.7800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1755        .82241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2296        .80107        .55068E-04   -1.5486    
  16  norm          .10000E-03    .75813        .13036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0369        2.5818        .13301E-03   -1.5423    
  18  Prefactor     .10000E-03    28.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.301        4.4847        .72888E-04   -1.4785    
  20  Prefactor     .83177        56.962        .49864E-02   -1.5526    
  21  Normalizat    .79709        .17954        .22759E-03   -1.0018    
  22  Prefactor     .91529        .20512        .25208E-03   -.95609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1214e-09
Minuit parameter uncertainties:
  1  13.1064
  2  5.45471
  3  60.4465
  4  20.1674
  5  12.8171
  6  6.11591
  7  1.16071e-05
  8  2.59447
  9  8.29613
  10  2.1651
  11  1.01197
  12  2.85248e-07
  13  7.52869e-07
  14  1.4683e-06
  15  0.801079
  16  5.29328e-07
  17  2.58191
  18  2.5299e-05
  19  4.48475
  20  13.7793
  21  0.179678
  22  0.20529
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  8.307e+00  8.296e+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.153e-01  2.053e-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.971e-01  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.62
Ra Dec: 19.454 -21.158
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 2.97e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/516434/likelihoodResults_642902401_643161601_4FGL_J0117.8-2109_daily_bin1557.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): 0
logL (Free Index) = 6126.29606096
delta logL = 0.0974452314349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6126.29083126
delta logL = 0.102674930521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.336       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1028       1.0000          .0000       10.000    
     3 'Normalizat'    .80392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90958       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=   6126.291     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      305 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.351        11.201        .59494E-03    .29963E-04
   2  Index         2.1041        .59323        .76850E-02    .31124E-03
   3  Normalizat    .80393        .17120        .22673E-03    .45128E-06
   4  Prefactor     .90945        .20230        .25278E-03   -.12593E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3514
  Index      = 2.10406
  Normalizat = 0.803934
  Prefactor  = 0.909455
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.291     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.351        10.863        .11899E-03   -1.5034    
   2  Index         2.1041        .57547        .15370E-02   -.61773    
   3  Normalizat    .80393        .17132        .90692E-05   -.99923    
   4  Prefactor     .90945        .20246        .10111E-04   -.95811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99889e-12
Minuit parameter uncertainties:
  1  10.8649
  2  0.577396
  3  0.17143
  4  0.202629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516434': 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) = 6126.29082428
delta logL = 0.102681912742

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.135e+01  1.086e+01  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.104e+00  5.774e-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.095e-01  2.026e-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.039e-01  1.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 19.454 -21.158
Photon Index (Free Index): 2.10 +/- 0.58
Photon Flux (Free Index): 2.49e-08 +/- 2.38e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.50e-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/516434/cmap_HighResolution_642902401_643161601_4FGL_J0117.8-2109_daily_bin1557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', comment='SUCCESS', photon_flux='2.97e-08', energy_flux2='1.35e-05', photon_flux_error='2.97e-08', dlogl='1.03e-01', energy_flux='1.01e-05', photon_flux2='2.49e-08', job_status='DONE', time_completed='2021-08-13 21:51:39.521086', photon_index_error2='0.58', photon_index2='2.10', ts='2.62', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='8.60e-08', energy_flux_error2='1.50e-05', EG='0.80', time_epoch_completed='1628916699.52', return_code='0', job_id='516434', GAL2='0.91', EG2='0.80', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.38e-08', ts2='2.84', photon_index='2.38' WHERE bin_id='1557' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:51:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 516434: <4FGL_J0117.8-2109_daily_bin1557> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1557> 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) <bullet0137>, 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:51:40 2021
Results reported at Fri Aug 13 21:51:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1557 19.4543 -21.1578 642902401 643161601 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 :                                   707.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            943 sec.

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

