/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 20 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7414
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1287
RA = 348.914, Dec = -50.3127
tmin = 572918401, tmax = 573177601
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='723421', job_status='RUN', time_executed='2021-09-29 10:01:23.932506', time_epoch_executed='1632934883.93' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723421/ft1_4FGL_J2315.6-5018_daily_bin1287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723421/ft2_4FGL_J2315.6-5018_daily_bin1287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723421/ft1_4FGL_J2315.6-5018_daily_bin1287.fits outfile=/scratch/kocevski/723421/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1287.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=572918401.0 tmax=573177601.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.90
user 4.63
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/723421/ft2_4FGL_J2315.6-5018_daily_bin1287.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/723421/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1287.fits evtable="EVENTS" outfile="/scratch/kocevski/723421/ft1_filtered_4FGL_J2315.6-5018_daily_bin1287.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/723421/ft1_filtered_4FGL_J2315.6-5018_daily_bin1287.fits" evtable="EVENTS" scfile=/scratch/kocevski/723421/ft2_4FGL_J2315.6-5018_daily_bin1287.fits sctable="SC_DATA" outfile=/scratch/kocevski/723421/ltcube_572918401_573177601_4FGL_J2315.6-5018_daily_bin1287.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/723421/ft2_4FGL_J2315.6-5018_daily_bin1287.fits
.....................!
real 11.74
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723421/ft1_filtered_4FGL_J2315.6-5018_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/723421/ft2_4FGL_J2315.6-5018_daily_bin1287.fits sctable="SC_DATA" expcube=/scratch/kocevski/723421/ltcube_572918401_573177601_4FGL_J2315.6-5018_daily_bin1287.fits outfile=/scratch/kocevski/723421/expmap_572918401_573177601_4FGL_J2315.6-5018_daily_bin1287.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/723421/ltcube_572918401_573177601_4FGL_J2315.6-5018_daily_bin1287.fits
.....................!
real 190.34
user 185.25
sys 4.64

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/723421/ft1_filtered_4FGL_J2315.6-5018_daily_bin1287.fits scfile=/scratch/kocevski/723421/ft2_4FGL_J2315.6-5018_daily_bin1287.fits outfile=/scratch/kocevski/723421/cmap_572918401_573177601_4FGL_J2315.6-5018_daily_bin1287.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/723421/ft1_filtered_4FGL_J2315.6-5018_daily_bin1287.fits scfile=/scratch/kocevski/723421/ft2_4FGL_J2315.6-5018_daily_bin1287.fits outfile=/scratch/kocevski/723421/cmap_HighResolution_572918401_573177601_4FGL_J2315.6-5018_daily_bin1287.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/723421/ft1_filtered_4FGL_J2315.6-5018_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/723421/ft2_4FGL_J2315.6-5018_daily_bin1287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723421/Model_4FGL_J2315.6-5018_daily_bin1287.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/723421/ft1_filtered_4FGL_J2315.6-5018_daily_bin1287.fits.....................!
real 37.36
user 36.12
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3521       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .78467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13190E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9806       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3874       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2111       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.276       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.380       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3108       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.008       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6232       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.646       1.0000         .10000E-03   10000.    
    24 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .35319E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.2494       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    24.861       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.9998       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.623       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1069       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .95823       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=   4462.486     FROM MIGRAD    STATUS=CONVERGED    967 CALLS     5055 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    39.761       -.62449E-05** at limit **
   2  Prefactor     .10000E-03    11.765        .91179E-06** at limit **
   3  Prefactor     9.0174        11.867        .16404E-06   -.32461E-04
   4  Prefactor     8.3520        7.6226        .29190E-07   -.45676E-04
   5  Prefactor     .10000E-03    3.0967       -.89961E-07** at limit **
   6  Prefactor     .10000E-03    10.860       -.56069E-06** at limit **
   7  Prefactor     .77341        5.1036        .21068E-05   -.51243E-03
   8  Prefactor     .10001E-03    272.73       -.49761E-05** at limit **
   9  norm          3.9813        5.5114        .18040E-05   -.14780E-02
  10  Prefactor     5.3858        6.2866       -.36995E-07   -.32622E-03
  11  Prefactor     3.2128        154.31        .11178E-05   -.50110E-05
  12  Prefactor     13.275        9.2366        .35049E-06   -.33608E-04
  13  Prefactor     43.380        34.511       -.23076E-06   -.12597E-03
  14  Prefactor     7.3105        8.0485       -.13066E-07   -.77184E-04
  15  Prefactor     .10001E-03    43.570        .54362E-05** at limit **
  16  Prefactor     .10000E-03    5.3353       -.49931E-06** at limit **
  17  Prefactor     51.013        37.916        .13367E-06   -.97278E-05
  18  Prefactor     .10000E-03    6.3634       -.15715E-05** at limit **
  19  norm          .10000E-03    5.6070        .18521E-05** at limit **
  20  norm          .10000E-03    2.6318       -.12778E-06** at limit **
  21  norm          .10000E-03    3.5333       -.14733E-07** at limit **
  22  Prefactor     2.6224        5.4622       -.14286E-07   -.50345E-03
  23  Prefactor     15.634        35.807        .49331E-06   -.30514E-04
  24  norm          .10000E-03    3.7615       -.91906E-07** at limit **
  25  Prefactor     .10009E-03    10.095        .21703E-05** at limit **
  26  norm          2.2493        1.4992        .75422E-07   -.63134E-03
  27  norm          .10000E-03    1.3473       -.29916E-07** at limit **
  28  Prefactor     24.858        22.551        .12688E-05    .14213E-03
  29  Prefactor     1.9973        5.1717        .15131E-05   -.36057E-04
  30  Prefactor     10.636        31.898       -.39225E-05   -.19887E-03
  31  norm          .10000E-03    7.4018        .93456E-06** at limit **
  32  Prefactor     .10000E-03    3.0290       -.75929E-07** at limit **
  33  Prefactor     .10000E-03    5.1412       -.48093E-06** at limit **
  34  Normalizat    1.1072        .23166       -.17805E-05   -.44375E-03
  35  Prefactor     .95803        .21614       -.21895E-08   -.43366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 9.01744
  Prefactor  = 8.35197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.773415
  Prefactor  = 0.00010001
  norm       = 3.9813
  Prefactor  = 5.38577
  Prefactor  = 3.21282
  Prefactor  = 13.2745
  Prefactor  = 43.3803
  Prefactor  = 7.31051
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 51.0133
  Prefactor  = 0.000100001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.62236
  Prefactor  = 15.634
  norm       = 0.0001
  Prefactor  = 0.000100089
  norm       = 2.2493
  norm       = 0.0001
  Prefactor  = 24.8579
  Prefactor  = 1.99726
  Prefactor  = 10.6361
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10722
  Prefactor  = 0.95803
 **********
 **   18 **HESSE 
 **********

 FCN=   4462.486     FROM HESSE     STATUS=OK           770 CALLS     5825 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    41.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.0174        11.869        .13346E-03   -1.5107    
   4  Prefactor     8.3520        7.6215        .13872E-03   -1.5130    
   5  Prefactor     .10000E-03    3.0989        .11481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .77341        8.6195        .26506E-02   -1.5532    
   8  Prefactor     .10001E-03    274.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9813        7.2901        .10108E-02   -1.5309    
  10  Prefactor     5.3858        6.2878        .16488E-03   -1.5244    
  11  Prefactor     3.2128        153.12        .22609E-03   -1.5349    
  12  Prefactor     13.275        9.2419        .10993E-03   -1.4979    
  13  Prefactor     43.380        34.495        .60868E-04   -1.4390    
  14  Prefactor     7.3105        8.0406        .14834E-03   -1.5167    
  15  Prefactor     .10001E-03    44.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3531        .15070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     51.013        37.916        .56153E-04   -1.4278    
  18  Prefactor     .10000E-03    6.4518        .16563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.7421        .15628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.6324        .10584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.5431        .12255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.6224        5.3206        .21194E-03   -1.5384    
  23  Prefactor     15.634        35.766        .10126E-03   -1.4917    
  24  norm          .10000E-03    3.7734        .12585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10009E-03    44.349        .37995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.2493        1.4813        .62193E-04   -1.5408    
  27  norm          .10000E-03    1.3487        .75714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     24.858        22.677        .80340E-04   -1.4710    
  29  Prefactor     1.9973        5.0749        .19165E-03   -1.5425    
  30  Prefactor     10.636        31.652        .12293E-03   -1.5056    
  31  norm          .10000E-03    7.4326        .17788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.0495        .11345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    5.3575        .29498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1072        .27874        .24410E-03   -.89520    
  35  Prefactor     .95803        .26028        .26393E-03   -.94142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95214e-09
