/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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2347.9-5106_daily_bin261
RA = 356.999, Dec = -51.1139
tmin = 306979201, tmax = 307238401
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='115377', job_status='RUN', time_executed='2021-09-30 04:45:52.928928', time_epoch_executed='1633002352.93' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115377/ft1_4FGL_J2347.9-5106_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115377/ft2_4FGL_J2347.9-5106_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115377/ft1_4FGL_J2347.9-5106_daily_bin261.fits outfile=/scratch/kocevski/115377/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin261.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.23
user 13.89
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/115377/ft2_4FGL_J2347.9-5106_daily_bin261.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/115377/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin261.fits evtable="EVENTS" outfile="/scratch/kocevski/115377/ft1_filtered_4FGL_J2347.9-5106_daily_bin261.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/115377/ft1_filtered_4FGL_J2347.9-5106_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/115377/ft2_4FGL_J2347.9-5106_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/115377/ltcube_306979201_307238401_4FGL_J2347.9-5106_daily_bin261.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/115377/ft2_4FGL_J2347.9-5106_daily_bin261.fits
.....................!
real 11.27
user 10.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115377/ft1_filtered_4FGL_J2347.9-5106_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/115377/ft2_4FGL_J2347.9-5106_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/115377/ltcube_306979201_307238401_4FGL_J2347.9-5106_daily_bin261.fits outfile=/scratch/kocevski/115377/expmap_306979201_307238401_4FGL_J2347.9-5106_daily_bin261.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/115377/ltcube_306979201_307238401_4FGL_J2347.9-5106_daily_bin261.fits
.....................!
real 191.67
user 185.46
sys 5.87

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/115377/ft1_filtered_4FGL_J2347.9-5106_daily_bin261.fits scfile=/scratch/kocevski/115377/ft2_4FGL_J2347.9-5106_daily_bin261.fits outfile=/scratch/kocevski/115377/cmap_306979201_307238401_4FGL_J2347.9-5106_daily_bin261.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=356.999 yref=-51.1139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115377/ft1_filtered_4FGL_J2347.9-5106_daily_bin261.fits scfile=/scratch/kocevski/115377/ft2_4FGL_J2347.9-5106_daily_bin261.fits outfile=/scratch/kocevski/115377/cmap_HighResolution_306979201_307238401_4FGL_J2347.9-5106_daily_bin261.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/115377/ft1_filtered_4FGL_J2347.9-5106_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/115377/ft2_4FGL_J2347.9-5106_daily_bin261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115377/Model_4FGL_J2347.9-5106_daily_bin261.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/115377/ft1_filtered_4FGL_J2347.9-5106_daily_bin261.fits...............................!
real 15.62
user 14.34
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10985E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14370E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10950E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.287       1.0000         .10000E-03   10000.    
     9 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12969E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14206E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11089E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    43.750       1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    238.84       1.0000         .10000E-03   10000.    
    26 'norm      '    22.616       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .18158E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    99.341       1.0000         .10000E-03   10000.    
    31 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.4318       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=   393.1294     FROM MIGRAD    STATUS=CONVERGED    949 CALLS     4993 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    840.00       -.25524E-03** at limit **
   2  Prefactor     .10000E-03    66.020        .17853E-04** at limit **
   3  Prefactor     .10002E-03    190.67        .58246E-04** at limit **
   4  Prefactor     .10000E-03    52.132       -.21968E-04** at limit **
   5  Prefactor     .10000E-03    23.507        .98962E-05** at limit **
   6  Prefactor     .10000E-03    133.41       -.42913E-04** at limit **
   7  Prefactor     .10000E-03    27.707        .10843E-04** at limit **
   8  Prefactor     34.285        26.628        .72474E-06    .99485E-04
   9  norm          .10000E-03    132.43       -.42765E-04** at limit **
  10  Prefactor     .10000E-03    23.955       -.12951E-04** at limit **
  11  Prefactor     .10000E-03    615.42        .27278E-04** at limit **
  12  norm          .10000E-03    31.271       -.22380E-04** at limit **
  13  Prefactor     .10000E-03    87.734        .43582E-04** at limit **
  14  Prefactor     .10000E-03    748.03       -.14202E-03** at limit **
  15  Prefactor     .10000E-03    159.25       -.18546E-04** at limit **
  16  Prefactor     .10000E-03    1097.9       -.51522E-03** at limit **
  17  Prefactor     .10000E-03    319.24        .27061E-03** at limit **
  18  Prefactor     .10000E-03    121.31       -.33999E-04** at limit **
  19  norm          .10000E-03    40.719        .25287E-04** at limit **
  20  norm          43.732        73.812       -.13493E-04   -.29453E-04
  21  norm          .10000E-03    10.751       -.85138E-07** at limit **
  22  Prefactor     .10000E-03    95.988        .24239E-04** at limit **
  23  Prefactor     .10000E-03    58.553       -.13814E-04** at limit **
  24  norm          .10000E-03    6.4672        .28089E-07** at limit **
  25  Prefactor     238.97        259.28        .79530E-04   -.35764E-04
  26  norm          22.611        20.898       -.14226E-05   -.63338E-04
  27  norm          .10000E-03    5.4062       -.19121E-06** at limit **
  28  Prefactor     .10000E-03    139.77       -.41861E-04** at limit **
  29  Prefactor     .10007E-03    58.717       -.79886E-05** at limit **
  30  Prefactor     99.166        243.89       -.16134E-03   -.15765E-04
  31  norm          .10000E-03    97.082        .22476E-04** at limit **
  32  Prefactor     .10000E-03    28.165        .57635E-05** at limit **
  33  Prefactor     .10000E-03    10.726        .17397E-06** at limit **
  34  Normalizat    .10000E-01    1.1259        .23036E-05** at limit **
  35  Prefactor     1.4326        .51917       -.23059E-06    .61371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2854
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 43.7319
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 238.967
  norm       = 22.6106
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100066
  Prefactor  = 99.1663
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.43261
 **********
 **   18 **HESSE 
 **********

 FCN=   393.1294     FROM HESSE     STATUS=OK           742 CALLS     5735 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    844.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.065        .15763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    191.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.130        .14001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.513        .93982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    133.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.744        .10203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.285        26.677        .68436E-04   -1.4536    
   9  norm          .10000E-03    132.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.955        .94867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    615.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    31.271        .10840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    87.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    748.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    159.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1097.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    319.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    121.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    40.704        .12370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          43.732        73.845        .60611E-04   -1.4384    
  21  norm          .10000E-03    10.752        .63539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    95.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    58.560        .14841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.4679        .49276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     238.97        259.41        .13099E-03   -1.2604    
  26  norm          22.611        20.977        .65162E-04   -1.4757    
  27  norm          .10000E-03    5.4064        .45053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    139.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10007E-03    58.758        .14819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     99.166        243.47        .20167E-03   -1.3713    
  31  norm          .10000E-03    97.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    28.178        .10288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    10.733        .63453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .10000E-01    1.4078        .11053E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     1.4326        .45580        .23320E-03   -.79445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51296e-09
