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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin985
RA = 356.999, Dec = -51.1139
tmin = 494640001, tmax = 494899201
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='121050', job_status='RUN', time_executed='2021-09-30 05:05:53.656894', time_epoch_executed='1633003553.66' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='985'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121050

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121050/ft1_4FGL_J2347.9-5106_daily_bin985.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121050/ft2_4FGL_J2347.9-5106_daily_bin985.fits


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

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

Done.
real 4.21
user 3.99
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/121050/ft2_4FGL_J2347.9-5106_daily_bin985.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/121050/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin985.fits evtable="EVENTS" outfile="/scratch/kocevski/121050/ft1_filtered_4FGL_J2347.9-5106_daily_bin985.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/121050/ft1_filtered_4FGL_J2347.9-5106_daily_bin985.fits" evtable="EVENTS" scfile=/scratch/kocevski/121050/ft2_4FGL_J2347.9-5106_daily_bin985.fits sctable="SC_DATA" outfile=/scratch/kocevski/121050/ltcube_494640001_494899201_4FGL_J2347.9-5106_daily_bin985.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/121050/ft2_4FGL_J2347.9-5106_daily_bin985.fits
.....................!
real 11.92
user 11.53
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121050/ft1_filtered_4FGL_J2347.9-5106_daily_bin985.fits evtable="EVENTS" scfile=/scratch/kocevski/121050/ft2_4FGL_J2347.9-5106_daily_bin985.fits sctable="SC_DATA" expcube=/scratch/kocevski/121050/ltcube_494640001_494899201_4FGL_J2347.9-5106_daily_bin985.fits outfile=/scratch/kocevski/121050/expmap_494640001_494899201_4FGL_J2347.9-5106_daily_bin985.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/121050/ltcube_494640001_494899201_4FGL_J2347.9-5106_daily_bin985.fits
.....................!
real 192.53
user 187.56
sys 4.57

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/121050/ft1_filtered_4FGL_J2347.9-5106_daily_bin985.fits scfile=/scratch/kocevski/121050/ft2_4FGL_J2347.9-5106_daily_bin985.fits outfile=/scratch/kocevski/121050/cmap_494640001_494899201_4FGL_J2347.9-5106_daily_bin985.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121050/ft1_filtered_4FGL_J2347.9-5106_daily_bin985.fits scfile=/scratch/kocevski/121050/ft2_4FGL_J2347.9-5106_daily_bin985.fits outfile=/scratch/kocevski/121050/cmap_HighResolution_494640001_494899201_4FGL_J2347.9-5106_daily_bin985.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    109.55       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4092       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3996       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.898       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5679       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.280       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1279       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99593       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.979       1.0000         .10000E-03   10000.    
    19 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0126       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .21146E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    2.3832       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.693       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .64938       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1411       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=   4415.264     FROM MIGRAD    STATUS=CONVERGED    959 CALLS     5060 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.200       -.51577E-06** at limit **
   2  Prefactor     .10000E-03    15.365        .29457E-05** at limit **
   3  Prefactor     109.59        54.973        .12057E-06   -.35969E-04
   4  Prefactor     .10000E-03    3.9757       -.11351E-07** at limit **
   5  Prefactor     .10000E-03    2.7378        .46015E-06** at limit **
   6  Prefactor     .10000E-03    47.050        .24260E-06** at limit **
   7  Prefactor     .10000E-03    6.5641        .11442E-05** at limit **
   8  Prefactor     7.4097        6.3186        .17911E-06   -.17060E-04
   9  norm          .10000E-03    12.295       -.32876E-06** at limit **
  10  Prefactor     3.3992        4.8346       -.29119E-07   -.10158E-04
  11  Prefactor     47.893        69.867       -.33071E-06   -.97213E-05
  12  norm          7.5677        8.5307       -.20315E-07   -.10441E-04
  13  Prefactor     .10000E-03    4.9936       -.33213E-06** at limit **
  14  Prefactor     35.276        31.921        .15236E-05    .13629E-04
  15  Prefactor     2.1339        16.420       -.29668E-05    .19358E-04
  16  Prefactor     .10000E-03    53.465        .10148E-06** at limit **
  17  Prefactor     .91181        246.70       -.19695E-04    .15476E-05
  18  Prefactor     11.990        17.332        .41558E-07   -.37250E-04
  19  norm          .10000E-03    6.7594        .21961E-07** at limit **
  20  norm          .10000E-03    3.3325        .54539E-07** at limit **
  21  norm          .10000E-03    2.0581       -.34211E-07** at limit **
  22  Prefactor     3.0106        6.4750       -.11699E-05   -.41889E-05
  23  Prefactor     .10000E-03    34.934       -.45302E-06** at limit **
  24  norm          .10000E-03    2.4937       -.10658E-06** at limit **
  25  Prefactor     .10000E-03    37.460        .32186E-06** at limit **
  26  norm          .21150E-01    .78598        .25615E-07    .14859E-04
  27  norm          2.3827        4.4762       -.81643E-07    .17926E-04
  28  Prefactor     11.691        12.073       -.46171E-07   -.31173E-04
  29  Prefactor     .10000E-03    1.0842        .64689E-06** at limit **
  30  Prefactor     .10000E-03    10.045        .13518E-05** at limit **
  31  norm          .10000E-03    15.537        .81560E-06** at limit **
  32  Prefactor     .10000E-03    1.8110        .76022E-06** at limit **
  33  Prefactor     .10000E-03    1.4543        .44803E-06** at limit **
  34  Normalizat    .64939        .19883       -.10352E-05   -.73939E-04
  35  Prefactor     1.1412        .21477        .92836E-06   -.27264E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.40967
  norm       = 0.0001
  Prefactor  = 3.39923
  Prefactor  = 47.8929
  norm       = 7.56768
  Prefactor  = 0.0001
  Prefactor  = 35.2761
  Prefactor  = 2.13394
  Prefactor  = 0.0001
  Prefactor  = 0.911808
  Prefactor  = 11.9902
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.01056
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0211497
  norm       = 2.38265
  Prefactor  = 11.6906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.649388
  Prefactor  = 1.14116
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.264     FROM HESSE     STATUS=OK           766 CALLS     5826 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     109.59        55.024        .19214E-03   -1.3610    
   4  Prefactor     .10000E-03    3.9906        .12938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.7432        .10742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6275        .16639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4097        6.3162        .14734E-03   -1.5163    
   9  norm          .10000E-03    12.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3992        4.8197        .14786E-03   -1.5339    
  11  Prefactor     47.893        69.868        .57939E-04   -1.4323    
  12  norm          7.5677        8.5198        .14578E-03   -1.5158    
  13  Prefactor     .10000E-03    5.0258        .14489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.276        31.728        .67469E-04   -1.4519    
  15  Prefactor     2.1339        16.437        .14133E-02   -1.5416    
  16  Prefactor     .10000E-03    53.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .91181        243.59        .74597E-02   -1.5517    
  18  Prefactor     11.990        17.173        .11574E-03   -1.5015    
  19  norm          .10000E-03    6.7734        .16874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.3365        .11840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.0608        .93096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0106        6.4310        .11569E-02   -1.5361    
  23  Prefactor     .10000E-03    35.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.5162        .10233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    38.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .21150E-01    4.2078        .10877E-02   -1.5679    
  27  norm          2.3827        4.4518        .18455E-03   -1.5399    
  28  Prefactor     11.691        12.071        .11715E-03   -1.5024    
  29  Prefactor     .10000E-03    1.0934        .67629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    10.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    15.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    1.8250        .87384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.4622        .78319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .64939        .22658        .25714E-03   -1.0593    
  35  Prefactor     1.1412        .24776        .22206E-03   -.88162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03825e-10
