aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 87 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 = 7524
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1706
RA = 356.999, Dec = -51.1139
tmin = 681523201, tmax = 681782401
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='507895', job_status='RUN', time_executed='2022-08-10 02:21:04.714576', time_epoch_executed='1660123264.71' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1706'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507895

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507895/ft1_4FGL_J2347.9-5106_daily_bin1706.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507895/ft1_4FGL_J2347.9-5106_daily_bin1706.fits outfile=/scratch/kocevski/507895/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1706.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=681523201.0 tmax=681782401.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 2.62
user 2.42
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.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/507895/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1706.fits evtable="EVENTS" outfile="/scratch/kocevski/507895/ft1_filtered_4FGL_J2347.9-5106_daily_bin1706.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.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 252

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507895/ft1_filtered_4FGL_J2347.9-5106_daily_bin1706.fits" evtable="EVENTS" scfile=/scratch/kocevski/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.fits sctable="SC_DATA" outfile=/scratch/kocevski/507895/ltcube_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.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/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.fits
.....................!
real 13.80
user 13.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507895/ft1_filtered_4FGL_J2347.9-5106_daily_bin1706.fits evtable="EVENTS" scfile=/scratch/kocevski/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.fits sctable="SC_DATA" expcube=/scratch/kocevski/507895/ltcube_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.fits outfile=/scratch/kocevski/507895/expmap_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.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/507895/ltcube_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.fits
.....................!
real 193.36
user 186.57
sys 5.51

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J2347.9-5106 @ 356.999 -51.1139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/507895/ft1_filtered_4FGL_J2347.9-5106_daily_bin1706.fits scfile=/scratch/kocevski/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.fits outfile=/scratch/kocevski/507895/cmap_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.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=356.999 yref=-51.1139 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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507895/ft1_filtered_4FGL_J2347.9-5106_daily_bin1706.fits scfile=/scratch/kocevski/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.fits outfile=/scratch/kocevski/507895/cmap_HighResolution_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.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=356.999 yref=-51.1139 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.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507895/ft1_filtered_4FGL_J2347.9-5106_daily_bin1706.fits evtable="EVENTS" scfile=/scratch/kocevski/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507895/Model_4FGL_J2347.9-5106_daily_bin1706.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/507895/ft1_filtered_4FGL_J2347.9-5106_daily_bin1706.fits.....................!
real 27.92
user 26.49
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/507895/ft1_filtered_4FGL_J2347.9-5106_daily_bin1706.fits', '/scratch/kocevski/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.fits', expMap='/scratch/kocevski/507895/expmap_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.fits', expCube='/scratch/kocevski/507895/ltcube_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/507895/Model_4FGL_J2347.9-5106_daily_bin1706.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2347.9-5106'

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.569e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.487e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/507895/ft1_filtered_4FGL_J2347.9-5106_daily_bin1706.fits
Spacecraft file(s): /scratch/kocevski/507895/ft2_4FGL_J2347.9-5106_daily_bin1706.fits
Exposure map: /scratch/kocevski/507895/expmap_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.fits
Exposure cube: /scratch/kocevski/507895/ltcube_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/507895/Model_4FGL_J2347.9-5106_daily_bin1706.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) = 2809.29988252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    76.341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.293       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3682       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6167       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3678       1.0000         .10000E-03   10000.    
     9 'norm      '    81.379       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6159       1.0000         .10000E-03   10000.    
    20 'norm      '    7.0168       1.0000         .10000E-03   10000.    
    21 'norm      '    13.727       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2240       1.0000         .10000E-03   10000.    
    23 'Prefactor '    131.34       1.0000         .10000E-03   10000.    
    24 'norm      '    .11178E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.161       1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.265       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    37.549       1.0000         .10000E-03   10000.    
    31 'norm      '    15.722       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2378       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .89754       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2809.274     FROM MIGRAD    STATUS=CONVERGED    955 CALLS     5017 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.836       -.30749E-05** at limit **
   2  Prefactor     .10000E-03    15.128        .99423E-08** at limit **
   3  Prefactor     76.348        80.453        .46460E-06    .42504E-05
   4  Prefactor     .10000E-03    9.8398        .11285E-06** at limit **
   5  Prefactor     11.295        10.726       -.10459E-07   -.17584E-04
   6  Prefactor     1.5940        247.87       -.55420E-05   -.62620E-05
   7  Prefactor     1.6193        31.925        .17912E-05   -.17408E-04
   8  Prefactor     7.3593        12.500        .37793E-05   -.60851E-04
   9  norm          81.393        56.632        .87611E-06    .65512E-04
  10  Prefactor     14.697        8.1156        .32344E-06    .20703E-03
  11  Prefactor     .10000E-03    33.801       -.52166E-06** at limit **
  12  norm          6.3871        7.0918        .50796E-06    .25939E-03
  13  Prefactor     .10000E-03    24.101       -.65656E-06** at limit **
  14  Prefactor     .10000E-03    45.747        .61093E-06** at limit **
  15  Prefactor     16.628        25.047        .24136E-06   -.12443E-04
  16  Prefactor     .10000E-03    94.153        .34473E-05** at limit **
  17  Prefactor     .10000E-03    38.186        .10117E-05** at limit **
  18  Prefactor     .10000E-03    22.734        .48389E-06** at limit **
  19  norm          1.6183        322.30        .42895E-05    .16748E-05
  20  norm          7.0175        9.5488        .38690E-07   -.11309E-05
  21  norm          13.720        15.333       -.20802E-06   -.20338E-04
  22  Prefactor     9.2217        19.626       -.71972E-07   -.31660E-04
  23  Prefactor     131.36        120.19        .16201E-05    .31056E-04
  24  norm          .10000E-03    20.532        .73496E-06** at limit **
  25  Prefactor     18.175        43.423        .66836E-06    .10161E-06
  26  norm          .10000E-03    1.3965        .27311E-07** at limit **
  27  norm          .10000E-03    4.6708        .71966E-07** at limit **
  28  Prefactor     10.272        24.783        .61323E-06   -.92106E-05
  29  Prefactor     .10000E-03    4.5858        .16469E-06** at limit **
  30  Prefactor     37.564        42.821        .49627E-06    .14219E-04
  31  norm          15.737        39.204        .68251E-06    .12466E-04
  32  Prefactor     .10000E-03    7.1669        .19914E-06** at limit **
  33  Prefactor     .10000E-03    2.4448        .20435E-07** at limit **
  34  Normalizat    1.2380        .31577       -.23777E-05    .16546E-04
  35  Prefactor     .89733        .31204        .63749E-06   -.58883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 76.3479
  Prefactor  = 0.0001
  Prefactor  = 11.2949
  Prefactor  = 1.59399
  Prefactor  = 1.61931
  Prefactor  = 7.35926
  norm       = 81.3929
  Prefactor  = 14.6972
  Prefactor  = 0.0001
  norm       = 6.38706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6285
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.61829
  norm       = 7.01748
  norm       = 13.7196
  Prefactor  = 9.22169
  Prefactor  = 131.358
  norm       = 0.0001
  Prefactor  = 18.1748
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2715
  Prefactor  = 0.0001
  Prefactor  = 37.5638
  norm       = 15.7369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23796
  Prefactor  = 0.897335
 **********
 **   18 **HESSE 
 **********

 FCN=   2809.274     FROM HESSE     STATUS=OK           770 CALLS     5787 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     76.348        80.501        .45957E-04   -1.3958    
   4  Prefactor     .10000E-03    9.8713        .16236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.295        10.723        .11921E-03   -1.5036    
   6  Prefactor     1.5940        248.93        .37289E-03   -1.5455    
   7  Prefactor     1.6193        31.658        .33297E-03   -1.5453    
   8  Prefactor     7.3593        12.636        .73880E-03   -1.5165    
   9  norm          81.393        56.792        .22262E-03   -1.3901    
  10  Prefactor     14.697        8.1256        .10423E-03   -1.4941    
  11  Prefactor     .10000E-03    33.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3871        7.1498        .14311E-03   -1.5202    
  13  Prefactor     .10000E-03    24.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.628        25.037        .98242E-04   -1.4892    
  16  Prefactor     .10000E-03    95.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6183        321.95        .33307E-03   -1.5454    
  20  norm          7.0175        9.5501        .15145E-03   -1.5178    
  21  norm          13.720        15.319        .10811E-03   -1.4967    
  22  Prefactor     9.2217        19.498        .13196E-03   -1.5101    
  23  Prefactor     131.36        120.28        .35135E-04   -1.3411    
  24  norm          .10000E-03    20.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.175        43.237        .93983E-04   -1.4855    
  26  norm          .10000E-03    1.4389        .12188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.6809        .11185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.272        24.792        .12506E-03   -1.5067    
  29  Prefactor     .10000E-03    4.6145        .11061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     37.564        42.765        .65406E-04   -1.4481    
  31  norm          15.737        39.208        .10101E-03   -1.4914    
  32  Prefactor     .10000E-03    7.2017        .13827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    2.4468        .80931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.2380        .38123        .25647E-03   -.85438    
  35  Prefactor     .89733        .37748        .31054E-03   -.96234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14356e-10
