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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1648
RA = 348.914, Dec = -50.3127
tmin = 666489601, tmax = 666748801
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='45069', job_status='RUN', time_executed='2022-02-17 02:36:06.891999', time_epoch_executed='1645094166.89' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1648'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45069/ft1_4FGL_J2315.6-5018_daily_bin1648.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45069/ft2_4FGL_J2315.6-5018_daily_bin1648.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45069/ft1_4FGL_J2315.6-5018_daily_bin1648.fits outfile=/scratch/kocevski/45069/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1648.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=666489601.0 tmax=666748801.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 3.29
user 3.00
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45069/ft1_filtered_4FGL_J2315.6-5018_daily_bin1648.fits" evtable="EVENTS" scfile=/scratch/kocevski/45069/ft2_4FGL_J2315.6-5018_daily_bin1648.fits sctable="SC_DATA" outfile=/scratch/kocevski/45069/ltcube_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.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/45069/ft2_4FGL_J2315.6-5018_daily_bin1648.fits
.....................!
real 16.17
user 15.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45069/ft1_filtered_4FGL_J2315.6-5018_daily_bin1648.fits evtable="EVENTS" scfile=/scratch/kocevski/45069/ft2_4FGL_J2315.6-5018_daily_bin1648.fits sctable="SC_DATA" expcube=/scratch/kocevski/45069/ltcube_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.fits outfile=/scratch/kocevski/45069/expmap_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.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/45069/ltcube_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.fits
.....................!
real 195.52
user 187.86
sys 5.25

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/45069/ft1_filtered_4FGL_J2315.6-5018_daily_bin1648.fits scfile=/scratch/kocevski/45069/ft2_4FGL_J2315.6-5018_daily_bin1648.fits outfile=/scratch/kocevski/45069/cmap_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.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.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45069/ft1_filtered_4FGL_J2315.6-5018_daily_bin1648.fits scfile=/scratch/kocevski/45069/ft2_4FGL_J2315.6-5018_daily_bin1648.fits outfile=/scratch/kocevski/45069/cmap_HighResolution_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/45069/ft1_filtered_4FGL_J2315.6-5018_daily_bin1648.fits evtable="EVENTS" scfile=/scratch/kocevski/45069/ft2_4FGL_J2315.6-5018_daily_bin1648.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45069/Model_4FGL_J2315.6-5018_daily_bin1648.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/45069/ft1_filtered_4FGL_J2315.6-5018_daily_bin1648.fits.........................!
real 18.22
user 16.56
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/45069/ft1_filtered_4FGL_J2315.6-5018_daily_bin1648.fits', '/scratch/kocevski/45069/ft2_4FGL_J2315.6-5018_daily_bin1648.fits', expMap='/scratch/kocevski/45069/expmap_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.fits', expCube='/scratch/kocevski/45069/ltcube_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/45069/Model_4FGL_J2315.6-5018_daily_bin1648.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/45069/ft1_filtered_4FGL_J2315.6-5018_daily_bin1648.fits
Spacecraft file(s): /scratch/kocevski/45069/ft2_4FGL_J2315.6-5018_daily_bin1648.fits
Exposure map: /scratch/kocevski/45069/expmap_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.fits
Exposure cube: /scratch/kocevski/45069/ltcube_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/45069/Model_4FGL_J2315.6-5018_daily_bin1648.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 748.91489683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7722       1.0000         .10000E-03   10000.    
     8 'Prefactor '    510.76       1.0000         .10000E-03   10000.    
     9 'norm      '    .76421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    181.63       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11227E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13172E-03   1.0000         .10000E-03   10000.    
    19 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    21 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17746E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4808.2       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    590.82       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    .47646       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=   740.8647     FROM MIGRAD    STATUS=CONVERGED    966 CALLS     5961 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.790       -.79054E-07** at limit **
   2  Prefactor     .10000E-03    22.762       -.28795E-06** at limit **
   3  Prefactor     10.452        23.541       -.67710E-07   -.83450E-05
   4  Prefactor     .10000E-03    10.770       -.13443E-05** at limit **
   5  Prefactor     .10000E-03    3.8944       -.10016E-06** at limit **
   6  Prefactor     .10000E-03    18.939       -.55216E-05** at limit **
   7  Prefactor     6.7773        7.3375        .27245E-06    .17805E-03
   8  Prefactor     510.45        287.03        .22012E-05    .57870E-04
   9  norm          .74069        48.457       -.67352E-05    .17565E-03
  10  Prefactor     .10000E-03    8.8221       -.96036E-06** at limit **
  11  Prefactor     .10000E-03    181.14       -.21039E-06** at limit **
  12  Prefactor     .10000E-03    7.5403       -.73656E-06** at limit **
  13  Prefactor     .10000E-03    18.909       -.34817E-06** at limit **
  14  Prefactor     .10000E-03    13.325       -.41263E-06** at limit **
  15  Prefactor     181.61        234.13        .97342E-07    .14856E-05
  16  Prefactor     .10000E-03    287.63       -.71919E-06** at limit **
  17  Prefactor     .10000E-03    87.560       -.22502E-06** at limit **
  18  Prefactor     .10000E-03    490.19       -.65604E-06** at limit **
  19  norm         10000.0        6978.6        .19594E-05** at limit **
  20  norm         10000.0        7044.3        .20637E-05** at limit **
  21  norm          .10000E-03    94.437       -.13460E-07** at limit **
  22  Prefactor    10000.0        894.78        .15967E-05** at limit **
  23  Prefactor     .10000E-03    449.51       -.55046E-07** at limit **
  24  norm          .10000E-03    30.002       -.31942E-07** at limit **
  25  Prefactor     .10000E-03    700.10       -.94258E-06** at limit **
  26  norm          4806.0        1316.4        .36263E-06    .68582E-05
  27  norm          .10000E-03    11.629       -.25528E-07** at limit **
  28  Prefactor     594.84        1808.7       -.64182E-05   -.31888E-06
  29  Prefactor     .10000E-03    9.1357       -.12840E-06** at limit **
  30  Prefactor     .10000E-03    100.61       -.28593E-05** at limit **
  31  norm          .10000E-03    63.443       -.44857E-07** at limit **
  32  Prefactor     .10000E-03    8.6776       -.23774E-07** at limit **
  33  Prefactor     .10000E-03    3.5027       -.11291E-06** at limit **
  34  Normalizat    .10000E-01    .48568E-01   -.10202E-05** at limit **
  35  Prefactor     .47660        .19669        .51073E-06    .58447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.77733
  Prefactor  = 510.445
  norm       = 0.740691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 181.607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4806.01
  norm       = 0.0001
  Prefactor  = 594.839
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.476603
 **********
 **   18 **HESSE 
 **********

 FCN=   740.8647     FROM HESSE     STATUS=OK           744 CALLS     6705 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.790        .10569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.767        .12692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.452        23.560        .12410E-03   -1.5061    
   4  Prefactor     .10000E-03    10.920        .87498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8949        .52479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.299        .11939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7773        7.3394        .72978E-04   -1.5187    
   8  Prefactor     510.45        287.84        .90846E-04   -1.1150    
   9  norm          .74069        70.878        .29678E-02   -1.5536    
  10  Prefactor     .10000E-03    8.8723        .79144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    181.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5653        .73127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.916        .11568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.355        .97104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     181.61        234.13        .14977E-03   -1.3005    
  16  Prefactor     .10000E-03    287.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    87.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    490.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        6977.9        .18214E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        7043.7        .18144E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    94.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        894.66        .21325E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    449.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    30.002        .14572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    700.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4806.0        1316.3        .40029E-04   -.38808E-01
  27  norm          .10000E-03    11.629        .90692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     594.84        1806.4        .84825E-04   -1.0780    
  29  Prefactor     .10000E-03    9.1365        .80383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    101.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    63.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    8.6776        .78339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    3.5033        .49770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .10000E-01    .48672E-01    .18494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .47660        .19762        .22049E-03   -1.1306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11917e-09
