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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin757
RA = 348.914, Dec = -50.3127
tmin = 435542401, tmax = 435801601
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='721616', job_status='RUN', time_executed='2021-09-29 09:55:41.140245', time_epoch_executed='1632934541.14' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721616/ft1_4FGL_J2315.6-5018_daily_bin757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721616/ft2_4FGL_J2315.6-5018_daily_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721616/ft1_4FGL_J2315.6-5018_daily_bin757.fits outfile=/scratch/kocevski/721616/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin757.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=435542401.0 tmax=435801601.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.49
user 5.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721616/ft1_filtered_4FGL_J2315.6-5018_daily_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/721616/ft2_4FGL_J2315.6-5018_daily_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/721616/ltcube_435542401_435801601_4FGL_J2315.6-5018_daily_bin757.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/721616/ft2_4FGL_J2315.6-5018_daily_bin757.fits
.....................!
real 12.23
user 11.73
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721616/ft1_filtered_4FGL_J2315.6-5018_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/721616/ft2_4FGL_J2315.6-5018_daily_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/721616/ltcube_435542401_435801601_4FGL_J2315.6-5018_daily_bin757.fits outfile=/scratch/kocevski/721616/expmap_435542401_435801601_4FGL_J2315.6-5018_daily_bin757.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/721616/ltcube_435542401_435801601_4FGL_J2315.6-5018_daily_bin757.fits
.....................!
real 190.37
user 185.40
sys 4.54

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/721616/ft1_filtered_4FGL_J2315.6-5018_daily_bin757.fits scfile=/scratch/kocevski/721616/ft2_4FGL_J2315.6-5018_daily_bin757.fits outfile=/scratch/kocevski/721616/cmap_435542401_435801601_4FGL_J2315.6-5018_daily_bin757.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/721616/ft1_filtered_4FGL_J2315.6-5018_daily_bin757.fits scfile=/scratch/kocevski/721616/ft2_4FGL_J2315.6-5018_daily_bin757.fits outfile=/scratch/kocevski/721616/cmap_HighResolution_435542401_435801601_4FGL_J2315.6-5018_daily_bin757.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/721616/ft1_filtered_4FGL_J2315.6-5018_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/721616/ft2_4FGL_J2315.6-5018_daily_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721616/Model_4FGL_J2315.6-5018_daily_bin757.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/721616/ft1_filtered_4FGL_J2315.6-5018_daily_bin757.fits.....................!
real 22.93
user 21.63
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18195       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.249       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.290       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8459       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6589       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.452       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .30914E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10944E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    70.948       1.0000         .10000E-03   10000.    
    24 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    13.801       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.9405       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.3764       1.0000         .10000E-03   10000.    
    31 'norm      '    4.3056       1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.3855       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2768       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .46477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1834.291     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     5174 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10067E-03    27.244       -.50758E-06** at limit **
   2  Prefactor     .28587E-01    2271.6       -.84910E-04    .15118E-02
   3  Prefactor     .10000E-03    7.0585        .34899E-06** at limit **
   4  Prefactor     15.251        3.0335        .60176E-06    .22171E-02
   5  Prefactor     .10009E-03    13.558        .88063E-06** at limit **
   6  Prefactor     .10000E-03    6.3808       -.37869E-06** at limit **
   7  Prefactor     .10000E-03    5.9261       -.12669E-06** at limit **
   8  Prefactor     46.255        6.8207       -.85011E-06    .71416E-03
   9  norm          2.8347        1.3763        .25562E-06    .10514E-03
  10  Prefactor     1.6582        3.7638       -.29048E-06   -.49033E-04
  11  Prefactor     16.327        12.797       -.25487E-05   -.91819E-02
  12  Prefactor     .10000E-03    2.8693       -.93401E-06** at limit **
  13  Prefactor     .10009E-03    12.779       -.43097E-06** at limit **
  14  Prefactor     .10001E-03    3.0902        .42612E-06** at limit **
  15  Prefactor     .10041E-03    66.874        .15682E-05** at limit **
  16  Prefactor     12.451        1.0486       -.10745E-07    .33708E-04
  17  Prefactor     .10009E-03    11.238       -.17017E-06** at limit **
  18  Prefactor     .10001E-03    5.4430       -.48431E-06** at limit **
  19  norm          .27478E-02    391.67       -.33878E-04   -.22217E-02
  20  norm          .10000E-03    3.5547        .51096E-06** at limit **
  21  norm          .10105E-03    91.761        .51350E-05** at limit **
  22  Prefactor     .10000E-03    8.5316       -.78848E-06** at limit **
  23  Prefactor     70.957        2.1198        .18895E-06    .14692E-02
  24  norm          .10000E-03    7.7601       -.71178E-06** at limit **
  25  Prefactor     .10005E-03    19.772        .11108E-05** at limit **
  26  norm          13.801        4.1221       -.28602E-07    .17477E-03
  27  norm          .10000E-03    5.6941        .22743E-06** at limit **
  28  Prefactor     .10036E-03    15.210       -.11894E-06** at limit **
  29  Prefactor     6.9401        1.3015        .13770E-06    .18409E-03
  30  Prefactor     6.4022        5.0038        .16529E-05    .60529E-03
  31  norm          4.3878        15.238        .60375E-05    .39925E-02
  32  Prefactor     2.3611        4.0013       -.20246E-05   -.76583E-03
  33  Prefactor     .10002E-03    5.7725       -.30526E-06** at limit **
  34  Normalizat    1.2767        .36661        .22093E-05    .22055E-03
  35  Prefactor     .46498        .34242        .21882E-06    .14130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100668
  Prefactor  = 0.0285867
  Prefactor  = 0.000100001
  Prefactor  = 15.2513
  Prefactor  = 0.000100091
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 46.2551
  norm       = 2.83473
  Prefactor  = 1.65824
  Prefactor  = 16.3267
  Prefactor  = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 0.000100008
  Prefactor  = 0.000100412
  Prefactor  = 12.4511
  Prefactor  = 0.000100094
  Prefactor  = 0.000100006
  norm       = 0.00274779
  norm       = 0.000100002
  norm       = 0.000101052
  Prefactor  = 0.000100001
  Prefactor  = 70.9572
  norm       = 0.000100003
  Prefactor  = 0.000100049
  norm       = 13.8011
  norm       = 0.0001
  Prefactor  = 0.000100363
  Prefactor  = 6.94007
  Prefactor  = 6.40217
  norm       = 4.38782
  Prefactor  = 2.36112
  Prefactor  = 0.00010002
  Normalizat = 1.27672
  Prefactor  = 0.46498
 **********
 **   18 **HESSE 
 **********

 FCN=   1834.291     FROM HESSE     STATUS=OK           856 CALLS     6030 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10067E-03    27.910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .28587E-01    219.50        .13241       -1.5674    
   3  Prefactor     .10000E-03    7.0685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.251        19.500        .25641E-02   -1.4927    
   5  Prefactor     .10009E-03    13.710        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4708        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     46.255        127.83        .14733E-02   -1.4347    
   9  norm          2.8347        28.639        .60256E-02   -1.5371    
  10  Prefactor     1.6582        3.8185        .81899E-02   -1.5450    
  11  Prefactor     16.327        44.508        .24728E-02   -1.4900    
  12  Prefactor     .10000E-03    2.8680        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    12.991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    6.1569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10041E-03    67.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.451        12.726        .28379E-02   -1.5002    
  17  Prefactor     .10009E-03    26.163        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    10.819        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .27478E-02    50.897        .11167       -1.5718    
  20  norm          .10000E-03    6.2148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10105E-03    16.007        .57668E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.5226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     70.957        109.68        .11915E-02   -1.4021    
  24  norm          .10000E-03    7.7591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10005E-03    19.776        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.801        4.2868        .26954E-02   -1.4965    
  27  norm          .10000E-03    5.6718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10036E-03    25.710        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.9401        12.649        .38071E-02   -1.5181    
  30  Prefactor     6.4022        192.07        .39737E-02   -1.5202    
  31  norm          4.3878        186.19        .48537E-02   -1.5289    
  32  Prefactor     2.3611        45.663        .66299E-02   -1.5401    
  33  Prefactor     .10002E-03    10.548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.2767        .34422        .48057E-01   -.84264    
  35  Prefactor     .46498        .31959        .72013E-01   -1.1361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86661e-06
