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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1053
RA = 19.4543, Dec = -21.1578
tmin = 512265601, tmax = 512524801
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='514738', job_status='RUN', time_executed='2021-08-13 21:36:45.257235', time_epoch_executed='1628915805.26' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514738/ft1_4FGL_J0117.8-2109_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514738/ft2_4FGL_J0117.8-2109_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514738/ft1_4FGL_J0117.8-2109_daily_bin1053.fits outfile=/scratch/kocevski/514738/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1053.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=512265601.0 tmax=512524801.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.38
user 2.74
sys 0.61

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514738/ft2_4FGL_J0117.8-2109_daily_bin1053.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/514738/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/514738/ft1_filtered_4FGL_J0117.8-2109_daily_bin1053.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.88
user 0.28
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514738/ft1_filtered_4FGL_J0117.8-2109_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/514738/ft2_4FGL_J0117.8-2109_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/514738/ltcube_512265601_512524801_4FGL_J0117.8-2109_daily_bin1053.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/514738/ft2_4FGL_J0117.8-2109_daily_bin1053.fits
.....................!
real 10.93
user 10.00
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514738/ft1_filtered_4FGL_J0117.8-2109_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/514738/ft2_4FGL_J0117.8-2109_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/514738/ltcube_512265601_512524801_4FGL_J0117.8-2109_daily_bin1053.fits outfile=/scratch/kocevski/514738/expmap_512265601_512524801_4FGL_J0117.8-2109_daily_bin1053.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/514738/ltcube_512265601_512524801_4FGL_J0117.8-2109_daily_bin1053.fits
.....................!
real 157.07
user 151.75
sys 4.75

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/514738/ft1_filtered_4FGL_J0117.8-2109_daily_bin1053.fits scfile=/scratch/kocevski/514738/ft2_4FGL_J0117.8-2109_daily_bin1053.fits outfile=/scratch/kocevski/514738/cmap_512265601_512524801_4FGL_J0117.8-2109_daily_bin1053.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.91
user 0.33
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514738/ft1_filtered_4FGL_J0117.8-2109_daily_bin1053.fits scfile=/scratch/kocevski/514738/ft2_4FGL_J0117.8-2109_daily_bin1053.fits outfile=/scratch/kocevski/514738/cmap_HighResolution_512265601_512524801_4FGL_J0117.8-2109_daily_bin1053.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.91
user 0.34
sys 0.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514738/ft1_filtered_4FGL_J0117.8-2109_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/514738/ft2_4FGL_J0117.8-2109_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514738/Model_4FGL_J0117.8-2109_daily_bin1053.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/514738/ft1_filtered_4FGL_J0117.8-2109_daily_bin1053.fits......................!
real 32.73
user 31.01
sys 1.60

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.014       1.0000         .10000E-03   10000.    
     2 'norm      '    18.807       1.0000         .10000E-03   10000.    
     3 'Prefactor '    121.51       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11147E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9688       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .78695       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2937       1.0000         .10000E-03   10000.    
    15 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.4528       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1089       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83357       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=   4084.741     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2385 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.015        9.7460        .17667E-06    .34117E-04
   2  norm          18.807        7.6472        .27609E-07   -.33956E-05
   3  Prefactor     121.56        143.00        .38368E-04    .41484E-04
   4  Prefactor     .10000E-03    16.607       -.47729E-05** at limit **
   5  norm          .10000E-03    12.013       -.12736E-04** at limit **
   6  Prefactor     .10000E-03    3.6934       -.90775E-07** at limit **
   7  Prefactor     9.9609        11.875        .23407E-05   -.29815E-04
   8  Prefactor     .10000E-03    1.8908        .76180E-07** at limit **
   9  Prefactor     .10000E-03    7.8951        .57577E-06** at limit **
  10  norm          .78729        1.8479       -.44244E-06   -.12620E-02
  11  norm          .10000E-03    .97221       -.27343E-07** at limit **
  12  Prefactor     .10000E-03    7.3017       -.24823E-06** at limit **
  13  Prefactor     .10000E-03    1.3454       -.54515E-07** at limit **
  14  norm          4.1564        90.705       -.42425E-05   -.12576E-04
  15  norm          .10000E-03    .58152        .14472E-06** at limit **
  16  norm          .10000E-03    .71696        .86745E-07** at limit **
  17  norm          .10000E-03    1.6181        .30853E-07** at limit **
  18  Prefactor     .10000E-03    24.223        .11879E-05** at limit **
  19  norm          4.4529        3.5046        .13538E-06   -.16352E-03
  20  Prefactor     .10000E-03    12.916        .15425E-04** at limit **
  21  Normalizat    1.1091        .19588       -.26118E-05    .56375E-04
  22  Prefactor     .83343        .21389       -.50637E-06   -.60307E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0153
  norm       = 18.8072
  Prefactor  = 121.562
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.96093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.787294
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.15645
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.45288
  Prefactor  = 0.0001
  Normalizat = 1.10907
  Prefactor  = 0.833431
 **********
 **   18 **HESSE 
 **********

 FCN=   4084.741     FROM HESSE     STATUS=OK           340 CALLS     2725 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.015        9.7495        .12663E-03   -1.5075    
   2  norm          18.807        7.6519        .92357E-04   -1.4840    
   3  Prefactor     121.56        143.58        .18255E-03   -1.3498    
   4  Prefactor     .10000E-03    16.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7111        .11991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9609        11.876        .12691E-03   -1.5077    
   8  Prefactor     .10000E-03    1.9017        .85793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9392        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .78729        1.5805        .12798E-02   -1.5531    
  11  norm          .10000E-03    .97875        .61521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3175        .16866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3478        .72372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.1564        90.741        .19442E-03   -1.5300    
  15  norm          .10000E-03    .83035        .94598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .72247        .52834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6427        .79355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.4529        3.5043        .10264E-03   -1.5286    
  20  Prefactor     .10000E-03    12.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1091        .22622        .21117E-03   -.89461    
  22  Prefactor     .83343        .24769        .26891E-03   -.98508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81249e-10
