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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin868
RA = 356.999, Dec = -51.1139
tmin = 464313601, tmax = 464572801
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='120858', job_status='RUN', time_executed='2021-09-30 05:05:43.165437', time_epoch_executed='1633003543.17' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/120858

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/120858/ft1_4FGL_J2347.9-5106_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/120858/ft2_4FGL_J2347.9-5106_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/120858/ft1_4FGL_J2347.9-5106_daily_bin868.fits outfile=/scratch/kocevski/120858/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin868.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=464313601.0 tmax=464572801.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.39
user 3.19
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/120858/ft2_4FGL_J2347.9-5106_daily_bin868.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/120858/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin868.fits evtable="EVENTS" outfile="/scratch/kocevski/120858/ft1_filtered_4FGL_J2347.9-5106_daily_bin868.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/120858/ft1_filtered_4FGL_J2347.9-5106_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/120858/ft2_4FGL_J2347.9-5106_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/120858/ltcube_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.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/120858/ft2_4FGL_J2347.9-5106_daily_bin868.fits
.....................!
real 12.30
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/120858/ft1_filtered_4FGL_J2347.9-5106_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/120858/ft2_4FGL_J2347.9-5106_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/120858/ltcube_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.fits outfile=/scratch/kocevski/120858/expmap_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.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/120858/ltcube_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.fits
.....................!
real 190.29
user 185.08
sys 4.70

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/120858/ft1_filtered_4FGL_J2347.9-5106_daily_bin868.fits scfile=/scratch/kocevski/120858/ft2_4FGL_J2347.9-5106_daily_bin868.fits outfile=/scratch/kocevski/120858/cmap_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/120858/ft1_filtered_4FGL_J2347.9-5106_daily_bin868.fits scfile=/scratch/kocevski/120858/ft2_4FGL_J2347.9-5106_daily_bin868.fits outfile=/scratch/kocevski/120858/cmap_HighResolution_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/120858/ft1_filtered_4FGL_J2347.9-5106_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/120858/ft2_4FGL_J2347.9-5106_daily_bin868.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/120858/Model_4FGL_J2347.9-5106_daily_bin868.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/120858/ft1_filtered_4FGL_J2347.9-5106_daily_bin868.fits....................!
real 38.90
user 37.50
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/120858/ft1_filtered_4FGL_J2347.9-5106_daily_bin868.fits', '/scratch/kocevski/120858/ft2_4FGL_J2347.9-5106_daily_bin868.fits', expMap='/scratch/kocevski/120858/expmap_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.fits', expCube='/scratch/kocevski/120858/ltcube_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/120858/Model_4FGL_J2347.9-5106_daily_bin868.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/120858/ft1_filtered_4FGL_J2347.9-5106_daily_bin868.fits
Spacecraft file(s): /scratch/kocevski/120858/ft2_4FGL_J2347.9-5106_daily_bin868.fits
Exposure map: /scratch/kocevski/120858/expmap_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.fits
Exposure cube: /scratch/kocevski/120858/ltcube_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/120858/Model_4FGL_J2347.9-5106_daily_bin868.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) = 5151.67958696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10994E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.286       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .49497E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4562       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .34314E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.760       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6895       1.0000         .10000E-03   10000.    
    20 'norm      '    16.932       1.0000         .10000E-03   10000.    
    21 'norm      '    6.1862       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.931       1.0000         .10000E-03   10000.    
    24 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.086       1.0000         .10000E-03   10000.    
    26 'norm      '    2.2195       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    26.148       1.0000         .10000E-03   10000.    
    31 'norm      '    .10523E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    9.2792       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.3333       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .39084       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=   5151.648     FROM MIGRAD    STATUS=CONVERGED    962 CALLS     5038 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.837       -.38924E-07** at limit **
   2  Prefactor     .10000E-03    14.400        .11657E-05** at limit **
   3  Prefactor     25.356        41.284       -.29437E-05   -.13045E-03
   4  Prefactor     .10000E-03    3.1948       -.29706E-07** at limit **
   5  Prefactor     .10001E-03    7.4135        .22133E-05** at limit **
   6  Prefactor     .10000E-03    17.242        .20355E-06** at limit **
   7  Prefactor     .10000E-03    7.9229        .10223E-05** at limit **
   8  Prefactor     .10000E-03    2.0474        .30110E-07** at limit **
   9  norm          .10000E-03    9.2391        .23012E-07** at limit **
  10  Prefactor     4.4567        3.2909        .86690E-07   -.72941E-04
  11  Prefactor     .10000E-03    43.421        .42281E-08** at limit **
  12  norm          .10000E-03    1.7774       -.93935E-08** at limit **
  13  Prefactor     .10000E-03    4.0404        .45089E-08** at limit **
  14  Prefactor     .10000E-03    71.086        .12194E-05** at limit **
  15  Prefactor     19.767        11.870        .66916E-06    .19168E-04
  16  Prefactor     .10000E-03    31.731       -.11887E-06** at limit **
  17  Prefactor     .10000E-03    15.448       -.34336E-08** at limit **
  18  Prefactor     .10000E-03    4.3099       -.49513E-07** at limit **
  19  norm          1.6877        8.0924        .15635E-05    .38288E-04
  20  norm          16.930        9.4550        .43054E-07   -.39450E-05
  21  norm          6.1901        5.8104       -.48696E-07    .36226E-04
  22  Prefactor     .10000E-03    4.8468        .65187E-07** at limit **
  23  Prefactor     24.907        30.830        .43093E-06    .91253E-05
  24  norm          .10000E-03    3.5614       -.69503E-06** at limit **
  25  Prefactor     13.074        16.058        .38650E-06   -.30313E-04
  26  norm          2.2193        1.2669        .27455E-07   -.12084E-03
  27  norm          .10000E-03    1.2529       -.10975E-06** at limit **
  28  Prefactor     .10000E-03    14.579       -.30661E-06** at limit **
  29  Prefactor     .10000E-03    1.5245        .19877E-06** at limit **
  30  Prefactor     26.127        24.848        .38346E-06   -.89633E-04
  31  norm          .10000E-03    8.0013       -.87614E-07** at limit **
  32  Prefactor     9.2870        6.3233        .80126E-07   -.30424E-03
  33  Prefactor     .10000E-03    2.5966        .26747E-06** at limit **
  34  Normalizat    1.3338        .19683       -.25593E-05   -.31806E-03
  35  Prefactor     .39065        .19833        .30842E-05   -.19365E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3563
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.45673
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6877
  norm       = 16.9303
  norm       = 6.19013
  Prefactor  = 0.0001
  Prefactor  = 24.9074
  norm       = 0.0001
  Prefactor  = 13.074
  norm       = 2.21933
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1272
  norm       = 0.0001
  Prefactor  = 9.28697
  Prefactor  = 0.0001
  Normalizat = 1.33376
  Prefactor  = 0.390649
 **********
 **   18 **HESSE 
 **********

 FCN=   5151.648     FROM HESSE     STATUS=OK           760 CALLS     5798 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.356        42.022        .79662E-04   -1.4700    
   4  Prefactor     .10000E-03    3.2013        .12527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    17.505        .33932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0591        .10030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.2396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4567        3.2930        .10815E-03   -1.5286    
  11  Prefactor     .10000E-03    43.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7792        .93430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0702        .14088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    73.310        .39356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.767        11.799        .90102E-04   -1.4818    
  16  Prefactor     .10000E-03    31.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3132        .14549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6877        8.0434        .32388E-03   -1.5448    
  20  norm          16.930        9.4630        .48667E-03   -1.4885    
  21  norm          6.1901        5.8103        .15513E-03   -1.5210    
  22  Prefactor     .10000E-03    4.8834        .15382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.907        30.721        .80227E-04   -1.4709    
  24  norm          .10000E-03    3.5966        .13133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.074        15.995        .11073E-03   -1.4985    
  26  norm          2.2193        1.2610        .56474E-04   -1.5410    
  27  norm          .10000E-03    1.2557        .78413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.5362        .86481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     26.127        24.757        .78341E-04   -1.4685    
  31  norm          .10000E-03    8.0019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     9.2870        6.3184        .13157E-03   -1.5098    
  33  Prefactor     .10000E-03    2.6572        .11309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.3338        .21088        .18932E-03   -.82564    
  35  Prefactor     .39065        .21019        .34786E-03   -1.1729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66983e-10
