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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1500
RA = 348.914, Dec = -50.3127
tmin = 628128001, tmax = 628387201
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='724698', job_status='RUN', time_executed='2021-09-29 10:05:58.640512', time_epoch_executed='1632935158.64' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724698/ft1_4FGL_J2315.6-5018_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724698/ft2_4FGL_J2315.6-5018_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724698/ft1_4FGL_J2315.6-5018_daily_bin1500.fits outfile=/scratch/kocevski/724698/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1500.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=628128001.0 tmax=628387201.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 5.26
user 4.94
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724698/ft1_filtered_4FGL_J2315.6-5018_daily_bin1500.fits" evtable="EVENTS" scfile=/scratch/kocevski/724698/ft2_4FGL_J2315.6-5018_daily_bin1500.fits sctable="SC_DATA" outfile=/scratch/kocevski/724698/ltcube_628128001_628387201_4FGL_J2315.6-5018_daily_bin1500.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/724698/ft2_4FGL_J2315.6-5018_daily_bin1500.fits
.....................!
real 12.07
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724698/ft1_filtered_4FGL_J2315.6-5018_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/724698/ft2_4FGL_J2315.6-5018_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/724698/ltcube_628128001_628387201_4FGL_J2315.6-5018_daily_bin1500.fits outfile=/scratch/kocevski/724698/expmap_628128001_628387201_4FGL_J2315.6-5018_daily_bin1500.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/724698/ltcube_628128001_628387201_4FGL_J2315.6-5018_daily_bin1500.fits
.....................!
real 190.99
user 185.28
sys 5.27

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J2315.6-5018 @ 348.914 -50.3127

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/724698/ft1_filtered_4FGL_J2315.6-5018_daily_bin1500.fits scfile=/scratch/kocevski/724698/ft2_4FGL_J2315.6-5018_daily_bin1500.fits outfile=/scratch/kocevski/724698/cmap_628128001_628387201_4FGL_J2315.6-5018_daily_bin1500.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724698/ft1_filtered_4FGL_J2315.6-5018_daily_bin1500.fits scfile=/scratch/kocevski/724698/ft2_4FGL_J2315.6-5018_daily_bin1500.fits outfile=/scratch/kocevski/724698/cmap_HighResolution_628128001_628387201_4FGL_J2315.6-5018_daily_bin1500.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=348.914 yref=-50.3127 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724698/ft1_filtered_4FGL_J2315.6-5018_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/724698/ft2_4FGL_J2315.6-5018_daily_bin1500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724698/Model_4FGL_J2315.6-5018_daily_bin1500.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/724698/ft1_filtered_4FGL_J2315.6-5018_daily_bin1500.fits.....................!
real 34.86
user 33.50
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.762       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.194       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4956       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.231       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5775       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .95927       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3120       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.649       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.173       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.481       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.234       1.0000         .10000E-03   10000.    
    21 'norm      '    3.2947       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4813       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.8465       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.1826       1.0000         .10000E-03   10000.    
    26 'norm      '    .11571E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.5540       1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.632       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.2435       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.7954       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0421       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .86998       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=   4253.653     FROM MIGRAD    STATUS=CONVERGED    947 CALLS     5104 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.765        27.907        .36716E-07   -.68277E-05
   2  Prefactor     .10000E-03    9.3601        .56380E-07** at limit **
   3  Prefactor     9.8604        11.406        .19489E-06   -.80398E-05
   4  Prefactor     .10000E-03    2.1226       -.18928E-08** at limit **
   5  Prefactor     .10000E-03    3.9412        .35678E-07** at limit **
   6  Prefactor     12.196        17.444       -.95071E-07   -.15384E-04
   7  Prefactor     5.4955        5.7835        .20254E-07    .31211E-04
   8  Prefactor     38.205        123.70        .22505E-05   -.72612E-05
   9  norm          2.5768        6.1416        .27561E-05   -.11636E-03
  10  Prefactor     .95333        5.8625       -.17984E-05   -.39323E-03
  11  Prefactor     .10000E-03    31.881       -.11663E-05** at limit **
  12  Prefactor     6.3126        8.6162        .33453E-06   -.25177E-04
  13  Prefactor     .10000E-03    28.810       -.49983E-06** at limit **
  14  Prefactor     16.650        15.293        .28109E-06    .76931E-04
  15  Prefactor     .10000E-03    48.180        .81480E-06** at limit **
  16  Prefactor     16.173        11.386        .10390E-06   -.65340E-04
  17  Prefactor     .10000E-03    14.373       -.19709E-06** at limit **
  18  Prefactor     18.489        25.996       -.62670E-06   -.15683E-03
  19  norm          .10000E-03    8.5671        .45467E-07** at limit **
  20  norm          10.234        9.0608       -.17247E-06   -.16429E-03
  21  norm          3.2946        5.8247        .10884E-06   -.45217E-04
  22  Prefactor     5.4877        11.248        .10657E-05   -.33569E-03
  23  Prefactor     .10000E-03    25.257        .18872E-06** at limit **
  24  norm          6.8462        6.8327       -.70478E-06   -.12974E-03
  25  Prefactor     6.1757        23.521       -.55843E-06   -.62524E-04
  26  norm          .10000E-03    1.0539        .41645E-06** at limit **
  27  norm          2.5534        6.1081        .43599E-05   -.23880E-03
  28  Prefactor     26.637        25.138        .34517E-06   -.29483E-04
  29  Prefactor     7.2442        4.6333        .69422E-07   -.38960E-03
  30  Prefactor     .10000E-03    8.0132       -.19957E-06** at limit **
  31  norm          .10000E-03    22.868        .50532E-06** at limit **
  32  Prefactor     3.7954        5.7793       -.17230E-06   -.37709E-03
  33  Prefactor     .10000E-03    1.3341        .32230E-07** at limit **
  34  Normalizat    1.0418        .25173       -.23063E-05   -.33280E-03
  35  Prefactor     .87026        .23184        .89680E-06   -.14755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.7654
  Prefactor  = 0.0001
  Prefactor  = 9.86038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1958
  Prefactor  = 5.49551
  Prefactor  = 38.2047
  norm       = 2.57679
  Prefactor  = 0.95333
  Prefactor  = 0.0001
  Prefactor  = 6.31264
  Prefactor  = 0.0001
  Prefactor  = 16.6497
  Prefactor  = 0.0001
  Prefactor  = 16.173
  Prefactor  = 0.0001
  Prefactor  = 18.4888
  norm       = 0.0001
  norm       = 10.2339
  norm       = 3.2946
  Prefactor  = 5.48769
  Prefactor  = 0.0001
  norm       = 6.8462
  Prefactor  = 6.17567
  norm       = 0.0001
  norm       = 2.5534
  Prefactor  = 26.6368
  Prefactor  = 7.24424
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.7954
  Prefactor  = 0.0001
  Normalizat = 1.04184
  Prefactor  = 0.870262
 **********
 **   18 **HESSE 
 **********

 FCN=   4253.653     FROM HESSE     STATUS=OK           780 CALLS     5884 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.765        27.945        .62031E-04   -1.4415    
   2  Prefactor     .10000E-03    9.3613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8604        11.409        .12762E-03   -1.5080    
   4  Prefactor     .10000E-03    2.1230        .92800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9457        .12645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.196        17.425        .11472E-03   -1.5009    
   7  Prefactor     5.4955        5.7731        .15165E-03   -1.5239    
   8  Prefactor     38.205        123.70        .64822E-04   -1.4471    
   9  norm          2.5768        6.1641        .12186E-02   -1.5387    
  10  Prefactor     .95333        10.334        .28536E-02   -1.5513    
  11  Prefactor     .10000E-03    31.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3126        8.5736        .15977E-03   -1.5205    
  13  Prefactor     .10000E-03    28.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.650        15.297        .98157E-04   -1.4892    
  15  Prefactor     .10000E-03    48.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.173        11.370        .99593E-04   -1.4903    
  17  Prefactor     .10000E-03    14.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.489        25.701        .93166E-04   -1.4848    
  19  norm          .10000E-03    8.5743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.234        9.0526        .12525E-03   -1.5068    
  21  norm          3.2946        5.8549        .18874E-03   -1.5345    
  22  Prefactor     5.4877        11.112        .85810E-03   -1.5239    
  23  Prefactor     .10000E-03    25.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.8462        6.8793        .71999E-03   -1.5185    
  25  Prefactor     6.1757        23.223        .16145E-03   -1.5211    
  26  norm          .10000E-03    1.6349        .12454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.5534        6.1855        .11443E-02   -1.5388    
  28  Prefactor     26.637        25.241        .77627E-04   -1.4675    
  29  Prefactor     7.2442        4.6156        .10579E-03   -1.5170    
  30  Prefactor     .10000E-03    8.0188        .18034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    22.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     3.7954        5.7668        .18128E-03   -1.5318    
  33  Prefactor     .10000E-03    1.3351        .73557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0418        .29841        .25096E-03   -.91642    
  35  Prefactor     .87026        .27455        .27301E-03   -.97188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10718e-09