Minuit parameter uncertainties:
  1  0.00468653
  2  0.000673814
  3  0.00340664
  4  3.17035e-05
  5  9.24468e-05
  6  9.38974e-05
  7  0.000132264
  8  26.6862
  9  3.36409e-05
  10  9.37302e-06
  11  0.000551601
  12  7.29317e-06
  13  0.000228485
  14  0.000608566
  15  6.47207e-05
  16  0.000160595
  17  0.00033339
  18  0.000165744
  19  0.000161543
  20  73.9997
  21  1.80068e-05
  22  0.00123066
  23  0.000223473
  24  3.22127e-05
  25  260.674
  26  20.9838
  27  1.70284e-05
  28  8.48056e-05
  29  0.00394547
  30  245.992
  31  6.95324e-05
  32  0.000344064
  33  7.63445e-05
  34  1.79893e-05
  35  0.457098
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.001e-04  3.945e-03  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.433e+00  4.571e-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.000e-02  1.799e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 356.999 -51.114
Photon Flux Upper Limit: 1.11e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115377/likelihoodResults_306979201_307238401_4FGL_J2347.9-5106_daily_bin261.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) = 393.129515206
delta logL = -8.0007975896e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 393.12943542
delta logL = -2.2202823402e-07

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     '    2.4334       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4326       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=   393.1294     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      253 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7067.1        .90712E-02** at limit **
   2  Index         2.4914        6.9268        .50000       -.10982E-04
   3  Normalizat    .10000E-01    .12462        .18779    ** at limit **
   4  Prefactor     1.4326        .18906        .52769E-01    .95652E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49141
  Normalizat = 0.01
  Prefactor  = 1.43261
 **********
 **   18 **HESSE 
 **********

 FCN=   393.1294     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    556.73        .14927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4914        7.4619        .50000       -.52558    
   3  Normalizat    .10000E-01    .90049        .11055E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4326        .41798        .23320E-03   -.79445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7756e-09
Minuit parameter uncertainties:
  1  0.00096785
  2  13.4951
  3  8.02026e-06
  4  0.41898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115377': 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) = 393.129435186
delta logL = 1.2066209365e-08

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  9.679e-04  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.491e+00  1.350e+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.433e+00  4.190e-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.000e-02  8.020e-06  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/115377/cmap_HighResolution_306979201_307238401_4FGL_J2347.9-5106_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-02', job_status='DONE', photon_flux_upper_limit='1.11e-06', time_completed='2021-09-30 04:53:05.833835', job_id='115377', GAL2='1.43', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633002785.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='1.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='261' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:53:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 115377: <4FGL_J2347.9-5106_daily_bin261> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin261> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 04:45:43 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:45:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 04:45:44 2021
Terminated at Thu Sep 30 04:53:06 2021
Results reported at Thu Sep 30 04:53:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin261 356.999 -51.1139 306979201 307238401 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 :                                   418.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             246.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   442 sec.
    Turnaround time :                            443 sec.

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

