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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin739
RA = 356.999, Dec = -51.1139
tmin = 430876801, tmax = 431136001
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='118298', job_status='RUN', time_executed='2021-09-30 04:58:06.955046', time_epoch_executed='1633003086.96' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/118298

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/118298/ft1_4FGL_J2347.9-5106_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/118298/ft2_4FGL_J2347.9-5106_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/118298/ft1_4FGL_J2347.9-5106_daily_bin739.fits outfile=/scratch/kocevski/118298/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin739.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=430876801.0 tmax=431136001.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 5.38
user 5.13
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/118298/ft1_filtered_4FGL_J2347.9-5106_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/118298/ft2_4FGL_J2347.9-5106_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/118298/ltcube_430876801_431136001_4FGL_J2347.9-5106_daily_bin739.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/118298/ft2_4FGL_J2347.9-5106_daily_bin739.fits
.....................!
real 12.28
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/118298/ft1_filtered_4FGL_J2347.9-5106_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/118298/ft2_4FGL_J2347.9-5106_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/118298/ltcube_430876801_431136001_4FGL_J2347.9-5106_daily_bin739.fits outfile=/scratch/kocevski/118298/expmap_430876801_431136001_4FGL_J2347.9-5106_daily_bin739.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/118298/ltcube_430876801_431136001_4FGL_J2347.9-5106_daily_bin739.fits
.....................!
real 192.23
user 187.00
sys 4.84

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/118298/ft1_filtered_4FGL_J2347.9-5106_daily_bin739.fits scfile=/scratch/kocevski/118298/ft2_4FGL_J2347.9-5106_daily_bin739.fits outfile=/scratch/kocevski/118298/cmap_430876801_431136001_4FGL_J2347.9-5106_daily_bin739.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/118298/ft1_filtered_4FGL_J2347.9-5106_daily_bin739.fits scfile=/scratch/kocevski/118298/ft2_4FGL_J2347.9-5106_daily_bin739.fits outfile=/scratch/kocevski/118298/cmap_HighResolution_430876801_431136001_4FGL_J2347.9-5106_daily_bin739.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/118298/ft1_filtered_4FGL_J2347.9-5106_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/118298/ft2_4FGL_J2347.9-5106_daily_bin739.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/118298/Model_4FGL_J2347.9-5106_daily_bin739.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/118298/ft1_filtered_4FGL_J2347.9-5106_daily_bin739.fits......................!
real 25.87
user 24.58
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    28.070       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.630       1.0000         .10000E-03   10000.    
     6 'Prefactor '    87.528       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11446E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.115       1.0000         .10000E-03   10000.    
    11 'Prefactor '    248.19       1.0000         .10000E-03   10000.    
    12 'norm      '    .14238E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.167       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.891       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.196       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11182E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.865       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5227       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4551       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .35918       1.0000         .10000E-03   10000.    
    26 'norm      '    15.315       1.0000         .10000E-03   10000.    
    27 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .13127E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.7703       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1132       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0158       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=   2353.207     FROM MIGRAD    STATUS=CONVERGED   1838 CALLS     5970 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.422        .18142E-02** at limit **
   2  Prefactor     28.046        33.674        .75616E-04    .72753E-04
   3  Prefactor     .10000E-03    22.620        .18142E-02** at limit **
   4  Prefactor     .10000E-03    14.513        .18006E-02** at limit **
   5  Prefactor     32.631        20.003        .70147E-04    .13970E-04
   6  Prefactor     87.543        77.536        .42944E-04   -.96098E-05
   7  Prefactor     .10000E-03    5.0132        .10607E-02** at limit **
   8  Prefactor     .10000E-03    52.259        .36285E-03** at limit **
   9  norm          .10000E-03    31.705        .18142E-02** at limit **
  10  Prefactor     10.117        8.2703        .12064E-03    .63232E-04
  11  Prefactor     248.30        158.56        .12856E-03    .57304E-05
  12  norm          .10000E-03    21.346        .18142E-02** at limit **
  13  Prefactor     17.162        18.385        .96665E-04   -.79386E-05
  14  Prefactor     59.111        78.378        .26140E-03    .39142E-06
  15  Prefactor     18.166        29.505        .93892E-04    .12108E-05
  16  Prefactor     .10000E-03    90.569        .18142E-02** at limit **
  17  Prefactor     .10000E-03    142.76        .18142E-02** at limit **
  18  Prefactor     .10000E-03    33.294        .18142E-02** at limit **
  19  norm          17.886        46.612        .94760E-04    .37792E-05
  20  norm          .10000E-03    8.9985        .14210E-02** at limit **
  21  norm          .10000E-03    31.566        .36285E-03** at limit **
  22  Prefactor     4.6019        70.364        .18931E-03    .39636E-05
  23  Prefactor     .10000E-03    41.450        .18142E-02** at limit **
  24  norm          2.4561        8.0311        .24127E-03    .80811E-05
  25  Prefactor     .10276E-03    215.24        .97359E-01** at limit **
  26  norm          15.318        4.9956        .52580E-04    .24541E-04
  27  norm          .10000E-03    7.0383        .12501E-02** at limit **
  28  Prefactor     .10000E-03    28.578        .18142E-02** at limit **
  29  Prefactor     .10000E-03    2.7995        .79186E-03** at limit **
  30  Prefactor     .10000E-03    212.86        .18142E-02** at limit **
  31  norm          .10000E-03    35.525        .18142E-02** at limit **
  32  Prefactor     6.7717        9.4302        .15421E-03   -.20200E-04
  33  Prefactor     .10000E-03    17.131        .26576E-02** at limit **
  34  Normalizat    1.1130        .42346        .27851E-03    .79209E-04
  35  Prefactor     1.0161        .42953        .30652E-03    .38888E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.0464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.631
  Prefactor  = 87.5428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1171
  Prefactor  = 248.296
  norm       = 0.0001
  Prefactor  = 17.1617
  Prefactor  = 59.1111
  Prefactor  = 18.1661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.8856
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.6019
  Prefactor  = 0.0001
  norm       = 2.45605
  Prefactor  = 0.00010276
  norm       = 15.3176
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.77167
  Prefactor  = 0.000100003
  Normalizat = 1.11297
  Prefactor  = 1.01606
 **********
 **   18 **HESSE 
 **********

 FCN=   2353.207     FROM HESSE     STATUS=OK           746 CALLS     6716 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.046        33.668        .15123E-04   -1.4648    
   3  Prefactor     .10000E-03    22.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.516        .36012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.631        20.003        .14029E-04   -1.4565    
   6  Prefactor     87.543        77.532        .85888E-05   -1.3834    
   7  Prefactor     .10000E-03    5.0133        .21214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    52.260        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    31.705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.117        8.2693        .48257E-05   -1.5072    
  11  Prefactor     248.30        158.56        .25711E-04   -1.2543    
  12  norm          .10000E-03    21.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.162        18.383        .38666E-05   -1.4879    
  14  Prefactor     59.111        78.368        .10456E-04   -1.4169    
  15  Prefactor     18.166        29.499        .37557E-05   -1.4855    
  16  Prefactor     .10000E-03    90.569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    142.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.886        46.582        .37904E-05   -1.4862    
  20  norm          .10000E-03    8.9986        .28420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    31.567        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.6019        68.337        .75723E-05   -1.5279    
  23  Prefactor     .10000E-03    41.451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4561        8.0307        .96508E-05   -1.5395    
  25  Prefactor     .10276E-03    170.76        .10882       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          15.318        4.9943        .10516E-04   -1.4925    
  27  norm          .10000E-03    7.0395        .25002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.582        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.7995        .15837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    212.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    35.526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     6.7717        9.4298        .61682E-05   -1.5187    
  33  Prefactor     .10000E-03    17.209        .53151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1130        .42392        .11141E-04   -.89337    
  35  Prefactor     1.0161        .43005        .12261E-04   -.92196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48398e-10
