/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 1 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 = 7670
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2347.9-5106_daily_bin175
RA = 356.999, Dec = -51.1139
tmin = 284688001, tmax = 284947201
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='115245', job_status='RUN', time_executed='2021-09-30 04:45:43.273193', time_epoch_executed='1633002343.27' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115245

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115245/ft1_4FGL_J2347.9-5106_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115245/ft2_4FGL_J2347.9-5106_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115245/ft1_4FGL_J2347.9-5106_daily_bin175.fits outfile=/scratch/kocevski/115245/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin175.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=284688001.0 tmax=284947201.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.73
user 3.50
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115245/ft1_filtered_4FGL_J2347.9-5106_daily_bin175.fits" evtable="EVENTS" scfile=/scratch/kocevski/115245/ft2_4FGL_J2347.9-5106_daily_bin175.fits sctable="SC_DATA" outfile=/scratch/kocevski/115245/ltcube_284688001_284947201_4FGL_J2347.9-5106_daily_bin175.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/115245/ft2_4FGL_J2347.9-5106_daily_bin175.fits
.....................!
real 11.79
user 11.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115245/ft1_filtered_4FGL_J2347.9-5106_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/115245/ft2_4FGL_J2347.9-5106_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/115245/ltcube_284688001_284947201_4FGL_J2347.9-5106_daily_bin175.fits outfile=/scratch/kocevski/115245/expmap_284688001_284947201_4FGL_J2347.9-5106_daily_bin175.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/115245/ltcube_284688001_284947201_4FGL_J2347.9-5106_daily_bin175.fits
.....................!
real 191.34
user 185.73
sys 5.28

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/115245/ft1_filtered_4FGL_J2347.9-5106_daily_bin175.fits scfile=/scratch/kocevski/115245/ft2_4FGL_J2347.9-5106_daily_bin175.fits outfile=/scratch/kocevski/115245/cmap_284688001_284947201_4FGL_J2347.9-5106_daily_bin175.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/115245/ft1_filtered_4FGL_J2347.9-5106_daily_bin175.fits scfile=/scratch/kocevski/115245/ft2_4FGL_J2347.9-5106_daily_bin175.fits outfile=/scratch/kocevski/115245/cmap_HighResolution_284688001_284947201_4FGL_J2347.9-5106_daily_bin175.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115245/ft1_filtered_4FGL_J2347.9-5106_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/115245/ft2_4FGL_J2347.9-5106_daily_bin175.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115245/Model_4FGL_J2347.9-5106_daily_bin175.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/115245/ft1_filtered_4FGL_J2347.9-5106_daily_bin175.fits.....................!
real 38.70
user 37.47
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.779       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1003       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.070       1.0000         .10000E-03   10000.    
     9 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9409       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26791E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22948E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.941       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.833       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    26.072       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.637       1.0000         .10000E-03   10000.    
    26 'norm      '    1.6853       1.0000         .10000E-03   10000.    
    27 'norm      '    3.2623       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.2453       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.8511       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    20.680       1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.4437       1.0000         .10000E-03   10000.    
    33 'Prefactor '    5.3713       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .66142       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.3461       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=   5212.320     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     5079 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.371        .57522E-06** at limit **
   2  Prefactor     .10000E-03    39.731       -.13264E-05** at limit **
   3  Prefactor     11.794        41.085        .33420E-05    .88234E-04
   4  Prefactor     .10000E-03    3.7810       -.50558E-07** at limit **
   5  Prefactor     .10000E-03    3.2380        .45400E-09** at limit **
   6  Prefactor     .10000E-03    20.508       -.13361E-05** at limit **
   7  Prefactor     4.1011        7.3874        .38049E-06   -.10670E-04
   8  Prefactor     18.071        8.3102        .76276E-07    .62144E-05
   9  norm          .10000E-03    46.718       -.35555E-05** at limit **
  10  Prefactor     .10000E-03    1.1095       -.23485E-07** at limit **
  11  Prefactor     .10000E-03    48.213       -.34213E-05** at limit **
  12  norm          2.9416        5.9778        .27929E-06   -.13133E-03
  13  Prefactor     .10001E-03    6.9206        .10538E-05** at limit **
  14  Prefactor     .10002E-03    116.11       -.11543E-04** at limit **
  15  Prefactor     .10000E-03    12.086       -.47466E-07** at limit **
  16  Prefactor     .10001E-03    81.543        .71731E-05** at limit **
  17  Prefactor     27.943        59.850        .11181E-05   -.92854E-05
  18  Prefactor     .10000E-03    6.0045       -.95831E-08** at limit **
  19  norm          14.833        12.160        .53437E-07   -.61800E-05
  20  norm          .10000E-03    2.7030        .33046E-08** at limit **
  21  norm          .10000E-03    4.2731       -.63368E-08** at limit **
  22  Prefactor     .10000E-03    2.8673       -.18560E-08** at limit **
  23  Prefactor     .10001E-03    76.192        .69514E-05** at limit **
  24  norm          26.065        8.3254        .20809E-06   -.31618E-04
  25  Prefactor     16.638        13.710        .90762E-07   -.25856E-04
  26  norm          1.6856        1.4663        .91498E-07   -.21680E-03
  27  norm          3.2625        4.3518        .31147E-06    .25334E-04
  28  Prefactor     8.2458        18.638        .18187E-05   -.18167E-03
  29  Prefactor     4.8518        5.1683       -.72276E-06   -.41680E-03
  30  Prefactor     .10000E-03    31.898        .42134E-05** at limit **
  31  norm          20.695        32.446       -.15100E-05    .11264E-03
  32  Prefactor     6.4418        7.0936        .27235E-05   -.10782E-02
  33  Prefactor     5.3733        5.1738        .39821E-06    .86215E-04
  34  Normalizat    .66160        .20853       -.18091E-05   -.33615E-04
  35  Prefactor     1.3458        .22029       -.17373E-06   -.64848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.7943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.10114
  Prefactor  = 18.0708
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.94159
  Prefactor  = 0.000100008
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 27.9428
  Prefactor  = 0.0001
  norm       = 14.8327
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 26.0649
  Prefactor  = 16.6378
  norm       = 1.68561
  norm       = 3.26246
  Prefactor  = 8.24576
  Prefactor  = 4.85178
  Prefactor  = 0.000100005
  norm       = 20.6953
  Prefactor  = 6.44175
  Prefactor  = 5.37326
  Normalizat = 0.661599
  Prefactor  = 1.34584
 **********
 **   18 **HESSE 
 **********

 FCN=   5212.320     FROM HESSE     STATUS=OK           768 CALLS     5847 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.794        41.582        .11672E-03   -1.5021    
   4  Prefactor     .10000E-03    3.7945        .13709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2571        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1011        7.3698        .19909E-03   -1.5303    
   8  Prefactor     18.071        8.3125        .94219E-04   -1.4858    
   9  norm          .10000E-03    47.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1127        .74238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    48.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9416        5.9757        .23684E-03   -1.5365    
  13  Prefactor     .10001E-03    21.558        .35929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    122.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    83.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.943        58.978        .75791E-04   -1.4650    
  18  Prefactor     .10000E-03    6.0128        .17276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.833        12.161        .10400E-03   -1.4938    
  20  norm          .10000E-03    2.7073        .11592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3089        .14558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8697        .11925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    77.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          26.065        8.2854        .78454E-04   -1.4686    
  25  Prefactor     16.638        13.680        .98192E-04   -1.4892    
  26  norm          1.6856        1.4473        .74762E-04   -1.5448    
  27  norm          3.2625        4.3358        .16470E-03   -1.5347    
  28  Prefactor     8.2458        18.689        .69809E-03   -1.5134    
  29  Prefactor     4.8518        5.1524        .15063E-03   -1.5267    
  30  Prefactor     .10000E-03    32.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          20.695        33.795        .88077E-04   -1.4798    
  32  Prefactor     6.4418        7.7329        .79054E-03   -1.5200    
  33  Prefactor     5.3733        5.1722        .15173E-03   -1.5244    
  34  Normalizat    .66160        .25489        .29439E-03   -1.0543    
  35  Prefactor     1.3458        .27217        .24085E-03   -.81954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80754e-09
