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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1096
RA = 356.999, Dec = -51.1139
tmin = 523411201, tmax = 523670401
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='121228', job_status='RUN', time_executed='2021-09-30 05:08:06.467542', time_epoch_executed='1633003686.47' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121228/ft1_4FGL_J2347.9-5106_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121228/ft2_4FGL_J2347.9-5106_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121228/ft1_4FGL_J2347.9-5106_daily_bin1096.fits outfile=/scratch/kocevski/121228/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1096.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=523411201.0 tmax=523670401.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.54
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/121228/ft2_4FGL_J2347.9-5106_daily_bin1096.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/121228/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1096.fits evtable="EVENTS" outfile="/scratch/kocevski/121228/ft1_filtered_4FGL_J2347.9-5106_daily_bin1096.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/121228/ft1_filtered_4FGL_J2347.9-5106_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/121228/ft2_4FGL_J2347.9-5106_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/121228/ltcube_523411201_523670401_4FGL_J2347.9-5106_daily_bin1096.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/121228/ft2_4FGL_J2347.9-5106_daily_bin1096.fits
.....................!
real 11.80
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121228/ft1_filtered_4FGL_J2347.9-5106_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/121228/ft2_4FGL_J2347.9-5106_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/121228/ltcube_523411201_523670401_4FGL_J2347.9-5106_daily_bin1096.fits outfile=/scratch/kocevski/121228/expmap_523411201_523670401_4FGL_J2347.9-5106_daily_bin1096.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/121228/ltcube_523411201_523670401_4FGL_J2347.9-5106_daily_bin1096.fits
.....................!
real 190.16
user 185.04
sys 4.79

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/121228/ft1_filtered_4FGL_J2347.9-5106_daily_bin1096.fits scfile=/scratch/kocevski/121228/ft2_4FGL_J2347.9-5106_daily_bin1096.fits outfile=/scratch/kocevski/121228/cmap_523411201_523670401_4FGL_J2347.9-5106_daily_bin1096.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121228/ft1_filtered_4FGL_J2347.9-5106_daily_bin1096.fits scfile=/scratch/kocevski/121228/ft2_4FGL_J2347.9-5106_daily_bin1096.fits outfile=/scratch/kocevski/121228/cmap_HighResolution_523411201_523670401_4FGL_J2347.9-5106_daily_bin1096.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/121228/ft1_filtered_4FGL_J2347.9-5106_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/121228/ft2_4FGL_J2347.9-5106_daily_bin1096.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121228/Model_4FGL_J2347.9-5106_daily_bin1096.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/121228/ft1_filtered_4FGL_J2347.9-5106_daily_bin1096.fits.....................!
real 35.74
user 34.52
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    19.360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.424       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.034       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8211       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0916       1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.030       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10667E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1377       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17042E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.3840       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    13.488       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.045       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.8216       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.5280       1.0000         .10000E-03   10000.    
    31 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.1368       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .71661       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=   4399.710     FROM MIGRAD    STATUS=CONVERGED    981 CALLS     5102 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.951       -.27566E-05** at limit **
   2  Prefactor     19.365        18.315        .24199E-06    .32396E-04
   3  Prefactor     12.425        42.455        .19493E-06   -.93645E-05
   4  Prefactor     .10000E-03    4.8751       -.12364E-08** at limit **
   5  Prefactor     .10000E-03    3.1387        .52958E-08** at limit **
   6  Prefactor     18.026        25.148        .94608E-07   -.27912E-05
   7  Prefactor     .10000E-03    7.0589        .85874E-08** at limit **
   8  Prefactor     .10000E-03    2.9550        .11539E-07** at limit **
   9  norm          .10001E-03    15.557       -.39707E-05** at limit **
  10  Prefactor     7.1285        4.6288        .13501E-06    .73656E-04
  11  Prefactor     .10000E-03    21.195        .17395E-05** at limit **
  12  norm          .10000E-03    4.7402        .10531E-07** at limit **
  13  Prefactor     4.8269        8.3786        .30054E-05   -.76573E-03
  14  Prefactor     1.0995        50.364       -.19708E-05   -.66194E-04
  15  Prefactor     42.049        20.175        .85130E-06    .78959E-03
  16  Prefactor     .10001E-03    96.106        .42980E-05** at limit **
  17  Prefactor     .10000E-03    20.442        .79617E-06** at limit **
  18  Prefactor     .10065E-03    11.800       -.15743E-05** at limit **
  19  norm          .10000E-03    8.8864        .37033E-06** at limit **
  20  norm          1.1377        5.2012        .15473E-05   -.15690E-04
  21  norm          .10000E-03    1.8584        .33802E-08** at limit **
  22  Prefactor     .10005E-03    7.9292        .12355E-05** at limit **
  23  Prefactor     .10000E-03    13.480        .23332E-05** at limit **
  24  norm          .10000E-03    1.7410        .71780E-08** at limit **
  25  Prefactor     6.3924        13.512        .28306E-06   -.20615E-03
  26  norm          .10000E-03    .36185        .28336E-08** at limit **
  27  norm          13.488        6.3249        .69844E-07   -.29658E-04
  28  Prefactor     15.052        21.592       -.74889E-07   -.27489E-04
  29  Prefactor     7.8225        4.2678       -.40931E-06   -.66634E-03
  30  Prefactor     4.5207        42.774        .24130E-06   -.31689E-04
  31  norm          .10000E-03    10.007       -.76953E-06** at limit **
  32  Prefactor     2.1366        5.2277        .24735E-06   -.18814E-03
  33  Prefactor     .10000E-03    3.5763        .28928E-07** at limit **
  34  Normalizat    1.0678        .20652       -.14454E-06    .10396E-03
  35  Prefactor     .71698        .21063       -.67726E-06    .62880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 19.3654
  Prefactor  = 12.4246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 7.12847
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.82686
  Prefactor  = 1.09945
  Prefactor  = 42.0488
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100646
  norm       = 0.0001
  norm       = 1.13775
  norm       = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 6.39242
  norm       = 0.0001
  norm       = 13.4877
  Prefactor  = 15.0525
  Prefactor  = 7.82245
  Prefactor  = 4.52071
  norm       = 0.0001
  Prefactor  = 2.13657
  Prefactor  = 0.0001
  Normalizat = 1.06781
  Prefactor  = 0.716976
 **********
 **   18 **HESSE 
 **********

 FCN=   4399.710     FROM HESSE     STATUS=OK           770 CALLS     5872 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.365        18.298        .91029E-04   -1.4828    
   3  Prefactor     12.425        42.405        .11364E-03   -1.5003    
   4  Prefactor     .10000E-03    4.9056        .14301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1447        .11474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.026        25.173        .94315E-04   -1.4859    
   7  Prefactor     .10000E-03    7.1288        .17202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9649        .11125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    16.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1285        4.6223        .11009E-03   -1.5174    
  11  Prefactor     .10000E-03    21.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.7673        .14071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8269        9.6899        .91609E-03   -1.5269    
  14  Prefactor     1.0995        475.54        .74118E-02   -1.5498    
  15  Prefactor     42.049        22.581        .61834E-04   -1.4410    
  16  Prefactor     .10001E-03    96.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10065E-03    153.25        .42653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.9168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1377        5.0060        .29153E-03   -1.5495    
  21  norm          .10000E-03    1.8586        .88309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    21.672        .29914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7436        .85426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.3924        11.459        .15885E-03   -1.5202    
  26  norm          .10000E-03    .36655        .38889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          13.488        6.3202        .10906E-03   -1.4973    
  28  Prefactor     15.052        21.698        .10326E-03   -1.4932    
  29  Prefactor     7.8225        4.2584        .91715E-04   -1.5149    
  30  Prefactor     4.5207        42.137        .18919E-03   -1.5283    
  31  norm          .10000E-03    10.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     2.1366        5.1941        .21870E-03   -1.5416    
  33  Prefactor     .10000E-03    3.7130        .24469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0678        .25359        .21535E-03   -.90792    
  35  Prefactor     .71698        .25645        .27707E-03   -1.0287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38631e-09
