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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1148
RA = 356.999, Dec = -51.1139
tmin = 536889601, tmax = 537148801
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='122258', job_status='RUN', time_executed='2021-09-30 05:10:56.985425', time_epoch_executed='1633003856.99' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122258

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122258/ft1_4FGL_J2347.9-5106_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122258/ft2_4FGL_J2347.9-5106_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122258/ft1_4FGL_J2347.9-5106_daily_bin1148.fits outfile=/scratch/kocevski/122258/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1148.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=536889601.0 tmax=537148801.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.66
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122258/ft1_filtered_4FGL_J2347.9-5106_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/122258/ft2_4FGL_J2347.9-5106_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/122258/ltcube_536889601_537148801_4FGL_J2347.9-5106_daily_bin1148.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/122258/ft2_4FGL_J2347.9-5106_daily_bin1148.fits
.....................!
real 11.91
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122258/ft1_filtered_4FGL_J2347.9-5106_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/122258/ft2_4FGL_J2347.9-5106_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/122258/ltcube_536889601_537148801_4FGL_J2347.9-5106_daily_bin1148.fits outfile=/scratch/kocevski/122258/expmap_536889601_537148801_4FGL_J2347.9-5106_daily_bin1148.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/122258/ltcube_536889601_537148801_4FGL_J2347.9-5106_daily_bin1148.fits
.....................!
real 192.16
user 186.10
sys 5.42

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/122258/ft1_filtered_4FGL_J2347.9-5106_daily_bin1148.fits scfile=/scratch/kocevski/122258/ft2_4FGL_J2347.9-5106_daily_bin1148.fits outfile=/scratch/kocevski/122258/cmap_536889601_537148801_4FGL_J2347.9-5106_daily_bin1148.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122258/ft1_filtered_4FGL_J2347.9-5106_daily_bin1148.fits scfile=/scratch/kocevski/122258/ft2_4FGL_J2347.9-5106_daily_bin1148.fits outfile=/scratch/kocevski/122258/cmap_HighResolution_536889601_537148801_4FGL_J2347.9-5106_daily_bin1148.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 1.74
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122258/ft1_filtered_4FGL_J2347.9-5106_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/122258/ft2_4FGL_J2347.9-5106_daily_bin1148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122258/Model_4FGL_J2347.9-5106_daily_bin1148.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/122258/ft1_filtered_4FGL_J2347.9-5106_daily_bin1148.fits.....................!
real 43.29
user 36.51
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.617       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11775E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.219       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .88303E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4199       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1710       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2607       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.785       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12418E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.556       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.5119       1.0000         .10000E-03   10000.    
    20 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9050       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.680       1.0000         .10000E-03   10000.    
    24 'norm      '    14.887       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10303E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.1018       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .87634       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=   4619.426     FROM MIGRAD    STATUS=CONVERGED    965 CALLS     5058 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.620        64.469        .80062E-07   -.32797E-06
   2  Prefactor     .10000E-03    53.768       -.16751E-06** at limit **
   3  Prefactor     .10000E-03    25.922        .12846E-05** at limit **
   4  Prefactor     24.219        12.817        .71700E-07    .60449E-05
   5  Prefactor     .10000E-03    4.0445        .83641E-07** at limit **
   6  Prefactor     .10000E-03    300.20       -.87665E-04** at limit **
   7  Prefactor     .10000E-03    21.277        .10782E-05** at limit **
   8  Prefactor     3.4168        5.5310       -.62895E-06    .85919E-05
   9  norm          .10000E-03    12.360        .14238E-06** at limit **
  10  Prefactor     5.1695        5.1718        .42682E-06    .43302E-04
  11  Prefactor     .10000E-03    33.722       -.16382E-05** at limit **
  12  norm          3.2608        6.1461       -.17179E-05   -.99639E-04
  13  Prefactor     4.4976        12.407       -.15113E-05   -.36358E-04
  14  Prefactor     59.772        43.485       -.32340E-06   -.51198E-04
  15  Prefactor     .10000E-03    11.054        .68370E-06** at limit **
  16  Prefactor     .10000E-03    79.656        .32847E-05** at limit **
  17  Prefactor     31.589        39.581        .22230E-05    .30918E-04
  18  Prefactor     .10000E-03    8.3909        .49410E-07** at limit **
  19  norm          3.5152        31.097       -.35398E-06   -.65858E-05
  20  norm          .10000E-03    2.7206        .20207E-07** at limit **
  21  norm          .10000E-03    2.8649        .93712E-07** at limit **
  22  Prefactor     7.9050        7.2089        .53466E-07    .57998E-04
  23  Prefactor     30.796        79.865        .12042E-04    .49279E-04
  24  norm          14.864        11.841       -.16800E-05    .35825E-03
  25  Prefactor     .10000E-03    19.275       -.53370E-06** at limit **
  26  norm          .10000E-03    .35376        .27202E-07** at limit **
  27  norm          .10000E-03    5.4587       -.38142E-06** at limit **
  28  Prefactor     .10000E-03    10.836       -.36369E-07** at limit **
  29  Prefactor     .10000E-03    1.3207        .58959E-07** at limit **
  30  Prefactor     .10000E-03    18.821       -.67429E-06** at limit **
  31  norm          .10000E-03    12.091        .34856E-06** at limit **
  32  Prefactor     5.1025        5.7963       -.74177E-07   -.62979E-04
  33  Prefactor     .10000E-03    3.5243       -.88503E-07** at limit **
  34  Normalizat    1.1078        .21733       -.99322E-06   -.31591E-03
  35  Prefactor     .87574        .22644        .24283E-06    .17622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.6202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2185
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 3.41676
  norm       = 0.0001
  Prefactor  = 5.16954
  Prefactor  = 0.0001
  norm       = 3.26076
  Prefactor  = 4.49765
  Prefactor  = 59.7717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.5891
  Prefactor  = 0.0001
  norm       = 3.5152
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.90495
  Prefactor  = 30.7965
  norm       = 14.8641
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.10248
  Prefactor  = 0.0001
  Normalizat = 1.10778
  Prefactor  = 0.875739
 **********
 **   18 **HESSE 
 **********

 FCN=   4619.426     FROM HESSE     STATUS=OK           762 CALLS     5820 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.620        64.458        .71259E-04   -1.4583    
   2  Prefactor     .10000E-03    54.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.219        12.819        .81395E-04   -1.4723    
   5  Prefactor     .10000E-03    4.0627        .13348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    289.45        .68110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4168        5.2320        .18614E-03   -1.5338    
   9  norm          .10000E-03    12.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1695        5.1729        .14006E-03   -1.5253    
  11  Prefactor     .10000E-03    33.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2608        6.1562        .10677E-02   -1.5347    
  13  Prefactor     4.4976        12.366        .94786E-03   -1.5284    
  14  Prefactor     59.772        43.462        .51890E-04   -1.4160    
  15  Prefactor     .10000E-03    11.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    79.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.589        39.583        .71328E-04   -1.4583    
  18  Prefactor     .10000E-03    8.4246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.5152        31.109        .21573E-03   -1.5333    
  20  norm          .10000E-03    2.7243        .10948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8663        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.9050        7.1825        .14261E-03   -1.5146    
  23  Prefactor     30.796        80.315        .72336E-04   -1.4598    
  24  norm          14.864        11.849        .10381E-03   -1.4937    
  25  Prefactor     .10000E-03    19.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .35718        .39439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.5819        .30945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.3276        .76226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    12.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     5.1025        5.7923        .16529E-03   -1.5256    
  33  Prefactor     .10000E-03    3.6016        .12452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1078        .25402        .23077E-03   -.89502    
  35  Prefactor     .87574        .26387        .27526E-03   -.96994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31068e-10
