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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1612
RA = 348.914, Dec = -50.3127
tmin = 657158401, tmax = 657417601
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='498651', job_status='RUN', time_executed='2021-12-08 09:20:34.337080', time_epoch_executed='1638984034.34' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498651

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498651/ft1_4FGL_J2315.6-5018_daily_bin1612.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498651/ft2_4FGL_J2315.6-5018_daily_bin1612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498651/ft1_4FGL_J2315.6-5018_daily_bin1612.fits outfile=/scratch/kocevski/498651/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1612.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=657158401.0 tmax=657417601.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.68
user 3.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498651/ft1_filtered_4FGL_J2315.6-5018_daily_bin1612.fits" evtable="EVENTS" scfile=/scratch/kocevski/498651/ft2_4FGL_J2315.6-5018_daily_bin1612.fits sctable="SC_DATA" outfile=/scratch/kocevski/498651/ltcube_657158401_657417601_4FGL_J2315.6-5018_daily_bin1612.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/498651/ft2_4FGL_J2315.6-5018_daily_bin1612.fits
.....................!
real 13.73
user 13.32
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498651/ft1_filtered_4FGL_J2315.6-5018_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/498651/ft2_4FGL_J2315.6-5018_daily_bin1612.fits sctable="SC_DATA" expcube=/scratch/kocevski/498651/ltcube_657158401_657417601_4FGL_J2315.6-5018_daily_bin1612.fits outfile=/scratch/kocevski/498651/expmap_657158401_657417601_4FGL_J2315.6-5018_daily_bin1612.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/498651/ltcube_657158401_657417601_4FGL_J2315.6-5018_daily_bin1612.fits
.....................!
real 191.46
user 185.95
sys 4.94

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/498651/ft1_filtered_4FGL_J2315.6-5018_daily_bin1612.fits scfile=/scratch/kocevski/498651/ft2_4FGL_J2315.6-5018_daily_bin1612.fits outfile=/scratch/kocevski/498651/cmap_657158401_657417601_4FGL_J2315.6-5018_daily_bin1612.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498651/ft1_filtered_4FGL_J2315.6-5018_daily_bin1612.fits scfile=/scratch/kocevski/498651/ft2_4FGL_J2315.6-5018_daily_bin1612.fits outfile=/scratch/kocevski/498651/cmap_HighResolution_657158401_657417601_4FGL_J2315.6-5018_daily_bin1612.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.58
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/498651/ft1_filtered_4FGL_J2315.6-5018_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/498651/ft2_4FGL_J2315.6-5018_daily_bin1612.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/498651/Model_4FGL_J2315.6-5018_daily_bin1612.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/498651/ft1_filtered_4FGL_J2315.6-5018_daily_bin1612.fits.....................!
real 46.24
user 44.86
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.769       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7713       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9952       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8989       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.048       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-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      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11032E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.725       1.0000         .10000E-03   10000.    
    24 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14329E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.3280       1.0000         .10000E-03   10000.    
    27 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .97456       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .75137       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=   6413.922     FROM MIGRAD    STATUS=CONVERGED    952 CALLS     4286 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4745        14.562       -.75673E-06   -.19065E-04
   2  Prefactor     25.768        26.151       -.15099E-05    .29084E-05
   3  Prefactor     .10000E-03    2.6275       -.45333E-06** at limit **
   4  Prefactor     .10000E-03    2.0253       -.10817E-08** at limit **
   5  Prefactor     .10000E-03    3.3457       -.12176E-05** at limit **
   6  Prefactor     .10000E-03    1.8574       -.86043E-06** at limit **
   7  Prefactor     1.7716        3.3646       -.52398E-06   -.89065E-03
   8  Prefactor     .10000E-03    32.841        .62722E-05** at limit **
   9  norm          .10000E-03    1.5508        .19791E-06** at limit **
  10  Prefactor     1.1723        2.3014       -.59759E-06   -.96056E-03
  11  Prefactor     .10000E-03    14.727       -.74029E-05** at limit **
  12  Prefactor     1.9988        5.2596        .17587E-05   -.69677E-03
  13  Prefactor     11.032        21.795       -.96488E-05   -.25368E-03
  14  Prefactor     .10000E-03    10.120        .97668E-05** at limit **
  15  Prefactor     .10000E-03    42.104       -.83519E-05** at limit **
  16  Prefactor     3.8985        4.7862       -.25723E-06   -.15428E-03
  17  Prefactor     32.034        35.282       -.14110E-04   -.26088E-04
  18  Prefactor     .10000E-03    6.3081       -.11693E-06** at limit **
  19  norm          .10000E-03    3.3031        .17049E-05** at limit **
  20  norm          .10000E-03    1.7502        .97991E-06** at limit **
  21  norm          .10000E-03    .96740       -.82326E-09** at limit **
  22  Prefactor     .10000E-03    4.0689       -.97343E-06** at limit **
  23  Prefactor     16.721        22.832       -.33700E-05   -.12352E-04
  24  norm          .10000E-03    1.1194        .12688E-07** at limit **
  25  Prefactor     .10003E-03    7.6681        .11092E-05** at limit **
  26  norm          1.3281        .87302       -.79668E-07   -.34078E-03
  27  norm          .10000E-03    1.2104        .31417E-07** at limit **
  28  Prefactor     .10000E-03    4.8360       -.22648E-05** at limit **
  29  Prefactor     .10000E-03    1.1470       -.44512E-07** at limit **
  30  Prefactor     .10000E-03    5.4897        .37473E-05** at limit **
  31  norm          .10000E-03    7.9596       -.44053E-05** at limit **
  32  Prefactor     .10000E-03    2.1413        .39029E-06** at limit **
  33  Prefactor     .10000E-03    1.6003       -.52122E-06** at limit **
  34  Normalizat    .97469        .14694        .20512E-05   -.25563E-03
  35  Prefactor     .75125        .14546        .35884E-06    .80509E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.47446
  Prefactor  = 25.7676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77159
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.17234
  Prefactor  = 0.0001
  Prefactor  = 1.99883
  Prefactor  = 11.0319
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.89849
  Prefactor  = 32.034
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7212
  norm       = 0.0001
  Prefactor  = 0.000100033
  norm       = 1.32809
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.974688
  Prefactor  = 0.751248
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.922     FROM HESSE     STATUS=OK           762 CALLS     5048 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4745        14.553        .13769E-03   -1.5126    
   2  Prefactor     25.768        26.182        .78914E-04   -1.4692    
   3  Prefactor     .10000E-03    2.6338        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0294        .11130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4005        .14304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8584        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7716        3.3625        .19343E-03   -1.5442    
   8  Prefactor     .10000E-03    32.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5512        .97400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1723        2.2752        .16380E-03   -1.5491    
  11  Prefactor     .10000E-03    14.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9988        5.1496        .26320E-03   -1.5425    
  13  Prefactor     11.032        21.692        .12054E-03   -1.5044    
  14  Prefactor     .10000E-03    10.504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    42.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8985        4.7800        .18739E-03   -1.5313    
  17  Prefactor     32.034        34.876        .70780E-04   -1.4575    
  18  Prefactor     .10000E-03    6.3459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.3026        .14210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7515        .10344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .96760        .76924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.5280        .28969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.721        22.912        .97935E-04   -1.4890    
  24  norm          .10000E-03    1.1297        .82590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10003E-03    31.294        .39167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.3281        .84964        .56967E-04   -1.5477    
  27  norm          .10000E-03    1.2176        .85941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.8541        .17199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.1625        .83676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    5.4841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    7.9599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.1708        .11432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.6237        .98755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .97469        .17533        .20215E-03   -.93883    
  35  Prefactor     .75125        .17446        .23813E-03   -1.0155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80875e-09
