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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1401
RA = 356.999, Dec = -51.1139
tmin = 602467201, tmax = 602726401
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='122635', job_status='RUN', time_executed='2021-09-30 05:12:17.641695', time_epoch_executed='1633003937.64' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122635

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122635/ft1_4FGL_J2347.9-5106_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122635/ft2_4FGL_J2347.9-5106_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122635/ft1_4FGL_J2347.9-5106_daily_bin1401.fits outfile=/scratch/kocevski/122635/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1401.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=602467201.0 tmax=602726401.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.24
user 2.96
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122635/ft1_filtered_4FGL_J2347.9-5106_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/122635/ft2_4FGL_J2347.9-5106_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/122635/ltcube_602467201_602726401_4FGL_J2347.9-5106_daily_bin1401.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/122635/ft2_4FGL_J2347.9-5106_daily_bin1401.fits
.....................!
real 12.63
user 12.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122635/ft1_filtered_4FGL_J2347.9-5106_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/122635/ft2_4FGL_J2347.9-5106_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/122635/ltcube_602467201_602726401_4FGL_J2347.9-5106_daily_bin1401.fits outfile=/scratch/kocevski/122635/expmap_602467201_602726401_4FGL_J2347.9-5106_daily_bin1401.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/122635/ltcube_602467201_602726401_4FGL_J2347.9-5106_daily_bin1401.fits
.....................!
real 190.39
user 185.35
sys 4.71

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/122635/ft1_filtered_4FGL_J2347.9-5106_daily_bin1401.fits scfile=/scratch/kocevski/122635/ft2_4FGL_J2347.9-5106_daily_bin1401.fits outfile=/scratch/kocevski/122635/cmap_602467201_602726401_4FGL_J2347.9-5106_daily_bin1401.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.922       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41817E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1942       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.728       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.171       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.660       1.0000         .10000E-03   10000.    
    12 'norm      '    .59370E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12753E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    66.400       1.0000         .10000E-03   10000.    
    19 'norm      '    51.136       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    99.996       1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.638       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .67166       1.0000         .10000E-03   10000.    
    28 'Prefactor '    66.831       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.8742       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.9564       1.0000         .10000E-03   10000.    
    31 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    13.312       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.6125       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=   1810.453     FROM MIGRAD    STATUS=CONVERGED    982 CALLS     5153 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.809        179.84        .45180E-05    .43272E-04
   2  Prefactor     23.017        31.936       -.48325E-06   -.78461E-04
   3  Prefactor     .10000E-03    28.633        .25534E-07** at limit **
   4  Prefactor     .10000E-03    4.8868        .13307E-06** at limit **
   5  Prefactor     .10009E-03    27.860        .82735E-05** at limit **
   6  Prefactor     3.2010        158.38       -.10225E-05    .37427E-05
   7  Prefactor     12.723        10.905       -.77982E-06   -.56644E-03
   8  Prefactor     12.172        9.1418       -.15888E-06   -.33497E-04
   9  norm          .10000E-03    11.146        .33319E-07** at limit **
  10  Prefactor     12.788        6.0195       -.22400E-07   -.10664E-02
  11  Prefactor     13.629        50.842       -.99596E-06   -.50226E-04
  12  norm          .10000E-03    12.250        .49350E-05** at limit **
  13  Prefactor     .10000E-03    19.566        .59378E-06** at limit **
  14  Prefactor     .10000E-03    46.533       -.14868E-06** at limit **
  15  Prefactor     .10000E-03    18.645       -.43493E-06** at limit **
  16  Prefactor     .10000E-03    225.93        .12667E-06** at limit **
  17  Prefactor     .10000E-03    96.947       -.37372E-06** at limit **
  18  Prefactor     66.396        70.582       -.13965E-06    .25133E-05
  19  norm          51.139        48.360       -.13291E-06    .12344E-04
  20  norm          .10000E-03    14.191       -.63810E-07** at limit **
  21  norm          .10000E-03    13.768       -.16294E-05** at limit **
  22  Prefactor     .10000E-03    18.980        .83442E-07** at limit **
  23  Prefactor     99.958        82.848        .37868E-05    .38871E-03
  24  norm          .10000E-03    8.3835       -.18107E-05** at limit **
  25  Prefactor     35.645        37.445       -.13747E-06    .27286E-04
  26  norm          .10000E-03    1.5077        .45349E-07** at limit **
  27  norm          .67690        10.926       -.11773E-05    .11392E-03
  28  Prefactor     66.841        85.238       -.18288E-05   -.81227E-04
  29  Prefactor     3.8713        8.5957       -.18758E-06   -.12135E-03
  30  Prefactor     6.9637        39.608       -.52051E-06   -.29500E-04
  31  norm          .10000E-03    48.768        .62607E-06** at limit **
  32  Prefactor     .10000E-03    8.5338        .41298E-06** at limit **
  33  Prefactor     13.313        7.9408       -.12866E-06   -.39480E-04
  34  Normalizat    .10000E-01    .32785       -.10227E-04** at limit **
  35  Prefactor     1.6125        .22065       -.21387E-06   -.42102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8093
  Prefactor  = 23.0173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010009
  Prefactor  = 3.20096
  Prefactor  = 12.7234
  Prefactor  = 12.1717
  norm       = 0.0001
  Prefactor  = 12.7885
  Prefactor  = 13.6295
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.3963
  norm       = 51.1395
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 99.9576
  norm       = 0.000100003
  Prefactor  = 35.6453
  norm       = 0.0001
  norm       = 0.676897
  Prefactor  = 66.8408
  Prefactor  = 3.87131
  Prefactor  = 6.96365
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3126
  Normalizat = 0.01
  Prefactor  = 1.6125
 **********
 **   18 **HESSE 
 **********

 FCN=   1810.453     FROM HESSE     STATUS=OK           760 CALLS     5913 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.809        181.07        .10037E-03   -1.4913    
   2  Prefactor     23.017        31.973        .83490E-04   -1.4748    
   3  Prefactor     .10000E-03    28.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8906        .91884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10009E-03    49.670        .27669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2010        152.63        .22671E-03   -1.5350    
   7  Prefactor     12.723        11.024        .11228E-03   -1.4994    
   8  Prefactor     12.172        8.9847        .90646E-04   -1.5010    
   9  norm          .10000E-03    11.146        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.788        5.5185        .62666E-04   -1.4993    
  11  Prefactor     13.629        50.992        .10837E-03   -1.4969    
  12  norm          .10000E-03    19.946        .21005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    46.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.637        .17947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    225.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    96.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     66.396        70.534        .49253E-04   -1.4076    
  19  norm          51.139        48.360        .56083E-04   -1.4277    
  20  norm          .10000E-03    14.191        .15658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.094        .15568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.993        .18083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     99.958        85.596        .20101E-03   -1.3705    
  24  norm          .10000E-03    8.7552        .12243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     35.645        37.386        .67131E-04   -1.4513    
  26  norm          .10000E-03    1.5113        .50984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .67690        18.370        .24145E-02   -1.5543    
  28  Prefactor     66.841        85.501        .49095E-04   -1.4071    
  29  Prefactor     3.8713        8.5302        .16498E-03   -1.5314    
  30  Prefactor     6.9637        39.129        .15211E-03   -1.5180    
  31  norm          .10000E-03    48.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    8.5991        .12136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     13.313        7.9394        .87114E-04   -1.4978    
  34  Normalizat    .10000E-01    1.1333        .11800E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     1.6125        .22887        .20369E-03   -.74436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44358e-09
