/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 4 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 = 7468
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2347.9-5106_daily_bin423
RA = 356.999, Dec = -51.1139
tmin = 348969601, tmax = 349228801
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='116756', job_status='RUN', time_executed='2021-09-30 04:50:33.356302', time_epoch_executed='1633002633.36' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/116756

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/116756/ft1_4FGL_J2347.9-5106_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/116756/ft2_4FGL_J2347.9-5106_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/116756/ft1_4FGL_J2347.9-5106_daily_bin423.fits outfile=/scratch/kocevski/116756/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin423.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=348969601.0 tmax=349228801.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 3.76
user 3.53
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/116756/ft2_4FGL_J2347.9-5106_daily_bin423.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/116756/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin423.fits evtable="EVENTS" outfile="/scratch/kocevski/116756/ft1_filtered_4FGL_J2347.9-5106_daily_bin423.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/116756/ft1_filtered_4FGL_J2347.9-5106_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/116756/ft2_4FGL_J2347.9-5106_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/116756/ltcube_348969601_349228801_4FGL_J2347.9-5106_daily_bin423.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/116756/ft2_4FGL_J2347.9-5106_daily_bin423.fits
.....................!
real 11.72
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/116756/ft1_filtered_4FGL_J2347.9-5106_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/116756/ft2_4FGL_J2347.9-5106_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/116756/ltcube_348969601_349228801_4FGL_J2347.9-5106_daily_bin423.fits outfile=/scratch/kocevski/116756/expmap_348969601_349228801_4FGL_J2347.9-5106_daily_bin423.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/116756/ltcube_348969601_349228801_4FGL_J2347.9-5106_daily_bin423.fits
.....................!
real 191.94
user 186.30
sys 5.31

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/116756/ft1_filtered_4FGL_J2347.9-5106_daily_bin423.fits scfile=/scratch/kocevski/116756/ft2_4FGL_J2347.9-5106_daily_bin423.fits outfile=/scratch/kocevski/116756/cmap_348969601_349228801_4FGL_J2347.9-5106_daily_bin423.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/116756/ft1_filtered_4FGL_J2347.9-5106_daily_bin423.fits scfile=/scratch/kocevski/116756/ft2_4FGL_J2347.9-5106_daily_bin423.fits outfile=/scratch/kocevski/116756/cmap_HighResolution_348969601_349228801_4FGL_J2347.9-5106_daily_bin423.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/116756/ft1_filtered_4FGL_J2347.9-5106_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/116756/ft2_4FGL_J2347.9-5106_daily_bin423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/116756/Model_4FGL_J2347.9-5106_daily_bin423.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/116756/ft1_filtered_4FGL_J2347.9-5106_daily_bin423.fits.....................!
real 37.76
user 36.52
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.895       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    79.193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6212       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.940       1.0000         .10000E-03   10000.    
     9 'norm      '    45.000       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0391       1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.985       1.0000         .10000E-03   10000.    
    12 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.200       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.461       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.8358       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0247       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7015       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    15.937       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    12.544       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .16383E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .18194E-02   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .86103       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0081       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=   4686.696     FROM MIGRAD    STATUS=CONVERGED    967 CALLS     5080 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.893        78.127       -.45806E-06    .30049E-05
   2  Prefactor     .10000E-03    9.1129       -.17408E-06** at limit **
   3  Prefactor     79.163        54.555        .50444E-06    .28410E-04
   4  Prefactor     2.6248        9.8356       -.19817E-05    .39252E-04
   5  Prefactor     .10000E-03    5.3784       -.34297E-06** at limit **
   6  Prefactor     .10000E-03    18.390       -.42058E-06** at limit **
   7  Prefactor     .10000E-03    7.9188       -.45689E-06** at limit **
   8  Prefactor     15.941        8.4755       -.14484E-06    .51989E-04
   9  norm          45.000        35.413        .15546E-06    .86845E-05
  10  Prefactor     3.0394        3.0819       -.44112E-07    .31098E-04
  11  Prefactor     70.954        81.500       -.20846E-05   -.69313E-05
  12  norm          .10000E-03    2.6631       -.11276E-06** at limit **
  13  Prefactor     .10000E-03    4.0574        .11776E-06** at limit **
  14  Prefactor     37.199        36.642       -.22466E-06   -.71294E-05
  15  Prefactor     .10000E-03    16.769        .12097E-06** at limit **
  16  Prefactor     .10000E-03    202.63       -.30833E-05** at limit **
  17  Prefactor     .10000E-03    30.069        .18532E-07** at limit **
  18  Prefactor     23.464        20.956       -.34728E-06    .12125E-04
  19  norm          .10000E-03    4.3744       -.14742E-06** at limit **
  20  norm          5.8360        5.9202       -.28977E-07    .13181E-05
  21  norm          2.0253        5.2044       -.89121E-07    .42081E-05
  22  Prefactor     9.7004        7.4820        .58747E-07    .11671E-04
  23  Prefactor     .10000E-03    17.162        .12613E-06** at limit **
  24  norm          15.936        7.6968       -.51917E-07    .26142E-05
  25  Prefactor     .10000E-03    12.641       -.63395E-07** at limit **
  26  norm          12.541        2.7635        .23042E-06    .34013E-03
  27  norm          .10000E-03    3.2005       -.10367E-07** at limit **
  28  Prefactor     .10000E-03    10.896       -.34692E-06** at limit **
  29  Prefactor     .10000E-03    5.7901       -.95340E-06** at limit **
  30  Prefactor     .10000E-03    191.61        .79803E-05** at limit **
  31  norm          .10000E-03    7.7773       -.29830E-08** at limit **
  32  Prefactor     .10000E-03    3.1206       -.38628E-06** at limit **
  33  Prefactor     .10000E-03    3.6548       -.29535E-06** at limit **
  34  Normalizat    .86096        .22857        .18277E-05    .30849E-04
  35  Prefactor     1.0081        .22951       -.73192E-07    .15549E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.8927
  Prefactor  = 0.0001
  Prefactor  = 79.1635
  Prefactor  = 2.62476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9411
  norm       = 45.0004
  Prefactor  = 3.03943
  Prefactor  = 70.9542
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.464
  norm       = 0.0001
  norm       = 5.83601
  norm       = 2.02525
  Prefactor  = 9.7004
  Prefactor  = 0.0001
  norm       = 15.9362
  Prefactor  = 0.0001
  norm       = 12.5407
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.860961
  Prefactor  = 1.00812
 **********
 **   18 **HESSE 
 **********

 FCN=   4686.696     FROM HESSE     STATUS=OK           760 CALLS     5840 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.893        78.138        .51003E-04   -1.4133    
   2  Prefactor     .10000E-03    9.1193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     79.163        55.003        .45129E-04   -1.3926    
   4  Prefactor     2.6248        9.9199        .12595E-02   -1.5384    
   5  Prefactor     .10000E-03    5.4069        .15521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.941        8.4818        .50158E-03   -1.4909    
   9  norm          45.000        35.426        .59767E-04   -1.4365    
  10  Prefactor     3.0394        3.0805        .11715E-03   -1.5359    
  11  Prefactor     70.954        81.592        .47647E-04   -1.4021    
  12  norm          .10000E-03    2.6680        .10907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0650        .13462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.199        36.575        .65711E-04   -1.4487    
  15  Prefactor     .10000E-03    16.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    203.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.464        20.965        .82698E-04   -1.4739    
  19  norm          .10000E-03    4.3764        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.8360        5.9247        .16340E-03   -1.5225    
  21  norm          2.0253        5.1572        .23893E-03   -1.5423    
  22  Prefactor     9.7004        7.4807        .12866E-03   -1.5085    
  23  Prefactor     .10000E-03    17.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          15.936        7.6739        .10033E-03   -1.4909    
  25  Prefactor     .10000E-03    12.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.541        2.7674        .48751E-04   -1.5000    
  27  norm          .10000E-03    3.2147        .11946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.9510        .31902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    188.01        .69745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    7.7782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.1481        .11818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    3.7316        .12789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .86096        .26366        .26449E-03   -.97846    
  35  Prefactor     1.0081        .26782        .26578E-03   -.92459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73025e-10
