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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin832
RA = 356.999, Dec = -51.1139
tmin = 454982401, tmax = 455241601
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='120800', job_status='RUN', time_executed='2021-09-30 05:05:36.992788', time_epoch_executed='1633003536.99' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='832'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/120800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/120800/ft1_4FGL_J2347.9-5106_daily_bin832.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/120800/ft2_4FGL_J2347.9-5106_daily_bin832.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/120800/ft1_4FGL_J2347.9-5106_daily_bin832.fits outfile=/scratch/kocevski/120800/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin832.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=454982401.0 tmax=455241601.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.50
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/120800/ft1_filtered_4FGL_J2347.9-5106_daily_bin832.fits" evtable="EVENTS" scfile=/scratch/kocevski/120800/ft2_4FGL_J2347.9-5106_daily_bin832.fits sctable="SC_DATA" outfile=/scratch/kocevski/120800/ltcube_454982401_455241601_4FGL_J2347.9-5106_daily_bin832.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/120800/ft2_4FGL_J2347.9-5106_daily_bin832.fits
.....................!
real 12.03
user 11.70
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/120800/ft1_filtered_4FGL_J2347.9-5106_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/120800/ft2_4FGL_J2347.9-5106_daily_bin832.fits sctable="SC_DATA" expcube=/scratch/kocevski/120800/ltcube_454982401_455241601_4FGL_J2347.9-5106_daily_bin832.fits outfile=/scratch/kocevski/120800/expmap_454982401_455241601_4FGL_J2347.9-5106_daily_bin832.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/120800/ltcube_454982401_455241601_4FGL_J2347.9-5106_daily_bin832.fits
.....................!
real 190.22
user 185.00
sys 4.88

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/120800/ft1_filtered_4FGL_J2347.9-5106_daily_bin832.fits scfile=/scratch/kocevski/120800/ft2_4FGL_J2347.9-5106_daily_bin832.fits outfile=/scratch/kocevski/120800/cmap_HighResolution_454982401_455241601_4FGL_J2347.9-5106_daily_bin832.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/120800/ft1_filtered_4FGL_J2347.9-5106_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/120800/ft2_4FGL_J2347.9-5106_daily_bin832.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/120800/Model_4FGL_J2347.9-5106_daily_bin832.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/120800/ft1_filtered_4FGL_J2347.9-5106_daily_bin832.fits.....................!
real 41.83
user 40.56
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1448       1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.607       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19905       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.482       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0105       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9139       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28189E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.290       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.052       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.933       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.733       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.412       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.4387       1.0000         .10000E-03   10000.    
    27 'norm      '    5.7034       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .95286       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    16.984       1.0000         .10000E-03   10000.    
    31 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .65321       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0300       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .98726       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=   5684.707     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     5075 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.866       -.19480E-05** at limit **
   2  Prefactor     2.1374        37.757       -.36465E-05    .56197E-04
   3  Prefactor     43.702        49.850        .26623E-05    .20448E-03
   4  Prefactor     .10000E-03    2.5462       -.47294E-07** at limit **
   5  Prefactor     .18168        10.105       -.41941E-05    .67798E-03
   6  Prefactor     12.467        27.928       -.26566E-06    .36249E-04
   7  Prefactor     .10000E-03    4.3261       -.56877E-06** at limit **
   8  Prefactor     3.0102        4.0140       -.16213E-06    .37408E-04
   9  norm          .10000E-03    8.8141        .62230E-08** at limit **
  10  Prefactor     .10000E-03    2.0251       -.98231E-07** at limit **
  11  Prefactor     .10000E-03    15.704       -.17386E-06** at limit **
  12  norm          2.9135        4.4428       -.14226E-06    .43825E-04
  13  Prefactor     .10000E-03    6.2976       -.73994E-06** at limit **
  14  Prefactor     30.290        32.000       -.68657E-06    .90565E-04
  15  Prefactor     16.045        11.756       -.17923E-06    .68414E-04
  16  Prefactor     .10000E-03    29.924        .34753E-06** at limit **
  17  Prefactor     22.929        24.500       -.13433E-06    .31894E-04
  18  Prefactor     16.727        18.709       -.65326E-06    .96362E-04
  19  norm          .10000E-03    3.7662        .28036E-06** at limit **
  20  norm          .10000E-03    2.1669       -.11731E-07** at limit **
  21  norm          .10000E-03    1.7545       -.42010E-07** at limit **
  22  Prefactor     .10000E-03    3.1178       -.12374E-06** at limit **
  23  Prefactor     43.425        36.616       -.13866E-05    .15764E-04
  24  norm          .10000E-03    1.6018       -.10537E-06** at limit **
  25  Prefactor     .10000E-03    6.5371       -.20972E-06** at limit **
  26  norm          2.4386        1.3943       -.26094E-07    .59045E-03
  27  norm          5.7008        6.0308       -.13792E-06    .15863E-03
  28  Prefactor     .95312        25.884        .83610E-05    .19481E-03
  29  Prefactor     .10000E-03    1.8905       -.56862E-06** at limit **
  30  Prefactor     16.992        26.437        .12549E-05    .18633E-03
  31  norm          .10000E-03    10.542        .47574E-07** at limit **
  32  Prefactor     .62524        4.2089       -.29097E-05    .59008E-03
  33  Prefactor     .10000E-03    3.7670       -.87162E-06** at limit **
  34  Normalizat    1.0302        .20495        .41464E-05    .62245E-03
  35  Prefactor     .98726        .20262       -.31239E-06    .78397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 2.13743
  Prefactor  = 43.7021
  Prefactor  = 0.0001
  Prefactor  = 0.181683
  Prefactor  = 12.4673
  Prefactor  = 0.0001
  Prefactor  = 3.01019
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91354
  Prefactor  = 0.0001
  Prefactor  = 30.2899
  Prefactor  = 16.0455
  Prefactor  = 0.0001
  Prefactor  = 22.9288
  Prefactor  = 16.7275
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.4255
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43864
  norm       = 5.70083
  Prefactor  = 0.953118
  Prefactor  = 0.0001
  Prefactor  = 16.9925
  norm       = 0.0001
  Prefactor  = 0.625236
  Prefactor  = 0.0001
  Normalizat = 1.03021
  Prefactor  = 0.987262
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.707     FROM HESSE     STATUS=OK           776 CALLS     5851 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1374        37.666        .28140E-03   -1.5416    
   3  Prefactor     43.702        51.827        .60710E-04   -1.4385    
   4  Prefactor     .10000E-03    2.5504        .11750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .18168        100.12        .39135E-02   -1.5623    
   6  Prefactor     12.467        27.892        .11338E-03   -1.5002    
   7  Prefactor     .10000E-03    4.3651        .15330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0102        3.9984        .16527E-03   -1.5361    
   9  norm          .10000E-03    8.8159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0564        .10470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9135        4.4271        .19037E-03   -1.5367    
  13  Prefactor     .10000E-03    21.942        .36045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.290        31.462        .72800E-04   -1.4607    
  15  Prefactor     16.045        11.751        .99968E-04   -1.4907    
  16  Prefactor     .10000E-03    29.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.929        24.477        .83643E-04   -1.4750    
  18  Prefactor     16.727        18.698        .97911E-04   -1.4890    
  19  norm          .10000E-03    3.7663        .14288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1679        .10838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.7547        .97518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1432        .12998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     43.425        36.536        .60845E-04   -1.4389    
  24  norm          .10000E-03    1.6026        .93078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.5584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.4386        1.3857        .61280E-04   -1.5396    
  27  norm          5.7008        6.0322        .84096E-03   -1.5230    
  28  Prefactor     .95312        10.701        .75193E-01   -1.5513    
  29  Prefactor     .10000E-03    1.9135        .10125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     16.992        26.422        .97186E-04   -1.4883    
  31  norm          .10000E-03    10.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .62524        14.150        .24770E-02   -1.5550    
  33  Prefactor     .10000E-03    3.8951        .28597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0302        .23659        .23589E-03   -.92025    
  35  Prefactor     .98726        .24158        .26279E-03   -.93155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24707e-08
