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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin189
RA = 356.999, Dec = -51.1139
tmin = 288316801, tmax = 288576001
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='115265', job_status='RUN', time_executed='2021-09-30 04:45:43.703803', time_epoch_executed='1633002343.7' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115265

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115265/ft1_4FGL_J2347.9-5106_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115265/ft2_4FGL_J2347.9-5106_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115265/ft1_4FGL_J2347.9-5106_daily_bin189.fits outfile=/scratch/kocevski/115265/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin189.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=288316801.0 tmax=288576001.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.65
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/115265/ft2_4FGL_J2347.9-5106_daily_bin189.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/115265/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin189.fits evtable="EVENTS" outfile="/scratch/kocevski/115265/ft1_filtered_4FGL_J2347.9-5106_daily_bin189.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/115265/ft1_filtered_4FGL_J2347.9-5106_daily_bin189.fits" evtable="EVENTS" scfile=/scratch/kocevski/115265/ft2_4FGL_J2347.9-5106_daily_bin189.fits sctable="SC_DATA" outfile=/scratch/kocevski/115265/ltcube_288316801_288576001_4FGL_J2347.9-5106_daily_bin189.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/115265/ft2_4FGL_J2347.9-5106_daily_bin189.fits
.....................!
real 11.83
user 11.52
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115265/ft1_filtered_4FGL_J2347.9-5106_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/115265/ft2_4FGL_J2347.9-5106_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/115265/ltcube_288316801_288576001_4FGL_J2347.9-5106_daily_bin189.fits outfile=/scratch/kocevski/115265/expmap_288316801_288576001_4FGL_J2347.9-5106_daily_bin189.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/115265/ltcube_288316801_288576001_4FGL_J2347.9-5106_daily_bin189.fits
.....................!
real 191.52
user 187.06
sys 4.13

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/115265/ft1_filtered_4FGL_J2347.9-5106_daily_bin189.fits scfile=/scratch/kocevski/115265/ft2_4FGL_J2347.9-5106_daily_bin189.fits outfile=/scratch/kocevski/115265/cmap_288316801_288576001_4FGL_J2347.9-5106_daily_bin189.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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115265/ft1_filtered_4FGL_J2347.9-5106_daily_bin189.fits scfile=/scratch/kocevski/115265/ft2_4FGL_J2347.9-5106_daily_bin189.fits outfile=/scratch/kocevski/115265/cmap_HighResolution_288316801_288576001_4FGL_J2347.9-5106_daily_bin189.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115265/ft1_filtered_4FGL_J2347.9-5106_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/115265/ft2_4FGL_J2347.9-5106_daily_bin189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115265/Model_4FGL_J2347.9-5106_daily_bin189.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/115265/ft1_filtered_4FGL_J2347.9-5106_daily_bin189.fits....................!
real 36.34
user 35.08
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50119E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.090       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.689       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1113       1.0000         .10000E-03   10000.    
     9 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9809       1.0000         .10000E-03   10000.    
    11 'Prefactor '    75.667       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7954       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0454       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.871       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6819       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.231       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10614E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.1683       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.3010       1.0000         .10000E-03   10000.    
    27 'norm      '    3.1300       1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.541       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    21.372       1.0000         .10000E-03   10000.    
    31 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.6046       1.0000         .10000E-03   10000.    
    33 'Prefactor '    12.106       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1574       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .67209       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=   4360.095     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     5037 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    220.44       -.19745E-04** at limit **
   2  Prefactor     21.096        29.089        .34092E-06    .17797E-04
   3  Prefactor     .10000E-03    16.118       -.85946E-06** at limit **
   4  Prefactor     .10000E-03    4.1473        .61502E-07** at limit **
   5  Prefactor     .10000E-03    2.9016        .16133E-07** at limit **
   6  Prefactor     .10000E-03    17.223       -.33415E-06** at limit **
   7  Prefactor     11.691        10.255        .10047E-06   -.63266E-06
   8  Prefactor     3.1091        6.4581        .24109E-06   -.43241E-04
   9  norm          .10000E-03    18.185        .52042E-06** at limit **
  10  Prefactor     7.9823        5.4884        .11215E-06    .20741E-04
  11  Prefactor     75.654        87.308       -.29413E-06   -.27821E-04
  12  norm          5.7975        7.6454        .15597E-06    .43044E-05
  13  Prefactor     5.0491        10.931        .66649E-05   -.69259E-04
  14  Prefactor     .10000E-03    17.723       -.16481E-06** at limit **
  15  Prefactor     16.873        11.969       -.23887E-06   -.15120E-04
  16  Prefactor     .10000E-03    40.764       -.14845E-05** at limit **
  17  Prefactor     .10000E-03    25.530        .33341E-06** at limit **
  18  Prefactor     4.6834        9.9587        .15378E-06   -.71516E-05
  19  norm          .10000E-03    4.6221        .46519E-08** at limit **
  20  norm          .10000E-03    2.9277       -.22778E-08** at limit **
  21  norm          .10000E-03    3.8354       -.25965E-06** at limit **
  22  Prefactor     10.233        9.1295        .14625E-06   -.10343E-04
  23  Prefactor     .10000E-03    106.85        .54001E-05** at limit **
  24  norm          2.1682        5.0821        .17251E-05   -.79320E-04
  25  Prefactor     .10000E-03    13.512        .27945E-06** at limit **
  26  norm          7.3011        2.1396        .24021E-07    .44092E-04
  27  norm          3.1295        3.2168       -.76142E-07   -.30924E-04
  28  Prefactor     27.550        21.901        .25150E-06   -.13616E-04
  29  Prefactor     .10000E-03    5.2948       -.82255E-06** at limit **
  30  Prefactor     21.341        32.459       -.28301E-06   -.23709E-04
  31  norm          .10000E-03    9.4604       -.43578E-07** at limit **
  32  Prefactor     6.6050        4.9585        .14490E-07   -.77669E-05
  33  Prefactor     12.103        8.7322        .10047E-06    .98145E-05
  34  Normalizat    1.1572        .22005       -.34788E-06   -.68875E-05
  35  Prefactor     .67199        .21768       -.16802E-05   -.39715E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100082
  Prefactor  = 21.0958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6911
  Prefactor  = 3.10907
  norm       = 0.0001
  Prefactor  = 7.98235
  Prefactor  = 75.6543
  norm       = 5.79751
  Prefactor  = 5.04909
  Prefactor  = 0.0001
  Prefactor  = 16.8735
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.6834
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2334
  Prefactor  = 0.000100004
  norm       = 2.16822
  Prefactor  = 0.0001
  norm       = 7.30109
  norm       = 3.12953
  Prefactor  = 27.5497
  Prefactor  = 0.0001
  Prefactor  = 21.3414
  norm       = 0.0001
  Prefactor  = 6.60499
  Prefactor  = 12.1025
  Normalizat = 1.15717
  Prefactor  = 0.67199
 **********
 **   18 **HESSE 
 **********

 FCN=   4360.095     FROM HESSE     STATUS=OK           770 CALLS     5807 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    234.51        .19199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.096        29.069        .87217E-04   -1.4789    
   3  Prefactor     .10000E-03    16.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1580        .13132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9041        .10985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.691        10.278        .11717E-03   -1.5024    
   8  Prefactor     3.1091        6.4492        .22988E-03   -1.5355    
   9  norm          .10000E-03    18.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9823        5.4914        .11955E-03   -1.5143    
  11  Prefactor     75.654        87.414        .46160E-04   -1.3966    
  12  norm          5.7975        7.6372        .16683E-03   -1.5226    
  13  Prefactor     5.0491        11.071        .89507E-03   -1.5259    
  14  Prefactor     .10000E-03    17.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.873        11.967        .97509E-04   -1.4886    
  16  Prefactor     .10000E-03    40.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6834        9.9412        .18598E-03   -1.5275    
  19  norm          .10000E-03    4.6230        .13865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.9281        .11033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.8470        .12616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.233        9.1282        .12527E-03   -1.5068    
  23  Prefactor     .10000E-03    108.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.1682        5.0399        .21676E-03   -1.5413    
  25  Prefactor     .10000E-03    13.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.3011        2.1413        .48398E-04   -1.5167    
  27  norm          3.1295        3.2201        .11599E-03   -1.5354    
  28  Prefactor     27.550        21.977        .76338E-04   -1.4658    
  29  Prefactor     .10000E-03    5.4269        .29372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     21.341        32.303        .86641E-04   -1.4784    
  31  norm          .10000E-03    9.4617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     6.6050        4.9592        .12259E-03   -1.5194    
  33  Prefactor     12.103        8.7603        .11513E-03   -1.5012    
  34  Normalizat    1.1572        .26655        .23322E-03   -.87937    
  35  Prefactor     .67199        .25926        .30939E-03   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67847e-10
