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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin747
RA = 348.914, Dec = -50.3127
tmin = 432950401, tmax = 433209601
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='721601', job_status='RUN', time_executed='2021-09-29 09:55:31.273088', time_epoch_executed='1632934531.27' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721601/ft1_4FGL_J2315.6-5018_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721601/ft2_4FGL_J2315.6-5018_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721601/ft1_4FGL_J2315.6-5018_daily_bin747.fits outfile=/scratch/kocevski/721601/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin747.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=432950401.0 tmax=433209601.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.66
user 5.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721601/ft1_filtered_4FGL_J2315.6-5018_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/721601/ft2_4FGL_J2315.6-5018_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/721601/ltcube_432950401_433209601_4FGL_J2315.6-5018_daily_bin747.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/721601/ft2_4FGL_J2315.6-5018_daily_bin747.fits
.....................!
real 12.20
user 11.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721601/ft1_filtered_4FGL_J2315.6-5018_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/721601/ft2_4FGL_J2315.6-5018_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/721601/ltcube_432950401_433209601_4FGL_J2315.6-5018_daily_bin747.fits outfile=/scratch/kocevski/721601/expmap_432950401_433209601_4FGL_J2315.6-5018_daily_bin747.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/721601/ltcube_432950401_433209601_4FGL_J2315.6-5018_daily_bin747.fits
.....................!
real 190.25
user 185.58
sys 4.30

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/721601/ft1_filtered_4FGL_J2315.6-5018_daily_bin747.fits scfile=/scratch/kocevski/721601/ft2_4FGL_J2315.6-5018_daily_bin747.fits outfile=/scratch/kocevski/721601/cmap_432950401_433209601_4FGL_J2315.6-5018_daily_bin747.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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/721601/ft1_filtered_4FGL_J2315.6-5018_daily_bin747.fits scfile=/scratch/kocevski/721601/ft2_4FGL_J2315.6-5018_daily_bin747.fits outfile=/scratch/kocevski/721601/cmap_HighResolution_432950401_433209601_4FGL_J2315.6-5018_daily_bin747.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/721601/ft1_filtered_4FGL_J2315.6-5018_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/721601/ft2_4FGL_J2315.6-5018_daily_bin747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721601/Model_4FGL_J2315.6-5018_daily_bin747.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/721601/ft1_filtered_4FGL_J2315.6-5018_daily_bin747.fits.....................!
real 34.32
user 33.04
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11214E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14335E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7828       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .98324E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13646E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6457       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1897       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.221       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9018       1.0000         .10000E-03   10000.    
    20 'norm      '    10.273       1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.285       1.0000         .10000E-03   10000.    
    24 'norm      '    7.3558       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    19.427       1.0000         .10000E-03   10000.    
    27 'norm      '    .17043E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    33.692       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.982       1.0000         .10000E-03   10000.    
    31 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0184       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .70772       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=   3592.363     FROM MIGRAD    STATUS=CONVERGED    961 CALLS     5051 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.775       -.46257E-05** at limit **
   2  Prefactor     .10000E-03    20.866       -.12091E-05** at limit **
   3  Prefactor     .10000E-03    12.750        .63608E-06** at limit **
   4  Prefactor     .10000E-03    2.7031       -.72949E-08** at limit **
   5  Prefactor     .10000E-03    4.9961        .66917E-07** at limit **
   6  Prefactor     .10002E-03    9.3823       -.11671E-05** at limit **
   7  Prefactor     3.7815        3.9785        .79324E-07    .52683E-04
   8  Prefactor     .10000E-03    36.091        .39046E-05** at limit **
   9  norm          .10002E-03    8.7506        .29253E-06** at limit **
  10  Prefactor     .10001E-03    3.1977        .77824E-06** at limit **
  11  Prefactor     .10000E-03    24.146       -.22620E-05** at limit **
  12  Prefactor     3.6456        5.9093        .70603E-06    .98375E-05
  13  Prefactor     7.2682        118.48        .67819E-05    .70928E-04
  14  Prefactor     10.191        23.880        .96162E-06    .41626E-04
  15  Prefactor     .10000E-03    62.080        .21705E-05** at limit **
  16  Prefactor     8.9627        11.833        .29499E-05    .14378E-03
  17  Prefactor     .10000E-03    18.612        .75955E-06** at limit **
  18  Prefactor     .10000E-03    16.706        .19278E-05** at limit **
  19  norm          2.9018        13.971        .64183E-06    .15627E-04
  20  norm          10.273        10.165       -.47071E-07   -.23668E-05
  21  norm          .10000E-03    3.5165       -.23865E-06** at limit **
  22  Prefactor     .10000E-03    4.2199       -.68845E-08** at limit **
  23  Prefactor     14.308        49.948       -.24794E-05   -.11432E-04
  24  norm          7.3592        7.7107        .16256E-05    .15047E-03
  25  Prefactor     .10000E-03    6.7657        .64381E-06** at limit **
  26  norm          19.428        3.7930        .18990E-06   -.87247E-04
  27  norm          .10000E-03    5.7656        .35143E-06** at limit **
  28  Prefactor     33.693        28.823        .10047E-05   -.21263E-04
  29  Prefactor     .10000E-03    6.2926       -.76604E-06** at limit **
  30  Prefactor     10.978        36.520        .21884E-06   -.13891E-04
  31  norm          .10000E-03    12.096       -.89874E-06** at limit **
  32  Prefactor     .10000E-03    2.2699       -.31505E-07** at limit **
  33  Prefactor     .10000E-03    6.2896       -.28286E-06** at limit **
  34  Normalizat    1.0183        .27925       -.90395E-05   -.25484E-04
  35  Prefactor     .70781        .24843        .62513E-05   -.26962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 3.78146
  Prefactor  = 0.000100002
  norm       = 0.000100016
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 3.64557
  Prefactor  = 7.26821
  Prefactor  = 10.1905
  Prefactor  = 0.0001
  Prefactor  = 8.96268
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.90176
  norm       = 10.2728
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3082
  norm       = 7.35919
  Prefactor  = 0.0001
  norm       = 19.4276
  norm       = 0.000100001
  Prefactor  = 33.6934
  Prefactor  = 0.0001
  Prefactor  = 10.9778
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01832
  Prefactor  = 0.707811
 **********
 **   18 **HESSE 
 **********

 FCN=   3592.363     FROM HESSE     STATUS=OK           768 CALLS     5819 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.389        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7036        .96243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0082        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    27.813        .34534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7815        3.9549        .11678E-03   -1.5319    
   8  Prefactor     .10000E-03    36.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    41.709        .33929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    18.692        .19997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6456        5.8719        .17377E-03   -1.5326    
  13  Prefactor     7.2682        117.92        .14960E-03   -1.5169    
  14  Prefactor     10.191        23.639        .12533E-03   -1.5069    
  15  Prefactor     .10000E-03    62.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9627        11.897        .66949E-03   -1.5109    
  17  Prefactor     .10000E-03    18.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9018        13.964        .23853E-03   -1.5367    
  20  norm          10.273        10.167        .12501E-03   -1.5067    
  21  norm          .10000E-03    3.5225        .10977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2305        .12022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.308        49.297        .10597E-03   -1.4951    
  24  norm          7.3592        7.7607        .66969E-03   -1.5165    
  25  Prefactor     .10000E-03    6.7796        .15238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          19.428        3.7882        .47255E-04   -1.4826    
  27  norm          .10000E-03    12.337        .26033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     33.693        28.812        .69036E-04   -1.4546    
  29  Prefactor     .10000E-03    6.3409        .29096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     10.978        36.324        .12090E-03   -1.5045    
  31  norm          .10000E-03    12.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.2742        .88176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    6.4558        .29289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0183        .30326        .24099E-03   -.92419    
  35  Prefactor     .70781        .27634        .27453E-03   -1.0322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41062e-09