Minuit parameter uncertainties:
  1  1.04305e-06
  2  33.6907
  3  2.21651e-06
  4  2.18046e-05
  5  20.007
  6  77.6218
  7  2.24821e-06
  8  8.70174e-05
  9  1.39439e-05
  10  8.27023
  11  158.832
  12  2.51091e-05
  13  18.3894
  14  78.5052
  15  29.5229
  16  4.4307e-06
  17  1.95079e-06
  18  9.12741e-06
  19  46.6769
  20  6.93051e-07
  21  3.98968e-05
  22  35.5156
  23  3.03526e-05
  24  8.03424
  25  0.0435399
  26  4.99445
  27  7.75131e-06
  28  2.66646e-05
  29  1.908e-07
  30  0.000350794
  31  3.21206e-05
  32  9.43189
  33  0.000451061
  34  0.425222
  35  0.431518
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  1.908e-07  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:  1.016e+00  4.315e-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.113e+00  4.252e-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.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/118298/likelihoodResults_430876801_431136001_4FGL_J2347.9-5106_daily_bin739.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) = 2353.20902134
delta logL = -0.00156930925641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2353.20745192
delta logL = 1.03471393231e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4740       1.0000          .0000       10.000    
     3 'Normalizat'    1.1129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0161       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=   2353.207     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      256 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.918        .79808E-02** at limit **
   2  Index         1.9954        8.7425        .50000        .91370E-07
   3  Normalizat    1.1130        .25493E-01    .27850E-03   -.12393E-03
   4  Prefactor     1.0161        .27069E-01    .30653E-03   -.10750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99543
  Normalizat = 1.11297
  Prefactor  = 1.01607
 **********
 **   18 **HESSE 
 **********

 FCN=   2353.207     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    261.84        .85744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9954        5.7222        .50000       -.64464    
   3  Normalizat    1.1130        .81684E-01    .55701E-04   -.89337    
   4  Prefactor     1.0161        .86732E-01    .61306E-04   -.92196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.81737e-10
Minuit parameter uncertainties:
  1  9.54976e-06
  2  1006.26
  3  0.0816934
  4  0.0867442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/118298': 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) = 2353.20744942
delta logL = 2.60256456386e-06

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  9.550e-06  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  1.995e+00  1.006e+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:  1.016e+00  8.674e-02  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.113e+00  8.169e-02  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/118298/cmap_HighResolution_430876801_431136001_4FGL_J2347.9-5106_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-30 05:08:34.692861', job_id='118298', GAL2='1.02', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1633003714.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='739' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:08:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 118298: <4FGL_J2347.9-5106_daily_bin739> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin739> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 04:55:25 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:55:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 04:55:26 2021
Terminated at Thu Sep 30 05:08:35 2021
Results reported at Thu Sep 30 05:08:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin739 356.999 -51.1139 430876801 431136001 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 :                                   627.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             259.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