Minuit parameter uncertainties:
  1  0.000496957
  2  18.3034
  3  42.5085
  4  2.19921e-06
  5  1.51373e-06
  6  25.1881
  7  1.7019e-06
  8  8.07787e-07
  9  0.000571133
  10  4.62256
  11  0.000288011
  12  3.34989e-06
  13  9.69304
  14  46.1023
  15  22.586
  16  0.00143423
  17  0.0001294
  18  0.0199459
  19  3.56713e-05
  20  4.77353
  21  7.81302e-08
  22  0.00201005
  23  0.000308478
  24  7.39172e-08
  25  11.4632
  26  5.4643e-07
  27  6.32049
  28  21.7092
  29  4.25854
  30  27.6289
  31  8.02701e-05
  32  5.19521
  33  2.3573e-06
  34  0.253878
  35  0.256873
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  7.822e+00  4.259e+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:  7.170e-01  2.569e-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.068e+00  2.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.49
Ra Dec: 356.999 -51.114
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 7.75e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.24e-05

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) = 4398.43732744
delta logL = 1.27267577203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4398.34457912
delta logL = 1.36542408882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.070       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8218       1.0000          .0000       10.000    
     3 'Normalizat'    1.1058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68916       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=   4398.345     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.071        5.4571        .31568E-02   -.34740E-04
   2  Index         1.8218        .35220        .13673       -.19187E-04
   3  Normalizat    1.1058        .19554        .37769E-01    .23476E-05
   4  Prefactor     .68917        .21030        .63747E-01    .15693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0713
  Index      = 1.82184
  Normalizat = 1.10579
  Prefactor  = 0.689172
 **********
 **   18 **HESSE 
 **********

 FCN=   4398.345     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.071        5.3309        .10689E-03   -1.5073    
   2  Index         1.8218        .36646        .56708E-02   -.68883    
   3  Normalizat    1.1058        .23485        .21211E-03   -.89566    
   4  Prefactor     .68917        .25215        .28202E-03   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28851e-13
Minuit parameter uncertainties:
  1  5.33117
  2  0.36701
  3  0.23507
  4  0.252572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121228': 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) = 4398.34457909
delta logL = 1.36542411969

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.007e+01  5.331e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  1.822e+00  3.670e-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:  6.892e-01  2.526e-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.106e+00  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.28
Ra Dec: 356.999 -51.114
Photon Index (Free Index): 1.82 +/- 0.37
Photon Flux (Free Index): 4.73e-08 +/- 3.06e-08
Energy Flux (Free Index): 5.31e-05 +/- 4.65e-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/121228/cmap_HighResolution_523411201_523670401_4FGL_J2347.9-5106_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.75e-08', energy_flux2='5.31e-05', photon_flux_error='4.22e-08', dlogl='1.37e+00', energy_flux='2.28e-05', photon_flux2='4.73e-08', job_status='DONE', time_completed='2021-09-30 05:19:58.210964', photon_index_error2='0.37', photon_index2='1.82', ts='12.49', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='4.65e-05', EG='1.07', time_epoch_completed='1633004398.21', return_code='0', job_id='121228', GAL2='0.69', EG2='1.11', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.06e-08', ts2='15.28', photon_index='2.49' WHERE bin_id='1096' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:19:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 121228: <4FGL_J2347.9-5106_daily_bin1096> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1096 356.999 -51.1139 523411201 523670401 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 :                                   708.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