Minuit parameter uncertainties:
  1  6.42193e-06
  2  2.52539e-05
  3  23.5808
  4  7.99184e-05
  5  3.58156e-06
  6  0.000455649
  7  7.34042
  8  288.666
  9  14.5079
  10  5.17612e-05
  11  0.000104327
  12  3.6946e-05
  13  2.54387e-05
  14  2.64657e-05
  15  235.346
  16  9.55548e-05
  17  1.83606e-05
  18  0.000208611
  19  0.0102457
  20  0.00872933
  21  7.83199e-07
  22  0.000923071
  23  8.48312e-05
  24  1.86847e-06
  25  0.000783285
  26  1332
  27  1.86068e-06
  28  2055.54
  29  7.04997e-06
  30  0.00053907
  31  8.77589e-06
  32  1.11389e-06
  33  3.84274e-06
  34  9.5344e-08
  35  0.197908
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  2.086e-04  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.766e-01  1.979e-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.000e-02  9.534e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 348.914 -50.313
Photon Flux Upper Limit: 6.33e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/45069/likelihoodResults_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.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) = 740.864721365
delta logL = -9.57385088896e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 740.864711975
delta logL = -1.83650058716e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12178E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0716       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47666       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=   740.8647     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      263 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11234E-03    481.17        .18142E-01** at limit **
   2  Index         2.8648        5.0271        .50000        .77217E-06
   3  Normalizat    .10000E-01    .14437E-03    .18494E-02** at limit **
   4  Prefactor     .47660        .96099E-02    .22049E-03   -.85745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00011234
  Index      = 2.86482
  Normalizat = 0.01
  Prefactor  = 0.476601
 **********
 **   18 **HESSE 
 **********

 FCN=   740.8647     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11234E-03    2235.4        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8648        5.2479        .50000       -.44121    
   3  Normalizat    .10000E-01    .72435E-03    .36989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47660        .21526E-01    .44099E-04   -1.1306    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.77003e-09
Minuit parameter uncertainties:
  1  0.345994
  2  2783.44
  3  3.57713e-08
  4  0.0215259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45069': 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) = 740.864711861
delta logL = -6.95146127327e-08

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.123e-04  3.460e-01  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.865e+00  2.783e+03  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.766e-01  2.153e-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.000e-02  3.577e-08  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/45069/cmap_HighResolution_666489601_666748801_4FGL_J2315.6-5018_daily_bin1648.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-01', job_status='DONE', photon_flux_upper_limit='6.33e-06', time_completed='2022-02-17 02:43:27.885628', job_id='45069', GAL2='0.48', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1645094607.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='-6.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1648' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb 17 02:43:27 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 45069: <4FGL_J2315.6-5018_daily_bin1648> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1648> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Feb 17 02:30:29 2022
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb 17 02:35:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb 17 02:35:45 2022
Terminated at Thu Feb 17 02:43:28 2022
Results reported at Thu Feb 17 02:43:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1648 348.914 -50.3127 666489601 666748801 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 :                                   438.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   463 sec.
    Turnaround time :                            779 sec.

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