Minuit parameter uncertainties:
  1  78.2675
  2  4.22142e-06
  3  55.0384
  4  9.92609
  5  1.78159e-05
  6  2.09611e-05
  7  8.24348e-06
  8  8.4824
  9  35.4423
  10  3.08063
  11  81.7213
  12  3.07034e-06
  13  2.58434e-06
  14  36.5969
  15  1.80031e-05
  16  0.000305294
  17  1.66616e-05
  18  20.9717
  19  3.90444e-06
  20  5.92534
  21  5.15835
  22  7.48138
  23  5.07846e-06
  24  7.67442
  25  2.37718e-05
  26  2.76745
  27  5.77238e-06
  28  2.8869e-05
  29  1.37102e-05
  30  0.00059664
  31  1.15717e-06
  32  2.21624e-06
  33  8.07438e-06
  34  0.264055
  35  0.26817
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  1.008e+00  2.682e-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:  8.610e-01  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/116756/likelihoodResults_348969601_349228801_4FGL_J2347.9-5106_daily_bin423.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) = 4686.69662807
delta logL = -0.000798147247224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4686.69583097
delta logL = -1.05027174868e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13314E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5463       1.0000          .0000       10.000    
     3 'Normalizat'    .86102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0081       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=   4686.696     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      226 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    3.5882        .58781E-01** at limit **
   2  Index         2.6252        6.2658        .50000       -.10959E-03
   3  Normalizat    .86096        .62655E-02    .44401E-01    .10164E-03
   4  Prefactor     1.0081        .67972E-02    .43621E-01    .74433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Index      = 2.6252
  Normalizat = 0.860964
  Prefactor  = 1.00812
 **********
 **   18 **HESSE 
 **********

 FCN=   4686.696     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      261 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    718.66        .19959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6252        5.7447        .50000       -.49492    
   3  Normalizat    .86096        .47520E-01    .26448E-03   -.97846    
   4  Prefactor     1.0081        .51502E-01    .26578E-03   -.92459    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.22586e-06
Minuit parameter uncertainties:
  1  0.0103459
  2  38.5084
  3  0.0475225
  4  0.0515049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/116756': 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) = 4686.69582672
delta logL = 3.20305025525e-06

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  1.035e-02  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.625e+00  3.851e+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:  1.008e+00  5.150e-02  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:  8.610e-01  4.752e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-30 05:04:50.761492', job_id='116756', GAL2='1.01', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1633003490.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='423' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:04:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 116756: <4FGL_J2347.9-5106_daily_bin423> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin423> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 04:50:21 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:50:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 04:50:22 2021
Terminated at Thu Sep 30 05:04:51 2021
Results reported at Thu Sep 30 05:04:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin423 356.999 -51.1139 348969601 349228801 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 :                                   853.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

