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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1168
RA = 356.999, Dec = -51.1139
tmin = 542073601, tmax = 542332801
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='122289', job_status='RUN', time_executed='2021-09-30 05:10:33.985509', time_epoch_executed='1633003833.99' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122289/ft1_4FGL_J2347.9-5106_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122289/ft2_4FGL_J2347.9-5106_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122289/ft1_4FGL_J2347.9-5106_daily_bin1168.fits outfile=/scratch/kocevski/122289/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1168.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=542073601.0 tmax=542332801.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.58
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122289/ft2_4FGL_J2347.9-5106_daily_bin1168.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/122289/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1168.fits evtable="EVENTS" outfile="/scratch/kocevski/122289/ft1_filtered_4FGL_J2347.9-5106_daily_bin1168.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/122289/ft1_filtered_4FGL_J2347.9-5106_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/122289/ft2_4FGL_J2347.9-5106_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/122289/ltcube_542073601_542332801_4FGL_J2347.9-5106_daily_bin1168.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/122289/ft2_4FGL_J2347.9-5106_daily_bin1168.fits
.....................!
real 12.08
user 11.68
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122289/ft1_filtered_4FGL_J2347.9-5106_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/122289/ft2_4FGL_J2347.9-5106_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/122289/ltcube_542073601_542332801_4FGL_J2347.9-5106_daily_bin1168.fits outfile=/scratch/kocevski/122289/expmap_542073601_542332801_4FGL_J2347.9-5106_daily_bin1168.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/122289/ltcube_542073601_542332801_4FGL_J2347.9-5106_daily_bin1168.fits
.....................!
real 191.70
user 185.66
sys 5.51

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/122289/ft1_filtered_4FGL_J2347.9-5106_daily_bin1168.fits scfile=/scratch/kocevski/122289/ft2_4FGL_J2347.9-5106_daily_bin1168.fits outfile=/scratch/kocevski/122289/cmap_542073601_542332801_4FGL_J2347.9-5106_daily_bin1168.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/122289/ft1_filtered_4FGL_J2347.9-5106_daily_bin1168.fits scfile=/scratch/kocevski/122289/ft2_4FGL_J2347.9-5106_daily_bin1168.fits outfile=/scratch/kocevski/122289/cmap_HighResolution_542073601_542332801_4FGL_J2347.9-5106_daily_bin1168.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122289/ft1_filtered_4FGL_J2347.9-5106_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/122289/ft2_4FGL_J2347.9-5106_daily_bin1168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122289/Model_4FGL_J2347.9-5106_daily_bin1168.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/122289/ft1_filtered_4FGL_J2347.9-5106_daily_bin1168.fits.....................!
real 39.45
user 38.09
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.088       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.796       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3465       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.143       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9903       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.460       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26604E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5878       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.951       1.0000         .10000E-03   10000.    
    24 'norm      '    2.6512       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.5763       1.0000         .10000E-03   10000.    
    27 'norm      '    11.832       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.9212       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    35.419       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    4.1226       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .43589       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.4545       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=   5408.479     FROM MIGRAD    STATUS=CONVERGED    967 CALLS     5050 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.721        58.360       -.85432E-06   -.20824E-04
   2  Prefactor     .10000E-03    6.3878       -.15715E-06** at limit **
   3  Prefactor     20.089        25.638       -.36204E-06   -.37091E-05
   4  Prefactor     10.796        8.0801        .27445E-07   -.15364E-04
   5  Prefactor     .10000E-03    2.8492       -.55154E-07** at limit **
   6  Prefactor     .10000E-03    6.1206       -.78652E-06** at limit **
   7  Prefactor     4.3466        4.9702        .97484E-06   -.16981E-02
   8  Prefactor     .10000E-03    1.8631       -.70096E-07** at limit **
   9  norm          .10000E-03    21.010        .48852E-05** at limit **
  10  Prefactor     .10000E-03    2.2564       -.11224E-06** at limit **
  11  Prefactor     27.137        55.589       -.55845E-05   -.51883E-04
  12  norm          6.9880        6.1255        .37736E-06   -.96537E-03
  13  Prefactor     .10000E-03    16.184       -.59503E-06** at limit **
  14  Prefactor     .10000E-03    24.170       -.22274E-05** at limit **
  15  Prefactor     15.463        13.551       -.14980E-06    .15125E-04
  16  Prefactor     .10000E-03    35.050        .61362E-05** at limit **
  17  Prefactor     .10000E-03    27.308       -.66065E-05** at limit **
  18  Prefactor     .10000E-03    11.545       -.20174E-06** at limit **
  19  norm          .10000E-03    5.0719       -.75532E-06** at limit **
  20  norm          .10000E-03    5.3354        .16085E-05** at limit **
  21  norm          1.5881        5.2206        .36978E-06   -.19228E-03
  22  Prefactor     .10000E-03    3.2796       -.47709E-09** at limit **
  23  Prefactor     23.950        37.417       -.12005E-05   -.18248E-04
  24  norm          2.6513        2.7389        .61244E-08    .59402E-04
  25  Prefactor     .10000E-03    5.9415       -.58626E-06** at limit **
  26  norm          1.5749        1.2718       -.34015E-07   -.62983E-04
  27  norm          11.832        5.5629        .57139E-07   -.66669E-05
  28  Prefactor     .10000E-03    7.5600        .25882E-05** at limit **
  29  Prefactor     1.9217        3.1539        .45966E-07   -.10879E-03
  30  Prefactor     .10000E-03    8.0443       -.19616E-05** at limit **
  31  norm          35.418        23.718       -.13134E-06   -.87540E-05
  32  Prefactor     .10000E-03    3.7508        .73138E-08** at limit **
  33  Prefactor     4.1226        3.7681       -.63130E-06   -.23810E-03
  34  Normalizat    .43582        .18764        .60389E-06    .16176E-04
  35  Prefactor     1.4546        .20790       -.61844E-07    .33808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.7208
  Prefactor  = 0.0001
  Prefactor  = 20.0888
  Prefactor  = 10.796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34659
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 27.1371
  norm       = 6.98797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4628
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.58809
  Prefactor  = 0.0001
  Prefactor  = 23.9501
  norm       = 2.65125
  Prefactor  = 0.0001
  norm       = 1.57492
  norm       = 11.8318
  Prefactor  = 0.0001
  Prefactor  = 1.92166
  Prefactor  = 0.0001
  norm       = 35.4176
  Prefactor  = 0.0001
  Prefactor  = 4.12263
  Normalizat = 0.435824
  Prefactor  = 1.4546
 **********
 **   18 **HESSE 
 **********

 FCN=   5408.479     FROM HESSE     STATUS=OK           768 CALLS     5818 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.721        58.377        .43901E-04   -1.3875    
   2  Prefactor     .10000E-03    6.3918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.089        25.658        .89364E-04   -1.4811    
   4  Prefactor     10.796        8.0767        .12194E-03   -1.5051    
   5  Prefactor     .10000E-03    2.8566        .12122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1247        .17774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3466        7.8384        .96604E-03   -1.5291    
   8  Prefactor     .10000E-03    1.8790        .98020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    21.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2947        .10757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.137        55.708        .76895E-04   -1.4666    
  12  norm          6.9880        6.3901        .75868E-03   -1.5179    
  13  Prefactor     .10000E-03    16.716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.463        13.552        .10186E-03   -1.4921    
  16  Prefactor     .10000E-03    35.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    94.109        .45752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.0783        .16180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.4009        .16583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5881        5.2049        .27952E-03   -1.5456    
  22  Prefactor     .10000E-03    3.2972        .12996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.950        37.265        .81848E-04   -1.4729    
  24  norm          2.6513        2.7402        .11710E-03   -1.5382    
  25  Prefactor     .10000E-03    5.9551        .17504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.5749        1.2069        .66893E-04   -1.5457    
  27  norm          11.832        5.5609        .11135E-03   -1.5020    
  28  Prefactor     .10000E-03    7.5993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.9217        3.1203        .15585E-03   -1.5431    
  30  Prefactor     .10000E-03    8.0643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          35.418        23.718        .67337E-04   -1.4517    
  32  Prefactor     .10000E-03    3.8084        .13882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     4.1226        3.7676        .13051E-03   -1.5302    
  34  Normalizat    .43582        .21714        .31979E-03   -1.1549    
  35  Prefactor     1.4546        .24475        .21354E-03   -.78819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01664e-09
