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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin53
RA = 348.914, Dec = -50.3127
tmin = 253065601, tmax = 253324801
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='716318', job_status='RUN', time_executed='2021-09-29 09:36:17.055599', time_epoch_executed='1632933377.06' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716318/ft1_4FGL_J2315.6-5018_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716318/ft2_4FGL_J2315.6-5018_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716318/ft1_4FGL_J2315.6-5018_daily_bin53.fits outfile=/scratch/kocevski/716318/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin53.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=253065601.0 tmax=253324801.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 1.41
user 1.23
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/716318/ft2_4FGL_J2315.6-5018_daily_bin53.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/716318/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin53.fits evtable="EVENTS" outfile="/scratch/kocevski/716318/ft1_filtered_4FGL_J2315.6-5018_daily_bin53.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716318/ft1_filtered_4FGL_J2315.6-5018_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/716318/ft2_4FGL_J2315.6-5018_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/716318/ltcube_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.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/716318/ft2_4FGL_J2315.6-5018_daily_bin53.fits
.....................!
real 13.04
user 12.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716318/ft1_filtered_4FGL_J2315.6-5018_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/716318/ft2_4FGL_J2315.6-5018_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/716318/ltcube_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.fits outfile=/scratch/kocevski/716318/expmap_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.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/716318/ltcube_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.fits
.....................!
real 190.09
user 185.45
sys 4.27

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/716318/ft1_filtered_4FGL_J2315.6-5018_daily_bin53.fits scfile=/scratch/kocevski/716318/ft2_4FGL_J2315.6-5018_daily_bin53.fits outfile=/scratch/kocevski/716318/cmap_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716318/ft1_filtered_4FGL_J2315.6-5018_daily_bin53.fits scfile=/scratch/kocevski/716318/ft2_4FGL_J2315.6-5018_daily_bin53.fits outfile=/scratch/kocevski/716318/cmap_HighResolution_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716318/ft1_filtered_4FGL_J2315.6-5018_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/716318/ft2_4FGL_J2315.6-5018_daily_bin53.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716318/Model_4FGL_J2315.6-5018_daily_bin53.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/716318/ft1_filtered_4FGL_J2315.6-5018_daily_bin53.fits.....................!
real 41.28
user 40.01
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/716318/ft1_filtered_4FGL_J2315.6-5018_daily_bin53.fits', '/scratch/kocevski/716318/ft2_4FGL_J2315.6-5018_daily_bin53.fits', expMap='/scratch/kocevski/716318/expmap_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.fits', expCube='/scratch/kocevski/716318/ltcube_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/716318/Model_4FGL_J2315.6-5018_daily_bin53.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/716318/ft1_filtered_4FGL_J2315.6-5018_daily_bin53.fits
Spacecraft file(s): /scratch/kocevski/716318/ft2_4FGL_J2315.6-5018_daily_bin53.fits
Exposure map: /scratch/kocevski/716318/expmap_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.fits
Exposure cube: /scratch/kocevski/716318/ltcube_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/716318/Model_4FGL_J2315.6-5018_daily_bin53.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) = 5439.48789587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.448       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.4400       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2043       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35776E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    104.02       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.492       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.8337       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.482       1.0000         .10000E-03   10000.    
    26 'norm      '    .10348E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .64978       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.5261       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.0839       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.4343       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .49271       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=   5439.402     FROM MIGRAD    STATUS=CONVERGED    966 CALLS     5105 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.758        21.666       -.33790E-06   -.75425E-05
   2  Prefactor     27.591        51.790       -.13413E-06    .10583E-04
   3  Prefactor     18.449        12.867        .36342E-07   -.14217E-05
   4  Prefactor     .10000E-03    3.1184        .64758E-07** at limit **
   5  Prefactor     .10000E-03    6.8180        .11446E-06** at limit **
   6  Prefactor     .10000E-03    4.7796        .35422E-07** at limit **
   7  Prefactor     .10000E-03    1.9062        .42439E-07** at limit **
   8  Prefactor     .10000E-03    93.399        .98114E-07** at limit **
   9  norm          4.4397        4.8240       -.21343E-06    .77256E-05
  10  Prefactor     .10000E-03    1.5430        .58515E-08** at limit **
  11  Prefactor     .10000E-03    16.926        .24412E-08** at limit **
  12  Prefactor     1.2076        7.3607        .24429E-05   -.74903E-04
  13  Prefactor     .10004E-03    16.070        .41225E-06** at limit **
  14  Prefactor     .10000E-03    15.570       -.71681E-07** at limit **
  15  Prefactor     .10000E-03    37.740       -.29600E-06** at limit **
  16  Prefactor     .10000E-03    2.5688        .94760E-08** at limit **
  17  Prefactor     103.97        56.569       -.46190E-06   -.22040E-03
  18  Prefactor     15.493        14.675       -.30105E-07    .59366E-04
  19  norm          .10000E-03    6.5462       -.13306E-07** at limit **
  20  norm          8.8386        7.9472        .12781E-05    .12709E-03
  21  norm          .10000E-03    1.4218       -.99697E-09** at limit **
  22  Prefactor     .10000E-03    3.4589       -.64362E-07** at limit **
  23  Prefactor     .10000E-03    41.255        .17136E-06** at limit **
  24  norm          .10000E-03    1.6043       -.24214E-07** at limit **
  25  Prefactor     16.484        12.687       -.37687E-07    .63450E-04
  26  norm          .10000E-03    .49423       -.26994E-06** at limit **
  27  norm          .65010        2.8295        .14348E-05   -.20723E-04
  28  Prefactor     .10000E-03    9.3354        .11920E-06** at limit **
  29  Prefactor     2.5267        2.9718        .12416E-06    .51727E-04
  30  Prefactor     .10000E-03    10.648       -.30547E-07** at limit **
  31  norm          .10000E-03    5.9505        .23732E-07** at limit **
  32  Prefactor     .10000E-03    6.5600        .23363E-06** at limit **
  33  Prefactor     2.0834        4.3742        .58097E-06   -.22447E-04
  34  Normalizat    1.4343        .18795        .87041E-07   -.92095E-04
  35  Prefactor     .49263        .18087       -.52926E-06   -.52929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7578
  Prefactor  = 27.591
  Prefactor  = 18.4489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.43965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20756
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.968
  Prefactor  = 15.4935
  norm       = 0.0001
  norm       = 8.83857
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.484
  norm       = 0.0001
  norm       = 0.650098
  Prefactor  = 0.0001
  Prefactor  = 2.5267
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.08343
  Normalizat = 1.43426
  Prefactor  = 0.492635
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.402     FROM HESSE     STATUS=OK           764 CALLS     5869 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.758        21.487        .12216E-03   -1.5052    
   2  Prefactor     27.591        51.895        .76277E-04   -1.4657    
   3  Prefactor     18.449        12.878        .93250E-04   -1.4849    
   4  Prefactor     .10000E-03    3.1221        .12717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8132        .15745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9414        .99411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    93.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.4397        4.8200        .82281E-03   -1.5287    
  10  Prefactor     .10000E-03    1.5736        .89434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2076        7.1015        .36166E-03   -1.5488    
  13  Prefactor     .10004E-03    68.776        .55934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5795        .11543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     103.97        56.553        .19713E-03   -1.3665    
  18  Prefactor     15.493        14.643        .10176E-03   -1.4921    
  19  norm          .10000E-03    6.5699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.8386        7.9698        .67430E-03   -1.5113    
  21  norm          .10000E-03    1.4227        .85884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.4824        .13377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    41.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.6147        .91189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.484        12.658        .98654E-04   -1.4896    
  26  norm          .10000E-03    .70239        .98565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .65010        2.7110        .23824E-03   -1.5547    
  28  Prefactor     .10000E-03    9.3721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.5267        2.9515        .13071E-03   -1.5390    
  30  Prefactor     .10000E-03    10.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    5.9510        .17572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    6.7137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     2.0834        4.3307        .20185E-03   -1.5419    
  34  Normalizat    1.4343        .22037        .19939E-03   -.79643    
  35  Prefactor     .49263        .20980        .32369E-03   -1.1232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0529e-10
