/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7470
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2347.9-5106_daily_bin726
RA = 356.999, Dec = -51.1139
tmin = 427507201, tmax = 427766401
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='118278', job_status='RUN', time_executed='2021-09-30 04:55:40.673558', time_epoch_executed='1633002940.67' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/118278

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/118278/ft1_4FGL_J2347.9-5106_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/118278/ft2_4FGL_J2347.9-5106_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/118278/ft1_4FGL_J2347.9-5106_daily_bin726.fits outfile=/scratch/kocevski/118278/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin726.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=427507201.0 tmax=427766401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.51
user 5.26
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/118278/ft1_filtered_4FGL_J2347.9-5106_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/118278/ft2_4FGL_J2347.9-5106_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/118278/ltcube_427507201_427766401_4FGL_J2347.9-5106_daily_bin726.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/118278/ft2_4FGL_J2347.9-5106_daily_bin726.fits
.....................!
real 11.80
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/118278/ft1_filtered_4FGL_J2347.9-5106_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/118278/ft2_4FGL_J2347.9-5106_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/118278/ltcube_427507201_427766401_4FGL_J2347.9-5106_daily_bin726.fits outfile=/scratch/kocevski/118278/expmap_427507201_427766401_4FGL_J2347.9-5106_daily_bin726.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/118278/ltcube_427507201_427766401_4FGL_J2347.9-5106_daily_bin726.fits
.....................!
real 190.41
user 185.14
sys 4.94

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/118278/ft1_filtered_4FGL_J2347.9-5106_daily_bin726.fits scfile=/scratch/kocevski/118278/ft2_4FGL_J2347.9-5106_daily_bin726.fits outfile=/scratch/kocevski/118278/cmap_427507201_427766401_4FGL_J2347.9-5106_daily_bin726.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/118278/ft1_filtered_4FGL_J2347.9-5106_daily_bin726.fits scfile=/scratch/kocevski/118278/ft2_4FGL_J2347.9-5106_daily_bin726.fits outfile=/scratch/kocevski/118278/cmap_HighResolution_427507201_427766401_4FGL_J2347.9-5106_daily_bin726.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=356.999 yref=-51.1139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7798       1.0000         .10000E-03   10000.    
    11 'Prefactor '    136.01       1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4330       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23350E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    88.882       1.0000         .10000E-03   10000.    
    17 'Prefactor '    84.066       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.417       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14488E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .37514E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    16.255       1.0000         .10000E-03   10000.    
    27 'norm      '    8.8513       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    18.780       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .34199       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.2265       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=   3051.901     FROM MIGRAD    STATUS=CONVERGED    987 CALLS     5050 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.034        80.634       -.64463E-07    .24063E-05
   2  Prefactor     .10000E-03    15.716        .62621E-07** at limit **
   3  Prefactor     .10000E-03    72.789       -.13711E-07** at limit **
   4  Prefactor     .10000E-03    4.7478        .39138E-07** at limit **
   5  Prefactor     8.9950        9.0515       -.74149E-06    .84402E-04
   6  Prefactor     .10000E-03    96.666        .52492E-06** at limit **
   7  Prefactor     11.381        16.633        .29644E-06   -.50720E-05
   8  Prefactor     .10000E-03    12.358        .48510E-06** at limit **
   9  norm          .10000E-03    14.486        .37937E-07** at limit **
  10  Prefactor     1.7778        5.3846        .73847E-06   -.33340E-04
  11  Prefactor     135.99        102.30        .38115E-07   -.12834E-04
  12  norm          .10000E-03    4.5060       -.95456E-07** at limit **
  13  Prefactor     9.4306        14.420        .16986E-06    .18998E-04
  14  Prefactor     36.192        43.602        .25171E-06    .10940E-04
  15  Prefactor     .10000E-03    17.200       -.34980E-05** at limit **
  16  Prefactor     88.660        85.783       -.82399E-06   -.96562E-04
  17  Prefactor     84.109        76.190        .24413E-06    .19187E-04
  18  Prefactor     .10000E-03    13.776       -.26488E-07** at limit **
  19  norm          .10000E-03    8.9875        .43250E-07** at limit **
  20  norm          .10000E-03    13.692       -.32955E-07** at limit **
  21  norm          .10000E-03    6.0847        .84852E-08** at limit **
  22  Prefactor     15.414        12.303        .10272E-06   -.29147E-05
  23  Prefactor     .10004E-03    622.13       -.80595E-06** at limit **
  24  norm          .10162E-03    6.7371       -.58710E-06** at limit **
  25  Prefactor     .10000E-03    15.559        .17480E-07** at limit **
  26  norm          16.254        3.5590        .14289E-07    .31199E-04
  27  norm          8.8352        8.4774        .29198E-05   -.11472E-03
  28  Prefactor     .10000E-03    20.514        .20429E-06** at limit **
  29  Prefactor     .10000E-03    3.7730        .34880E-07** at limit **
  30  Prefactor     .10000E-03    39.535        .14191E-06** at limit **
  31  norm          .10000E-03    18.899       -.47969E-08** at limit **
  32  Prefactor     18.777        10.890        .10223E-06   -.26341E-05
  33  Prefactor     .10000E-03    3.3936        .96746E-07** at limit **
  34  Normalizat    .34188        .28432       -.13999E-05    .70446E-05
  35  Prefactor     1.2267        .28504        .42482E-06    .26249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.0335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.99504
  Prefactor  = 0.0001
  Prefactor  = 11.381
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.77782
  Prefactor  = 135.986
  norm       = 0.0001
  Prefactor  = 9.43057
  Prefactor  = 36.1924
  Prefactor  = 0.0001
  Prefactor  = 88.6598
  Prefactor  = 84.1091
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.414
  Prefactor  = 0.000100042
  norm       = 0.000101623
  Prefactor  = 0.0001
  norm       = 16.2543
  norm       = 8.83515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.7771
  Prefactor  = 0.0001
  Normalizat = 0.341883
  Prefactor  = 1.22668
 **********
 **   18 **HESSE 
 **********

 FCN=   3051.901     FROM HESSE     STATUS=OK           760 CALLS     5810 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.034        80.601        .51785E-04   -1.4157    
   2  Prefactor     .10000E-03    15.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    72.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7514        .11756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9950        9.0101        .66812E-03   -1.5108    
   6  Prefactor     .10000E-03    97.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.381        16.541        .11880E-03   -1.5033    
   8  Prefactor     .10000E-03    12.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7778        5.3409        .21136E-03   -1.5441    
  11  Prefactor     135.99        102.11        .17267E-03   -1.3370    
  12  norm          .10000E-03    4.5118        .11445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.4306        14.371        .13048E-03   -1.5094    
  14  Prefactor     36.192        43.360        .66686E-04   -1.4504    
  15  Prefactor     .10000E-03    16.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     88.660        85.960        .21309E-03   -1.3822    
  17  Prefactor     84.109        76.197        .43812E-04   -1.3871    
  18  Prefactor     .10000E-03    13.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.9911        .16177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.1042        .13302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.414        12.289        .10201E-03   -1.4923    
  23  Prefactor     .10004E-03    634.24        .36381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10162E-03    73.501        .26930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          16.254        3.5496        .45190E-04   -1.4901    
  27  norm          8.8352        8.4822        .67362E-03   -1.5113    
  28  Prefactor     .10000E-03    20.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.7975        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    39.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    18.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     18.777        10.831        .92422E-04   -1.4841    
  33  Prefactor     .10000E-03    3.4207        .99332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .34188        .30448        .38193E-03   -1.2042    
  35  Prefactor     1.2267        .31656        .22753E-03   -.85514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16374e-08