Minuit parameter uncertainties:
  1  107.419
  2  31.9964
  3  8.62581e-06
  4  1.61376e-05
  5  0.00424382
  6  44.3265
  7  11.0261
  8  8.9857
  9  4.57163e-06
  10  5.5187
  11  51.1563
  12  0.000607106
  13  9.32796e-05
  14  3.13641e-05
  15  6.19825e-05
  16  7.09989e-05
  17  0.000124366
  18  70.6225
  19  48.3976
  20  6.63373e-06
  21  0.000399123
  22  3.10124e-05
  23  85.7021
  24  0.000332747
  25  37.4107
  26  3.97258e-06
  27  7.05435
  28  85.6584
  29  8.53285
  30  33.047
  31  0.000180555
  32  6.94015e-05
  33  7.93999
  34  3.15194e-05
  35  0.229022
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  3.871e+00  8.533e+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

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  1.613e+00  2.290e-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.000e-02  3.152e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/122635/likelihoodResults_602467201_602726401_4FGL_J2347.9-5106_daily_bin1401.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1810.37896632
delta logL = 0.0736259737507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1810.37395696
delta logL = 0.0786353335684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2914       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0440       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6095       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=   1810.374     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      326 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2916        11.185        .16003E-03   -.20214E-03
   2  Index         2.0440        .95482        .79020E-02   -.34966E-04
   3  Normalizat    .10000E-01    1.5143        .12120E-01** at limit **
   4  Prefactor     1.6096        .18541        .20381E-03    .27473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.29157
  Index      = 2.04402
  Normalizat = 0.01
  Prefactor  = 1.60961
 **********
 **   18 **HESSE 
 **********

 FCN=   1810.374     FROM HESSE     STATUS=OK            23 CALLS      349 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2916        11.103        .64013E-05   -1.5206    
   2  Index         2.0440        .94810        .31608E-03   -.63254    
   3  Normalizat    .10000E-01    1.5212        .48480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6096        .18350        .81522E-05   -.74515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33338e-10
Minuit parameter uncertainties:
  1  11.1068
  2  0.957058
  3  1.99138e-07
  4  0.183577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122635': 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) = 1810.3739566
delta logL = 0.078635697316

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  6.292e+00  1.111e+01  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.044e+00  9.571e-01  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.610e+00  1.836e-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.000e-02  1.991e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
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/122635/cmap_HighResolution_602467201_602726401_4FGL_J2347.9-5106_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-02', job_status='DONE', photon_flux_upper_limit='2.47e-07', time_completed='2021-09-30 05:24:05.764760', job_id='122635', GAL2='1.61', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633004645.76', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.61', dlogl='7.86e-02', ts2='0.45', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1401' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:24:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 122635: <4FGL_J2347.9-5106_daily_bin1401> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin1401> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:10:41 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:10:43 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:10:43 2021
Terminated at Thu Sep 30 05:24:06 2021
Results reported at Thu Sep 30 05:24:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1401 356.999 -51.1139 602467201 602726401 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 :                                   527.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             223.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