Minuit parameter uncertainties:
  1  64.6005
  2  0.000194932
  3  6.77694e-05
  4  12.8207
  5  8.00188e-06
  6  0.00194598
  7  1.05759e-05
  8  5.23267
  9  1.3871e-05
  10  5.17334
  11  3.54135e-05
  12  6.15736
  13  12.373
  14  43.4852
  15  0.000131592
  16  0.000384779
  17  39.6161
  18  6.56136e-07
  19  20.9288
  20  2.38692e-06
  21  8.62344e-06
  22  7.18324
  23  80.5988
  24  11.8511
  25  7.0966e-05
  26  2.34521e-07
  27  6.46153e-05
  28  3.02915e-05
  29  2.27299e-06
  30  2.0395e-05
  31  3.43247e-05
  32  5.79296
  33  2.08417e-05
  34  0.254305
  35  0.264257
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  8.757e-01  2.643e-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.108e+00  2.543e-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: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/122258/likelihoodResults_536889601_537148801_4FGL_J2347.9-5106_daily_bin1148.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) = 4619.42924043
delta logL = -0.00351169828809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4619.42572874
delta logL = -2.4629116524e-09

Fit tolerance = 1e-08

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

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

 FCN=   4619.426     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      232 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6301        .76330E-03** at limit **
   2  Index         2.4758        6.2325        .50000        .36302E-04
   3  Normalizat    1.1078        .23747        .23078E-03    .53253E-04
   4  Prefactor     .87573        .25600        .27525E-03    .80830E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.47576
  Normalizat = 1.10779
  Prefactor  = 0.875734
 **********
 **   18 **HESSE 
 **********

 FCN=   4619.426     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3407        .15266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4758        6.2361        .50000       -.52921    
   3  Normalizat    1.1078        .23774        .92311E-05   -.89502    
   4  Prefactor     .87573        .25629        .11010E-04   -.96994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93083e-09
Minuit parameter uncertainties:
  1  9.77792e-05
  2  4.33293
  3  0.237965
  4  0.25664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122258': 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) = 4619.42572864
delta logL = 9.43573468248e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  8.757e-01  2.566e-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.108e+00  2.380e-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/122258/cmap_HighResolution_536889601_537148801_4FGL_J2347.9-5106_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-09-30 05:25:04.909406', job_id='122258', GAL2='0.88', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1633004704.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='9.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1148' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:25:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 122258: <4FGL_J2347.9-5106_daily_bin1148> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1148 356.999 -51.1139 536889601 537148801 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 :                                   835.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            896 sec.

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

