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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1392
RA = 356.999, Dec = -51.1139
tmin = 600134401, tmax = 600393601
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='122621', job_status='RUN', time_executed='2021-09-30 05:11:15.148893', time_epoch_executed='1633003875.15' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122621/ft1_4FGL_J2347.9-5106_daily_bin1392.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122621/ft2_4FGL_J2347.9-5106_daily_bin1392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122621/ft1_4FGL_J2347.9-5106_daily_bin1392.fits outfile=/scratch/kocevski/122621/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1392.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=600134401.0 tmax=600393601.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 4.90
user 4.64
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122621/ft2_4FGL_J2347.9-5106_daily_bin1392.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/122621/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1392.fits evtable="EVENTS" outfile="/scratch/kocevski/122621/ft1_filtered_4FGL_J2347.9-5106_daily_bin1392.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.51
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122621/ft1_filtered_4FGL_J2347.9-5106_daily_bin1392.fits" evtable="EVENTS" scfile=/scratch/kocevski/122621/ft2_4FGL_J2347.9-5106_daily_bin1392.fits sctable="SC_DATA" outfile=/scratch/kocevski/122621/ltcube_600134401_600393601_4FGL_J2347.9-5106_daily_bin1392.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/122621/ft2_4FGL_J2347.9-5106_daily_bin1392.fits
.....................!
real 11.55
user 11.23
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122621/ft1_filtered_4FGL_J2347.9-5106_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/122621/ft2_4FGL_J2347.9-5106_daily_bin1392.fits sctable="SC_DATA" expcube=/scratch/kocevski/122621/ltcube_600134401_600393601_4FGL_J2347.9-5106_daily_bin1392.fits outfile=/scratch/kocevski/122621/expmap_600134401_600393601_4FGL_J2347.9-5106_daily_bin1392.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/122621/ltcube_600134401_600393601_4FGL_J2347.9-5106_daily_bin1392.fits
.....................!
real 193.32
user 189.02
sys 3.93

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/122621/ft1_filtered_4FGL_J2347.9-5106_daily_bin1392.fits scfile=/scratch/kocevski/122621/ft2_4FGL_J2347.9-5106_daily_bin1392.fits outfile=/scratch/kocevski/122621/cmap_600134401_600393601_4FGL_J2347.9-5106_daily_bin1392.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.39
sys 0.12

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122621/ft1_filtered_4FGL_J2347.9-5106_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/122621/ft2_4FGL_J2347.9-5106_daily_bin1392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122621/Model_4FGL_J2347.9-5106_daily_bin1392.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/122621/ft1_filtered_4FGL_J2347.9-5106_daily_bin1392.fits.....................!
real 35.66
user 34.24
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.257       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.096       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2267       1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.900       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.072       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.145       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.025       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.2590       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.496       1.0000         .10000E-03   10000.    
    26 'norm      '    2.0078       1.0000         .10000E-03   10000.    
    27 'norm      '    8.2542       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .50502E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.5572       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    10.289       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    4.2622       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1029       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .87196       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=   4265.628     FROM MIGRAD    STATUS=CONVERGED    972 CALLS     5006 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.860       -.17194E-05** at limit **
   2  Prefactor     .10000E-03    15.643        .76892E-05** at limit **
   3  Prefactor     17.233        46.520       -.94386E-05   -.14364E-04
   4  Prefactor     24.094        14.408        .14871E-06   -.63625E-04
   5  Prefactor     .10000E-03    3.0214        .88552E-07** at limit **
   6  Prefactor     .10000E-03    16.581       -.73700E-05** at limit **
   7  Prefactor     .10000E-03    4.6748       -.79613E-06** at limit **
   8  Prefactor     9.2302        9.2165       -.62584E-07   -.13277E-04
   9  norm          .10000E-03    13.467        .27396E-05** at limit **
  10  Prefactor     9.8713        6.1769        .13072E-06   -.66099E-04
  11  Prefactor     24.872        60.468       -.23891E-04   -.73739E-06
  12  norm          2.6632        7.3770       -.27410E-06   -.32028E-03
  13  Prefactor     .10000E-03    4.4574       -.22152E-06** at limit **
  14  Prefactor     28.079        29.454       -.54497E-05   -.74687E-05
  15  Prefactor     .10000E-03    10.199        .53473E-07** at limit **
  16  Prefactor     .10000E-03    87.354        .20766E-05** at limit **
  17  Prefactor     61.205        46.546        .13159E-04    .28770E-05
  18  Prefactor     .10000E-03    11.354        .96112E-06** at limit **
  19  norm          .10000E-03    5.9284        .96495E-08** at limit **
  20  norm          .10000E-03    2.5881        .45617E-07** at limit **
  21  norm          .10000E-03    4.2349       -.12555E-06** at limit **
  22  Prefactor     10.017        12.958        .21660E-06   -.64264E-04
  23  Prefactor     .10000E-03    25.091        .10763E-05** at limit **
  24  norm          7.2584        6.6003        .16224E-05   -.76630E-04
  25  Prefactor     15.500        28.931       -.21366E-05   -.17965E-04
  26  norm          2.0088        1.5921        .19432E-07   -.14565E-03
  27  norm          8.2554        6.2972        .18509E-05   -.72190E-04
  28  Prefactor     .10109E-03    24.346        .12017E-05** at limit **
  29  Prefactor     2.5576        4.2715        .14217E-06   -.39245E-03
  30  Prefactor     .10000E-03    12.881       -.44067E-05** at limit **
  31  norm          10.300        15.775       -.41344E-06   -.26340E-04
  32  Prefactor     .10000E-03    4.6031        .10114E-05** at limit **
  33  Prefactor     4.2654        5.2930       -.11898E-05   -.25121E-03
  34  Normalizat    1.1022        .22945        .13463E-05   -.17858E-03
  35  Prefactor     .87245        .22694       -.61848E-06   -.50076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2331
  Prefactor  = 24.094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.23016
  norm       = 0.0001
  Prefactor  = 9.87132
  Prefactor  = 24.8721
  norm       = 2.66323
  Prefactor  = 0.0001
  Prefactor  = 28.0786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.205
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0171
  Prefactor  = 0.0001
  norm       = 7.2584
  Prefactor  = 15.5004
  norm       = 2.00877
  norm       = 8.25539
  Prefactor  = 0.000101088
  Prefactor  = 2.55759
  Prefactor  = 0.0001
  norm       = 10.2996
  Prefactor  = 0.0001
  Prefactor  = 4.26538
  Normalizat = 1.10223
  Prefactor  = 0.872448
 **********
 **   18 **HESSE 
 **********

 FCN=   4265.628     FROM HESSE     STATUS=OK           780 CALLS     5786 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.233        46.493        .96414E-04   -1.4877    
   4  Prefactor     24.094        14.445        .81603E-04   -1.4726    
   5  Prefactor     .10000E-03    3.0235        .11087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6905        .13788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2302        9.2529        .13194E-03   -1.5100    
   9  norm          .10000E-03    13.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8713        6.1493        .11484E-03   -1.5079    
  11  Prefactor     24.872        60.447        .80276E-04   -1.4710    
  12  norm          2.6632        7.3215        .24980E-03   -1.5382    
  13  Prefactor     .10000E-03    4.4712        .13466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.079        29.481        .75614E-04   -1.4648    
  15  Prefactor     .10000E-03    10.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    87.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     61.205        46.510        .25656E-03   -1.4142    
  18  Prefactor     .10000E-03    11.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.9308        .15532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5883        .10261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.2471        .13120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.017        12.948        .12655E-03   -1.5075    
  23  Prefactor     .10000E-03    25.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.2584        6.5878        .14887E-03   -1.5169    
  25  Prefactor     15.500        28.928        .10174E-03   -1.4920    
  26  norm          2.0088        1.5844        .67120E-04   -1.5424    
  27  norm          8.2554        6.2883        .13441E-03   -1.5133    
  28  Prefactor     .10109E-03    31.406        .82542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.5576        4.2410        .16273E-03   -1.5388    
  30  Prefactor     .10000E-03    12.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          10.300        15.766        .12491E-03   -1.5066    
  32  Prefactor     .10000E-03    4.6544        .13663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     4.2654        5.3011        .16009E-03   -1.5295    
  34  Normalizat    1.1022        .27859        .23952E-03   -.89680    
  35  Prefactor     .87245        .27146        .28019E-03   -.97111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73987e-10
