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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1020
RA = 356.999, Dec = -51.1139
tmin = 503712001, tmax = 503971201
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='121105', job_status='RUN', time_executed='2021-09-30 05:08:36.852622', time_epoch_executed='1633003716.85' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121105

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121105/ft1_4FGL_J2347.9-5106_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121105/ft2_4FGL_J2347.9-5106_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121105/ft1_4FGL_J2347.9-5106_daily_bin1020.fits outfile=/scratch/kocevski/121105/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1020.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.78
user 5.49
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/121105/ft2_4FGL_J2347.9-5106_daily_bin1020.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/121105/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/121105/ft1_filtered_4FGL_J2347.9-5106_daily_bin1020.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121105/ft1_filtered_4FGL_J2347.9-5106_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/121105/ft2_4FGL_J2347.9-5106_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/121105/ltcube_503712001_503971201_4FGL_J2347.9-5106_daily_bin1020.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/121105/ft2_4FGL_J2347.9-5106_daily_bin1020.fits
.....................!
real 11.92
user 11.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121105/ft1_filtered_4FGL_J2347.9-5106_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/121105/ft2_4FGL_J2347.9-5106_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/121105/ltcube_503712001_503971201_4FGL_J2347.9-5106_daily_bin1020.fits outfile=/scratch/kocevski/121105/expmap_503712001_503971201_4FGL_J2347.9-5106_daily_bin1020.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/121105/ltcube_503712001_503971201_4FGL_J2347.9-5106_daily_bin1020.fits
.....................!
real 192.75
user 187.98
sys 4.40

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/121105/ft1_filtered_4FGL_J2347.9-5106_daily_bin1020.fits scfile=/scratch/kocevski/121105/ft2_4FGL_J2347.9-5106_daily_bin1020.fits outfile=/scratch/kocevski/121105/cmap_503712001_503971201_4FGL_J2347.9-5106_daily_bin1020.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121105/ft1_filtered_4FGL_J2347.9-5106_daily_bin1020.fits scfile=/scratch/kocevski/121105/ft2_4FGL_J2347.9-5106_daily_bin1020.fits outfile=/scratch/kocevski/121105/cmap_HighResolution_503712001_503971201_4FGL_J2347.9-5106_daily_bin1020.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=356.999 yref=-51.1139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/121105/ft1_filtered_4FGL_J2347.9-5106_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/121105/ft2_4FGL_J2347.9-5106_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121105/Model_4FGL_J2347.9-5106_daily_bin1020.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/121105/ft1_filtered_4FGL_J2347.9-5106_daily_bin1020.fits.....................!
real 25.08
user 23.81
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.756       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.918       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.210       1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.535       1.0000         .10000E-03   10000.    
    12 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23620E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11836E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    81.169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.5760       1.0000         .10000E-03   10000.    
    24 'norm      '    .27614E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.1614       1.0000         .10000E-03   10000.    
    27 'norm      '    4.5300       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.7677       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    11.111       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.3624       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .21917       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=   2090.696     FROM MIGRAD    STATUS=CONVERGED   1819 CALLS     6701 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.279        .18142E-02** at limit **
   2  Prefactor     .10000E-03    20.345        .18142E-02** at limit **
   3  Prefactor     .10000E-03    21.628        .18142E-02** at limit **
   4  Prefactor     21.761        18.456        .85873E-04    .65467E-04
   5  Prefactor     .10000E-03    9.0913        .13451E-02** at limit **
   6  Prefactor     32.931        41.473        .69841E-04    .18231E-04
   7  Prefactor     .10000E-03    9.9711        .14075E-02** at limit **
   8  Prefactor     .10000E-03    6.7935        .11593E-02** at limit **
   9  norm          .10000E-03    154.96        .18142E-02** at limit **
  10  Prefactor     11.213        8.6218        .11299E-03    .14855E-03
  11  Prefactor     49.615        151.06        .56978E-04   -.19095E-04
  12  norm          .10000E-03    10.870        .14696E-02** at limit **
  13  Prefactor     .74352E-01    23.370        .52088E-01    .29341E-03
  14  Prefactor     41.661        53.647        .62052E-04    .98018E-05
  15  Prefactor     .10000E-03    39.638        .18142E-02** at limit **
  16  Prefactor     81.214        144.02        .44580E-04   -.78876E-04
  17  Prefactor     .10000E-03    20.517        .18142E-02** at limit **
  18  Prefactor     .10000E-03    15.179        .17386E-02** at limit **
  19  norm          .10000E-03    7.6775        .12367E-02** at limit **
  20  norm          .10000E-03    6.8481        .11673E-02** at limit **
  21  norm          .10000E-03    5.0085        .99048E-03** at limit **
  22  Prefactor     .10000E-03    6.2355        .11118E-02** at limit **
  23  Prefactor     9.6594        37.676        .12950E-03   -.24151E-03
  24  norm          .25103E-03    26.555        .29030E-01** at limit **
  25  Prefactor     .10000E-03    26.952        .18142E-02** at limit **
  26  norm          1.1618        1.9093        .77774E-04    .14435E-03
  27  norm          4.5407        6.6865        .12523E-03   -.51565E-03
  28  Prefactor     .10000E-03    60.433        .18142E-02** at limit **
  29  Prefactor     8.7711        7.3335        .10728E-03    .14603E-03
  30  Prefactor     .10000E-03    33.591        .18142E-02** at limit **
  31  norm          .10000E-03    18.556        .18142E-02** at limit **
  32  Prefactor     .10000E-03    2.7561        .74112E-03** at limit **
  33  Prefactor     11.114        8.1308        .10585E-03    .75719E-05
  34  Normalizat    1.3621        .33847        .18659E-03   -.24637E-03
  35  Prefactor     .21920        .33360        .44127E-03   -.13924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7611
  Prefactor  = 0.0001
  Prefactor  = 32.9306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 11.2127
  Prefactor  = 49.6147
  norm       = 0.0001
  Prefactor  = 0.0743517
  Prefactor  = 41.6606
  Prefactor  = 0.0001
  Prefactor  = 81.2137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.65936
  norm       = 0.000251029
  Prefactor  = 0.0001
  norm       = 1.16176
  norm       = 4.54073
  Prefactor  = 0.0001
  Prefactor  = 8.77115
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1144
  Normalizat = 1.36211
  Prefactor  = 0.2192
 **********
 **   18 **HESSE 
 **********

 FCN=   2090.696     FROM HESSE     STATUS=OK           756 CALLS     7457 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.761        18.456        .34349E-05   -1.4775    
   5  Prefactor     .10000E-03    9.0917        .26902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.931        41.471        .27936E-05   -1.4560    
   7  Prefactor     .10000E-03    9.9720        .28151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.7941        .23186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    155.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.213        8.6216        .45198E-05   -1.5038    
  11  Prefactor     49.615        151.03        .11396E-04   -1.4298    
  12  norm          .10000E-03    10.870        .29391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .74352E-01    21.321        .55172E-01   -1.5653    
  14  Prefactor     41.661        53.600        .24821E-05   -1.4416    
  15  Prefactor     .10000E-03    39.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     81.214        144.00        .89161E-05   -1.3903    
  17  Prefactor     .10000E-03    20.517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.179        .34772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.6777        .24734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.8482        .23345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.0089        .19810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.2359        .22237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.6594        36.179        .25900E-04   -1.5086    
  24  norm          .25103E-03    14.271        .39798E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.1618        1.9089        .31109E-05   -1.5492    
  27  norm          4.5407        6.6833        .50091E-05   -1.5282    
  28  Prefactor     .10000E-03    60.466        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.7711        7.3333        .42911E-05   -1.5116    
  30  Prefactor     .10000E-03    33.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    18.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.7561        .14822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     11.114        8.1302        .42340E-05   -1.5041    
  34  Normalizat    1.3621        .33731        .37318E-04   -.81731    
  35  Prefactor     .21920        .33179        .17651E-04   -1.2736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2634e-09