Minuit parameter uncertainties:
  1  0.00881146
  2  29.0887
  3  9.6619e-05
  4  3.72908e-06
  5  1.8198e-06
  6  2.21637e-05
  7  10.2796
  8  6.45067
  9  7.03174e-05
  10  5.49174
  11  87.5627
  12  7.63851
  13  11.0752
  14  5.59857e-05
  15  11.9683
  16  0.000296878
  17  2.15647e-05
  18  9.94471
  19  3.82649e-07
  20  4.2802e-07
  21  2.3319e-05
  22  9.12942
  23  0.00136455
  24  5.04087
  25  3.24291e-05
  26  2.14137
  27  3.22031
  28  21.9835
  29  2.51745e-05
  30  32.3295
  31  4.24588e-08
  32  4.95946
  33  8.7612
  34  0.266861
  35  0.259727
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  2.517e-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:  6.720e-01  2.597e-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.157e+00  2.669e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115265/likelihoodResults_288316801_288576001_4FGL_J2347.9-5106_daily_bin189.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) = 4360.09629268
delta logL = -0.000879370696566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4360.09541273
delta logL = 5.77056198381e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5262       1.0000          .0000       10.000    
     3 'Normalizat'    1.1572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67197       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=   4360.095     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      231 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6016        .38989E-01** at limit **
   2  Index         2.5694        5.7041        .50000       -.71237E-04
   3  Normalizat    1.1572        .90766E-02    .52747E-01   -.79357E-03
   4  Prefactor     .67199        .94598E-02    .69909E-01   -.44476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.56942
  Normalizat = 1.15717
  Prefactor  = 0.671992
 **********
 **   18 **HESSE 
 **********

 FCN=   4360.095     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      262 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    699.55        .22742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5694        8.6610        .50000       -.50764    
   3  Normalizat    1.1572        .65010E-01    .23322E-03   -.87937    
   4  Prefactor     .67199        .67556E-01    .30939E-03   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.11272e-07
Minuit parameter uncertainties:
  1  0.000269446
  2  46.7394
  3  0.065015
  4  0.067564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115265': 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) = 4360.09541203
delta logL = 1.27947896544e-06

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  2.694e-04  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.569e+00  4.674e+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:  6.720e-01  6.756e-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:  1.157e+00  6.501e-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/115265/cmap_HighResolution_288316801_288576001_4FGL_J2347.9-5106_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-30 04:59:19.385874', job_id='115265', GAL2='0.67', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1633003159.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='189' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:59:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 115265: <4FGL_J2347.9-5106_daily_bin189> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin189> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 04:45:33 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:45:34 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:45:34 2021
Terminated at Thu Sep 30 04:59:20 2021
Results reported at Thu Sep 30 04:59:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin189 356.999 -51.1139 288316801 288576001 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 :                                   808.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

