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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1624
RA = 348.914, Dec = -50.3127
tmin = 660268801, tmax = 660528001
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='498669', job_status='RUN', time_executed='2021-12-08 09:22:15.046506', time_epoch_executed='1638984135.05' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498669

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498669/ft1_4FGL_J2315.6-5018_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498669/ft2_4FGL_J2315.6-5018_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498669/ft1_4FGL_J2315.6-5018_daily_bin1624.fits outfile=/scratch/kocevski/498669/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1624.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=660268801.0 tmax=660528001.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 3.25
user 3.03
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498669/ft1_filtered_4FGL_J2315.6-5018_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/498669/ft2_4FGL_J2315.6-5018_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/498669/ltcube_660268801_660528001_4FGL_J2315.6-5018_daily_bin1624.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/498669/ft2_4FGL_J2315.6-5018_daily_bin1624.fits
.....................!
real 11.60
user 11.28
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498669/ft1_filtered_4FGL_J2315.6-5018_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/498669/ft2_4FGL_J2315.6-5018_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/498669/ltcube_660268801_660528001_4FGL_J2315.6-5018_daily_bin1624.fits outfile=/scratch/kocevski/498669/expmap_660268801_660528001_4FGL_J2315.6-5018_daily_bin1624.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/498669/ltcube_660268801_660528001_4FGL_J2315.6-5018_daily_bin1624.fits
.....................!
real 155.71
user 151.64
sys 3.72

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/498669/ft1_filtered_4FGL_J2315.6-5018_daily_bin1624.fits scfile=/scratch/kocevski/498669/ft2_4FGL_J2315.6-5018_daily_bin1624.fits outfile=/scratch/kocevski/498669/cmap_660268801_660528001_4FGL_J2315.6-5018_daily_bin1624.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498669/ft1_filtered_4FGL_J2315.6-5018_daily_bin1624.fits scfile=/scratch/kocevski/498669/ft2_4FGL_J2315.6-5018_daily_bin1624.fits outfile=/scratch/kocevski/498669/cmap_HighResolution_660268801_660528001_4FGL_J2315.6-5018_daily_bin1624.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12224E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9246       1.0000         .10000E-03   10000.    
     8 'Prefactor '    120.78       1.0000         .10000E-03   10000.    
     9 'norm      '    .10350E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.099       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12502E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.495       1.0000         .10000E-03   10000.    
    19 'norm      '    9.4284       1.0000         .10000E-03   10000.    
    20 'norm      '    .14365E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .64097E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3896       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.672       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.7667       1.0000         .10000E-03   10000.    
    27 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.5933       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .56095       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=   4725.374     FROM MIGRAD    STATUS=CONVERGED    957 CALLS     5070 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.926        15.656        .87863E-08   -.11712E-05
   2  Prefactor     .10000E-03    38.730        .57274E-06** at limit **
   3  Prefactor     .10000E-03    4.6700        .10037E-06** at limit **
   4  Prefactor     .10000E-03    9.1210        .40422E-06** at limit **
   5  Prefactor     .10000E-03    5.2369        .11579E-07** at limit **
   6  Prefactor     .10004E-03    30.363       -.12023E-04** at limit **
   7  Prefactor     3.9246        4.3730        .92009E-07    .15769E-03
   8  Prefactor     120.69        136.00       -.80603E-07   -.12696E-04
   9  norm          .10000E-03    5.8140       -.40726E-06** at limit **
  10  Prefactor     15.098        7.4764       -.85449E-07   -.84575E-04
  11  Prefactor     .10000E-03    87.504       -.11347E-05** at limit **
  12  Prefactor     .10000E-03    2.1830       -.15713E-06** at limit **
  13  Prefactor     .10000E-03    12.372       -.33577E-06** at limit **
  14  Prefactor     .10000E-03    2.9575       -.58685E-07** at limit **
  15  Prefactor     .10000E-03    27.342       -.26050E-06** at limit **
  16  Prefactor     .10000E-03    5.5382        .46777E-06** at limit **
  17  Prefactor     .10000E-03    20.939        .22431E-06** at limit **
  18  Prefactor     12.475        22.037        .13105E-06   -.11280E-03
  19  norm          9.4292        13.185        .81693E-07   -.72834E-06
  20  norm          .10164E-03    12.683        .40723E-05** at limit **
  21  norm          .10001E-03    7.0179        .66766E-06** at limit **
  22  Prefactor     7.3928        6.6423        .98816E-07   -.43567E-03
  23  Prefactor     .10000E-03    22.642        .76940E-07** at limit **
  24  norm          10.667        6.5186        .20603E-06    .13740E-05
  25  Prefactor     .10000E-03    5.7208        .65351E-07** at limit **
  26  norm          3.7675        1.7990        .39118E-07   -.10817E-02
  27  norm          .10000E-03    4.2265        .48558E-07** at limit **
  28  Prefactor     .10000E-03    11.136        .11176E-06** at limit **
  29  Prefactor     .10000E-03    1.3600        .41276E-07** at limit **
  30  Prefactor     .10000E-03    8.0176        .75248E-09** at limit **
  31  norm          .10000E-03    29.925       -.16638E-06** at limit **
  32  Prefactor     .10000E-03    6.1329        .18220E-06** at limit **
  33  Prefactor     .10000E-03    2.2270        .60445E-07** at limit **
  34  Normalizat    1.5936        .22109        .17786E-06   -.36119E-04
  35  Prefactor     .56055        .21802       -.33568E-06   -.51615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 3.92461
  Prefactor  = 120.69
  norm       = 0.0001
  Prefactor  = 15.0984
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 12.4747
  norm       = 9.4292
  norm       = 0.000101638
  norm       = 0.000100007
  Prefactor  = 7.39283
  Prefactor  = 0.0001
  norm       = 10.6675
  Prefactor  = 0.0001
  norm       = 3.76755
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.59359
  Prefactor  = 0.560546
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.374     FROM HESSE     STATUS=OK           762 CALLS     5832 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.926        15.654        .11599E-03   -1.5017    
   2  Prefactor     .10000E-03    38.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6789        .14508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2476        .15364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    31.836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9246        4.3663        .14561E-03   -1.5312    
   8  Prefactor     120.69        136.01        .18310E-03   -1.3506    
   9  norm          .10000E-03    5.8478        .16190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.098        7.4730        .10307E-03   -1.4931    
  11  Prefactor     .10000E-03    87.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1890        .99186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9609        .11545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.947        .31252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.475        22.021        .11332E-03   -1.5001    
  19  norm          9.4292        13.179        .13052E-03   -1.5094    
  20  norm          .10164E-03    67.406        .33310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    23.598        .31883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.3928        6.5192        .14754E-03   -1.5164    
  23  Prefactor     .10000E-03    22.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.667        5.9503        .12081E-03   -1.5055    
  25  Prefactor     .10000E-03    5.7277        .16057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.7675        1.7745        .57705E-04   -1.5320    
  27  norm          .10000E-03    4.3807        .27553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.3673        .78263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    8.0242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    30.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    6.2404        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    2.2465        .10014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.5936        .25959        .21607E-03   -.75181    
  35  Prefactor     .56055        .25290        .34013E-03   -1.0927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50921e-08
