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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1282
RA = 356.999, Dec = -51.1139
tmin = 571622401, tmax = 571881601
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='122459', job_status='RUN', time_executed='2021-09-30 05:12:15.326199', time_epoch_executed='1633003935.33' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122459

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122459/ft1_4FGL_J2347.9-5106_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122459/ft2_4FGL_J2347.9-5106_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122459/ft1_4FGL_J2347.9-5106_daily_bin1282.fits outfile=/scratch/kocevski/122459/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1282.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.72
user 2.50
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122459/ft1_filtered_4FGL_J2347.9-5106_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/122459/ft2_4FGL_J2347.9-5106_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/122459/ltcube_571622401_571881601_4FGL_J2347.9-5106_daily_bin1282.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/122459/ft2_4FGL_J2347.9-5106_daily_bin1282.fits
.....................!
real 12.26
user 11.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122459/ft1_filtered_4FGL_J2347.9-5106_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/122459/ft2_4FGL_J2347.9-5106_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/122459/ltcube_571622401_571881601_4FGL_J2347.9-5106_daily_bin1282.fits outfile=/scratch/kocevski/122459/expmap_571622401_571881601_4FGL_J2347.9-5106_daily_bin1282.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/122459/ltcube_571622401_571881601_4FGL_J2347.9-5106_daily_bin1282.fits
.....................!
real 190.63
user 185.63
sys 4.64

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/122459/ft1_filtered_4FGL_J2347.9-5106_daily_bin1282.fits scfile=/scratch/kocevski/122459/ft2_4FGL_J2347.9-5106_daily_bin1282.fits outfile=/scratch/kocevski/122459/cmap_571622401_571881601_4FGL_J2347.9-5106_daily_bin1282.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.55
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.130       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.562       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.272       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.148       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1439       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.781       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.073       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3629       1.0000         .10000E-03   10000.    
    19 'norm      '    13.201       1.0000         .10000E-03   10000.    
    20 'norm      '    9.0341       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.089       1.0000         .10000E-03   10000.    
    23 'Prefactor '    140.97       1.0000         .10000E-03   10000.    
    24 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10521E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.0510       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.9820       1.0000         .10000E-03   10000.    
    31 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    18.601       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1226       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .79489       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=   3495.364     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     5116 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.342        93.232       -.14463E-05    .37709E-04
   2  Prefactor     .10000E-03    31.963       -.72099E-06** at limit **
   3  Prefactor     .10000E-03    27.645        .58486E-06** at limit **
   4  Prefactor     11.126        14.755        .45446E-07   -.27769E-04
   5  Prefactor     .10000E-03    11.908        .94813E-07** at limit **
   6  Prefactor     28.563        50.581        .98119E-07    .63638E-05
   7  Prefactor     13.271        12.911        .18497E-07    .31324E-05
   8  Prefactor     17.142        14.031       -.73051E-07    .23082E-04
   9  norm          .10000E-03    22.329       -.12942E-06** at limit **
  10  Prefactor     1.1433        2.2345        .73309E-06   -.83868E-04
  11  Prefactor     .10000E-03    23.617        .19153E-06** at limit **
  12  norm          .10000E-03    2.0881        .43387E-07** at limit **
  13  Prefactor     .10000E-03    11.728       -.52526E-07** at limit **
  14  Prefactor     .10000E-03    11.670       -.20652E-06** at limit **
  15  Prefactor     .10000E-03    5.7950        .98416E-07** at limit **
  16  Prefactor     69.813        100.50       -.16148E-05    .29334E-04
  17  Prefactor     24.081        58.020       -.34152E-06    .99968E-05
  18  Prefactor     6.3492        37.915       -.24087E-07   -.10042E-05
  19  norm          13.202        20.523        .14045E-07    .49421E-06
  20  norm          9.0343        12.059        .11884E-06    .98908E-05
  21  norm          .10000E-03    7.6099       -.72975E-06** at limit **
  22  Prefactor     12.089        11.064       -.96011E-07    .72072E-05
  23  Prefactor     140.92        77.691        .28199E-05    .48206E-04
  24  norm          .10000E-03    15.697       -.40664E-05** at limit **
  25  Prefactor     .10000E-03    8.4650       -.81621E-07** at limit **
  26  norm          .10000E-03    1.0414       -.11027E-06** at limit **
  27  norm          .10000E-03    6.3904       -.90459E-06** at limit **
  28  Prefactor     .10038E-03    27.975        .17221E-05** at limit **
  29  Prefactor     6.0545        6.3688       -.15992E-06   -.18663E-03
  30  Prefactor     2.9342        131.66        .33674E-05   -.18380E-04
  31  norm          .10000E-03    13.177        .41216E-06** at limit **
  32  Prefactor     18.598        10.068       -.40918E-07   -.18386E-03
  33  Prefactor     .10000E-03    5.1745       -.12337E-06** at limit **
  34  Normalizat    1.1231        .26602        .10981E-05   -.90018E-04
  35  Prefactor     .79444        .26032       -.18087E-05   -.10013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.3418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1256
  Prefactor  = 0.0001
  Prefactor  = 28.5631
  Prefactor  = 13.2712
  Prefactor  = 17.1417
  norm       = 0.0001
  Prefactor  = 1.14327
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.8126
  Prefactor  = 24.0813
  Prefactor  = 6.3492
  norm       = 13.202
  norm       = 9.03426
  norm       = 0.0001
  Prefactor  = 12.0888
  Prefactor  = 140.917
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010038
  Prefactor  = 6.05451
  Prefactor  = 2.93423
  norm       = 0.0001
  Prefactor  = 18.5976
  Prefactor  = 0.0001
  Normalizat = 1.12307
  Prefactor  = 0.794436
 **********
 **   18 **HESSE 
 **********

 FCN=   3495.364     FROM HESSE     STATUS=OK           774 CALLS     5890 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.342        92.798        .22548E-03   -1.3924    
   2  Prefactor     .10000E-03    32.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.126        14.833        .12009E-03   -1.5041    
   5  Prefactor     .10000E-03    12.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.563        50.536        .74964E-04   -1.4639    
   7  Prefactor     13.271        12.916        .10995E-03   -1.4979    
   8  Prefactor     17.142        14.209        .96719E-04   -1.4880    
   9  norm          .10000E-03    22.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1433        2.2864        .72207E-02   -1.5494    
  11  Prefactor     .10000E-03    23.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0905        .83437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7981        .13901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     69.813        100.10        .24027E-03   -1.4035    
  17  Prefactor     24.081        57.991        .81642E-04   -1.4726    
  18  Prefactor     6.3492        37.758        .15912E-03   -1.5204    
  19  norm          13.202        20.514        .11025E-03   -1.4981    
  20  norm          9.0343        12.017        .13335E-03   -1.5107    
  21  norm          .10000E-03    7.6591        .15939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.089        11.044        .11521E-03   -1.5012    
  23  Prefactor     140.92        80.557        .16965E-03   -1.3328    
  24  norm          .10000E-03    16.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.4705        .16799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.0560        .11687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.5148        .14621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10038E-03    216.88        .56065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.0545        6.1749        .11759E-03   -1.5216    
  30  Prefactor     2.9342        123.85        .23510E-03   -1.5365    
  31  norm          .10000E-03    13.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     18.598        10.002        .92865E-04   -1.4845    
  33  Prefactor     .10000E-03    5.3909        .26248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1231        .32746        .23962E-03   -.89015    
  35  Prefactor     .79444        .31621        .29480E-03   -.99934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82107e-09
