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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1267
RA = 348.914, Dec = -50.3127
tmin = 567734401, tmax = 567993601
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='723390', job_status='RUN', time_executed='2021-09-29 10:01:06.402426', time_epoch_executed='1632934866.4' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723390/ft1_4FGL_J2315.6-5018_daily_bin1267.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723390/ft2_4FGL_J2315.6-5018_daily_bin1267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723390/ft1_4FGL_J2315.6-5018_daily_bin1267.fits outfile=/scratch/kocevski/723390/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1267.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=567734401.0 tmax=567993601.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 2.30
user 2.12
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/723390/ft2_4FGL_J2315.6-5018_daily_bin1267.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/723390/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1267.fits evtable="EVENTS" outfile="/scratch/kocevski/723390/ft1_filtered_4FGL_J2315.6-5018_daily_bin1267.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.46
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/723390/ft1_filtered_4FGL_J2315.6-5018_daily_bin1267.fits" evtable="EVENTS" scfile=/scratch/kocevski/723390/ft2_4FGL_J2315.6-5018_daily_bin1267.fits sctable="SC_DATA" outfile=/scratch/kocevski/723390/ltcube_567734401_567993601_4FGL_J2315.6-5018_daily_bin1267.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/723390/ft2_4FGL_J2315.6-5018_daily_bin1267.fits
.....................!
real 12.73
user 12.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723390/ft1_filtered_4FGL_J2315.6-5018_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/723390/ft2_4FGL_J2315.6-5018_daily_bin1267.fits sctable="SC_DATA" expcube=/scratch/kocevski/723390/ltcube_567734401_567993601_4FGL_J2315.6-5018_daily_bin1267.fits outfile=/scratch/kocevski/723390/expmap_567734401_567993601_4FGL_J2315.6-5018_daily_bin1267.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/723390/ltcube_567734401_567993601_4FGL_J2315.6-5018_daily_bin1267.fits
.....................!
real 191.75
user 186.32
sys 5.12

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/723390/ft1_filtered_4FGL_J2315.6-5018_daily_bin1267.fits scfile=/scratch/kocevski/723390/ft2_4FGL_J2315.6-5018_daily_bin1267.fits outfile=/scratch/kocevski/723390/cmap_567734401_567993601_4FGL_J2315.6-5018_daily_bin1267.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/723390/ft1_filtered_4FGL_J2315.6-5018_daily_bin1267.fits scfile=/scratch/kocevski/723390/ft2_4FGL_J2315.6-5018_daily_bin1267.fits outfile=/scratch/kocevski/723390/cmap_HighResolution_567734401_567993601_4FGL_J2315.6-5018_daily_bin1267.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/723390/ft1_filtered_4FGL_J2315.6-5018_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/723390/ft2_4FGL_J2315.6-5018_daily_bin1267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723390/Model_4FGL_J2315.6-5018_daily_bin1267.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/723390/ft1_filtered_4FGL_J2315.6-5018_daily_bin1267.fits.....................!
real 44.05
user 42.71
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96970       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.785       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5497       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.483       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9407       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0350       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6908       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.548       1.0000         .10000E-03   10000.    
    17 'Prefactor '    82.813       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.1142       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6399       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.5584       1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.015       1.0000         .10000E-03   10000.    
    26 'norm      '    .46360       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.6771       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.7975       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.3215       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .83487       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=   5945.869     FROM MIGRAD    STATUS=CONVERGED    952 CALLS     5045 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96978        12.492        .12926E-06   -.43036E-04
   2  Prefactor     .10000E-03    80.965        .18576E-06** at limit **
   3  Prefactor     10.784        12.817        .63096E-06   -.15837E-04
   4  Prefactor     4.5498        6.9452        .11864E-05   -.69094E-04
   5  Prefactor     .10000E-03    6.1991       -.15960E-07** at limit **
   6  Prefactor     .10000E-03    3.5138        .19871E-06** at limit **
   7  Prefactor     4.5197        5.1862        .18741E-06    .20842E-04
   8  Prefactor     38.509        72.116       -.48523E-05   -.51517E-04
   9  norm          .10000E-03    3.8738        .70892E-07** at limit **
  10  Prefactor     4.9405        4.2784        .69440E-06   -.87646E-04
  11  Prefactor     .10000E-03    33.147       -.10180E-05** at limit **
  12  Prefactor     4.0346        6.0365        .22647E-05   -.12774E-03
  13  Prefactor     .10000E-03    18.233       -.11929E-06** at limit **
  14  Prefactor     2.6894        13.594        .32187E-06    .14769E-04
  15  Prefactor     .10000E-03    33.360       -.12109E-05** at limit **
  16  Prefactor     11.547        9.4014        .37074E-06   -.19963E-04
  17  Prefactor     82.812        45.759       -.89608E-07    .15531E-04
  18  Prefactor     .10000E-03    10.581       -.20686E-06** at limit **
  19  norm          .10000E-03    4.2502       -.24700E-07** at limit **
  20  norm          .10000E-03    3.4831       -.20064E-08** at limit **
  21  norm          7.1145        5.4035        .18938E-07   -.49548E-04
  22  Prefactor     4.6396        5.2068        .52460E-07    .25729E-04
  23  Prefactor     .10000E-03    29.648        .19268E-05** at limit **
  24  norm          5.5578        4.2197       -.43412E-08   -.16035E-03
  25  Prefactor     27.013        16.641        .41489E-07    .16115E-04
  26  norm          .46373        .86811       -.81497E-07   -.81102E-03
  27  norm          .10000E-03    2.5750       -.95027E-07** at limit **
  28  Prefactor     .10000E-03    8.7389       -.25387E-06** at limit **
  29  Prefactor     4.6769        3.7165        .15537E-07    .23304E-04
  30  Prefactor     5.7934        28.672        .83176E-06    .17329E-04
  31  norm          .10000E-03    9.7925        .39664E-06** at limit **
  32  Prefactor     .10000E-03    3.3760       -.67339E-07** at limit **
  33  Prefactor     .10000E-03    1.8765       -.46271E-07** at limit **
  34  Normalizat    1.3218        .19812       -.77282E-07    .56855E-04
  35  Prefactor     .83460        .19781       -.10464E-05   -.20831E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.96978
  Prefactor  = 0.0001
  Prefactor  = 10.7838
  Prefactor  = 4.5498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51973
  Prefactor  = 38.5092
  norm       = 0.0001
  Prefactor  = 4.94053
  Prefactor  = 0.0001
  Prefactor  = 4.03461
  Prefactor  = 0.0001
  Prefactor  = 2.68943
  Prefactor  = 0.0001
  Prefactor  = 11.5475
  Prefactor  = 82.8116
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.11447
  Prefactor  = 4.63964
  Prefactor  = 0.0001
  norm       = 5.55783
  Prefactor  = 27.0129
  norm       = 0.463732
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.67693
  Prefactor  = 5.79336
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32175
  Prefactor  = 0.8346
 **********
 **   18 **HESSE 
 **********

 FCN=   5945.869     FROM HESSE     STATUS=OK           774 CALLS     5819 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96978        58.889        .51695E-02   -1.5511    
   2  Prefactor     .10000E-03    81.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.784        12.822        .61001E-03   -1.5051    
   4  Prefactor     4.5498        6.9410        .94366E-03   -1.5281    
   5  Prefactor     .10000E-03    6.2200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5204        .14125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5197        5.1787        .18021E-03   -1.5283    
   8  Prefactor     38.509        72.268        .64610E-04   -1.4466    
   9  norm          .10000E-03    3.8946        .14822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9405        4.2699        .71267E-03   -1.5263    
  11  Prefactor     .10000E-03    33.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0346        6.0421        .10037E-02   -1.5306    
  13  Prefactor     .10000E-03    18.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6894        13.567        .24837E-03   -1.5380    
  15  Prefactor     .10000E-03    33.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.547        9.4057        .58943E-03   -1.5028    
  17  Prefactor     82.812        45.762        .44139E-04   -1.3885    
  18  Prefactor     .10000E-03    10.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.2520        .15526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.4991        .14049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.1145        5.4138        .14758E-03   -1.5174    
  22  Prefactor     4.6396        5.1889        .17479E-03   -1.5277    
  23  Prefactor     .10000E-03    29.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.5578        4.2285        .12928E-03   -1.5236    
  25  Prefactor     27.013        16.596        .77076E-04   -1.4668    
  26  norm          .46373        .71759        .93418E-03   -1.5572    
  27  norm          .10000E-03    2.6297        .12074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.7761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.6769        3.6860        .11764E-03   -1.5275    
  30  Prefactor     5.7934        28.057        .16680E-03   -1.5227    
  31  norm          .10000E-03    9.7980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.4381        .13828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.8882        .10309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.3218        .24183        .23626E-03   -.82919    
  35  Prefactor     .83460        .23888        .29522E-03   -.98465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59947e-08
