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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1040
RA = 356.999, Dec = -51.1139
tmin = 508896001, tmax = 509155201
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='121138', job_status='RUN', time_executed='2021-09-30 05:06:08.740346', time_epoch_executed='1633003568.74' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121138

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121138/ft1_4FGL_J2347.9-5106_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121138/ft2_4FGL_J2347.9-5106_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121138/ft1_4FGL_J2347.9-5106_daily_bin1040.fits outfile=/scratch/kocevski/121138/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1040.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=508896001.0 tmax=509155201.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.70
user 3.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121138/ft1_filtered_4FGL_J2347.9-5106_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/121138/ft2_4FGL_J2347.9-5106_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/121138/ltcube_508896001_509155201_4FGL_J2347.9-5106_daily_bin1040.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/121138/ft2_4FGL_J2347.9-5106_daily_bin1040.fits
.....................!
real 11.82
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121138/ft1_filtered_4FGL_J2347.9-5106_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/121138/ft2_4FGL_J2347.9-5106_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/121138/ltcube_508896001_509155201_4FGL_J2347.9-5106_daily_bin1040.fits outfile=/scratch/kocevski/121138/expmap_508896001_509155201_4FGL_J2347.9-5106_daily_bin1040.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/121138/ltcube_508896001_509155201_4FGL_J2347.9-5106_daily_bin1040.fits
.....................!
real 190.54
user 185.32
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/121138/ft1_filtered_4FGL_J2347.9-5106_daily_bin1040.fits scfile=/scratch/kocevski/121138/ft2_4FGL_J2347.9-5106_daily_bin1040.fits outfile=/scratch/kocevski/121138/cmap_508896001_509155201_4FGL_J2347.9-5106_daily_bin1040.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121138/ft1_filtered_4FGL_J2347.9-5106_daily_bin1040.fits scfile=/scratch/kocevski/121138/ft2_4FGL_J2347.9-5106_daily_bin1040.fits outfile=/scratch/kocevski/121138/cmap_HighResolution_508896001_509155201_4FGL_J2347.9-5106_daily_bin1040.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    138.37       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.496       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.019       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.326       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .96483       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.668       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9106       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1184       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11262E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.350       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1661       1.0000         .10000E-03   10000.    
    23 'Prefactor '    81.188       1.0000         .10000E-03   10000.    
    24 'norm      '    .11157E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.4812       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8325       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.1896       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    17.332       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2408       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .96043       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=   4540.028     FROM MIGRAD    STATUS=CONVERGED    959 CALLS     5053 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     138.23        106.81        .35783E-05    .25472E-03
   2  Prefactor     .10000E-03    9.6622       -.63521E-06** at limit **
   3  Prefactor     13.560        47.029       -.24121E-05   -.61840E-04
   4  Prefactor     22.027        15.162        .11063E-05    .27095E-03
   5  Prefactor     .10000E-03    3.9312       -.57522E-06** at limit **
   6  Prefactor     20.316        36.736       -.28384E-06    .43429E-04
   7  Prefactor     9.6141        10.663       -.20476E-06    .10675E-03
   8  Prefactor     .10000E-03    2.3860        .89586E-07** at limit **
   9  norm          .90441        263.94       -.72585E-04    .69420E-04
  10  Prefactor     .10000E-03    1.4657       -.99369E-07** at limit **
  11  Prefactor     63.660        80.861        .39320E-06    .36744E-04
  12  norm          2.9111        6.0993       -.34742E-06    .95883E-04
  13  Prefactor     .10001E-03    8.1637       -.65100E-05** at limit **
  14  Prefactor     2.0884        88.716       -.84462E-05   -.65120E-04
  15  Prefactor     .10000E-03    26.718        .19630E-05** at limit **
  16  Prefactor     .10000E-03    63.750       -.11015E-05** at limit **
  17  Prefactor     .10000E-03    15.706       -.57589E-06** at limit **
  18  Prefactor     11.347        20.673        .44426E-06    .55274E-04
  19  norm          .10000E-03    6.7587        .55025E-07** at limit **
  20  norm          .10000E-03    4.0404        .48437E-06** at limit **
  21  norm          .10000E-03    2.8835        .32403E-06** at limit **
  22  Prefactor     6.1694        7.7241       -.16928E-05    .24864E-03
  23  Prefactor     81.149        62.835       -.29869E-05   -.35330E-03
  24  norm          .10000E-03    6.6732        .24404E-05** at limit **
  25  Prefactor     .10000E-03    11.850        .13261E-05** at limit **
  26  norm          .10000E-03    .62378        .15824E-06** at limit **
  27  norm          1.4817        4.7779       -.37811E-06   -.30555E-03
  28  Prefactor     1.8343        43.451       -.30479E-05    .45093E-04
  29  Prefactor     1.1881        3.1429       -.13107E-05    .66740E-04
  30  Prefactor     .10000E-03    13.093        .60099E-07** at limit **
  31  norm          17.344        22.535        .58707E-06    .12192E-03
  32  Prefactor     .10000E-03    4.5154       -.51183E-06** at limit **
  33  Prefactor     .10000E-03    3.2413       -.24954E-06** at limit **
  34  Normalizat    1.2409        .23672        .24163E-05    .35190E-03
  35  Prefactor     .96030        .24037        .24891E-06    .75040E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 138.235
  Prefactor  = 0.0001
  Prefactor  = 13.5602
  Prefactor  = 22.0266
  Prefactor  = 0.0001
  Prefactor  = 20.3156
  Prefactor  = 9.61407
  Prefactor  = 0.0001
  norm       = 0.904408
  Prefactor  = 0.0001
  Prefactor  = 63.6599
  norm       = 2.91111
  Prefactor  = 0.000100015
  Prefactor  = 2.08843
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.347
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.1694
  Prefactor  = 81.1495
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 1.48175
  Prefactor  = 1.83434
  Prefactor  = 1.18813
  Prefactor  = 0.0001
  norm       = 17.3439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24094
  Prefactor  = 0.960304
 **********
 **   18 **HESSE 
 **********

 FCN=   4540.028     FROM HESSE     STATUS=OK           764 CALLS     5817 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     138.23        107.57        .17121E-03   -1.3351    
   2  Prefactor     .10000E-03    9.6610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.560        47.125        .10903E-03   -1.4971    
   4  Prefactor     22.027        15.117        .85361E-04   -1.4769    
   5  Prefactor     .10000E-03    3.9394        .13046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.316        36.729        .88839E-04   -1.4806    
   7  Prefactor     9.6141        10.671        .12924E-03   -1.5088    
   8  Prefactor     .10000E-03    2.3872        .10161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .90441        283.74        .80796E-02   -1.5518    
  10  Prefactor     .10000E-03    1.4699        .79647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     63.660        80.882        .50292E-04   -1.4111    
  12  norm          2.9111        6.0769        .23251E-03   -1.5367    
  13  Prefactor     .10001E-03    28.023        .32030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0884        85.182        .28338E-03   -1.5419    
  15  Prefactor     .10000E-03    27.396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    63.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.347        20.705        .11891E-03   -1.5034    
  19  norm          .10000E-03    6.7619        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.0656        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8881        .11170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1694        7.7047        .80836E-03   -1.5211    
  23  Prefactor     81.149        63.188        .44575E-04   -1.3904    
  24  norm          .10000E-03    6.7268        .16897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .64174        .10368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.4817        4.6861        .24525E-03   -1.5465    
  28  Prefactor     1.8343        43.584        .30827E-03   -1.5437    
  29  Prefactor     1.1881        3.0841        .18545E-03   -1.5490    
  30  Prefactor     .10000E-03    13.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          17.344        22.531        .96205E-04   -1.4875    
  32  Prefactor     .10000E-03    4.5500        .13945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    3.2649        .11842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.2409        .29090        .23935E-03   -.85347    
  35  Prefactor     .96030        .29068        .28618E-03   -.94065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6077e-09