Minuit parameter uncertainties:
  1  80.7478
  2  3.3383e-07
  3  6.77458e-05
  4  8.98796e-07
  5  9.01143
  6  9.23237e-05
  7  16.5474
  8  1.11305e-05
  9  1.25086e-05
  10  5.34237
  11  102.244
  12  4.17702e-06
  13  14.3758
  14  43.3977
  15  0.00013804
  16  86.0811
  17  76.2862
  18  6.63201e-06
  19  3.36664e-06
  20  9.6562e-06
  21  2.41615e-05
  22  12.2914
  23  0.0104432
  24  0.0218717
  25  4.55262e-06
  26  3.54968
  27  8.48334
  28  1.94045e-06
  29  1.06648e-06
  30  2.074e-05
  31  4.08005e-06
  32  10.8322
  33  3.76437e-06
  34  0.305967
  35  0.317057
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  1.066e-06  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.487e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  1.227e+00  3.171e-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:  3.419e-01  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/118278/likelihoodResults_427507201_427766401_4FGL_J2347.9-5106_daily_bin726.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3051.90228516
delta logL = -0.00123460912209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3051.90105043
delta logL = 1.14224803838e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5032       1.0000          .0000       10.000    
     3 'Normalizat'    .34188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2267       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=   3051.901     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0786        .90712E-02** at limit **
   2  Index         2.5204        6.2596        .50000       -.40586E-04
   3  Normalizat    .34188        .25386        .86209E-01    .50208E-04
   4  Prefactor     1.2267        .27811        .51470E-01    .35209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52037
  Normalizat = 0.341883
  Prefactor  = 1.22668
 **********
 **   18 **HESSE 
 **********

 FCN=   3051.901     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5053        .10581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5204        6.1183        .50000       -.51890    
   3  Normalizat    .34188        .27931        .38192E-03   -1.2042    
   4  Prefactor     1.2267        .30695        .22753E-03   -.85514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.969e-09
Minuit parameter uncertainties:
  1  2.25483e-05
  2  6.03717
  3  0.280453
  4  0.307402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/118278': 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) = 3051.90105024
delta logL = 3.08454673359e-07

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  2.255e-05  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.520e+00  6.037e+00  0.000e+00  1.000e+01 (-1.000e+00)
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  1.227e+00  3.074e-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:  3.419e-01  2.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 356.999 -51.114

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/118278/cmap_HighResolution_427507201_427766401_4FGL_J2347.9-5106_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-30 05:06:46.606034', job_id='118278', GAL2='1.23', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1633003606.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='3.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='726' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:06:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 118278: <4FGL_J2347.9-5106_daily_bin726> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin726 356.999 -51.1139 427507201 427766401 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 :                                   657.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

