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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1065
RA = 348.914, Dec = -50.3127
tmin = 515376001, tmax = 515635201
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='723080', job_status='RUN', time_executed='2021-09-29 10:00:34.456155', time_epoch_executed='1632934834.46' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1065'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723080/ft1_4FGL_J2315.6-5018_daily_bin1065.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723080/ft2_4FGL_J2315.6-5018_daily_bin1065.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723080/ft1_4FGL_J2315.6-5018_daily_bin1065.fits outfile=/scratch/kocevski/723080/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1065.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=515376001.0 tmax=515635201.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.50
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/723080/ft1_filtered_4FGL_J2315.6-5018_daily_bin1065.fits" evtable="EVENTS" scfile=/scratch/kocevski/723080/ft2_4FGL_J2315.6-5018_daily_bin1065.fits sctable="SC_DATA" outfile=/scratch/kocevski/723080/ltcube_515376001_515635201_4FGL_J2315.6-5018_daily_bin1065.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/723080/ft2_4FGL_J2315.6-5018_daily_bin1065.fits
.....................!
real 11.99
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723080/ft1_filtered_4FGL_J2315.6-5018_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/723080/ft2_4FGL_J2315.6-5018_daily_bin1065.fits sctable="SC_DATA" expcube=/scratch/kocevski/723080/ltcube_515376001_515635201_4FGL_J2315.6-5018_daily_bin1065.fits outfile=/scratch/kocevski/723080/expmap_515376001_515635201_4FGL_J2315.6-5018_daily_bin1065.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/723080/ltcube_515376001_515635201_4FGL_J2315.6-5018_daily_bin1065.fits
.....................!
real 190.36
user 185.21
sys 4.67

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/723080/ft1_filtered_4FGL_J2315.6-5018_daily_bin1065.fits scfile=/scratch/kocevski/723080/ft2_4FGL_J2315.6-5018_daily_bin1065.fits outfile=/scratch/kocevski/723080/cmap_515376001_515635201_4FGL_J2315.6-5018_daily_bin1065.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/723080/ft1_filtered_4FGL_J2315.6-5018_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/723080/ft2_4FGL_J2315.6-5018_daily_bin1065.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723080/Model_4FGL_J2315.6-5018_daily_bin1065.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/723080/ft1_filtered_4FGL_J2315.6-5018_daily_bin1065.fits.....................!
real 45.92
user 44.58
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4751       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 '    3.7068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7271       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6486       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1045       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7809       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      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0637       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.3599       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2912       1.0000         .10000E-03   10000.    
    26 'norm      '    .73810       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4845       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .48847E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.1188       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .93087       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .97574       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=   6448.056     FROM MIGRAD    STATUS=CONVERGED    941 CALLS     4241 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4242        .57707E-06** at limit **
   2  Prefactor     .10000E-03    6.6951       -.21018E-05** at limit **
   3  Prefactor     .10000E-03    2.4741        .17593E-06** at limit **
   4  Prefactor     .10000E-03    1.9196        .59000E-07** at limit **
   5  Prefactor     .10000E-03    1.9871       -.66351E-07** at limit **
   6  Prefactor     .10000E-03    5.9674        .21937E-05** at limit **
   7  Prefactor     7.4754        4.3980       -.30582E-07   -.11621E-03
   8  Prefactor     .10000E-03    28.651        .58016E-05** at limit **
   9  norm          .10000E-03    3.8111       -.74920E-06** at limit **
  10  Prefactor     3.7066        3.4539        .16313E-07   -.75422E-04
  11  Prefactor     .10000E-03    38.700       -.95238E-05** at limit **
  12  Prefactor     2.7280        5.2246        .38153E-07   -.24550E-03
  13  Prefactor     .10000E-03    12.955       -.13341E-05** at limit **
  14  Prefactor     3.6472        7.0009        .22058E-05   -.15972E-02
  15  Prefactor     .10000E-03    33.083        .45111E-05** at limit **
  16  Prefactor     5.1048        6.0373        .66010E-07   -.39138E-04
  17  Prefactor     .10000E-03    10.816        .52007E-05** at limit **
  18  Prefactor     8.7798        10.150       -.54468E-07   -.18087E-04
  19  norm          .10000E-03    2.6665       -.30791E-06** at limit **
  20  norm          .10000E-03    1.5112        .30235E-08** at limit **
  21  norm          .10000E-03    1.7280        .11509E-07** at limit **
  22  Prefactor     6.0643        6.3519        .86704E-06   -.16088E-02
  23  Prefactor     .10000E-03    13.934       -.50540E-05** at limit **
  24  norm          7.3618        3.5765        .30057E-07    .16816E-03
  25  Prefactor     7.2874        15.354       -.12218E-05   -.42827E-04
  26  norm          .73892        .86448        .22753E-09   -.14537E-03
  27  norm          1.4845        1.7722        .73538E-08    .27387E-04
  28  Prefactor     .10000E-03    6.7329       -.23124E-05** at limit **
  29  Prefactor     .45737E-01    1.4049       -.20486E-08   -.22106E-06
  30  Prefactor     .10000E-03    6.1921        .11173E-05** at limit **
  31  norm          .10000E-03    8.3073        .14203E-06** at limit **
  32  Prefactor     2.1187        3.6455        .12259E-06   -.11943E-03
  33  Prefactor     .10000E-03    .96625        .96891E-08** at limit **
  34  Normalizat    .93071        .16517       -.97703E-07    .27170E-04
  35  Prefactor     .97592        .16989       -.30630E-06    .29358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.47537
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 3.7066
  Prefactor  = 0.000100005
  Prefactor  = 2.72796
  Prefactor  = 0.0001
  Prefactor  = 3.64719
  Prefactor  = 0.000100001
  Prefactor  = 5.10479
  Prefactor  = 0.000100002
  Prefactor  = 8.77982
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.06433
  Prefactor  = 0.000100001
  norm       = 7.36178
  Prefactor  = 7.28743
  norm       = 0.738923
  norm       = 1.48453
  Prefactor  = 0.0001
  Prefactor  = 0.0457375
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.11865
  Prefactor  = 0.0001
  Normalizat = 0.930713
  Prefactor  = 0.975919
 **********
 **   18 **HESSE 
 **********

 FCN=   6448.056     FROM HESSE     STATUS=OK           770 CALLS     5011 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4269        .14516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4763        .12336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9220        .10865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9893        .11055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.4754        4.3986        .12384E-03   -1.5161    
   8  Prefactor     .10000E-03    28.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.8292        .15313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7066        3.4493        .13738E-03   -1.5323    
  11  Prefactor     .10000E-03    39.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7280        5.2083        .23919E-03   -1.5378    
  13  Prefactor     .10000E-03    13.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6472        9.3888        .10574E-02   -1.5326    
  15  Prefactor     .10000E-03    33.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1048        6.0401        .17796E-03   -1.5256    
  17  Prefactor     .10000E-03    10.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7798        10.128        .13527E-03   -1.5115    
  19  norm          .10000E-03    2.6675        .12807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5113        .96401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.7346        .10304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.0643        6.7899        .81524E-03   -1.5215    
  23  Prefactor     .10000E-03    14.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.3618        3.5722        .10169E-03   -1.5165    
  25  Prefactor     7.2874        15.436        .14854E-03   -1.5168    
  26  norm          .73892        .81961        .74132E-03   -1.5536    
  27  norm          1.4845        1.7607        .11317E-03   -1.5464    
  28  Prefactor     .10000E-03    6.7835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .45737E-01    37.547        .17619E-02   -1.5665    
  30  Prefactor     .10000E-03    6.2067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    8.3102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     2.1187        3.6292        .18903E-03   -1.5417    
  33  Prefactor     .10000E-03    .97470        .77065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .93071        .20042        .23010E-03   -.95389    
  35  Prefactor     .97592        .20564        .23949E-03   -.93537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42195e-08