Minuit parameter uncertainties:
  1  27.9536
  2  4.80123e-07
  3  11.412
  4  2.8632e-08
  5  5.158e-06
  6  17.4322
  7  5.77368
  8  124.547
  9  6.1656
  10  6.27861
  11  0.000104363
  12  8.57527
  13  7.88903e-05
  14  15.3009
  15  9.24147e-05
  16  11.3717
  17  3.2476e-05
  18  25.7165
  19  1.97017e-05
  20  9.0538
  21  5.85595
  22  11.116
  23  8.00079e-05
  24  6.88014
  25  23.2572
  26  3.13649e-05
  27  6.18701
  28  25.2516
  29  4.61588
  30  1.27004e-05
  31  0.00018519
  32  5.76761
  33  2.85918e-06
  34  0.298894
  35  0.274989
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  8.703e-01  2.750e-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.042e+00  2.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/724698/likelihoodResults_628128001_628387201_4FGL_J2315.6-5018_daily_bin1500.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4253.23089733
delta logL = 0.421854076038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4253.19857858
delta logL = 0.454172824944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7986       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3913       1.0000          .0000       10.000    
     3 'Normalizat'    .98386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91118       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=   4253.199     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7749        114.71        .41697E-02    .47791E-03
   2  Index         3.3931        3.2147        .12965        .15563E-03
   3  Normalizat    .98383        .67832E-01    .45964E-01   -.85863E-04
   4  Prefactor     .91123        .67049E-01    .45147E-01   -.10955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.77493
  Index      = 3.39315
  Normalizat = 0.983827
  Prefactor  = 0.911229
 **********
 **   18 **HESSE 
 **********

 FCN=   4253.199     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7749        291.37        .13079E-03   -1.5227    
   2  Index         3.3931        6.6043        .45415E-02   -.32718    
   3  Normalizat    .98383        .29387        .25723E-03   -.93574    
   4  Prefactor     .91123        .30535        .26746E-03   -.95750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89003e-10