Minuit parameter uncertainties:
  1  4.46253e-05
  2  0.00011194
  3  8.05453e-05
  4  18.4611
  5  2.50745e-05
  6  41.5073
  7  3.06121e-05
  8  4.69967e-06
  9  0.000986094
  10  8.62253
  11  152.221
  12  2.83614e-05
  13  2.51732
  14  53.662
  15  0.000222932
  16  144.628
  17  6.87747e-05
  18  1.91618e-05
  19  1.4909e-05
  20  1.46938e-05
  21  1.24347e-05
  22  1.72351e-05
  23  36.2614
  24  0.0928733
  25  0.000140751
  26  1.90899
  27  6.68438
  28  0.00015476
  29  7.33403
  30  7.8556e-05
  31  1.32988e-06
  32  6.02586e-06
  33  8.13105
  34  0.337864
  35  0.3347
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  8.771e+00  7.334e+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:  2.192e-01  3.347e-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.362e+00  3.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.42
Ra Dec: 356.999 -51.114
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 8.69e-08 +/- 7.26e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 2.14e-05

TS (Fixed Index): 2.42
Ra Dec: 356.999 -51.114
Photon Flux Upper Limit: 2.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/121105/likelihoodResults_503712001_503971201_4FGL_J2347.9-5106_daily_bin1020.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) = 2090.6833451
delta logL = 0.0122250557138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2090.67448957
delta logL = 0.0210805921611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6304       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6475       1.0000          .0000       10.000    
     3 'Normalizat'    1.3545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22547       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=   2090.674     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6184        203.76        .36294E-02   -.94928E-04
   2  Index         2.6482        6.0991        .12909       -.11994E-04
   3  Normalizat    1.3544        .12911        .31894E-01   -.47354E-04
   4  Prefactor     .22551        .13039        .98352E-01    .25215E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.61839
  Index      = 2.64824
  Normalizat = 1.35437
  Prefactor  = 0.225514
 **********
 **   18 **HESSE 
 **********

 FCN=   2090.674     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6184        9.0485        .98225E-04   -1.5156    
   2  Index         2.6482        .83855        .51664E-02   -.48969    
   3  Normalizat    1.3544        .32344        .18701E-03   -.81958    
   4  Prefactor     .22551        .32221        .43536E-03   -1.2693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15436e-11
