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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1108
RA = 356.999, Dec = -51.1139
tmin = 526521601, tmax = 526780801
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='121240', job_status='RUN', time_executed='2021-09-30 05:06:44.006041', time_epoch_executed='1633003604.01' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121240

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121240/ft1_4FGL_J2347.9-5106_daily_bin1108.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121240/ft2_4FGL_J2347.9-5106_daily_bin1108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121240/ft1_4FGL_J2347.9-5106_daily_bin1108.fits outfile=/scratch/kocevski/121240/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1108.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=526521601.0 tmax=526780801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.40
user 4.14
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121240/ft1_filtered_4FGL_J2347.9-5106_daily_bin1108.fits" evtable="EVENTS" scfile=/scratch/kocevski/121240/ft2_4FGL_J2347.9-5106_daily_bin1108.fits sctable="SC_DATA" outfile=/scratch/kocevski/121240/ltcube_526521601_526780801_4FGL_J2347.9-5106_daily_bin1108.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/121240/ft2_4FGL_J2347.9-5106_daily_bin1108.fits
.....................!
real 11.67
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121240/ft1_filtered_4FGL_J2347.9-5106_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/121240/ft2_4FGL_J2347.9-5106_daily_bin1108.fits sctable="SC_DATA" expcube=/scratch/kocevski/121240/ltcube_526521601_526780801_4FGL_J2347.9-5106_daily_bin1108.fits outfile=/scratch/kocevski/121240/expmap_526521601_526780801_4FGL_J2347.9-5106_daily_bin1108.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/121240/ltcube_526521601_526780801_4FGL_J2347.9-5106_daily_bin1108.fits
.....................!
real 189.85
user 184.66
sys 4.82

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/121240/ft1_filtered_4FGL_J2347.9-5106_daily_bin1108.fits scfile=/scratch/kocevski/121240/ft2_4FGL_J2347.9-5106_daily_bin1108.fits outfile=/scratch/kocevski/121240/cmap_526521601_526780801_4FGL_J2347.9-5106_daily_bin1108.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121240/ft1_filtered_4FGL_J2347.9-5106_daily_bin1108.fits scfile=/scratch/kocevski/121240/ft2_4FGL_J2347.9-5106_daily_bin1108.fits outfile=/scratch/kocevski/121240/cmap_HighResolution_526521601_526780801_4FGL_J2347.9-5106_daily_bin1108.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.56
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/121240/ft1_filtered_4FGL_J2347.9-5106_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/121240/ft2_4FGL_J2347.9-5106_daily_bin1108.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121240/Model_4FGL_J2347.9-5106_daily_bin1108.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/121240/ft1_filtered_4FGL_J2347.9-5106_daily_bin1108.fits.....................!
real 36.22
user 34.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.463       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.438       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3114       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.273       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.598       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.018       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3328       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7203       1.0000         .10000E-03   10000.    
    21 'norm      '    2.9628       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2714       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .39826E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .65340       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.4675       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.1451       1.0000         .10000E-03   10000.    
    30 'Prefactor '    14.151       1.0000         .10000E-03   10000.    
    31 'norm      '    22.018       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.9696       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .53337       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=   4377.177     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     5044 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.656        64.025        .21115E-06    .14723E-04
   2  Prefactor     .10000E-03    7.1404       -.64666E-07** at limit **
   3  Prefactor     .10000E-03    10.842       -.72560E-07** at limit **
   4  Prefactor     24.633        11.624        .77464E-07   -.15966E-04
   5  Prefactor     14.437        9.7635        .70116E-07   -.66025E-05
   6  Prefactor     .10000E-03    12.735        .38179E-06** at limit **
   7  Prefactor     8.4645        8.8737        .14303E-06   -.54032E-05
   8  Prefactor     7.3107        6.4579        .26751E-06    .19468E-04
   9  norm          .10000E-03    15.850       -.10172E-06** at limit **
  10  Prefactor     12.273        6.7409        .79290E-07   -.16881E-04
  11  Prefactor     .10000E-03    43.350       -.26662E-06** at limit **
  12  norm          23.597        11.625        .27938E-07   -.18328E-04
  13  Prefactor     12.018        9.1654        .18766E-06    .16458E-04
  14  Prefactor     .10000E-03    23.485       -.24005E-06** at limit **
  15  Prefactor     5.3329        10.531        .90189E-06    .42661E-04
  16  Prefactor     .10000E-03    89.259       -.12275E-06** at limit **
  17  Prefactor     .10000E-03    47.173       -.46524E-06** at limit **
  18  Prefactor     .10000E-03    14.323       -.44844E-06** at limit **
  19  norm          .10000E-03    3.9651       -.35693E-07** at limit **
  20  norm          4.7204        4.8996       -.64135E-07    .34524E-05
  21  norm          2.9627        3.8351       -.99861E-08   -.28912E-04
  22  Prefactor     7.2780        6.4479        .67690E-08    .13114E-03
  23  Prefactor     .10000E-03    18.480       -.28670E-06** at limit **
  24  norm          .10000E-03    1.9457       -.21043E-06** at limit **
  25  Prefactor     .10005E-03    10.800       -.77886E-06** at limit **
  26  norm          .10000E-03    .32960       -.42504E-07** at limit **
  27  norm          .65311        4.8174        .28708E-05    .15070E-03
  28  Prefactor     9.4667        14.167        .40767E-06   -.15500E-05
  29  Prefactor     3.1454        2.4954        .27953E-07    .22360E-04
  30  Prefactor     14.153        14.573        .36631E-07    .11562E-04
  31  norm          22.016        22.225       -.10733E-07    .20631E-05
  32  Prefactor     .10000E-03    1.2252       -.38333E-07** at limit **
  33  Prefactor     2.9694        4.5928        .54821E-06    .57671E-04
  34  Normalizat    1.0482        .20730       -.26849E-05    .89195E-04
  35  Prefactor     .53329        .20882        .26784E-05   -.52709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.6558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6331
  Prefactor  = 14.4373
  Prefactor  = 0.0001
  Prefactor  = 8.46454
  Prefactor  = 7.31068
  norm       = 0.0001
  Prefactor  = 12.2733
  Prefactor  = 0.0001
  norm       = 23.5974
  Prefactor  = 12.018
  Prefactor  = 0.0001
  Prefactor  = 5.3329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.7204
  norm       = 2.96271
  Prefactor  = 7.27799
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100049
  norm       = 0.0001
  norm       = 0.65311
  Prefactor  = 9.46667
  Prefactor  = 3.14536
  Prefactor  = 14.1527
  norm       = 22.0159
  Prefactor  = 0.0001
  Prefactor  = 2.96936
  Normalizat = 1.0482
  Prefactor  = 0.533285
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.177     FROM HESSE     STATUS=OK           776 CALLS     5820 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.656        63.906        .34636E-03   -1.4547    
   2  Prefactor     .10000E-03    7.1427        .17266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.633        11.625        .80710E-04   -1.4715    
   5  Prefactor     14.437        9.7609        .10541E-03   -1.4948    
   6  Prefactor     .10000E-03    12.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4645        8.8686        .13778E-03   -1.5126    
   8  Prefactor     7.3107        6.4527        .14834E-03   -1.5167    
   9  norm          .10000E-03    15.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.273        6.7465        .11382E-03   -1.5007    
  11  Prefactor     .10000E-03    43.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.597        11.639        .82459E-04   -1.4736    
  13  Prefactor     12.018        9.1605        .11555E-03   -1.5014    
  14  Prefactor     .10000E-03    23.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.3329        10.531        .17404E-03   -1.5246    
  16  Prefactor     .10000E-03    89.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.9663        .12867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7204        4.9022        .14494E-03   -1.5273    
  21  norm          2.9627        3.8274        .14372E-03   -1.5364    
  22  Prefactor     7.2780        6.1735        .14503E-03   -1.5168    
  23  Prefactor     .10000E-03    18.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.9691        .90362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10005E-03    52.453        .38662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .33345        .37022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .65311        5.0021        .28119E-03   -1.5546    
  28  Prefactor     9.4667        14.171        .13024E-03   -1.5093    
  29  Prefactor     3.1454        2.4931        .89515E-04   -1.5353    
  30  Prefactor     14.153        14.553        .10648E-03   -1.4955    
  31  norm          22.016        22.229        .85362E-04   -1.4769    
  32  Prefactor     .10000E-03    1.2267        .71494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     2.9694        4.5739        .16644E-03   -1.5363    
  34  Normalizat    1.0482        .22865        .20736E-03   -.91433    
  35  Prefactor     .53329        .23175        .29925E-03   -1.1047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10302e-09
