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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1577
RA = 348.914, Dec = -50.3127
tmin = 648086401, tmax = 648345601
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='725880', job_status='RUN', time_executed='2021-09-29 10:10:52.777850', time_epoch_executed='1632935452.78' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725880/ft1_4FGL_J2315.6-5018_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725880/ft2_4FGL_J2315.6-5018_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725880/ft1_4FGL_J2315.6-5018_daily_bin1577.fits outfile=/scratch/kocevski/725880/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1577.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=648086401.0 tmax=648345601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.26
user 4.03
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725880/ft1_filtered_4FGL_J2315.6-5018_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/725880/ft2_4FGL_J2315.6-5018_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/725880/ltcube_648086401_648345601_4FGL_J2315.6-5018_daily_bin1577.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/725880/ft2_4FGL_J2315.6-5018_daily_bin1577.fits
.....................!
real 12.14
user 11.75
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725880/ft1_filtered_4FGL_J2315.6-5018_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/725880/ft2_4FGL_J2315.6-5018_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/725880/ltcube_648086401_648345601_4FGL_J2315.6-5018_daily_bin1577.fits outfile=/scratch/kocevski/725880/expmap_648086401_648345601_4FGL_J2315.6-5018_daily_bin1577.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/725880/ltcube_648086401_648345601_4FGL_J2315.6-5018_daily_bin1577.fits
.....................!
real 190.35
user 185.06
sys 4.95

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/725880/ft1_filtered_4FGL_J2315.6-5018_daily_bin1577.fits scfile=/scratch/kocevski/725880/ft2_4FGL_J2315.6-5018_daily_bin1577.fits outfile=/scratch/kocevski/725880/cmap_648086401_648345601_4FGL_J2315.6-5018_daily_bin1577.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725880/ft1_filtered_4FGL_J2315.6-5018_daily_bin1577.fits scfile=/scratch/kocevski/725880/ft2_4FGL_J2315.6-5018_daily_bin1577.fits outfile=/scratch/kocevski/725880/cmap_HighResolution_648086401_648345601_4FGL_J2315.6-5018_daily_bin1577.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/725880/ft1_filtered_4FGL_J2315.6-5018_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/725880/ft2_4FGL_J2315.6-5018_daily_bin1577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/725880/Model_4FGL_J2315.6-5018_daily_bin1577.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/725880/ft1_filtered_4FGL_J2315.6-5018_daily_bin1577.fits.....................!
real 35.37
user 33.97
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91603E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    76.011       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8799       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1513       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.437       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5315       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33499E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44392       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0829       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.491       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8140       1.0000         .10000E-03   10000.    
    20 'norm      '    11.103       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2013       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.998       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.577       1.0000         .10000E-03   10000.    
    26 'norm      '    .20783       1.0000         .10000E-03   10000.    
    27 'norm      '    4.6765       1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.189       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.919       1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.6064       1.0000         .10000E-03   10000.    
    33 'Prefactor '    5.1027       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .81785       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .68515       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=   4358.319     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     4246 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10112E-03    397.27       -.57974E-04** at limit **
   2  Prefactor     76.040        2.5504        .74918E-06   -.11043E-01
   3  Prefactor     .10000E-03    2.8424        .22786E-07** at limit **
   4  Prefactor     6.8785        1.0836       -.30103E-06    .13677E-03
   5  Prefactor     2.1529        1.4816       -.16547E-05   -.12437E-03
   6  Prefactor     19.446        1.2062       -.26621E-06    .16852E-02
   7  Prefactor     9.5306        1.4443        .66816E-06   -.27365E-03
   8  Prefactor     .17835E-03    3.7584        .21465E-05** at limit **
   9  norm          .10001E-03    4.1406       -.31680E-06** at limit **
  10  Prefactor     .10000E-03    2.1330        .25378E-07** at limit **
  11  Prefactor     .10005E-03    4.8505       -.33559E-05** at limit **
  12  Prefactor     .44147        4.8385        .78538E-05    .84519E-03
  13  Prefactor     .10000E-03    16.282       -.74814E-05** at limit **
  14  Prefactor     21.406        1.0315        .56762E-08   -.31340E-03
  15  Prefactor     .10001E-03    32.345        .17890E-05** at limit **
  16  Prefactor     4.0822        1.3308       -.12605E-05   -.14925E-02
  17  Prefactor     29.491        1.0028       -.28943E-07    .49634E-03
  18  Prefactor     .10010E-03    5.5727        .90017E-05** at limit **
  19  norm          1.8117        1.0654        .20441E-06   -.30224E-03
  20  norm          11.103        1.0169        .11451E-06   -.34980E-03
  21  norm          .10000E-03    1.4873        .23449E-07** at limit **
  22  Prefactor     4.2008        1.0170       -.24245E-09   -.13123E-03
  23  Prefactor     10.985        1.3264       -.36996E-06   -.43570E-03
  24  norm          .10000E-03    2.0599       -.11472E-05** at limit **
  25  Prefactor     17.577        1.0107       -.10428E-06    .55187E-03
  26  norm          .20765        1.1965       -.48074E-07   -.33335E-04
  27  norm          4.6761        3.7849       -.14891E-05   -.22737E-02
  28  Prefactor     22.179        1.3231        .20931E-06   -.32572E-02
  29  Prefactor     .10000E-03    2.3155       -.17509E-05** at limit **
  30  Prefactor     10.923        1.2381       -.49627E-06    .23842E-02
  31  norm          .10000E-03    7.7108       -.10004E-05** at limit **
  32  Prefactor     5.6063        4.1796        .22988E-05   -.82154E-03
  33  Prefactor     5.1103        2.9960        .36140E-05    .76013E-02
  34  Normalizat    .81807        .20946       -.23218E-05    .24661E-04
  35  Prefactor     .68508        .21214        .19176E-05    .19892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010112
  Prefactor  = 76.0396
  Prefactor  = 0.0001
  Prefactor  = 6.87852
  Prefactor  = 2.15294
  Prefactor  = 19.4456
  Prefactor  = 9.53057
  Prefactor  = 0.000178354
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 0.44147
  Prefactor  = 0.0001
  Prefactor  = 21.4064
  Prefactor  = 0.000100007
  Prefactor  = 4.08218
  Prefactor  = 29.4913
  Prefactor  = 0.000100098
  norm       = 1.81175
  norm       = 11.1028
  norm       = 0.0001
  Prefactor  = 4.20075
  Prefactor  = 10.9849
  norm       = 0.0001
  Prefactor  = 17.5767
  norm       = 0.207646
  norm       = 4.67605
  Prefactor  = 22.1789
  Prefactor  = 0.0001
  Prefactor  = 10.9228
  norm       = 0.0001
  Prefactor  = 5.60629
  Prefactor  = 5.11026
  Normalizat = 0.818069
  Prefactor  = 0.685079
 **********
 **   18 **HESSE 
 **********

 FCN=   4358.319     FROM HESSE     STATUS=OK           858 CALLS     5104 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10112E-03    21.906        .94711E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     76.040        47.645        .11514E-02   -1.3962    
   3  Prefactor     .10000E-03    2.8414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8785        9.2269        .38240E-02   -1.5183    
   5  Prefactor     2.1529        6.1651        .70229E-02   -1.5415    
   6  Prefactor     19.446        13.409        .22712E-02   -1.4826    
   7  Prefactor     9.5306        6.2116        .32451E-02   -1.5090    
   8  Prefactor     .17835E-03    212.57        .10671E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    11.332        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    11.427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .44147        4.4044        .42763E-01   -1.5575    
  13  Prefactor     .10000E-03    16.301        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.406        14.761        .21642E-02   -1.4782    
  15  Prefactor     .10001E-03    32.446        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0822        4.6137        .49882E-02   -1.5304    
  17  Prefactor     29.491        24.115        .18444E-02   -1.4621    
  18  Prefactor     .10010E-03    11.565        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8117        30.351        .77537E-02   -1.5439    
  20  norm          11.103        9.3645        .30058E-02   -1.5041    
  21  norm          .10000E-03    1.4867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2008        8.2898        .49153E-02   -1.5298    
  23  Prefactor     10.985        31.284        .30202E-02   -1.5045    
  24  norm          .10000E-03    2.0383        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.577        20.723        .23883E-02   -1.4869    
  26  norm          .20765        .93719        .22706E-01   -1.5617    
  27  norm          4.6761        4.0764        .46523E-02   -1.5275    
  28  Prefactor     22.179        20.834        .21258E-02   -1.4766    
  29  Prefactor     .10000E-03    2.2873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     10.923        14.744        .30312E-02   -1.5047    
  31  norm          .10000E-03    7.7151        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     5.6063        5.1265        .42416E-02   -1.5234    
  33  Prefactor     5.1103        4.1317        .44497E-02   -1.5256    
  34  Normalizat    .81807        .19379        .43843E-01   -.99402    
  35  Prefactor     .68508        .18404        .42203E-01   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15513e-06