Minuit parameter uncertainties:
  1  0.00863674
  2  5.01966
  3  0.000172772
  4  19.5082
  5  0.00223779
  6  0.000118407
  7  0.000154618
  8  128.594
  9  18.0312
  10  3.81906
  11  44.5989
  12  4.58735e-05
  13  0.00213069
  14  0.000449346
  15  0.0105292
  16  12.7287
  17  0.00313365
  18  0.000493808
  19  0.734833
  20  0.000202063
  21  0.00820911
  22  0.000152081
  23  109.994
  24  0.000284843
  25  0.0019734
  26  4.2869
  27  1.79145e-05
  28  0.00611179
  29  12.6537
  30  70.3826
  31  57.3565
  32  20.7848
  33  0.000908616
  34  0.344841
  35  0.320828
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  4.938e-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.650e-01  3.208e-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.277e+00  3.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/721616/likelihoodResults_435542401_435801601_4FGL_J2315.6-5018_daily_bin757.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) = 1834.29190293
delta logL = -0.000423696841381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1834.29148015
delta logL = -9.18891601032e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3745       1.0000          .0000       10.000    
     3 'Normalizat'    1.2771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46459       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=   1834.291     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10349E-03    17.974        .14013E-01** at limit **
   2  Index         2.2683        8.6209        .50000        .13752E-04
   3  Normalizat    1.2767        .92401E-02    .21244E-03    .12726E-04
   4  Prefactor     .46498        .87656E-02    .31888E-03    .12674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010349
  Index      = 2.26829
  Normalizat = 1.27672
  Prefactor  = 0.464979
 **********
 **   18 **HESSE 
 **********

 FCN=   1834.291     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10349E-03    188.87        .14498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2683        8.8656        .50000       -.57799    
   3  Normalizat    1.2767        .30480E-01    .42489E-04   -.84264    
   4  Prefactor     .46498        .28914E-01    .12755E-04   -1.1361    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.56233e-09
Minuit parameter uncertainties:
  1  0.0515095
  2  648.76
  3  0.0304802
  4  0.0289151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721616': 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) = 1834.29147892
delta logL = 3.14007593261e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  4.650e-01  2.892e-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.277e+00  3.048e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 348.914 -50.313

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-29 10:04:46.152059', job_id='721616', GAL2='0.46', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632935086.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='3.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='757' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:04:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 721616: <4FGL_J2315.6-5018_daily_bin757> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin757> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 09:55:21 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:55:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 09:55:24 2021
Terminated at Wed Sep 29 10:04:46 2021
Results reported at Wed Sep 29 10:04:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin757 348.914 -50.3127 435542401 435801601 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 :                                   543.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            565 sec.

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