Minuit parameter uncertainties:
  1  0.000524533
  2  17.9582
  3  51.8802
  4  6.92422e-06
  5  8.54195
  6  27.921
  7  1.42131e-05
  8  3.99871
  9  6.51896e-06
  10  1.53132e-05
  11  2.06097e-05
  12  4.42758
  13  7.95327e-05
  14  31.4788
  15  11.7522
  16  1.63109e-05
  17  24.4878
  18  18.7043
  19  3.52248e-06
  20  1.15809e-06
  21  1.31279e-06
  22  1.39464e-05
  23  36.5551
  24  1.43095e-06
  25  2.74745e-05
  26  1.38574
  27  6.03288
  28  6.38826
  29  1.01155e-05
  30  26.4406
  31  5.79868e-06
  32  5.94983
  33  4.28798e-05
  34  0.236832
  35  0.241849
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  1.012e-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:  9.873e-01  2.418e-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.030e+00  2.368e-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: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/120800/likelihoodResults_454982401_455241601_4FGL_J2347.9-5106_daily_bin832.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) = 5684.70912251
delta logL = -0.00248682700749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5684.70663565
delta logL = 3.78613549401e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4742       1.0000          .0000       10.000    
     3 'Normalizat'    1.0302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98727       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5684.707     FROM MIGRAD    STATUS=FAILED        84 CALLS      229 TOTAL
                     EDM=   .17E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    228.91        .10194E-02** at limit **
   2  Index         2.4612        6.0273        .20000        .58000E-04
   3  Normalizat    1.0302        .56284E-01    .23589E-03   -.57786E-04
   4  Prefactor     .98726        .61818E-01    .26278E-03   -.22713E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5684.707     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      391 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    228.91        .24567E-03** at limit **
   2  Index         2.4612        6.0273        .10711E-04    .58000E-04
   3  Normalizat    1.0302        .56284E-01    .33979E-06   -.57786E-04
   4  Prefactor     .98726        .61818E-01    .27681E-06   -.22713E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5684.707     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      441 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8328        .20388E-02** at limit **
   2  Index         1.8285        5.2933        .50000       -.41878E-06
   3  Normalizat    1.0302        .21768        .94356E-05    .22893E-04
   4  Prefactor     .98726        .23905        .10511E-04    .63596E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82853
  Normalizat = 1.03021
  Prefactor  = 0.987256
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.707     FROM HESSE     STATUS=OK            29 CALLS      470 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4425        .40776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8285        5.2448        .50000       -.68709    
   3  Normalizat    1.0302        .21750        .18871E-05   -.92025    
   4  Prefactor     .98726        .23881        .21023E-05   -.93156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68143e-11
Minuit parameter uncertainties:
  1  8.28348e-07
  2  73.3821
  3  0.217689
  4  0.239067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/120800': 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) = 5684.70663007
delta logL = 5.61621345696e-06

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  8.283e-07  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  1.829e+00  7.338e+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.873e-01  2.391e-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.030e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-30 05:21:34.712323', job_id='120800', GAL2='0.99', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1633004494.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='832' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:21:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 120800: <4FGL_J2347.9-5106_daily_bin832> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin832> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 05:05:19 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:05:21 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:05:21 2021
Terminated at Thu Sep 30 05:21:35 2021
Results reported at Thu Sep 30 05:21:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin832 356.999 -51.1139 454982401 455241601 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 :                                   956.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

