/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 5 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2347.9-5106_daily_bin101
RA = 356.999, Dec = -51.1139
tmin = 265507201, tmax = 265766401
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='115133', job_status='RUN', time_executed='2021-09-30 04:45:40.775275', time_epoch_executed='1633002340.78' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115133

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115133/ft1_4FGL_J2347.9-5106_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115133/ft2_4FGL_J2347.9-5106_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115133/ft1_4FGL_J2347.9-5106_daily_bin101.fits outfile=/scratch/kocevski/115133/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin101.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=265507201.0 tmax=265766401.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 1.52
user 1.33
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115133/ft1_filtered_4FGL_J2347.9-5106_daily_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/115133/ft2_4FGL_J2347.9-5106_daily_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/115133/ltcube_265507201_265766401_4FGL_J2347.9-5106_daily_bin101.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/115133/ft2_4FGL_J2347.9-5106_daily_bin101.fits
.....................!
real 12.76
user 12.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115133/ft1_filtered_4FGL_J2347.9-5106_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/115133/ft2_4FGL_J2347.9-5106_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/115133/ltcube_265507201_265766401_4FGL_J2347.9-5106_daily_bin101.fits outfile=/scratch/kocevski/115133/expmap_265507201_265766401_4FGL_J2347.9-5106_daily_bin101.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/115133/ltcube_265507201_265766401_4FGL_J2347.9-5106_daily_bin101.fits
.....................!
real 192.03
user 186.32
sys 5.40

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/115133/ft1_filtered_4FGL_J2347.9-5106_daily_bin101.fits scfile=/scratch/kocevski/115133/ft2_4FGL_J2347.9-5106_daily_bin101.fits outfile=/scratch/kocevski/115133/cmap_265507201_265766401_4FGL_J2347.9-5106_daily_bin101.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115133/ft1_filtered_4FGL_J2347.9-5106_daily_bin101.fits scfile=/scratch/kocevski/115133/ft2_4FGL_J2347.9-5106_daily_bin101.fits outfile=/scratch/kocevski/115133/cmap_HighResolution_265507201_265766401_4FGL_J2347.9-5106_daily_bin101.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115133/ft1_filtered_4FGL_J2347.9-5106_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/115133/ft2_4FGL_J2347.9-5106_daily_bin101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115133/Model_4FGL_J2347.9-5106_daily_bin101.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/115133/ft1_filtered_4FGL_J2347.9-5106_daily_bin101.fits.....................!
real 42.08
user 40.80
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    32.428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11470E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7419       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6161       1.0000         .10000E-03   10000.    
     9 'norm      '    31.441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23463       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.003       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.324       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.6763       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.020       1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.770       1.0000         .10000E-03   10000.    
    24 'norm      '    6.5904       1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.809       1.0000         .10000E-03   10000.    
    26 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .30144       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.253       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.5719       1.0000         .10000E-03   10000.    
    30 'Prefactor '    31.178       1.0000         .10000E-03   10000.    
    31 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .14922E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2481       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .74177       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=   5381.637     FROM MIGRAD    STATUS=CONVERGED    981 CALLS     5178 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    115.65       -.46922E-04** at limit **
   2  Prefactor     32.426        30.119       -.87482E-06   -.52094E-04
   3  Prefactor     .10000E-03    83.607        .24492E-04** at limit **
   4  Prefactor     .10000E-03    2.8045       -.12538E-06** at limit **
   5  Prefactor     .10000E-03    4.5275        .28136E-06** at limit **
   6  Prefactor     .10000E-03    16.808       -.47201E-05** at limit **
   7  Prefactor     5.7419        10.466        .28848E-06   -.18509E-03
   8  Prefactor     2.6161        5.8889        .61453E-05   -.43879E-03
   9  norm          31.452        46.897        .10339E-04    .63483E-04
  10  Prefactor     .23548        2.6553       -.11950E-05    .28258E-03
  11  Prefactor     16.994        53.103       -.13530E-04    .71582E-05
  12  norm          .10000E-03    2.6080        .14457E-07** at limit **
  13  Prefactor     .10020E-03    5.1060        .75597E-06** at limit **
  14  Prefactor     .10000E-03    77.357        .24316E-04** at limit **
  15  Prefactor     11.324        11.783       -.10934E-07   -.35702E-03
  16  Prefactor     .10000E-03    56.698       -.21284E-04** at limit **
  17  Prefactor     .10000E-03    10.182        .20654E-06** at limit **
  18  Prefactor     .10000E-03    26.946        .26085E-05** at limit **
  19  norm          .10000E-03    7.3831       -.11645E-06** at limit **
  20  norm          .10000E-03    2.8022        .29930E-07** at limit **
  21  norm          9.6752        7.6103        .11794E-06    .47399E-04
  22  Prefactor     10.022        9.5362       -.18316E-05   -.10108E-03
  23  Prefactor     41.783        39.615        .73599E-05    .87955E-04
  24  norm          6.5907        6.0958       -.62833E-06    .97287E-04
  25  Prefactor     24.823        25.924        .10373E-05   -.45307E-04
  26  norm          .10000E-03    .55220        .94119E-07** at limit **
  27  norm          .30219        2.9624       -.99361E-06    .10477E-03
  28  Prefactor     15.254        17.960        .28583E-06    .13951E-04
  29  Prefactor     5.5730        5.1422        .72290E-07   -.11113E-03
  30  Prefactor     31.182        38.528        .12669E-05   -.23742E-04
  31  norm          .10000E-03    19.278        .43150E-05** at limit **
  32  Prefactor     .10003E-03    5.8048       -.88091E-06** at limit **
  33  Prefactor     .10000E-03    1.5881       -.74818E-07** at limit **
  34  Normalizat    1.2480        .20636       -.14172E-05    .14993E-03
  35  Prefactor     .74192        .20636       -.21801E-06    .24818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 5.74189
  Prefactor  = 2.61613
  norm       = 31.452
  Prefactor  = 0.235483
  Prefactor  = 16.994
  norm       = 0.0001
  Prefactor  = 0.000100198
  Prefactor  = 0.0001
  Prefactor  = 11.3242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.67523
  Prefactor  = 10.0217
  Prefactor  = 41.7826
  norm       = 6.59066
  Prefactor  = 24.8231
  norm       = 0.0001
  norm       = 0.302192
  Prefactor  = 15.2537
  Prefactor  = 5.57303
  Prefactor  = 31.1821
  norm       = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Normalizat = 1.24801
  Prefactor  = 0.741919
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.637     FROM HESSE     STATUS=OK           786 CALLS     5964 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    116.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.426        30.136        .70365E-04   -1.4568    
   3  Prefactor     .10000E-03    84.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8063        .11997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.575        .30284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7419        10.484        .16762E-03   -1.5229    
   8  Prefactor     2.6161        5.7863        .25218E-03   -1.5384    
   9  norm          31.452        46.709        .71458E-04   -1.4586    
  10  Prefactor     .23548        14.733        .22484E-02   -1.5611    
  11  Prefactor     16.994        53.134        .97131E-04   -1.4883    
  12  norm          .10000E-03    2.6102        .11567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10020E-03    5.4580        .55497E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    78.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.324        11.757        .11905E-03   -1.5035    
  16  Prefactor     .10000E-03    56.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.3986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8081        .11992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.6752        7.6445        .12883E-03   -1.5086    
  22  Prefactor     10.022        9.5014        .12659E-03   -1.5075    
  23  Prefactor     41.783        39.659        .62025E-04   -1.4414    
  24  norm          6.5907        6.1357        .14629E-03   -1.5194    
  25  Prefactor     24.823        25.750        .80424E-04   -1.4711    
  26  norm          .10000E-03    .82926        .10297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .30219        19.688        .22993E-02   -1.5598    
  28  Prefactor     15.254        17.961        .10255E-03   -1.4927    
  29  Prefactor     5.5730        5.0328        .12983E-03   -1.5236    
  30  Prefactor     31.182        38.364        .71758E-04   -1.4591    
  31  norm          .10000E-03    19.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10003E-03    28.107        .32732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.5919        .90231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.2480        .25607        .22707E-03   -.85132    
  35  Prefactor     .74192        .25395        .30261E-03   -1.0191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88618e-09