Minuit parameter uncertainties:
  1  64.0367
  2  4.07649e-06
  3  2.55579e-06
  4  11.6257
  5  9.76197
  6  1.81502e-05
  7  8.86995
  8  6.45328
  9  5.32429e-06
  10  6.7469
  11  2.1261e-05
  12  11.6406
  13  9.16158
  14  2.62478e-05
  15  10.5348
  16  1.35953e-05
  17  3.05722e-05
  18  1.55366e-06
  19  1.6641e-07
  20  4.90265
  21  3.82775
  22  6.17407
  23  5.08669e-05
  24  1.37026e-05
  25  0.00320957
  26  5.43445e-07
  27  3.61506
  28  14.1761
  29  2.49315
  30  14.5568
  31  22.2372
  32  3.48719e-08
  33  4.57445
  34  0.228863
  35  0.232158
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  5.333e-01  2.322e-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.048e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 356.999 -51.114
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 3.12e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 9.18e-06 +/- 7.28e-06

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) = 4376.53201959
delta logL = 0.64539562102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4376.46860411
delta logL = 0.7088111048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2377       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7602       1.0000          .0000       10.000    
     3 'Normalizat'    1.0652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52007       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=   4376.469     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2370        3.7303        .48935E-02   -.17244E-04
   2  Index         1.7601        .51449        .19968       -.22488E-04
   3  Normalizat    1.0652        .18512        .39638E-01    .14047E-05
   4  Prefactor     .52004        .19643        .68363E-01    .24543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.237
  Index      = 1.76014
  Normalizat = 1.0652
  Prefactor  = 0.520038
 **********
 **   18 **HESSE 
 **********

 FCN=   4376.469     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2370        3.3683        .10417E-03   -1.5296    
   2  Index         1.7601        .52697        .77794E-02   -.70492    
   3  Normalizat    1.0652        .21647        .20589E-03   -.90877    
   4  Prefactor     .52004        .22925        .30261E-03   -1.1107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57544e-10