Minuit parameter uncertainties:
  1  1.70273e-05
  2  5.17838e-05
  3  46.5912
  4  14.4472
  5  7.57272e-06
  6  1.69498e-06
  7  1.07711e-05
  8  9.25436
  9  7.16291e-06
  10  6.14964
  11  60.5966
  12  7.32399
  13  1.04851e-05
  14  29.4961
  15  3.5086e-05
  16  1.44447e-06
  17  46.5371
  18  1.24522e-05
  19  1.41644e-06
  20  3.52279e-07
  21  2.81451e-05
  22  12.9511
  23  0.000104993
  24  6.58843
  25  28.9541
  26  1.58446
  27  6.28883
  28  0.0116995
  29  4.24147
  30  2.28809e-05
  31  15.7725
  32  1.21197e-05
  33  5.30173
  34  0.278961
  35  0.271879
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  2.558e+00  4.241e+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:  8.724e-01  2.719e-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.102e+00  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 356.999 -51.114
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/122621/likelihoodResults_600134401_600393601_4FGL_J2347.9-5106_daily_bin1392.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) = 4265.41844635
delta logL = 0.210042816146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4265.38794886
delta logL = 0.240540302091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63258       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9522       1.0000          .0000       10.000    
     3 'Normalizat'    1.0500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91309       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=   4265.388     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      255 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62918        14.074        .11801E-01    .53204E-03
   2  Index         3.9552        3.9819        .13405        .75124E-04
   3  Normalizat    1.0500        .47889E-01    .40554E-01   -.59282E-04
   4  Prefactor     .91304        .50541E-01    .45172E-01   -.32693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.629179
  Index      = 3.95518
  Normalizat = 1.05001
  Prefactor  = 0.913037
 **********
 **   18 **HESSE 
 **********

 FCN=   4265.388     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62918        38.013        .57425E-03   -1.5549    
   2  Index         3.9552        6.5002        .72794E-02   -.21051    
   3  Normalizat    1.0500        .20308        .24446E-03   -.91373    
   4  Prefactor     .91304        .21200        .27462E-03   -.95687    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.08218e-07