Minuit parameter uncertainties:
  1  21.5028
  2  51.9797
  3  12.8799
  4  1.68305e-07
  5  1.23772e-06
  6  3.00647e-06
  7  8.47173e-07
  8  2.95725e-05
  9  4.82047
  10  1.69607e-06
  11  6.81677e-06
  12  5.85761
  13  0.00332197
  14  5.47422e-06
  15  0.000133143
  16  5.19081e-07
  17  56.5824
  18  14.6463
  19  5.54531e-06
  20  7.97078
  21  7.66575e-07
  22  6.5226e-06
  23  3.43278e-05
  24  4.56086e-06
  25  12.6603
  26  1.18125e-05
  27  2.6551
  28  1.36416e-05
  29  2.95167
  30  2.14234e-05
  31  3.65468e-06
  32  6.65523e-06
  33  4.33133
  34  0.220512
  35  0.210132
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.549e+01  1.465e+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:  4.926e-01  2.101e-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:  1.434e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 348.914 -50.313
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.08e-05

TS (Fixed Index): 2.21
Ra Dec: 348.914 -50.313
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/716318/likelihoodResults_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.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) = 5439.19205572
delta logL = 0.210272509772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5439.19048566
delta logL = 0.211842575553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.480       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9395       1.0000          .0000       10.000    
     3 'Normalizat'    1.4508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48133       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=   5439.190     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      300 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.482        19.622        .88506E-04   -.12967E-02
   2  Index         1.9394        .66354        .98905E-02   -.40861E-03
   3  Normalizat    1.4507        .20737        .19847E-03    .24350E-03
   4  Prefactor     .48143        .20670        .32711E-03    .16759E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4817
  Index      = 1.93939
  Normalizat = 1.45075
  Prefactor  = 0.481434
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.190     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.482        19.596        .17701E-04   -1.4803    
   2  Index         1.9394        .66255        .39562E-03   -.65874    
   3  Normalizat    1.4507        .20745        .39695E-04   -.79172    
   4  Prefactor     .48143        .20680        .13085E-04   -1.1284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06723e-09