Minuit parameter uncertainties:
  1  82.4671
  2  7.17895
  3  0.294359
  4  0.305926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724698': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4253.19857725
delta logL = 0.454174148528

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.112e-01  3.059e-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:  9.838e-01  2.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 348.914 -50.313
Photon Index (Free Index): 3.39 +/- 7.18
Photon Flux (Free Index): 8.20e-08 +/- 7.45e-08
Energy Flux (Free Index): 1.41e-05 +/- 3.35e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='1.41e-05', dlogl='4.54e-01', photon_flux2='8.20e-08', job_status='DONE', time_completed='2021-09-29 10:19:38.012667', photon_index_error2='7.18', photon_index2='3.39', ts='0.67', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='3.35e-05', EG='1.04', time_epoch_completed='1632935978.01', return_code='0', job_id='724698', GAL2='0.91', EG2='0.98', return_code2='0', photon_flux_error2='7.45e-08', ts2='1.65', photon_index='2.40' WHERE bin_id='1500' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:19:38 PDT 2021


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

Job <4FGL_J2315.6-5018_daily_bin1500> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 10:05:34 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:05:35 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:05:35 2021
Terminated at Wed Sep 29 10:19:38 2021
Results reported at Wed Sep 29 10:19:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1500 348.914 -50.3127 628128001 628387201 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 :                                   795.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