Minuit parameter uncertainties:
  1  92.9681
  2  7.32731e-05
  3  0.000102001
  4  14.8375
  5  6.14089e-06
  6  50.6119
  7  12.9192
  8  14.2119
  9  2.25785e-05
  10  2.28659
  11  1.98883e-05
  12  2.13111e-07
  13  1.47531e-05
  14  1.93525e-05
  15  1.01275e-06
  16  100.345
  17  58.1271
  18  30.996
  19  20.5251
  20  12.0201
  21  3.68234e-05
  22  11.0456
  23  80.6201
  24  0.000216547
  25  6.7483e-06
  26  1.68913e-06
  27  3.55719e-05
  28  0.0182161
  29  6.17554
  30  38.2108
  31  4.17767e-05
  32  10.0029
  33  4.32278e-06
  34  0.328058
  35  0.316932
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  6.055e+00  6.176e+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.944e-01  3.169e-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.123e+00  3.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.89
Ra Dec: 356.999 -51.114
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 6.11e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.80e-05

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

Saving results to:
/scratch/kocevski/122459/likelihoodResults_571622401_571881601_4FGL_J2347.9-5106_daily_bin1282.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) = 3494.63853741
delta logL = 0.725224493935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3494.06537752
delta logL = 1.29838439091

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3494.065     FROM MIGRAD    STATUS=CONVERGED    200 CALLS      527 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12928E-03    .79541E-02    .67051E-06** at limit **
   2  Index         9.1343        8.0911        .52227E-03    .27638E-03
   3  Normalizat    .98498        .29951       -.11655E-04   -.34654E-03
   4  Prefactor     .92624        .31649       -.15662E-04    .34058E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000129284
  Index      = 9.13431
  Normalizat = 0.984983
  Prefactor  = 0.926236
 **********
 **   18 **HESSE 
 **********

 FCN=   3494.065     FROM HESSE     STATUS=OK            37 CALLS      564 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12928E-03    .69887E-04    .16612E-03   -7.8541    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1343        .31406        .13208       -74.425    
   3  Normalizat    .98498        .30590        .45979E-01   -2.2062    
   4  Prefactor     .92624        .32227        .45340E-01   -.95230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17683e-09
Minuit parameter uncertainties:
  1  6.98866e-05
  2  0.31472
  3  0.306448
  4  0.322933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122459': 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) = 3494.06535368
delta logL = 1.29840822872

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.293e-04  6.989e-05  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  9.134e+00  3.147e-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:  9.262e-01  3.229e-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:  9.850e-01  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.80
Ra Dec: 356.999 -51.114
Photon Index (Free Index): 9.13 +/- 0.31
Photon Flux (Free Index): 1.50e-07 +/- 1.35e-07
Energy Flux (Free Index): 1.70e-05 +/- 1.53e-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/122459/cmap_HighResolution_571622401_571881601_4FGL_J2347.9-5106_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='1.70e-05', photon_flux_error='6.11e-08', dlogl='1.30e+00', energy_flux='1.77e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-30 05:26:50.486877', photon_index_error2='0.31', photon_index2='9.13', ts='2.89', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.53e-05', EG='1.12', time_epoch_completed='1633004810.49', return_code='0', job_id='122459', GAL2='0.93', EG2='0.98', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='1.35e-07', ts2='5.80', photon_index='2.49' WHERE bin_id='1282' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 122459: <4FGL_J2347.9-5106_daily_bin1282> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin1282> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:10:28 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:10:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 05:10:30 2021
Terminated at Thu Sep 30 05:26:51 2021
Results reported at Thu Sep 30 05:26:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1282 356.999 -51.1139 571622401 571881601 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 :                                   719.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