Minuit parameter uncertainties:
  1  1.64709e-05
  2  8.37147e-05
  3  4.26815e-06
  4  1.27502e-06
  5  1.4397e-06
  6  7.24755e-05
  7  4.39877
  8  0.000473859
  9  2.18172e-05
  10  3.44948
  11  0.000872183
  12  5.20914
  13  7.13812e-05
  14  9.39259
  15  0.000401834
  16  6.04084
  17  0.000264873
  18  10.1301
  19  7.55441e-06
  20  8.16709e-08
  21  4.48114e-07
  22  6.79074
  23  0.000286588
  24  3.57235
  25  15.4446
  26  0.819618
  27  1.76075
  28  9.07018e-05
  29  2.61971
  30  4.3474e-05
  31  6.26235e-06
  32  3.62961
  33  1.76716e-07
  34  0.200581
  35  0.205802
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  8.780e+00  1.013e+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:  9.759e-01  2.058e-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.307e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 348.914 -50.313
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 6.45e-06 +/- 7.44e-06

TS (Fixed Index): 1.27
Ra Dec: 348.914 -50.313
Photon Flux Upper Limit: 7.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/723080/likelihoodResults_515376001_515635201_4FGL_J2315.6-5018_daily_bin1065.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): 0
logL (Free Index) = 6447.70012996
delta logL = 0.356025747764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6447.69327503
delta logL = 0.362880680906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7643       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4594       1.0000          .0000       10.000    
     3 'Normalizat'    .95121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96298       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=   6447.693     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      204 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7643        9.2070        .35977E-02   -.17292E-02
   2  Index         1.4594        .56762        .30289       -.51426E-04
   3  Normalizat    .95119        .15795        .45553E-01    .67054E-04
   4  Prefactor     .96301        .16838        .45803E-01    .21976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.76428
  Index      = 1.45942
  Normalizat = 0.951194
  Prefactor  = 0.963007
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.693     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7643        11.237        .14391E-03   -1.5151    
   2  Index         1.4594        .85025        .12499E-01   -.78683    
   3  Normalizat    .95119        .19045        .22789E-03   -.94684    
   4  Prefactor     .96301        .20330        .24086E-03   -.93973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2952e-08