Minuit parameter uncertainties:
  1  0.000413353
  2  0.000100601
  3  7.82159e-05
  4  9.43912e-07
  5  1.41437e-05
  6  0.00133804
  7  3.95521
  8  0.000537491
  9  0.00161687
  10  0.000704162
  11  0.0002545
  12  5.87286
  13  58.6878
  14  23.6608
  15  0.000352445
  16  11.8999
  17  6.10034e-05
  18  0.000185998
  19  12.7357
  20  10.169
  21  1.77849e-05
  22  4.21463e-07
  23  49.4381
  24  7.76176
  25  4.2055e-05
  26  3.78827
  27  0.000161539
  28  28.8236
  29  8.85915e-06
  30  36.397
  31  6.89519e-05
  32  3.15688e-06
  33  4.46189e-05
  34  0.303774
  35  0.276881
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  1.860e-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:  7.078e-01  2.769e-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.018e+00  3.038e-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.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/721601/likelihoodResults_432950401_433209601_4FGL_J2315.6-5018_daily_bin747.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) = 3592.36350971
delta logL = -0.00028295523407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3592.36322593
delta logL = 8.24950348033e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9879       1.0000          .0000       10.000    
     3 'Normalizat'    1.0183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70782       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3592.363     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      245 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.182        .90712E-02** at limit **
   2  Index         3.0081        5.1454        .50000       -.84302E-05
   3  Normalizat    1.0183        .38691E-02    .43610E-01    .95013E-04
   4  Prefactor     .70782        .37558E-02    .62059E-01    .57326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 3.0081
  Normalizat = 1.01831
  Prefactor  = 0.707818
 **********
 **   18 **HESSE 
 **********

 FCN=   3592.363     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      278 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    536.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0081        6.4875        .50000       -.40975    
   3  Normalizat    1.0183        .27198E-01    .24100E-03   -.92419    
   4  Prefactor     .70782        .26373E-01    .27452E-03   -1.0322    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.24674e-07
Minuit parameter uncertainties:
  1  0.0023717
  2  466.898
  3  0.0271985
  4  0.026373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721601': 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) = 3592.36322589
delta logL = 8.65898527991e-07

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  2.372e-03  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  3.008e+00  4.669e+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:  7.078e-01  2.637e-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.018e+00  2.720e-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/721601/cmap_HighResolution_432950401_433209601_4FGL_J2315.6-5018_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-29 10:07:35.379896', job_id='721601', GAL2='0.71', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632935255.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='8.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='747' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:07:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 721601: <4FGL_J2315.6-5018_daily_bin747> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 09:55:20 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:55:21 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:21 2021
Terminated at Wed Sep 29 10:07:36 2021
Results reported at Wed Sep 29 10:07:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin747 348.914 -50.3127 432950401 433209601 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 :                                   722.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