Minuit parameter uncertainties:
  1  7.85154e-06
  2  4.88158e-05
  3  42.0711
  4  2.787e-06
  5  0.000978823
  6  6.08104e-05
  7  4.32784e-05
  8  3.54339e-06
  9  1.07527e-05
  10  3.29311
  11  4.45304e-05
  12  5.86127e-07
  13  6.23186e-06
  14  4.7491e-05
  15  11.8005
  16  6.6614e-05
  17  3.8402e-06
  18  4.29858e-06
  19  7.37019
  20  9.46384
  21  5.81088
  22  7.50669e-07
  23  30.7406
  24  8.28954e-06
  25  16.0002
  26  1.26106
  27  1.12069e-07
  28  3.39636e-06
  29  5.77902e-06
  30  24.7665
  31  6.15937e-06
  32  6.31888
  33  1.13056e-05
  34  0.211019
  35  0.210601
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  5.779e-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:  3.906e-01  2.106e-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.334e+00  2.110e-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: 6.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/120858/likelihoodResults_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.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) = 5151.65117294
delta logL = -0.00305457240938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5151.64811833
delta logL = 3.17731974064e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4961       1.0000          .0000       10.000    
     3 'Normalizat'    1.3338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39066       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.

 FCN=   5151.648     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9414        .90712E-02** at limit **
   2  Index         2.5057        5.8775        .50000       -.56579E-04
   3  Normalizat    1.3338        .18057        .32226E-01   -.45878E-05
   4  Prefactor     .39065        .18931        .78529E-01    .38571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50566
  Normalizat = 1.33376
  Prefactor  = 0.39065
 **********
 **   18 **HESSE 
 **********

 FCN=   5151.648     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3362        .86775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5057        5.7788        .50000       -.52229    
   3  Normalizat    1.3338        .19661        .18932E-03   -.82564    
   4  Prefactor     .39065        .20561        .34785E-03   -1.1729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24303e-09
Minuit parameter uncertainties:
  1  5.38697e-06
  2  7.25608
  3  0.196724
  4  0.206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/120858': 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) = 5151.64811812
delta logL = 2.4127530196e-07

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  5.387e-06  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.506e+00  7.256e+00  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:  3.906e-01  2.060e-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.334e+00  1.967e-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/120858/cmap_HighResolution_464313601_464572801_4FGL_J2347.9-5106_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-30 05:20:38.192288', job_id='120858', GAL2='0.39', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1633004438.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='2.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='868' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:20:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 120858: <4FGL_J2347.9-5106_daily_bin868> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin868> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 05:05:25 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:05:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 05:05:27 2021
Terminated at Thu Sep 30 05:20:38 2021
Results reported at Thu Sep 30 05:20:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin868 356.999 -51.1139 464313601 464572801 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 :                                   893.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

