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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1009
RA = 348.914, Dec = -50.3127
tmin = 500860801, tmax = 501120001
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='721998', job_status='RUN', time_executed='2021-09-29 09:56:23.493268', time_epoch_executed='1632934583.49' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721998

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721998/ft1_4FGL_J2315.6-5018_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721998/ft2_4FGL_J2315.6-5018_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721998/ft1_4FGL_J2315.6-5018_daily_bin1009.fits outfile=/scratch/kocevski/721998/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1009.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=500860801.0 tmax=501120001.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.53
user 4.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721998/ft1_filtered_4FGL_J2315.6-5018_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/721998/ft2_4FGL_J2315.6-5018_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/721998/ltcube_500860801_501120001_4FGL_J2315.6-5018_daily_bin1009.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/721998/ft2_4FGL_J2315.6-5018_daily_bin1009.fits
.....................!
real 11.74
user 11.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721998/ft1_filtered_4FGL_J2315.6-5018_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/721998/ft2_4FGL_J2315.6-5018_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/721998/ltcube_500860801_501120001_4FGL_J2315.6-5018_daily_bin1009.fits outfile=/scratch/kocevski/721998/expmap_500860801_501120001_4FGL_J2315.6-5018_daily_bin1009.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/721998/ltcube_500860801_501120001_4FGL_J2315.6-5018_daily_bin1009.fits
.....................!
real 190.96
user 186.66
sys 3.99

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/721998/ft1_filtered_4FGL_J2315.6-5018_daily_bin1009.fits scfile=/scratch/kocevski/721998/ft2_4FGL_J2315.6-5018_daily_bin1009.fits outfile=/scratch/kocevski/721998/cmap_500860801_501120001_4FGL_J2315.6-5018_daily_bin1009.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/721998/ft1_filtered_4FGL_J2315.6-5018_daily_bin1009.fits scfile=/scratch/kocevski/721998/ft2_4FGL_J2315.6-5018_daily_bin1009.fits outfile=/scratch/kocevski/721998/cmap_HighResolution_500860801_501120001_4FGL_J2315.6-5018_daily_bin1009.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/721998/ft1_filtered_4FGL_J2315.6-5018_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/721998/ft2_4FGL_J2315.6-5018_daily_bin1009.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721998/Model_4FGL_J2315.6-5018_daily_bin1009.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/721998/ft1_filtered_4FGL_J2315.6-5018_daily_bin1009.fits.....................!
real 34.26
user 33.06
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.955       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.787       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2121       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.818       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.731       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.800       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.219       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7564       1.0000         .10000E-03   10000.    
    24 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.890       1.0000         .10000E-03   10000.    
    26 'norm      '    1.4254       1.0000         .10000E-03   10000.    
    27 'norm      '    3.9788       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .18409E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .17354E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    21.519       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.8520       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0277       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .57410       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=   3760.170     FROM MIGRAD    STATUS=CONVERGED    965 CALLS     5083 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.932        38.155        .14508E-05   -.11313E-04
   2  Prefactor     .10000E-03    28.954       -.21097E-05** at limit **
   3  Prefactor     .10000E-03    3.1744       -.16794E-07** at limit **
   4  Prefactor     10.787        12.028        .10468E-05   -.20869E-03
   5  Prefactor     .10000E-03    7.3855       -.71059E-06** at limit **
   6  Prefactor     9.6730        8.9575        .65991E-06   -.28762E-03
   7  Prefactor     2.2115        2.9674       -.20171E-07   -.46465E-04
   8  Prefactor     .10000E-03    39.471        .12274E-05** at limit **
   9  norm          .10000E-03    3.4345       -.61397E-08** at limit **
  10  Prefactor     .10000E-03    3.1690       -.27561E-07** at limit **
  11  Prefactor     .10000E-03    22.207       -.36644E-06** at limit **
  12  Prefactor     .10000E-03    4.3163        .88036E-07** at limit **
  13  Prefactor     42.836        34.991        .13909E-05    .44986E-04
  14  Prefactor     17.733        16.738       -.52390E-06   -.22113E-04
  15  Prefactor     .10000E-03    70.505       -.26698E-06** at limit **
  16  Prefactor     .10000E-03    5.8944       -.25545E-06** at limit **
  17  Prefactor     56.790        50.508       -.13597E-05   -.29632E-04
  18  Prefactor     .10000E-03    19.236        .56932E-06** at limit **
  19  norm          .10000E-03    14.308        .12647E-06** at limit **
  20  norm          .10000E-03    6.0041        .12214E-06** at limit **
  21  norm          11.218        10.466       -.62067E-06   -.21685E-03
  22  Prefactor     .10000E-03    6.3349        .30295E-06** at limit **
  23  Prefactor     3.7875        158.27        .11049E-04    .12148E-04
  24  norm          .10000E-03    8.5754        .13864E-05** at limit **
  25  Prefactor     41.898        25.802        .72691E-06    .16910E-04
  26  norm          1.4265        1.6675        .12575E-06    .13528E-04
  27  norm          3.9797        4.1176       -.77012E-07   -.13829E-03
  28  Prefactor     .10000E-03    65.788        .41439E-06** at limit **
  29  Prefactor     .10000E-03    4.6122       -.18932E-05** at limit **
  30  Prefactor     21.501        32.204        .28714E-05    .12825E-03
  31  norm          .10000E-03    12.651       -.53567E-06** at limit **
  32  Prefactor     7.8514        6.2812        .65183E-06    .15576E-04
  33  Prefactor     .10000E-03    4.9290       -.11978E-05** at limit **
  34  Normalizat    1.0269        .22913       -.28615E-06    .12877E-03
  35  Prefactor     .57478        .21170        .82988E-06   -.16633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7874
  Prefactor  = 0.0001
  Prefactor  = 9.67301
  Prefactor  = 2.21154
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.8364
  Prefactor  = 17.733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.7902
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.2184
  Prefactor  = 0.0001
  Prefactor  = 3.78747
  norm       = 0.000100001
  Prefactor  = 41.8979
  norm       = 1.42649
  norm       = 3.97966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.501
  norm       = 0.0001
  Prefactor  = 7.85138
  Prefactor  = 0.0001
  Normalizat = 1.02686
  Prefactor  = 0.574785
 **********
 **   18 **HESSE 
 **********

 FCN=   3760.170     FROM HESSE     STATUS=OK           764 CALLS     5847 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.932        36.448        .61889E-04   -1.4412    
   2  Prefactor     .10000E-03    29.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1757        .10670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.787        11.951        .60994E-03   -1.5051    
   5  Prefactor     .10000E-03    7.4759        .16275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.6730        8.9226        .64423E-03   -1.5086    
   7  Prefactor     2.2115        2.9546        .11801E-03   -1.5411    
   8  Prefactor     .10000E-03    39.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.4424        .11098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2530        .21302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3490        .12427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.836        35.151        .61265E-04   -1.4398    
  14  Prefactor     17.733        16.736        .95116E-04   -1.4866    
  15  Prefactor     .10000E-03    70.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9259        .14541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     56.790        50.581        .53228E-04   -1.4199    
  18  Prefactor     .10000E-03    19.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.0607        .14656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.218        10.439        .11961E-03   -1.5038    
  22  Prefactor     .10000E-03    6.3382        .15033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.7875        156.18        .20831E-03   -1.5319    
  24  norm          .10000E-03    8.4959        .34268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     41.898        25.711        .61936E-04   -1.4412    
  26  norm          1.4265        1.6287        .76867E-04   -1.5469    
  27  norm          3.9797        4.1156        .12140E-03   -1.5309    
  28  Prefactor     .10000E-03    68.308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.8318        .23917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     21.501        31.583        .86345E-04   -1.4780    
  31  norm          .10000E-03    12.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     7.8514        6.2881        .65226E-03   -1.5147    
  33  Prefactor     .10000E-03    19.679        .23992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0269        .28556        .21805E-03   -.92136    
  35  Prefactor     .57478        .26117        .27745E-03   -1.0866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2161e-10