Minuit parameter uncertainties:
  1  0.000315425
  2  30.1499
  3  7.38651e-05
  4  6.80478e-06
  5  0.00046007
  6  0.000144306
  7  10.4877
  8  5.78749
  9  46.7635
  10  3.72539
  11  53.2823
  12  3.89051e-06
  13  0.00207691
  14  0.00026288
  15  11.7591
  16  3.53517e-06
  17  7.25029e-07
  18  6.90515e-05
  19  6.27746e-06
  20  3.51777e-06
  21  7.64527
  22  9.50279
  23  39.6842
  24  6.13628
  25  25.7617
  26  7.66888e-06
  27  4.87922
  28  17.9677
  29  5.03317
  30  38.3947
  31  1.52709e-05
  32  0.00184317
  33  4.51432e-07
  34  0.256331
  35  0.254351
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  5.573e+00  5.033e+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:  7.419e-01  2.544e-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.248e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.14
Ra Dec: 356.999 -51.114
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.52e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/115133/likelihoodResults_265507201_265766401_4FGL_J2347.9-5106_daily_bin101.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) = 5381.60413365
delta logL = 0.0326711290181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5381.593559
delta logL = 0.0432457847501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9110       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7115       1.0000          .0000       10.000    
     3 'Normalizat'    1.2335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75261       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5381.594     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      247 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9154        91.756        .45374E-02    .21348E-03
   2  Index         2.7131        6.2895        .14857        .82022E-04
   3  Normalizat    1.2335        .93801E-01    .51597E-01    .58287E-05
   4  Prefactor     .75247        .78000E-01    .67950E-01    .21120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91544
  Index      = 2.71311
  Normalizat = 1.23355
  Prefactor  = 0.752468
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.594     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9154        4.9499        .11477E-03   -1.5265    
   2  Index         2.7131        .84120        .78968E-02   -.47505    
   3  Normalizat    1.2335        .24308        .22813E-03   -.85572    
   4  Prefactor     .75247        .25238        .30065E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48764e-12