Minuit parameter uncertainties:
  1  0.0013806
  2  0.000128921
  3  11.8724
  4  7.62243
  5  4.93607e-06
  6  8.56256e-05
  7  5.1645
  8  0.0033795
  9  7.29175
  10  6.28856
  11  44.4809
  12  9.24286
  13  34.5109
  14  8.04177
  15  0.00144338
  16  3.77281e-05
  17  37.9338
  18  0.000157265
  19  0.000176539
  20  8.05384e-06
  21  3.01566e-07
  22  5.32152
  23  35.8153
  24  2.80579e-06
  25  0.00398008
  26  1.48137
  27  7.42621e-07
  28  22.6847
  29  5.07594
  30  31.7019
  31  9.99949e-05
  32  7.65031e-06
  33  1.00883e-05
  34  0.27911
  35  0.260618
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  1.573e-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:  9.580e-01  2.606e-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.107e+00  2.791e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/723421/likelihoodResults_572918401_573177601_4FGL_J2315.6-5018_daily_bin1287.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) = 4462.48676699
delta logL = -0.000732910474653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4462.48603402
delta logL = 5.94400262344e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3814       1.0000          .0000       10.000    
     3 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95802       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=   4462.486     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10333E-03    6.7064        .16697E-01** at limit **
   2  Index         2.2219        8.8527        .50000        .13133E-04
   3  Normalizat    1.1072        .51001E-02    .24410E-03   -.11271E-04
   4  Prefactor     .95803        .51973E-02    .26393E-03    .22787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103334
  Index      = 2.22192
  Normalizat = 1.10722
  Prefactor  = 0.958032
 **********
 **   18 **HESSE 
 **********

 FCN=   4462.486     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10333E-03    200.26        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2219        5.7625        .50000       -.58910    
   3  Normalizat    1.1072        .28773E-01    .97639E-05   -.89520    
   4  Prefactor     .95803        .29321E-01    .10557E-04   -.94142    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.919e-08
Minuit parameter uncertainties:
  1  0.0518525
  2  1098.92
  3  0.0287737
  4  0.0293217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723421': 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) = 4462.48603366
delta logL = 4.20513060817e-07

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.033e-04  5.185e-02  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.222e+00  1.099e+03  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:  9.580e-01  2.932e-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.107e+00  2.877e-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/723421/cmap_HighResolution_572918401_573177601_4FGL_J2315.6-5018_daily_bin1287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', job_status='DONE', photon_flux_upper_limit='6.92e-08', time_completed='2021-09-29 10:15:07.484681', job_id='723421', GAL2='0.96', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632935707.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1287' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:15:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 723421: <4FGL_J2315.6-5018_daily_bin1287> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1287 348.914 -50.3127 572918401 573177601 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 :                                   816.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            856 sec.

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

