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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1084
RA = 356.999, Dec = -51.1139
tmin = 520300801, tmax = 520560001
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='121209', job_status='RUN', time_executed='2021-09-30 05:06:58.336833', time_epoch_executed='1633003618.34' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121209

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121209/ft1_4FGL_J2347.9-5106_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121209/ft2_4FGL_J2347.9-5106_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121209/ft1_4FGL_J2347.9-5106_daily_bin1084.fits outfile=/scratch/kocevski/121209/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1084.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.10
user 5.82
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/121209/ft2_4FGL_J2347.9-5106_daily_bin1084.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/121209/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/121209/ft1_filtered_4FGL_J2347.9-5106_daily_bin1084.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/121209/ft1_filtered_4FGL_J2347.9-5106_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/121209/ft2_4FGL_J2347.9-5106_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/121209/ltcube_520300801_520560001_4FGL_J2347.9-5106_daily_bin1084.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/121209/ft2_4FGL_J2347.9-5106_daily_bin1084.fits
.....................!
real 11.91
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121209/ft1_filtered_4FGL_J2347.9-5106_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/121209/ft2_4FGL_J2347.9-5106_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/121209/ltcube_520300801_520560001_4FGL_J2347.9-5106_daily_bin1084.fits outfile=/scratch/kocevski/121209/expmap_520300801_520560001_4FGL_J2347.9-5106_daily_bin1084.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/121209/ltcube_520300801_520560001_4FGL_J2347.9-5106_daily_bin1084.fits
.....................!
real 190.47
user 184.97
sys 5.09

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/121209/ft1_filtered_4FGL_J2347.9-5106_daily_bin1084.fits scfile=/scratch/kocevski/121209/ft2_4FGL_J2347.9-5106_daily_bin1084.fits outfile=/scratch/kocevski/121209/cmap_520300801_520560001_4FGL_J2347.9-5106_daily_bin1084.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=356.999 yref=-51.1139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121209/ft1_filtered_4FGL_J2347.9-5106_daily_bin1084.fits scfile=/scratch/kocevski/121209/ft2_4FGL_J2347.9-5106_daily_bin1084.fits outfile=/scratch/kocevski/121209/cmap_HighResolution_520300801_520560001_4FGL_J2347.9-5106_daily_bin1084.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/121209/ft1_filtered_4FGL_J2347.9-5106_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/121209/ft2_4FGL_J2347.9-5106_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121209/Model_4FGL_J2347.9-5106_daily_bin1084.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/121209/ft1_filtered_4FGL_J2347.9-5106_daily_bin1084.fits.....................!
real 38.65
user 37.32
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29702E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5692       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.102       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9706       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6342       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0222       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7050       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.608       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96703       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.6495       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7284       1.0000         .10000E-03   10000.    
    23 'Prefactor '    60.891       1.0000         .10000E-03   10000.    
    24 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.3228       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10499E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.0043       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .74560       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .95745       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=   4702.790     FROM MIGRAD    STATUS=CONVERGED    953 CALLS     5112 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    618.02       -.54411E-04** at limit **
   2  Prefactor     9.5696        16.602       -.47036E-07   -.26415E-04
   3  Prefactor     33.112        47.083        .32294E-05    .32131E-04
   4  Prefactor     .10000E-03    26.042       -.18865E-05** at limit **
   5  Prefactor     6.9708        7.2206       -.66016E-07   -.23881E-04
   6  Prefactor     .10000E-03    41.317        .75563E-05** at limit **
   7  Prefactor     .10000E-03    3.9253        .70971E-07** at limit **
   8  Prefactor     7.6347        6.5966        .95600E-06   -.40070E-03
   9  norm          .10000E-03    17.914        .19486E-05** at limit **
  10  Prefactor     8.0228        5.0014        .21678E-06   -.23543E-04
  11  Prefactor     .10000E-03    24.299       -.38890E-05** at limit **
  12  norm          .10000E-03    2.7804       -.14353E-07** at limit **
  13  Prefactor     9.7059        6.9446        .56394E-06   -.39708E-03
  14  Prefactor     12.588        28.604       -.39304E-05   -.54868E-03
  15  Prefactor     .96999        8.4792        .36538E-05   -.81501E-03
  16  Prefactor     .10000E-03    48.878        .33360E-05** at limit **
  17  Prefactor     .10000E-03    8.8005       -.17657E-06** at limit **
  18  Prefactor     .10000E-03    6.6012       -.66342E-06** at limit **
  19  norm          .10000E-03    3.2262       -.94115E-07** at limit **
  20  norm          .10000E-03    3.2318       -.13021E-06** at limit **
  21  norm          2.6500        5.3465       -.27340E-05   -.52723E-03
  22  Prefactor     3.7286        5.0223        .24263E-05   -.93829E-03
  23  Prefactor     60.922        42.842       -.25147E-05   -.15701E-03
  24  norm          .10005E-03    4.2700        .30503E-05** at limit **
  25  Prefactor     .10000E-03    5.8613        .11973E-05** at limit **
  26  norm          .10000E-03    .47212       -.16976E-06** at limit **
  27  norm          .10000E-03    3.0425        .52289E-06** at limit **
  28  Prefactor     .10000E-03    5.4284       -.73413E-06** at limit **
  29  Prefactor     1.3233        2.9290        .55316E-07   -.18350E-03
  30  Prefactor     .10000E-03    30.928        .26388E-05** at limit **
  31  norm          .10000E-03    56.021       -.87863E-05** at limit **
  32  Prefactor     1.0050        6.4611        .15534E-05   -.65748E-04
  33  Prefactor     .10000E-03    1.9102        .66438E-07** at limit **
  34  Normalizat    .74539        .18566       -.35456E-05   -.39295E-03
  35  Prefactor     .95763        .18792        .40370E-06   -.58430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100031
  Prefactor  = 9.56957
  Prefactor  = 33.1122
  Prefactor  = 0.0001
  Prefactor  = 6.97078
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.63466
  norm       = 0.0001
  Prefactor  = 8.02282
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.70587
  Prefactor  = 12.588
  Prefactor  = 0.969991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.64998
  Prefactor  = 3.72857
  Prefactor  = 60.9216
  norm       = 0.000100051
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.32327
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 1.00503
  Prefactor  = 0.0001
  Normalizat = 0.745393
  Prefactor  = 0.957632
 **********
 **   18 **HESSE 
 **********

 FCN=   4702.790     FROM HESSE     STATUS=OK           764 CALLS     5876 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    629.65        .42788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.5696        16.588        .12955E-03   -1.5089    
   3  Prefactor     33.112        46.965        .69647E-04   -1.4556    
   4  Prefactor     .10000E-03    27.095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9708        7.2143        .15195E-03   -1.5180    
   6  Prefactor     .10000E-03    41.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9386        .13266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6347        6.5975        .72569E-03   -1.5155    
   9  norm          .10000E-03    17.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.0228        5.0034        .11620E-03   -1.5141    
  11  Prefactor     .10000E-03    24.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.7833        .11160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7059        6.9376        .12863E-03   -1.5085    
  14  Prefactor     12.588        28.977        .11281E-03   -1.4998    
  15  Prefactor     .96999        31.812        .31793E-02   -1.5511    
  16  Prefactor     .10000E-03    48.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.8027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6171        .17203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.2272        .12030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2393        .12034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.6500        5.3295        .21104E-03   -1.5382    
  22  Prefactor     3.7286        5.0021        .85859E-03   -1.5322    
  23  Prefactor     60.922        41.726        .51419E-04   -1.4145    
  24  norm          .10005E-03    27.698        .23394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.8727        .16215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .81953        .90352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.0739        .11663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.4313        .15605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.3233        2.8342        .16113E-03   -1.5478    
  30  Prefactor     .10000E-03    31.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    57.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.0050        6.2890        .31690E-03   -1.5507    
  33  Prefactor     .10000E-03    1.9201        .92516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .74539        .22131        .23964E-03   -1.0213    
  35  Prefactor     .95763        .22621        .22848E-03   -.94155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44601e-09