Minuit parameter uncertainties:
  1  11.2402
  2  0.858695
  3  0.190589
  4  0.203458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723080': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6447.69327502
delta logL = 0.362880696364

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.630e-01  2.035e-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.512e-01  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 348.914 -50.313
Photon Index (Free Index): 1.46 +/- 0.86
Photon Flux (Free Index): 5.34e-09 +/- 9.33e-09
Energy Flux (Free Index): 1.94e-05 +/- 3.82e-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/723080/cmap_HighResolution_515376001_515635201_4FGL_J2315.6-5018_daily_bin1065.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='1.94e-05', photon_flux_error='2.26e-08', dlogl='3.63e-01', energy_flux='6.45e-06', photon_flux2='5.34e-09', job_status='DONE', time_completed='2021-09-29 10:16:45.843296', photon_index_error2='0.86', photon_index2='1.46', ts='1.27', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='7.61e-08', energy_flux_error2='3.82e-05', EG='0.93', time_epoch_completed='1632935805.84', return_code='0', job_id='723080', GAL2='0.96', EG2='0.95', return_code2='0', energy_flux_error='7.44e-06', photon_flux_error2='9.33e-09', ts2='2.00', photon_index='2.40' WHERE bin_id='1065' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:16:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 723080: <4FGL_J2315.6-5018_daily_bin1065> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1065> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:00:21 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:00:22 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:22 2021
Terminated at Wed Sep 29 10:16:46 2021
Results reported at Wed Sep 29 10:16:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1065 348.914 -50.3127 515376001 515635201 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 :                                   969.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