Minuit parameter uncertainties:
  1  15.6597
  2  0.00025009
  3  1.06061e-05
  4  6.55942e-05
  5  7.93121e-06
  6  0.00231705
  7  4.36668
  8  136.368
  9  2.41975e-05
  10  7.47347
  11  0.00107517
  12  7.8022e-06
  13  5.59467e-05
  14  3.85603e-06
  15  0.000130781
  16  0.000560197
  17  0.000102466
  18  22.0356
  19  13.1834
  20  0.0210366
  21  0.000833866
  22  6.51978
  23  2.17478e-05
  24  5.95059
  25  1.27108e-05
  26  1.7745
  27  1.27957e-06
  28  1.86191e-06
  29  1.68343e-06
  30  6.9941e-06
  31  0.000123587
  32  5.2756e-06
  33  1.89982e-06
  34  0.259811
  35  0.253414
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.247e+01  2.204e+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:  5.605e-01  2.534e-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.594e+00  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 348.914 -50.313
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/498669/likelihoodResults_660268801_660528001_4FGL_J2315.6-5018_daily_bin1624.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) = 4724.81434164
delta logL = 0.559544638309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4724.80724122
delta logL = 0.566645050823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68177       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3921       1.0000          .0000       10.000    
     3 'Normalizat'    1.5277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61002       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=   4724.807     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      319 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67157        9.6538        .10990E-01   -.76808E-03
   2  Index         4.3994        2.5695        .12565       -.88826E-05
   3  Normalizat    1.5278        .47597E-01    .49652E-01    .19800E-04
   4  Prefactor     .60985        .47295E-01    .73901E-01   -.21397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.671573
  Index      = 4.39943
  Normalizat = 1.52784
  Prefactor  = 0.609848
 **********
 **   18 **HESSE 
 **********

 FCN=   4724.807     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      354 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67157        27.235        .50162E-03   -1.5544    
   2  Index         4.3994        7.1224        .43910E-02   -.12040    
   3  Normalizat    1.5278        .19183        .21950E-03   -.76999    
   4  Prefactor     .60985        .18797        .32716E-03   -1.0717    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.72152e-10
Minuit parameter uncertainties:
  1  8.55701
  2  5.96179
  3  0.19192
  4  0.188163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498669': 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) = 4724.80723725
delta logL = 0.566649022593

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  6.098e-01  1.882e-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.528e+00  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 348.914 -50.313
Photon Index (Free Index): 4.40 +/- 5.96
Photon Flux (Free Index): 7.50e-08 +/- 6.61e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.33e-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/498669/cmap_HighResolution_660268801_660528001_4FGL_J2315.6-5018_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='5.67e-01', photon_flux2='7.50e-08', job_status='DONE', time_completed='2021-12-08 09:34:12.548118', photon_index_error2='5.96', photon_index2='4.40', ts='0.41', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.33e-05', EG='1.59', time_epoch_completed='1638984852.55', return_code='0', job_id='498669', GAL2='0.61', EG2='1.53', return_code2='102', photon_flux_error2='6.61e-08', ts2='1.61', photon_index='2.40' WHERE bin_id='1624' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:34:12 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 498669: <4FGL_J2315.6-5018_daily_bin1624> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1624> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 09:20:17 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:20:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:20:30 2021
Terminated at Wed Dec  8 09:34:13 2021
Results reported at Wed Dec  8 09:34:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1624 348.914 -50.3127 660268801 660528001 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 :                                   719.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            836 sec.

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