Minuit parameter uncertainties:
  1  14.5595
  2  26.194
  3  3.57587e-06
  4  2.00119e-06
  5  6.78847e-07
  6  2.39907e-06
  7  3.36282
  8  1.20545e-05
  9  1.38537e-06
  10  2.27533
  11  6.82925e-07
  12  5.1507
  13  21.7079
  14  0.000222383
  15  9.94619e-05
  16  4.78044
  17  34.898
  18  8.12066e-06
  19  1.61264e-06
  20  1.66835e-07
  21  6.96144e-07
  22  7.37172e-05
  23  22.9236
  24  4.67729e-06
  25  0.002029
  26  0.849651
  27  3.04317e-06
  28  8.63839e-06
  29  3.34594e-06
  30  4.58489e-06
  31  4.70661e-06
  32  8.30016e-06
  33  2.93691e-06
  34  0.175432
  35  0.174584
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  8.121e-06  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.512e-01  1.746e-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:  9.747e-01  1.754e-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: 4.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/498651/likelihoodResults_657158401_657417601_4FGL_J2315.6-5018_daily_bin1612.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) = 6413.9228639
delta logL = -0.00075099627793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6413.92211335
delta logL = -4.48488208349e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3780       1.0000          .0000       10.000    
     3 'Normalizat'    .97460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75135       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=   6413.922     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      236 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10124E-03    70.089        .18142E-02** at limit **
   2  Index         2.3202        6.1072        .50000        .18918E-04
   3  Normalizat    .97469        .11178E-01    .20215E-03    .58883E-04
   4  Prefactor     .75125        .11763E-01    .23813E-03    .41487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010124
  Index      = 2.32015
  Normalizat = 0.97469
  Prefactor  = 0.751246
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.922     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10124E-03    300.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3202        5.9586        .50000       -.56566    
   3  Normalizat    .97469        .24222E-01    .80859E-05   -.93883    
   4  Prefactor     .75125        .25487E-01    .95252E-05   -1.0155    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65109e-08
Minuit parameter uncertainties:
  1  0.0388244
  2  669.012
  3  0.0242226
  4  0.0254871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498651': 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) = 6413.92211262
delta logL = 2.8009617381e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  7.512e-01  2.549e-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:  9.747e-01  2.422e-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/498651/cmap_HighResolution_657158401_657417601_4FGL_J2315.6-5018_daily_bin1612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.79e-08', time_completed='2021-12-08 09:36:50.337425', job_id='498651', GAL2='0.75', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1638985010.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1612' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:36:50 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 498651: <4FGL_J2315.6-5018_daily_bin1612> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1612> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 09:20:15 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:20:22 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:22 2021
Terminated at Wed Dec  8 09:36:51 2021
Results reported at Wed Dec  8 09:36:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1612 348.914 -50.3127 657158401 657417601 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 :                                   975.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            996 sec.

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