Minuit parameter uncertainties:
  1  9.75105
  2  7.65226
  3  143.997
  4  2.30271e-05
  5  0.000201821
  6  2.02835e-05
  7  11.8784
  8  7.29994e-06
  9  1.26114e-05
  10  1.58063
  11  3.43703e-07
  12  7.19703e-06
  13  1.61514e-06
  14  38.9079
  15  9.44296e-06
  16  2.30347e-06
  17  7.5641e-06
  18  1.5607e-05
  19  3.50444
  20  8.23011e-06
  21  0.226418
  22  0.248021
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.261e-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:  8.334e-01  2.480e-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.109e+00  2.264e-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: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514738/likelihoodResults_512265601_512524801_4FGL_J0117.8-2109_daily_bin1053.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) = 4084.74124726
delta logL = -0.000600228277108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4084.74064712
delta logL = -9.61908881436e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3767       1.0000          .0000       10.000    
     3 'Normalizat'    1.1090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83351       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4084.741     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    339.97        .90712E-02** at limit **
   2  Index         2.3773        5.6471        .50000       -.83363E-06
   3  Normalizat    1.1091        .32933E-01    .37645E-01    .17041E-04
   4  Prefactor     .83343        .37049E-01    .44152E-01    .18003E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37726
  Normalizat = 1.10907
  Prefactor  = 0.833433
 **********
 **   18 **HESSE 
 **********

 FCN=   4084.741     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      233 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    830.23        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3773        8.8078        .50000       -.55218    
   3  Normalizat    1.1091        .57075E-01    .21117E-03   -.89461    
   4  Prefactor     .83343        .64200E-01    .26891E-03   -.98507    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.2334e-13
Minuit parameter uncertainties:
  1  0.000141234
  2  44.2292
  3  0.0570785
  4  0.0642056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514738': 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) = 4084.74064703
delta logL = 2.18278728426e-10

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.412e-04  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.377e+00  4.423e+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:  8.334e-01  6.421e-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.109e+00  5.708e-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/514738/cmap_HighResolution_512265601_512524801_4FGL_J0117.8-2109_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-08-13 21:43:52.722011', job_id='514738', GAL2='0.83', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1628916232.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.18e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1053' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:43:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 514738: <4FGL_J0117.8-2109_daily_bin1053> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1053> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 21:30:44 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:33:54 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:33:54 2021
Terminated at Fri Aug 13 21:43:53 2021
Results reported at Fri Aug 13 21:43:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1053 19.4543 -21.1578 512265601 512524801 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 :                                   432.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            789 sec.

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