Minuit parameter uncertainties:
  1  7.79032e-05
  2  0.000449461
  3  41.6845
  4  6.74507e-07
  5  4.21246e-06
  6  0.000192791
  7  7.37141
  8  8.31304
  9  0.000739094
  10  3.03817e-07
  11  0.000748671
  12  5.97686
  13  0.00081765
  14  0.00332436
  15  2.29541e-05
  16  0.00214792
  17  59.1018
  18  4.45818e-07
  19  12.1627
  20  3.8484e-07
  21  7.43606e-06
  22  2.66142e-07
  23  0.00180438
  24  8.28578
  25  13.6828
  26  1.44731
  27  4.33619
  28  18.7027
  29  5.15283
  30  0.000773128
  31  33.8263
  32  7.7341
  33  5.17259
  34  0.255349
  35  0.272463
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  4.852e+00  5.153e+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.346e+00  2.725e-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:  6.616e-01  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 356.999 -51.114
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/115245/likelihoodResults_284688001_284947201_4FGL_J2347.9-5106_daily_bin175.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) = 5212.11976513
delta logL = 0.200502466383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5212.11953441
delta logL = 0.200733183973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8652       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9768       1.0000          .0000       10.000    
     3 'Normalizat'    .68044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3279       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5212.120     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      318 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8498        6.2861        .76563E-03    .18415E-03
   2  Index         1.9747        .66609        .94848E-02   -.55281E-05
   3  Normalizat    .68057        .23713        .29052E-03   -.14479E-05
   4  Prefactor     1.3279        .26728        .24215E-03   -.16902E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.8498
  Index      = 1.97471
  Normalizat = 0.680573
  Prefactor  = 1.32791
 **********
 **   18 **HESSE 
 **********

 FCN=   5212.120     FROM HESSE     STATUS=OK            27 CALLS      345 TOTAL
                     EDM=   .79E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8498        6.3092        .15313E-03   -1.5184    
   2  Index         1.9747        .66863        .37939E-03   -.64984    
   3  Normalizat    .68057        .23738        .11621E-04   -1.0466    
   4  Prefactor     1.3279        .26753        .96860E-05   -.82481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86792e-14