Minuit parameter uncertainties:
  1  0.00089459
  2  5.10554e-06
  3  80.6159
  4  2.26867e-06
  5  10.7251
  6  40.0087
  7  14.3281
  8  12.6409
  9  56.8297
  10  8.1262
  11  0.00011553
  12  7.15072
  13  9.27496e-05
  14  0.000172676
  15  25.0524
  16  0.00124956
  17  0.000236101
  18  9.29926e-05
  19  45.9024
  20  9.55214
  21  15.3238
  22  19.5117
  23  120.507
  24  3.88057e-05
  25  43.3118
  26  5.06463e-07
  27  1.78868e-06
  28  24.8164
  29  2.63973e-06
  30  42.7996
  31  39.2722
  32  1.31953e-06
  33  2.92262e-07
  34  0.382093
  35  0.378582
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  2.640e-06  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.487e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  8.973e-01  3.786e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.238e+00  3.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 356.999 -51.114
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507895/likelihoodResults_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.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) = 2809.27530448
delta logL = -0.00102715788216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2809.27427735
delta logL = -2.23230927077e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4836       1.0000          .0000       10.000    
     3 'Normalizat'    1.2380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+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=   2809.274     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    156.39        .11066E-02** at limit **
   2  Index         2.4643        6.3344        .50000        .46277E-05
   3  Normalizat    1.2380        .43892E-01    .25647E-03   -.19061E-05
   4  Prefactor     .89734        .46266E-01    .31054E-03   -.13179E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010008
  Index      = 2.46431
  Normalizat = 1.23796
  Prefactor  = 0.897338
 **********
 **   18 **HESSE 
 **********

 FCN=   2809.274     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    592.71        .22131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4643        7.7377        .50000       -.53186    
   3  Normalizat    1.2380        .10161        .10259E-04   -.85438    
   4  Prefactor     .89734        .10704        .12422E-04   -.96234    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.13303e-09
Minuit parameter uncertainties:
  1  0.0139318
  2  1402.97
  3  0.101627
  4  0.107067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507895': 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) = 2809.2742773
delta logL = 1.94418134924e-08

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.001e-04  1.393e-02  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.464e+00  1.403e+03  0.000e+00  1.000e+01 (-1.000e+00)
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  8.973e-01  1.071e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.238e+00  1.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 356.999 -51.114

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/507895/cmap_HighResolution_681523201_681782401_4FGL_J2347.9-5106_daily_bin1706.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2022-08-10 02:31:37.037296', job_id='507895', GAL2='0.90', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1660123897.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.94e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1706' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 10 02:31:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 507895: <4FGL_J2347.9-5106_daily_bin1706> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin1706> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Aug 10 02:15:40 2022
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 10 02:19:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 10 02:19:29 2022
Terminated at Wed Aug 10 02:31:37 2022
Results reported at Wed Aug 10 02:31:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1706 356.999 -51.1139 681523201 681782401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2347.9-5106 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             286.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            957 sec.

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

