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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin993
RA = 348.914, Dec = -50.3127
tmin = 496713601, tmax = 496972801
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='721969', job_status='RUN', time_executed='2021-09-29 09:58:48.911150', time_epoch_executed='1632934728.91' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721969

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721969/ft1_4FGL_J2315.6-5018_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721969/ft2_4FGL_J2315.6-5018_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721969/ft1_4FGL_J2315.6-5018_daily_bin993.fits outfile=/scratch/kocevski/721969/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin993.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=496713601.0 tmax=496972801.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.94
user 4.68
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/721969/ft2_4FGL_J2315.6-5018_daily_bin993.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/721969/ft2_4FGL_J2315.6-5018_daily_bin993.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/721969/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin993.fits evtable="EVENTS" outfile="/scratch/kocevski/721969/ft1_filtered_4FGL_J2315.6-5018_daily_bin993.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721969/ft1_filtered_4FGL_J2315.6-5018_daily_bin993.fits" evtable="EVENTS" scfile=/scratch/kocevski/721969/ft2_4FGL_J2315.6-5018_daily_bin993.fits sctable="SC_DATA" outfile=/scratch/kocevski/721969/ltcube_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.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/721969/ft2_4FGL_J2315.6-5018_daily_bin993.fits
.....................!
real 11.97
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721969/ft1_filtered_4FGL_J2315.6-5018_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/721969/ft2_4FGL_J2315.6-5018_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/721969/ltcube_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.fits outfile=/scratch/kocevski/721969/expmap_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.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/721969/ltcube_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.fits
.....................!
real 190.29
user 185.08
sys 4.92

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 J2315.6-5018 @ 348.914 -50.3127

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/721969/ft1_filtered_4FGL_J2315.6-5018_daily_bin993.fits scfile=/scratch/kocevski/721969/ft2_4FGL_J2315.6-5018_daily_bin993.fits outfile=/scratch/kocevski/721969/cmap_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.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=348.914 yref=-50.3127 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/721969/ft1_filtered_4FGL_J2315.6-5018_daily_bin993.fits scfile=/scratch/kocevski/721969/ft2_4FGL_J2315.6-5018_daily_bin993.fits outfile=/scratch/kocevski/721969/cmap_HighResolution_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.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=348.914 yref=-50.3127 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/721969/ft1_filtered_4FGL_J2315.6-5018_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/721969/ft2_4FGL_J2315.6-5018_daily_bin993.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721969/Model_4FGL_J2315.6-5018_daily_bin993.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/721969/ft1_filtered_4FGL_J2315.6-5018_daily_bin993.fits.....................!
real 28.57
user 27.28
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/721969/ft1_filtered_4FGL_J2315.6-5018_daily_bin993.fits', '/scratch/kocevski/721969/ft2_4FGL_J2315.6-5018_daily_bin993.fits', expMap='/scratch/kocevski/721969/expmap_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.fits', expCube='/scratch/kocevski/721969/ltcube_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/721969/Model_4FGL_J2315.6-5018_daily_bin993.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2315.6-5018'

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  3.550e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
434        Scale:  1.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/721969/ft1_filtered_4FGL_J2315.6-5018_daily_bin993.fits
Spacecraft file(s): /scratch/kocevski/721969/ft2_4FGL_J2315.6-5018_daily_bin993.fits
Exposure map: /scratch/kocevski/721969/expmap_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.fits
Exposure cube: /scratch/kocevski/721969/ltcube_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/721969/Model_4FGL_J2315.6-5018_daily_bin993.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) = 3149.83045757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1715       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.504       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9602       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8966       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.688       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9528       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.217       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.479       1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2600       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2330       1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.1140       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    19.263       1.0000         .10000E-03   10000.    
    31 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .89036       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .57682       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1125       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3149.814     FROM MIGRAD    STATUS=CONVERGED    946 CALLS     5873 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.657        .15192E-05** at limit **
   2  Prefactor     .10000E-03    47.325       -.35102E-05** at limit **
   3  Prefactor     .10000E-03    7.2383       -.58976E-06** at limit **
   4  Prefactor     6.1719        6.7079        .65575E-07    .69732E-04
   5  Prefactor     10.508        12.006        .53031E-06    .28869E-04
   6  Prefactor     .10000E-03    6.7714        .28302E-06** at limit **
   7  Prefactor     3.9601        4.9056        .81201E-07   -.20461E-04
   8  Prefactor     .10000E-03    61.166        .38655E-05** at limit **
   9  norm          .10000E-03    5.6731        .21468E-06** at limit **
  10  Prefactor     .10000E-03    9.1424       -.10253E-06** at limit **
  11  Prefactor     .10000E-03    29.801       -.67409E-06** at limit **
  12  Prefactor     1.8961        4.8351        .26661E-05   -.14155E-03
  13  Prefactor     49.688        44.299       -.40076E-06   -.12356E-04
  14  Prefactor     9.9545        14.615        .16440E-06   -.54206E-06
  15  Prefactor     .10000E-03    54.442       -.43192E-06** at limit **
  16  Prefactor     .10000E-03    3.3461       -.33244E-07** at limit **
  17  Prefactor     29.233        54.392       -.30065E-05   -.27027E-04
  18  Prefactor     12.484        19.861       -.66737E-06   -.65385E-05
  19  norm          .10000E-03    5.6277       -.24126E-06** at limit **
  20  norm          .10000E-03    15.007        .26659E-07** at limit **
  21  norm          .10000E-03    3.7077        .61115E-06** at limit **
  22  Prefactor     3.2589        7.2666        .34831E-05   -.13775E-03
  23  Prefactor     1.2488        140.11       -.57410E-05   -.30934E-04
  24  norm          .10000E-03    1.8563        .31032E-06** at limit **
  25  Prefactor     .10000E-03    15.650        .60212E-07** at limit **
  26  norm          .10000E-03    .50849        .39732E-07** at limit **
  27  norm          5.1142        4.7972        .63231E-06    .43590E-03
  28  Prefactor     .10000E-03    9.0630        .55729E-08** at limit **
  29  Prefactor     .10000E-03    1.3451        .63990E-07** at limit **
  30  Prefactor     19.268        22.797       -.40689E-06    .11946E-04
  31  norm          .10000E-03    14.998       -.33367E-06** at limit **
  32  Prefactor     .88855        6.4905        .13627E-05    .78843E-05
  33  Prefactor     .10000E-03    2.7736       -.10600E-06** at limit **
  34  Normalizat    .57638        .22620       -.23736E-06    .93865E-04
  35  Prefactor     1.1130        .23386       -.32877E-06    .12094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.17194
  Prefactor  = 10.508
  Prefactor  = 0.0001
  Prefactor  = 3.96012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.89607
  Prefactor  = 49.6881
  Prefactor  = 9.95454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2327
  Prefactor  = 12.4838
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.2589
  Prefactor  = 1.24876
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.11421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2679
  norm       = 0.0001
  Prefactor  = 0.888548
  Prefactor  = 0.0001
  Normalizat = 0.576377
  Prefactor  = 1.11302
 **********
 **   18 **HESSE 
 **********

 FCN=   3149.814     FROM HESSE     STATUS=OK           766 CALLS     6639 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.2889        .14747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1719        6.6993        .14678E-03   -1.5211    
   5  Prefactor     10.508        12.017        .61812E-03   -1.5060    
   6  Prefactor     .10000E-03    6.8014        .14257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9601        4.8977        .13357E-03   -1.5310    
   8  Prefactor     .10000E-03    60.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.6849        .13053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4812        .33061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8961        4.8320        .95321E-03   -1.5433    
  13  Prefactor     49.688        44.188        .56891E-04   -1.4297    
  14  Prefactor     9.9545        14.576        .12702E-03   -1.5077    
  15  Prefactor     .10000E-03    54.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3563        .10026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.233        54.313        .74121E-04   -1.4626    
  18  Prefactor     12.484        19.821        .11340E-03   -1.5001    
  19  norm          .10000E-03    5.6302        .13003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    15.391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.7454        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.2589        7.2711        .10750E-02   -1.5347    
  23  Prefactor     1.2488        141.41        .40469E-03   -1.5484    
  24  norm          .10000E-03    1.8676        .74614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .51800        .38959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.1142        4.7751        .11045E-03   -1.5256    
  28  Prefactor     .10000E-03    9.0801        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.3474        .63477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     19.268        22.735        .91257E-04   -1.4830    
  31  norm          .10000E-03    15.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .88855        10.771        .25280E-02   -1.5519    
  33  Prefactor     .10000E-03    2.8601        .18248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .57638        .26972        .26004E-03   -1.0900    
  35  Prefactor     1.1130        .28251        .20849E-03   -.89051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30162e-10
