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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin561
RA = 348.914, Dec = -50.3127
tmin = 384739201, tmax = 384998401
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='720281', job_status='RUN', time_executed='2021-09-29 09:50:41.593580', time_epoch_executed='1632934241.59' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/720281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/720281/ft1_4FGL_J2315.6-5018_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/720281/ft2_4FGL_J2315.6-5018_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/720281/ft1_4FGL_J2315.6-5018_daily_bin561.fits outfile=/scratch/kocevski/720281/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin561.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=384739201.0 tmax=384998401.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.61
user 4.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/720281/ft1_filtered_4FGL_J2315.6-5018_daily_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/720281/ft2_4FGL_J2315.6-5018_daily_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/720281/ltcube_384739201_384998401_4FGL_J2315.6-5018_daily_bin561.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/720281/ft2_4FGL_J2315.6-5018_daily_bin561.fits
.....................!
real 11.79
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/720281/ft1_filtered_4FGL_J2315.6-5018_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/720281/ft2_4FGL_J2315.6-5018_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/720281/ltcube_384739201_384998401_4FGL_J2315.6-5018_daily_bin561.fits outfile=/scratch/kocevski/720281/expmap_384739201_384998401_4FGL_J2315.6-5018_daily_bin561.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/720281/ltcube_384739201_384998401_4FGL_J2315.6-5018_daily_bin561.fits
.....................!
real 192.15
user 186.51
sys 5.21

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/720281/ft1_filtered_4FGL_J2315.6-5018_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/720281/ft2_4FGL_J2315.6-5018_daily_bin561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/720281/Model_4FGL_J2315.6-5018_daily_bin561.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/720281/ft1_filtered_4FGL_J2315.6-5018_daily_bin561.fits.....................!
real 36.57
user 35.21
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.220       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4810       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.399       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3676       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.930       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42636E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.861       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12755E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24929       1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.355       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.337       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.564       1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.5099       1.0000         .10000E-03   10000.    
    27 'norm      '    6.1304       1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.400       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.9837       1.0000         .10000E-03   10000.    
    30 'Prefactor '    17.737       1.0000         .10000E-03   10000.    
    31 'norm      '    31.607       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .21478       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1615       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .71665       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=   4480.771     FROM MIGRAD    STATUS=CONVERGED    948 CALLS     5082 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.044        .34244E-05** at limit **
   2  Prefactor     40.205        44.992       -.15373E-04    .15919E-03
   3  Prefactor     .10000E-03    11.208       -.11236E-05** at limit **
   4  Prefactor     6.4805        6.5968        .60797E-06    .24410E-03
   5  Prefactor     26.396        17.037        .24062E-05    .91949E-04
   6  Prefactor     6.3580        17.681        .31349E-04   -.12751E-03
   7  Prefactor     .10000E-03    1.3088       -.33338E-06** at limit **
   8  Prefactor     59.867        142.28       -.76505E-04   -.11736E-03
   9  norm          .10000E-03    2.5780        .84291E-06** at limit **
  10  Prefactor     .10000E-03    2.1677        .33854E-06** at limit **
  11  Prefactor     .10000E-03    19.018       -.34101E-05** at limit **
  12  Prefactor     .10000E-03    5.3474        .93004E-06** at limit **
  13  Prefactor     .10005E-03    94.414        .73490E-04** at limit **
  14  Prefactor     24.846        16.429        .62682E-05   -.11166E-02
  15  Prefactor     .10000E-03    111.63       -.19058E-04** at limit **
  16  Prefactor     .23868        5.7608       -.21249E-06   -.28014E-03
  17  Prefactor     44.354        38.775       -.11755E-05   -.11765E-03
  18  Prefactor     34.323        22.452       -.19317E-06   -.35060E-04
  19  norm          .10000E-03    5.4644        .80208E-06** at limit **
  20  norm          .10000E-03    3.0441        .49646E-06** at limit **
  21  norm          .10000E-03    2.2284       -.27151E-06** at limit **
  22  Prefactor     .10000E-03    2.7093       -.11005E-05** at limit **
  23  Prefactor     41.551        41.419       -.13198E-04   -.10468E-04
  24  norm          .10000E-03    1.9833        .31793E-06** at limit **
  25  Prefactor     .10000E-03    4.5009       -.57122E-06** at limit **
  26  norm          1.5097        1.3864        .25645E-06    .26845E-03
  27  norm          6.1298        5.7352        .16740E-05   -.10657E-03
  28  Prefactor     16.385        20.156        .30880E-05    .34715E-03
  29  Prefactor     7.9824        4.6458        .14991E-06    .98292E-03
  30  Prefactor     17.727        27.282       -.44593E-05    .12845E-03
  31  norm          31.640        32.978        .27703E-04    .55832E-03
  32  Prefactor     .20153        4.1567       -.53791E-05    .73499E-03
  33  Prefactor     .10000E-03    6.6409       -.80850E-06** at limit **
  34  Normalizat    1.1625        .22016       -.64251E-06   -.28986E-04
  35  Prefactor     .71589        .20772       -.24365E-05   -.13898E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.2049
  Prefactor  = 0.0001
  Prefactor  = 6.4805
  Prefactor  = 26.3963
  Prefactor  = 6.35804
  Prefactor  = 0.0001
  Prefactor  = 59.8673
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100054
  Prefactor  = 24.8462
  Prefactor  = 0.000100002
  Prefactor  = 0.238682
  Prefactor  = 44.3537
  Prefactor  = 34.3229
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.5512
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50968
  norm       = 6.12977
  Prefactor  = 16.3848
  Prefactor  = 7.98235
  Prefactor  = 17.7275
  norm       = 31.6402
  Prefactor  = 0.201529
  Prefactor  = 0.000100001
  Normalizat = 1.16245
  Prefactor  = 0.715885
 **********
 **   18 **HESSE 
 **********

 FCN=   4480.771     FROM HESSE     STATUS=OK           764 CALLS     5846 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.205        44.893        .63204E-04   -1.4439    
   3  Prefactor     .10000E-03    11.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4805        6.5986        .15765E-03   -1.5199    
   5  Prefactor     26.396        17.040        .77968E-04   -1.4680    
   6  Prefactor     6.3580        17.496        .15906E-03   -1.5204    
   7  Prefactor     .10000E-03    1.3173        .74780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.867        141.27        .51827E-04   -1.4159    
   9  norm          .10000E-03    2.5795        .10496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1884        .96199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4194        .15102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    93.207        .21234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.846        16.338        .80340E-04   -1.4711    
  15  Prefactor     .10000E-03    111.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .23868        23.871        .31005E-02   -1.5610    
  17  Prefactor     44.354        38.781        .60198E-04   -1.4375    
  18  Prefactor     34.323        22.442        .68387E-04   -1.4536    
  19  norm          .10000E-03    5.4676        .15283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.0455        .11405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.2304        .97582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.7139        .10757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     41.551        41.468        .62178E-04   -1.4418    
  24  norm          .10000E-03    1.9866        .91986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.5028        .13869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.5097        1.3723        .69690E-04   -1.5462    
  27  norm          6.1298        5.7284        .14408E-03   -1.5213    
  28  Prefactor     16.385        20.218        .98902E-04   -1.4898    
  29  Prefactor     7.9824        4.6331        .10222E-03   -1.5143    
  30  Prefactor     17.727        27.268        .95099E-04   -1.4866    
  31  norm          31.640        35.272        .71271E-04   -1.4582    
  32  Prefactor     .20153        33.957        .24009E-02   -1.5618    
  33  Prefactor     .10000E-03    6.9201        .33643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1625        .27302        .22999E-03   -.87771    
  35  Prefactor     .71589        .25436        .28670E-03   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15245e-09