Minuit parameter uncertainties:
  1  15.129
  2  7.31538e-05
  3  12.825
  4  6.94226
  5  4.21323e-06
  6  1.89878e-05
  7  5.17925
  8  72.4327
  9  6.68328e-06
  10  4.2702
  11  8.68111e-05
  12  6.04302
  13  3.26255e-06
  14  12.085
  15  0.000104964
  16  9.40695
  17  45.7817
  18  1.00175e-05
  19  1.41446e-06
  20  2.00107e-06
  21  5.41415
  22  5.18935
  23  0.000108681
  24  4.22877
  25  16.599
  26  0.717598
  27  7.22812e-06
  28  1.38339e-05
  29  3.68621
  30  25.5178
  31  1.56424e-05
  32  6.34934e-06
  33  3.14105e-06
  34  0.242041
  35  0.239182
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  1.002e-05  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:  8.346e-01  2.392e-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.322e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 348.914 -50.313
Photon Flux Upper Limit: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/723390/likelihoodResults_567734401_567993601_4FGL_J2315.6-5018_daily_bin1267.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) = 5945.86921674
delta logL = -0.000448088759185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5945.86877306
delta logL = -4.4080443331e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15612E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3709       1.0000          .0000       10.000    
     3 'Normalizat'    1.3213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83506       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=   5945.869     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      250 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10426E-03    7.2719        .18142E-01** at limit **
   2  Index         2.2197        7.0723        .50000        .10847E-04
   3  Normalizat    1.3218        .36852E-02    .23626E-03    .23916E-04
   4  Prefactor     .83460        .37711E-02    .29523E-03    .19485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104263
  Index      = 2.21971
  Normalizat = 1.32175
  Prefactor  = 0.834602
 **********
 **   18 **HESSE 
 **********

 FCN=   5945.869     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10426E-03    186.59        .26065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2197        7.9943        .50000       -.58964    
   3  Normalizat    1.3218        .18844E-01    .94503E-05   -.82919    
   4  Prefactor     .83460        .19282E-01    .11809E-04   -.98465    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03819e-07
Minuit parameter uncertainties:
  1  0.0565863
  2  770.723
  3  0.0188437
  4  0.0192826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723390': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5945.86876822
delta logL = 4.28526618634e-07

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.043e-04  5.659e-02  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.220e+00  7.707e+02  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:  8.346e-01  1.928e-02  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.322e+00  1.884e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/723390/cmap_HighResolution_567734401_567993601_4FGL_J2315.6-5018_daily_bin1267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-29 10:17:04.175494', job_id='723390', GAL2='0.83', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632935824.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1267' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:17:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 723390: <4FGL_J2315.6-5018_daily_bin1267> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1267> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:00:49 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:00:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:00:51 2021
Terminated at Wed Sep 29 10:17:04 2021
Results reported at Wed Sep 29 10:17:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1267 348.914 -50.3127 567734401 567993601 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 :                                   958.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