Minuit parameter uncertainties:
  1  107.723
  2  2.10677e-06
  3  47.2551
  4  15.1196
  5  2.16144e-06
  6  36.7703
  7  10.6734
  8  8.24196e-06
  9  32.1917
  10  1.23982e-06
  11  81.0218
  12  6.07822
  13  0.00128071
  14  26.7157
  15  5.82529e-05
  16  0.000517254
  17  0.000117342
  18  20.718
  19  6.40306e-06
  20  5.88338e-05
  21  1.12378e-05
  22  7.70592
  23  63.24
  24  7.56413e-05
  25  0.000271533
  26  1.27934e-05
  27  4.68729
  28  17.897
  29  3.08452
  30  0.00016075
  31  22.5418
  32  5.55163e-05
  33  2.06136e-06
  34  0.291281
  35  0.291151
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.188e+00  3.085e+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:  9.603e-01  2.912e-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.241e+00  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/121138/likelihoodResults_508896001_509155201_4FGL_J2347.9-5106_daily_bin1040.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4539.9971064
delta logL = 0.0310440224657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4539.99350869
delta logL = 0.0346417352539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97914       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9134       1.0000          .0000       10.000    
     3 'Normalizat'    1.2339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96468       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=   4539.994     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      211 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97979        45.388        .33176E-01    .68597E-03
   2  Index         2.9123        6.4530        .23813        .39147E-04
   3  Normalizat    1.2339        .31944E-01    .54263E-01   -.37811E-05
   4  Prefactor     .96470        .34309E-01    .45824E-01    .88818E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.979793
  Index      = 2.91229
  Normalizat = 1.23385
  Prefactor  = 0.9647
 **********
 **   18 **HESSE 
 **********

 FCN=   4539.994     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97979        3.3773        .15386E-02   -1.5510    
   2  Index         2.9123        2.0108        .13582E-01   -.43074    
   3  Normalizat    1.2339        .26893        .23994E-03   -.85563    
   4  Prefactor     .96470        .28576        .28559E-03   -.93916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07019e-09
Minuit parameter uncertainties:
  1  3.37795
  2  2.08301
  3  0.269234
  4  0.286213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121138': 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) = 4539.9935084
delta logL = 0.0346420273572

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  9.798e-01  3.378e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.912e+00  2.083e+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:  9.647e-01  2.862e-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.234e+00  2.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/121138/cmap_HighResolution_508896001_509155201_4FGL_J2347.9-5106_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-30 05:19:52.617465', job_id='121138', GAL2='0.96', fit_tolerance='1e-08', EG2='1.23', EG='1.24', time_epoch_completed='1633004392.62', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.46e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1040' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:19:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 121138: <4FGL_J2347.9-5106_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1040 356.999 -51.1139 508896001 509155201 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 :                                   810.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