Minuit parameter uncertainties:
  1  9.78668
  2  9.72341
  3  0.203235
  4  0.212192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122621': 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): 102
logL (Free Index) = 4265.38794751
delta logL = 0.240541652718

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  6.292e-01  9.787e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  3.955e+00  9.723e+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.130e-01  2.122e-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.050e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 356.999 -51.114
Photon Index (Free Index): 3.96 +/- 9.72
Photon Flux (Free Index): 5.99e-08 +/- 7.77e-08
Energy Flux (Free Index): 9.04e-06 +/- 1.32e-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/122621/cmap_HighResolution_600134401_600393601_4FGL_J2347.9-5106_daily_bin1392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.83e-03', comment='SUCCESS', energy_flux2='9.04e-06', dlogl='2.41e-01', photon_flux2='5.99e-08', job_status='DONE', time_completed='2021-09-30 05:25:06.976097', photon_index_error2='9.72', photon_index2='3.96', ts='0.49', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.32e-05', EG='1.10', time_epoch_completed='1633004706.98', return_code='0', job_id='122621', GAL2='0.91', EG2='1.05', return_code2='102', photon_flux_error2='7.77e-08', ts2='1.02', photon_index='2.49' WHERE bin_id='1392' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:25:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 122621: <4FGL_J2347.9-5106_daily_bin1392> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin1392> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:10:40 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:10:42 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:42 2021
Terminated at Thu Sep 30 05:25:07 2021
Results reported at Thu Sep 30 05:25:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1392 356.999 -51.1139 600134401 600393601 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 :                                   790.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

