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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1129
RA = 348.914, Dec = -50.3127
tmin = 531964801, tmax = 532224001
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='723179', job_status='RUN', time_executed='2021-09-29 10:01:01.888414', time_epoch_executed='1632934861.89' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723179

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723179/ft1_4FGL_J2315.6-5018_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723179/ft2_4FGL_J2315.6-5018_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723179/ft1_4FGL_J2315.6-5018_daily_bin1129.fits outfile=/scratch/kocevski/723179/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1129.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=531964801.0 tmax=532224001.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.54
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/723179/ft2_4FGL_J2315.6-5018_daily_bin1129.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/723179/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1129.fits evtable="EVENTS" outfile="/scratch/kocevski/723179/ft1_filtered_4FGL_J2315.6-5018_daily_bin1129.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.51
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/723179/ft1_filtered_4FGL_J2315.6-5018_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/723179/ft2_4FGL_J2315.6-5018_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/723179/ltcube_531964801_532224001_4FGL_J2315.6-5018_daily_bin1129.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/723179/ft2_4FGL_J2315.6-5018_daily_bin1129.fits
.....................!
real 11.69
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723179/ft1_filtered_4FGL_J2315.6-5018_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/723179/ft2_4FGL_J2315.6-5018_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/723179/ltcube_531964801_532224001_4FGL_J2315.6-5018_daily_bin1129.fits outfile=/scratch/kocevski/723179/expmap_531964801_532224001_4FGL_J2315.6-5018_daily_bin1129.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/723179/ltcube_531964801_532224001_4FGL_J2315.6-5018_daily_bin1129.fits
.....................!
real 190.54
user 184.94
sys 5.18

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/723179/ft1_filtered_4FGL_J2315.6-5018_daily_bin1129.fits scfile=/scratch/kocevski/723179/ft2_4FGL_J2315.6-5018_daily_bin1129.fits outfile=/scratch/kocevski/723179/cmap_531964801_532224001_4FGL_J2315.6-5018_daily_bin1129.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=348.914 yref=-50.3127 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/723179/ft1_filtered_4FGL_J2315.6-5018_daily_bin1129.fits scfile=/scratch/kocevski/723179/ft2_4FGL_J2315.6-5018_daily_bin1129.fits outfile=/scratch/kocevski/723179/cmap_HighResolution_531964801_532224001_4FGL_J2315.6-5018_daily_bin1129.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/723179/ft1_filtered_4FGL_J2315.6-5018_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/723179/ft2_4FGL_J2315.6-5018_daily_bin1129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723179/Model_4FGL_J2315.6-5018_daily_bin1129.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/723179/ft1_filtered_4FGL_J2315.6-5018_daily_bin1129.fits.....................!
real 36.96
user 35.62
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1539       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3443       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.113       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.6643       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3528       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.442       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    130.32       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.536       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.702       1.0000         .10000E-03   10000.    
    19 'norm      '    36.270       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2950       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.9561       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .18542       1.0000         .10000E-03   10000.    
    27 'norm      '    4.2789       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.979       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .89155       1.0000         .10000E-03   10000.    
    33 'Prefactor '    1.7138       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0743       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .78670       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=   4402.077     FROM MIGRAD    STATUS=CONVERGED    968 CALLS     5103 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.675        27.568       -.38581E-06   -.43005E-04
   2  Prefactor     .10000E-03    32.357        .21092E-06** at limit **
   3  Prefactor     9.1537        9.6833        .17045E-07   -.37906E-04
   4  Prefactor     7.3442        8.0804       -.99386E-08   -.53413E-04
   5  Prefactor     .10000E-03    2.8270       -.11504E-07** at limit **
   6  Prefactor     14.113        11.201       -.62170E-07    .80327E-05
   7  Prefactor     7.3681        5.4182        .11602E-06    .37474E-04
   8  Prefactor     .10000E-03    139.63       -.11730E-05** at limit **
   9  norm          4.6645        8.7894        .28070E-06   -.23936E-05
  10  Prefactor     5.5785        4.2511        .72106E-07    .63064E-04
  11  Prefactor     .10000E-03    20.194        .26503E-06** at limit **
  12  Prefactor     1.3526        3.5182        .55709E-06   -.78613E-05
  13  Prefactor     29.460        31.409        .12261E-06    .94924E-05
  14  Prefactor     .10000E-03    9.6413        .28120E-06** at limit **
  15  Prefactor     130.31        108.96       -.68025E-07   -.15122E-04
  16  Prefactor     19.536        11.337        .10575E-06   -.71690E-05
  17  Prefactor     .10000E-03    19.606       -.20353E-06** at limit **
  18  Prefactor     29.704        22.788       -.80696E-07   -.61669E-04
  19  norm          36.270        22.479        .47750E-07   -.66583E-05
  20  norm          .10000E-03    2.9350       -.18265E-07** at limit **
  21  norm          .10000E-03    2.6788       -.29309E-07** at limit **
  22  Prefactor     9.2942        8.6987       -.51142E-06   -.47404E-04
  23  Prefactor     .10000E-03    97.029        .51981E-06** at limit **
  24  norm          7.9568        6.7858        .33654E-06   -.48885E-04
  25  Prefactor     .10000E-03    35.622       -.17734E-05** at limit **
  26  norm          .18543        .71061        .22987E-06   -.12787E-03
  27  norm          4.2790        5.6196        .20174E-06   -.43759E-04
  28  Prefactor     .10002E-03    15.294        .64470E-06** at limit **
  29  Prefactor     .10000E-03    2.1053       -.13766E-06** at limit **
  30  Prefactor     12.980        17.850       -.27981E-06   -.41149E-04
  31  norm          .10000E-03    10.554       -.82014E-07** at limit **
  32  Prefactor     .89249        7.8305        .29427E-05   -.69355E-04
  33  Prefactor     1.7145        4.9872        .87772E-06   -.79517E-04
  34  Normalizat    1.0743        .22570       -.83946E-06   -.15079E-03
  35  Prefactor     .78671        .21466       -.31413E-06   -.11697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.6755
  Prefactor  = 0.0001
  Prefactor  = 9.1537
  Prefactor  = 7.34417
  Prefactor  = 0.0001
  Prefactor  = 14.1128
  Prefactor  = 7.36811
  Prefactor  = 0.000100003
  norm       = 4.66452
  Prefactor  = 5.57847
  Prefactor  = 0.0001
  Prefactor  = 1.35261
  Prefactor  = 29.4601
  Prefactor  = 0.0001
  Prefactor  = 130.309
  Prefactor  = 19.5364
  Prefactor  = 0.0001
  Prefactor  = 29.7041
  norm       = 36.2701
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.29418
  Prefactor  = 0.000100001
  norm       = 7.95684
  Prefactor  = 0.0001
  norm       = 0.185432
  norm       = 4.27899
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 12.9796
  norm       = 0.0001
  Prefactor  = 0.892487
  Prefactor  = 1.71452
  Normalizat = 1.07427
  Prefactor  = 0.786713
 **********
 **   18 **HESSE 
 **********

 FCN=   4402.077     FROM HESSE     STATUS=OK           780 CALLS     5883 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.675        27.473        .69052E-04   -1.4547    
   2  Prefactor     .10000E-03    32.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1537        9.6784        .13247E-03   -1.5103    
   4  Prefactor     7.3442        8.0715        .14800E-03   -1.5166    
   5  Prefactor     .10000E-03    2.8273        .10895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.113        11.193        .10662E-03   -1.4956    
   7  Prefactor     7.3681        5.4158        .12586E-03   -1.5165    
   8  Prefactor     .10000E-03    141.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.6645        8.8189        .18634E-03   -1.5276    
  10  Prefactor     5.5785        4.2511        .11535E-03   -1.5236    
  11  Prefactor     .10000E-03    20.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3526        3.4706        .19477E-03   -1.5475    
  13  Prefactor     29.460        31.421        .73838E-04   -1.4622    
  14  Prefactor     .10000E-03    9.6794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     130.31        108.97        .17635E-03   -1.3420    
  16  Prefactor     19.536        11.335        .90617E-04   -1.4824    
  17  Prefactor     .10000E-03    19.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.704        22.638        .73515E-04   -1.4617    
  19  norm          36.270        22.476        .66545E-04   -1.4503    
  20  norm          .10000E-03    2.9358        .11100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6802        .10603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2942        8.5813        .13145E-03   -1.5098    
  23  Prefactor     .10000E-03    97.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.9568        6.7719        .14215E-03   -1.5144    
  25  Prefactor     .10000E-03    35.869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .18543        .78603        .10169E-02   -1.5622    
  27  norm          4.2790        5.6006        .16803E-03   -1.5294    
  28  Prefactor     .10002E-03    69.866        .48917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.1470        .94016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     12.980        17.827        .11118E-03   -1.4987    
  31  norm          .10000E-03    10.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .89249        7.8842        .34445E-03   -1.5519    
  33  Prefactor     1.7145        4.9527        .23332E-03   -1.5446    
  34  Normalizat    1.0743        .26494        .24068E-03   -.90582    
  35  Prefactor     .78671        .25373        .27914E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00783e-08