Minuit parameter uncertainties:
  1  5.69156e-05
  2  44.9303
  3  4.55382e-05
  4  6.5993
  5  17.0434
  6  17.5101
  7  1.30829e-05
  8  142.072
  9  2.98777e-06
  10  3.35866e-06
  11  6.00991e-06
  12  7.83433e-05
  13  0.00449343
  14  16.3405
  15  0.00093767
  16  4.77483
  17  38.8029
  18  22.448
  19  6.48869e-06
  20  2.29111e-07
  21  1.16038e-05
  22  5.84263e-06
  23  41.497
  24  3.07667e-05
  25  9.52088e-06
  26  1.37237
  27  5.72887
  28  20.2261
  29  4.63335
  30  27.2872
  31  35.2952
  32  5.23365
  33  0.000125735
  34  0.273358
  35  0.254778
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  7.159e-01  2.548e-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.162e+00  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.28
Ra Dec: 348.914 -50.313
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.65e-08 +/- 5.00e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 1.65e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4480.65141663
delta logL = 0.120027581142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4480.6509889
delta logL = 0.120455317914

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.953       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1233       1.0000          .0000       10.000    
     3 'Normalizat'    1.1856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70080       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=   4480.651     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      316 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.931        28.675        .31319E-03   -.16298E-04
   2  Index         2.1228        .55541        .68902E-02    .11576E-04
   3  Normalizat    1.1856        .25470        .22813E-03   -.37874E-05
   4  Prefactor     .70084        .25165        .28948E-03   -.63621E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.9311
  Index      = 2.12279
  Normalizat = 1.18563
  Prefactor  = 0.700841
 **********
 **   18 **HESSE 
 **********

 FCN=   4480.651     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.931        28.336        .12528E-04   -1.4428    
   2  Index         2.1228        .54824        .27561E-03   -.61314    
   3  Normalizat    1.1856        .25483        .91251E-05   -.87048    
   4  Prefactor     .70084        .25185        .11579E-04   -1.0349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05758e-12
Minuit parameter uncertainties:
  1  28.345
  2  0.549901
  3  0.255102
  4  0.252257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/720281': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4480.65098776
delta logL = 0.120456457355

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  4.093e+01  2.835e+01  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.123e+00  5.499e-01  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.008e-01  2.523e-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.186e+00  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.53
Ra Dec: 348.914 -50.313
Photon Index (Free Index): 2.12 +/- 0.55
Photon Flux (Free Index): 5.89e-08 +/- 5.45e-08
Energy Flux (Free Index): 3.08e-05 +/- 2.58e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.65e-08', energy_flux2='3.08e-05', photon_flux_error='5.00e-08', dlogl='1.20e-01', energy_flux='2.52e-05', photon_flux2='5.89e-08', job_status='DONE', time_completed='2021-09-29 10:02:59.980357', photon_index_error2='0.55', photon_index2='2.12', ts='7.28', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='1.16', time_epoch_completed='1632934979.98', return_code='0', job_id='720281', GAL2='0.70', EG2='1.19', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='5.45e-08', ts2='7.53', photon_index='2.40' WHERE bin_id='561' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:03:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 720281: <4FGL_J2315.6-5018_daily_bin561> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin561> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 09:50:29 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:50:30 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:50:30 2021
Terminated at Wed Sep 29 10:03:00 2021
Results reported at Wed Sep 29 10:03:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin561 348.914 -50.3127 384739201 384998401 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 :                                   735.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            751 sec.

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