Minuit parameter uncertainties:
  1  0.00890529
  2  16.596
  3  47.0175
  4  6.73064e-05
  5  7.21523
  6  0.000640826
  7  3.0555e-06
  8  6.5981
  9  0.000122858
  10  5.00366
  11  0.000238917
  12  2.22444e-06
  13  6.93813
  14  29.0093
  15  11.1158
  16  0.000279767
  17  3.6963e-06
  18  1.13976e-05
  19  2.83049e-06
  20  1.12273e-05
  21  5.33045
  22  5.00267
  23  41.7458
  24  0.0023694
  25  2.84397e-05
  26  6.1198e-06
  27  1.33464e-06
  28  1.60682e-05
  29  2.83451
  30  0.000173491
  31  0.000627558
  32  5.02872
  33  4.11472e-06
  34  0.221578
  35  0.226436
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.323e+00  2.835e+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:  9.576e-01  2.264e-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:  7.454e-01  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 356.999 -51.114
Photon Flux Upper Limit: 8.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/121209/likelihoodResults_520300801_520560001_4FGL_J2347.9-5106_daily_bin1084.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) = 4702.77358765
delta logL = 0.0165488012326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4702.76901167
delta logL = 0.0211247891166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0553       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8628       1.0000          .0000       10.000    
     3 'Normalizat'    .73912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96228       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=   4702.769     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0547        64.557        .11986E-01    .58348E-03
   2  Index         2.8631        6.0318        .22884        .31493E-04
   3  Normalizat    .73918        .37626E-01    .42810E-01   -.84852E-04
   4  Prefactor     .96222        .39140E-01    .45794E-01   -.35480E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05472
  Index      = 2.86307
  Normalizat = 0.739178
  Prefactor  = 0.962219
 **********
 **   18 **HESSE 
 **********

 FCN=   4702.769     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0547        3.2793        .13392E-03   -1.5503    
   2  Index         2.8631        2.2262        .14163E-01   -.44160    
   3  Normalizat    .73918        .21018        .24057E-03   -1.0237    
   4  Prefactor     .96222        .22332        .22799E-03   -.94000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21137e-09
Minuit parameter uncertainties:
  1  3.27983
  2  2.32767
  3  0.210413
  4  0.223532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121209': 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) = 4702.7690116
delta logL = 0.0211248542419

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.055e+00  3.280e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.863e+00  2.328e+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:  9.622e-01  2.235e-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:  7.392e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/121209/cmap_HighResolution_520300801_520560001_4FGL_J2347.9-5106_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', job_status='DONE', photon_flux_upper_limit='8.88e-08', time_completed='2021-09-30 05:20:56.170838', job_id='121209', GAL2='0.96', fit_tolerance='1e-08', EG2='0.74', EG='0.75', time_epoch_completed='1633004456.17', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.11e-02', ts2='0.35', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1084' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:20:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 121209: <4FGL_J2347.9-5106_daily_bin1084> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin1084> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 05:05:58 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:06:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 05:06:00 2021
Terminated at Thu Sep 30 05:20:56 2021
Results reported at Thu Sep 30 05:20:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1084 356.999 -51.1139 520300801 520560001 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