Minuit parameter uncertainties:
  1  27.4828
  2  0.000155967
  3  9.68006
  4  8.07273
  5  1.12555e-07
  6  11.1946
  7  5.41615
  8  0.00123073
  9  8.82133
  10  4.25138
  11  0.000106269
  12  3.47107
  13  31.4388
  14  5.19507e-07
  15  109.138
  16  11.3361
  17  9.87119e-05
  18  22.6442
  19  22.4816
  20  7.96747e-07
  21  1.84998e-06
  22  8.58245
  23  0.000703745
  24  6.77255
  25  8.72319e-05
  26  0.763369
  27  5.60126
  28  0.00242381
  29  9.54156e-06
  30  17.8339
  31  1.55379e-05
  32  5.30593
  33  4.9539
  34  0.265263
  35  0.254109
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  2.970e+01  2.264e+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:  7.867e-01  2.541e-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.074e+00  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.29
Ra Dec: 348.914 -50.313
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.62e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.66e-05

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

Saving results to:
/scratch/kocevski/723179/likelihoodResults_531964801_532224001_4FGL_J2315.6-5018_daily_bin1129.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) = 4401.33491452
delta logL = 0.741711609149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4401.30399266
delta logL = 0.772633465046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8839       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0311       1.0000          .0000       10.000    
     3 'Normalizat'    .94281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88786       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=   4401.304     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      281 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8850        37.203        .55894E-04    .45683E-02
   2  Index         4.0313        3.3006        .30866E-02    .80784E-03
   3  Normalizat    .94259        .24631        .25447E-03    .61247E-03
   4  Prefactor     .88798        .24437        .26436E-03    .60999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.88496
  Index      = 4.03133
  Normalizat = 0.942592
  Prefactor  = 0.887981
 **********
 **   18 **HESSE 
 **********

 FCN=   4401.304     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8850        10.391        .22358E-05   -1.5368    
   2  Index         4.0313        1.7758        .12347E-03   -.19497    
   3  Normalizat    .94259        .26261        .50893E-04   -.94979    
   4  Prefactor     .88798        .25928        .52871E-04   -.96562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12913e-09
Minuit parameter uncertainties:
  1  10.3977
  2  1.81702
  3  0.262972
  4  0.259643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723179': 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) = 4401.30399146
delta logL = 0.772634664395

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  2.885e+00  1.040e+01  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  4.031e+00  1.817e+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:  8.880e-01  2.596e-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.426e-01  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 348.914 -50.313
Photon Index (Free Index): 4.03 +/- 1.82
Photon Flux (Free Index): 1.49e-07 +/- 8.54e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.22e-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/723179/cmap_HighResolution_531964801_532224001_4FGL_J2315.6-5018_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='6.62e-08', energy_flux2='2.23e-05', photon_flux_error='5.04e-08', dlogl='7.73e-01', energy_flux='2.18e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-29 10:14:35.127462', photon_index_error2='1.82', photon_index2='4.03', ts='3.29', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.22e-05', EG='1.07', time_epoch_completed='1632935675.13', return_code='0', job_id='723179', GAL2='0.89', EG2='0.94', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='8.54e-08', ts2='5.19', photon_index='2.40' WHERE bin_id='1129' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:14:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 723179: <4FGL_J2315.6-5018_daily_bin1129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1129 348.914 -50.3127 531964801 532224001 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 :                                   812.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.75 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.