Minuit parameter uncertainties:
  1  0.00991211
  2  47.6694
  3  1.45377e-07
  4  9.22884
  5  6.16689
  6  13.411
  7  6.21201
  8  0.259035
  9  0.000624066
  10  2.60009e-06
  11  0.00146414
  12  2.7888
  13  6.36362e-05
  14  14.7632
  15  0.000956079
  16  4.61408
  17  24.1227
  18  0.00213042
  19  14.8393
  20  9.3657
  21  1.64289e-06
  22  8.29205
  23  31.3311
  24  6.12155e-07
  25  20.7316
  26  0.882088
  27  4.07669
  28  20.8407
  29  4.71888e-06
  30  14.7493
  31  4.08163e-05
  32  5.12692
  33  4.13196
  34  0.193952
  35  0.184205
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.001e-04  2.130e-03  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:  6.851e-01  1.842e-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:  8.181e-01  1.940e-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: 6.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/725880/likelihoodResults_648086401_648345601_4FGL_J2315.6-5018_daily_bin1577.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) = 4358.31934836
delta logL = -0.000408256149058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4358.3189399
delta logL = 2.06417098525e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3593       1.0000          .0000       10.000    
     3 'Normalizat'    .81808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68506       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=   4358.319     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      245 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10314E-03    6.1356        .18142E-01** at limit **
   2  Index         2.2773        8.1147        .50000        .21215E-04
   3  Normalizat    .81807        .28851E-02    .22484E-03    .32664E-04
   4  Prefactor     .68508        .30013E-02    .25220E-03    .54725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103144
  Index      = 2.27731
  Normalizat = 0.818068
  Prefactor  = 0.685079
 **********
 **   18 **HESSE 
 **********

 FCN=   4358.319     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10314E-03    328.32        .46982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2773        5.5852        .50000       -.57584    
   3  Normalizat    .81807        .21343E-01    .89937E-05   -.99402    
   4  Prefactor     .68508        .22203E-01    .10088E-04   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07062e-08
Minuit parameter uncertainties:
  1  0.0646174
  2  481.311
  3  0.0213431
  4  0.0222029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725880': 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) = 4358.31893956
delta logL = 5.46993760508e-07

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.031e-04  6.462e-02  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.277e+00  4.813e+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:  6.851e-01  2.220e-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:  8.181e-01  2.134e-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/725880/cmap_HighResolution_648086401_648345601_4FGL_J2315.6-5018_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-03', job_status='DONE', photon_flux_upper_limit='6.57e-08', time_completed='2021-09-29 10:23:38.412148', job_id='725880', GAL2='0.69', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632936218.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='5.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1577' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:23:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 725880: <4FGL_J2315.6-5018_daily_bin1577> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1577> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 10:10:24 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:10:25 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:10:25 2021
Terminated at Wed Sep 29 10:23:39 2021
Results reported at Wed Sep 29 10:23:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1577 348.914 -50.3127 648086401 648345601 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 :                                   759.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