Minuit parameter uncertainties:
  1  3.36849
  2  0.528665
  3  0.216647
  4  0.229656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121240': 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) = 4376.46860407
delta logL = 0.708811149251

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  4.237e+00  3.368e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  1.760e+00  5.287e-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:  5.200e-01  2.297e-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.065e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.84
Ra Dec: 356.999 -51.114
Photon Index (Free Index): 1.76 +/- 0.53
Photon Flux (Free Index): 1.90e-08 +/- 1.78e-08
Energy Flux (Free Index): 2.57e-05 +/- 3.51e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-08', energy_flux2='2.57e-05', photon_flux_error='2.47e-08', dlogl='7.09e-01', energy_flux='9.18e-06', photon_flux2='1.90e-08', job_status='DONE', time_completed='2021-09-30 05:18:37.475990', photon_index_error2='0.53', photon_index2='1.76', ts='4.41', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='3.51e-05', EG='1.05', time_epoch_completed='1633004317.48', return_code='0', job_id='121240', GAL2='0.52', EG2='1.07', return_code2='0', energy_flux_error='7.28e-06', photon_flux_error2='1.78e-08', ts2='5.84', photon_index='2.49' WHERE bin_id='1108' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:18:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 121240: <4FGL_J2347.9-5106_daily_bin1108> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin1108> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 05:06:03 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:06:04 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:06:04 2021
Terminated at Thu Sep 30 05:18:38 2021
Results reported at Thu Sep 30 05:18:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1108 356.999 -51.1139 526521601 526780801 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 :                                   700.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            755 sec.

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