Minuit parameter uncertainties:
  1  58.4168
  2  1.02756e-06
  3  25.6723
  4  8.07753
  5  1.13746e-06
  6  2.06534e-05
  7  7.84029
  8  1.40374e-06
  9  0.000233539
  10  3.18423e-06
  11  55.8153
  12  6.39072
  13  2.75304e-05
  14  0.000109699
  15  13.5545
  16  0.000387663
  17  0.000363053
  18  0.00135648
  19  1.82109e-05
  20  3.58869e-05
  21  5.20643
  22  3.39367e-07
  23  37.3016
  24  2.74034
  25  1.36795e-05
  26  1.20695
  27  5.56111
  28  6.81428e-05
  29  3.12054
  30  5.58597e-05
  31  23.7247
  32  2.55241e-06
  33  3.76783
  34  0.217563
  35  0.244944
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.922e+00  3.121e+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:  1.455e+00  2.449e-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:  4.358e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 356.999 -51.114
Photon Flux Upper Limit: 9.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/122289/likelihoodResults_542073601_542332801_4FGL_J2347.9-5106_daily_bin1168.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5408.46829923
delta logL = 0.0106753763303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5407.48862599
delta logL = 0.990348613675

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.7159       1.0000          .0000       10.000    
     3 'Normalizat'    .36276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5242       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=   5407.489     FROM MIGRAD    STATUS=CONVERGED    264 CALLS      560 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .12662E-03    .29182E-03** at limit **
   2  Index         8.7159        .66420        .19481       -.18041E-03
   3  Normalizat    .36289        .16382        .78870E-01   -.79652E-03
   4  Prefactor     1.5241        .18938        .47368E-01    .10619E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.71588
  Normalizat = 0.362891
  Prefactor  = 1.52405
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.489     FROM HESSE     STATUS=OK            33 CALLS      593 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .81744E-03    .93106E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7159        .41960        .83329E-02   -3.9794    
   3  Normalizat    .36289        .21427        .34927E-03   -1.9489    
   4  Prefactor     1.5241        .24783        .20938E-03   -.76868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68303e-09