Minuit parameter uncertainties:
  1  36.4669
  2  0.000109848
  3  9.39153e-07
  4  11.9534
  5  1.04932e-05
  6  8.92385
  7  2.95481
  8  6.21453e-05
  9  2.09305e-06
  10  4.22348e-06
  11  1.981e-05
  12  1.77424e-05
  13  35.1682
  14  16.7405
  15  2.59041e-05
  16  1.12212e-05
  17  50.6188
  18  2.09523e-05
  19  2.9887e-05
  20  9.36865e-06
  21  10.4411
  22  2.87034e-05
  23  48.7787
  24  0.000209311
  25  25.7181
  26  1.62878
  27  4.1159
  28  0.00013389
  29  9.49536e-07
  30  31.6074
  31  2.63154e-05
  32  6.2886
  33  0.000182615
  34  0.285984
  35  0.261716
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  2.095e-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:  5.748e-01  2.617e-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.027e+00  2.860e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/721998/likelihoodResults_500860801_501120001_4FGL_J2315.6-5018_daily_bin1009.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) = 3760.16994744
delta logL = -0.000246814083312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3760.16970048
delta logL = 1.46144429891e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7757       1.0000          .0000       10.000    
     3 'Normalizat'    1.0268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57479       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.

 FCN=   3760.170     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      242 TOTAL
                     EDM=   .67E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.534        .90712E-02** at limit **
   2  Index         2.7756        5.3061        .50000        .84367E-07
   3  Normalizat    1.0269        .37914E-02    .42492E-01    .24934E-04
   4  Prefactor     .57479        .37172E-02    .62707E-01    .22533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.7756
  Normalizat = 1.02686
  Prefactor  = 0.574788
 **********
 **   18 **HESSE 
 **********

 FCN=   3760.170     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    119.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7756        6.2945        .50000       -.46104    
   3  Normalizat    1.0269        .11676E-01    .21805E-03   -.92136    
   4  Prefactor     .57479        .11431E-01    .27745E-03   -1.0866    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.58809e-12
Minuit parameter uncertainties:
  1  0.000318733
  2  256.964
  3  0.0116759
  4  0.0114314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721998': 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) = 3760.16970036
delta logL = 2.68564690487e-07

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  3.187e-04  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.776e+00  2.570e+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:  5.748e-01  1.143e-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.027e+00  1.168e-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/721998/cmap_HighResolution_500860801_501120001_4FGL_J2315.6-5018_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 10:08:37.406958', job_id='721998', GAL2='0.57', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632935317.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='2.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1009' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:08:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 721998: <4FGL_J2315.6-5018_daily_bin1009> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1009> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 09:55:54 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:55:55 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:55 2021
Terminated at Wed Sep 29 10:08:38 2021
Results reported at Wed Sep 29 10:08:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1009 348.914 -50.3127 500860801 501120001 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 :                                   731.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