Minuit parameter uncertainties:
  1  19.6017
  2  0.665687
  3  0.207569
  4  0.207125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716318': 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) = 5439.19048551
delta logL = 0.211842716933

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  2.048e+01  1.960e+01  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  1.939e+00  6.657e-01  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:  4.814e-01  2.071e-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:  1.451e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 348.914 -50.313
Photon Index (Free Index): 1.94 +/- 0.67
Photon Flux (Free Index): 2.27e-08 +/- 2.95e-08
Energy Flux (Free Index): 1.83e-05 +/- 2.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/716318/cmap_HighResolution_253065601_253324801_4FGL_J2315.6-5018_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='1.83e-05', photon_flux_error='3.26e-08', dlogl='2.12e-01', energy_flux='1.14e-05', photon_flux2='2.27e-08', job_status='DONE', time_completed='2021-09-29 09:51:34.292037', photon_index_error2='0.67', photon_index2='1.94', ts='2.21', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='2.38e-05', EG='1.43', time_epoch_completed='1632934294.29', return_code='0', job_id='716318', GAL2='0.48', EG2='1.45', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.95e-08', ts2='2.64', photon_index='2.40' WHERE bin_id='53' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:51:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 716318: <4FGL_J2315.6-5018_daily_bin53> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin53> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 09:36:01 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:36:03 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:36:03 2021
Terminated at Wed Sep 29 09:51:35 2021
Results reported at Wed Sep 29 09:51:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin53 348.914 -50.3127 253065601 253324801 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 :                                   916.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