Minuit parameter uncertainties:
  1  2.98663e-05
  2  0.000227308
  3  1.96674e-05
  4  6.7001
  5  12.02
  6  4.51124e-06
  7  4.8982
  8  0.000256523
  9  2.52503e-07
  10  6.21253e-05
  11  4.98554e-05
  12  4.83302
  13  44.2169
  14  14.5812
  15  9.67794e-06
  16  3.58038e-06
  17  54.4051
  18  19.8318
  19  5.03757e-06
  20  1.02332e-05
  21  6.63162e-05
  22  7.27304
  23  26.6407
  24  2.3255e-05
  25  1.09135e-05
  26  4.92197e-07
  27  4.77548
  28  1.08641e-05
  29  2.44734e-06
  30  22.7456
  31  1.61493e-05
  32  6.18834
  33  1.03331e-05
  34  0.27034
  35  0.282891
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.248e+01  1.983e+01  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
434        Scale:  1.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.113e+00  2.829e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  5.764e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.52
Ra Dec: 348.914 -50.313
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/721969/likelihoodResults_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3149.79896566
delta logL = 0.0147946201537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3149.78759609
delta logL = 0.0261641896386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1486       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6344       1.0000          .0000       10.000    
     3 'Normalizat'    .57067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1180       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+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=   3149.788     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      244 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1445        24.802        .13251E-03    .29180E-03
   2  Index         2.6345        1.2837        .72519E-02    .97722E-04
   3  Normalizat    .57068        .25882        .26127E-03   -.38800E-03
   4  Prefactor     1.1180        .28061        .20808E-03   -.53138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.14448
  Index      = 2.63451
  Normalizat = 0.570682
  Prefactor  = 1.11797
 **********
 **   18 **HESSE 
 **********

 FCN=   3149.788     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1445        21.333        .53002E-05   -1.5103    
   2  Index         2.6345        1.1074        .29008E-03   -.49280    
   3  Normalizat    .57068        .25903        .52254E-04   -1.0924    
   4  Prefactor     1.1180        .28062        .41617E-04   -.88894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.664e-10
Minuit parameter uncertainties:
  1  21.3511
  2  1.11942
  3  0.259579
  4  0.280992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721969': 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) = 3149.78759607
delta logL = 0.0261642124387

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  9.144e+00  2.135e+01  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.635e+00  1.119e+00  0.000e+00  1.000e+01 (-1.000e+00)
434        Scale:  1.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.118e+00  2.810e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  5.707e-01  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.52
Ra Dec: 348.914 -50.313

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/721969/cmap_HighResolution_496713601_496972801_4FGL_J2315.6-5018_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-29 10:10:31.691084', job_id='721969', GAL2='1.12', fit_tolerance='1e-08', EG2='0.57', EG='0.58', time_epoch_completed='1632935431.69', return_code2='0', ts='0.52', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.62e-02', ts2='0.58', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='993' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:10:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 721969: <4FGL_J2315.6-5018_daily_bin993> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin993> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 09:55:52 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:55:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 09:55:52 2021
Terminated at Wed Sep 29 10:10:32 2021
Results reported at Wed Sep 29 10:10:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin993 348.914 -50.3127 496713601 496972801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2315.6-5018 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