Minuit parameter uncertainties:
  1  4.95035
  2  0.846303
  3  0.243302
  4  0.252766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115133': 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) = 5381.59355246
delta logL = 0.0432523214249

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  4.915e+00  4.950e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.713e+00  8.463e-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:  7.525e-01  2.528e-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.234e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 356.999 -51.114
Photon Index (Free Index): 2.71 +/- 0.85
Photon Flux (Free Index): 6.66e-08 +/- 6.05e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.20e-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/115133/cmap_HighResolution_265507201_265766401_4FGL_J2347.9-5106_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='5.52e-08', energy_flux2='1.59e-05', photon_flux_error='4.98e-08', dlogl='4.33e-02', energy_flux='1.63e-05', photon_flux2='6.66e-08', job_status='DONE', time_completed='2021-09-30 05:01:17.426592', photon_index_error2='0.85', photon_index2='2.71', ts='3.14', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.20e-05', EG='1.25', time_epoch_completed='1633003277.43', return_code='0', job_id='115133', GAL2='0.75', EG2='1.23', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='6.05e-08', ts2='3.26', photon_index='2.49' WHERE bin_id='101' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:01:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 115133: <4FGL_J2347.9-5106_daily_bin101> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin101 356.999 -51.1139 265507201 265766401 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 :                                   930.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