Minuit parameter uncertainties:
  1  9.05017
  2  0.843683
  3  0.323932
  4  0.324792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121105': 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) = 2090.67448819
delta logL = 0.0210819651688

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  7.618e+00  9.050e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.648e+00  8.437e-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:  2.255e-01  3.248e-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.354e+00  3.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 356.999 -51.114
Photon Index (Free Index): 2.65 +/- 0.84
Photon Flux (Free Index): 9.42e-08 +/- 8.22e-08
Energy Flux (Free Index): 2.36e-05 +/- 2.15e-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/121105/cmap_HighResolution_503712001_503971201_4FGL_J2347.9-5106_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-02', comment='SUCCESS', photon_flux='8.69e-08', energy_flux2='2.36e-05', photon_flux_error='7.26e-08', dlogl='2.11e-02', energy_flux='2.56e-05', photon_flux2='9.42e-08', job_status='DONE', time_completed='2021-09-30 05:19:02.927880', photon_index_error2='0.84', photon_index2='2.65', ts='2.42', fit_tolerance='1e-08', GAL='0.22', photon_index_error='0.00', photon_flux_upper_limit='2.53e-07', energy_flux_error2='2.15e-05', EG='1.36', time_epoch_completed='1633004342.93', return_code='0', job_id='121105', GAL2='0.23', EG2='1.35', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='8.22e-08', ts2='2.45', photon_index='2.49' WHERE bin_id='1020' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:19:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 121105: <4FGL_J2347.9-5106_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1020 356.999 -51.1139 503712001 503971201 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 :                                   609.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