Minuit parameter uncertainties:
  1  6.32909e-08
  2  0.420707
  3  0.214755
  4  0.248027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122289': 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) = 5407.48862575
delta logL = 0.990348850837

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  6.329e-08  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  8.716e+00  4.207e-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:  1.524e+00  2.480e-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:  3.629e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 356.999 -51.114
Photon Index (Free Index): 8.72 +/- 0.42
Photon Flux (Free Index): 5.26e-08 +/- 4.06e-08
Energy Flux (Free Index): 6.01e-06 +/- 4.61e-06

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/122289/cmap_HighResolution_542073601_542332801_4FGL_J2347.9-5106_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', comment='SUCCESS', energy_flux2='6.01e-06', dlogl='9.90e-01', photon_flux2='5.26e-08', job_status='DONE', time_completed='2021-09-30 05:26:17.708295', photon_index_error2='0.42', photon_index2='8.72', ts='0.49', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', photon_flux_upper_limit='9.10e-08', energy_flux_error2='4.61e-06', EG='0.44', time_epoch_completed='1633004777.71', return_code='0', job_id='122289', GAL2='1.52', EG2='0.36', return_code2='0', photon_flux_error2='4.06e-08', ts2='2.63', photon_index='2.49' WHERE bin_id='1168' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:26:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 122289: <4FGL_J2347.9-5106_daily_bin1168> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1168 356.999 -51.1139 542073601 542332801 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 :                                   936.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