Minuit parameter uncertainties:
  1  7.8159e-05
  2  6.76899e-05
  3  55.0492
  4  2.65571e-06
  5  3.66712e-06
  6  5.44112e-05
  7  3.07201e-06
  8  6.31681
  9  3.55387e-05
  10  4.82024
  11  69.9877
  12  8.5212
  13  3.13251e-06
  14  31.743
  15  11.849
  16  5.67762e-05
  17  29.9283
  18  17.1804
  19  9.26364e-06
  20  9.62831e-07
  21  5.26101e-07
  22  6.43249
  23  1.6648e-05
  24  4.16238e-06
  25  0.000149183
  26  0.595269
  27  4.45246
  28  12.074
  29  2.62107e-06
  30  2.83875e-05
  31  2.21391e-05
  32  3.72357e-06
  33  3.22956e-06
  34  0.226904
  35  0.248011
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  2.621e-06  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.141e+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:  6.494e-01  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/121050/likelihoodResults_494640001_494899201_4FGL_J2347.9-5106_daily_bin985.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) = 4415.26837828
delta logL = -0.00417981741703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4415.26419864
delta logL = -1.72408363142e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4706       1.0000          .0000       10.000    
     3 'Normalizat'    .64933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1413       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=   4415.264     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      242 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.104        .68422E-02** at limit **
   2  Index         1.9881        8.5942        .50000        .48587E-06
   3  Normalizat    .64939        .12647E-01    .25715E-03    .11043E-02
   4  Prefactor     1.1412        .14210E-01    .22206E-03    .12798E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98811
  Normalizat = 0.649388
  Prefactor  = 1.14116
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.264     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.797        .74614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9881        5.4232        .50000       -.64648    
   3  Normalizat    .64939        .39800E-01    .51430E-04   -1.0593    
   4  Prefactor     1.1412        .44716E-01    .44412E-04   -.88162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.10559e-09
Minuit parameter uncertainties:
  1  4.35756e-05
  2  550.891
  3  0.0398018
  4  0.0447177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121050': 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): 102
logL (Free Index) = 4415.26419049
delta logL = 7.97096799943e-06

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  4.358e-05  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  1.988e+00  5.509e+02  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.141e+00  4.472e-02  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:  6.494e-01  3.980e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 356.999 -51.114

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-03', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-09-30 05:19:13.636427', job_id='121050', GAL2='1.14', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1633004353.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='7.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='985' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:19:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 121050: <4FGL_J2347.9-5106_daily_bin985> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin985 356.999 -51.1139 494640001 494899201 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 :                                   795.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