Minuit parameter uncertainties:
  1  6.30986
  2  0.671819
  3  0.23774
  4  0.267808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115245': 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) = 5212.11952714
delta logL = 0.200740455807

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  6.850e+00  6.310e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  1.975e+00  6.718e-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.328e+00  2.678e-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:  6.806e-01  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 356.999 -51.114
Photon Index (Free Index): 1.97 +/- 0.67
Photon Flux (Free Index): 3.70e-08 +/- 4.39e-08
Energy Flux (Free Index): 2.72e-05 +/- 3.59e-05

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/115245/cmap_HighResolution_284688001_284947201_4FGL_J2347.9-5106_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='2.72e-05', photon_flux_error='5.10e-08', dlogl='2.01e-01', energy_flux='1.42e-05', photon_flux2='3.70e-08', job_status='DONE', time_completed='2021-09-30 05:00:42.549883', photon_index_error2='0.67', photon_index2='1.97', ts='1.30', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='3.59e-05', EG='0.66', time_epoch_completed='1633003242.55', return_code='0', job_id='115245', GAL2='1.33', EG2='0.68', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='4.39e-08', ts2='1.71', photon_index='2.49' WHERE bin_id='175' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:00:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 115245: <4FGL_J2347.9-5106_daily_bin175> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin175> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 04:45:31 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:45:33 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:45:33 2021
Terminated at Thu Sep 30 05:00:43 2021
Results reported at Thu Sep 30 05:00:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin175 356.999 -51.1139 284688001 284947201 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 :                                   891.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

