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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1064
RA = 348.914, Dec = -50.3127
tmin = 515116801, tmax = 515376001
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='723078', job_status='RUN', time_executed='2021-09-29 10:01:21.951539', time_epoch_executed='1632934881.95' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723078/ft1_4FGL_J2315.6-5018_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723078/ft2_4FGL_J2315.6-5018_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723078/ft1_4FGL_J2315.6-5018_daily_bin1064.fits outfile=/scratch/kocevski/723078/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1064.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=515116801.0 tmax=515376001.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.53
user 3.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/723078/ft2_4FGL_J2315.6-5018_daily_bin1064.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/723078/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1064.fits evtable="EVENTS" outfile="/scratch/kocevski/723078/ft1_filtered_4FGL_J2315.6-5018_daily_bin1064.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/723078/ft1_filtered_4FGL_J2315.6-5018_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/723078/ft2_4FGL_J2315.6-5018_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/723078/ltcube_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.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/723078/ft2_4FGL_J2315.6-5018_daily_bin1064.fits
.....................!
real 11.80
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723078/ft1_filtered_4FGL_J2315.6-5018_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/723078/ft2_4FGL_J2315.6-5018_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/723078/ltcube_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.fits outfile=/scratch/kocevski/723078/expmap_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.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/723078/ltcube_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.fits
.....................!
real 191.17
user 186.03
sys 4.77

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/723078/ft1_filtered_4FGL_J2315.6-5018_daily_bin1064.fits scfile=/scratch/kocevski/723078/ft2_4FGL_J2315.6-5018_daily_bin1064.fits outfile=/scratch/kocevski/723078/cmap_HighResolution_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.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/723078/ft1_filtered_4FGL_J2315.6-5018_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/723078/ft2_4FGL_J2315.6-5018_daily_bin1064.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723078/Model_4FGL_J2315.6-5018_daily_bin1064.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/723078/ft1_filtered_4FGL_J2315.6-5018_daily_bin1064.fits.....................!
real 42.60
user 41.31
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/723078/ft1_filtered_4FGL_J2315.6-5018_daily_bin1064.fits', '/scratch/kocevski/723078/ft2_4FGL_J2315.6-5018_daily_bin1064.fits', expMap='/scratch/kocevski/723078/expmap_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.fits', expCube='/scratch/kocevski/723078/ltcube_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/723078/Model_4FGL_J2315.6-5018_daily_bin1064.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/723078/ft1_filtered_4FGL_J2315.6-5018_daily_bin1064.fits
Spacecraft file(s): /scratch/kocevski/723078/ft2_4FGL_J2315.6-5018_daily_bin1064.fits
Exposure map: /scratch/kocevski/723078/expmap_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.fits
Exposure cube: /scratch/kocevski/723078/ltcube_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/723078/Model_4FGL_J2315.6-5018_daily_bin1064.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5896.74649923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10113E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6712       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .75805E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0432       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2896       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5843       1.0000         .10000E-03   10000.    
    19 'norm      '    .29694E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    3.8724       1.0000         .10000E-03   10000.    
    21 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2130       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1713       1.0000         .10000E-03   10000.    
    24 'norm      '    4.8502       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .24045       1.0000         .10000E-03   10000.    
    27 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.7805       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    23.893       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .56953       1.0000         .10000E-03   10000.    
    33 'Prefactor '    1.5730       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .86892       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .83781       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=   5896.460     FROM MIGRAD    STATUS=CONVERGED   1018 CALLS     4414 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8592        .37036E-07** at limit **
   2  Prefactor     .10000E-03    67.462        .36387E-05** at limit **
   3  Prefactor     2.6719        5.5493        .14030E-06   -.11498E-03
   4  Prefactor     .10002E-03    5.1694        .31009E-06** at limit **
   5  Prefactor     .10000E-03    2.0576        .63155E-08** at limit **
   6  Prefactor     9.0432        10.037       -.49796E-07   -.26080E-04
   7  Prefactor     2.2898        4.2647       -.31729E-06   -.38788E-03
   8  Prefactor     .10000E-03    60.411       -.42095E-05** at limit **
   9  norm          .10000E-03    1.9785       -.10833E-07** at limit **
  10  Prefactor     .12130        1.6726        .24144E-06   -.33882E-03
  11  Prefactor     .10000E-03    15.370        .81124E-06** at limit **
  12  Prefactor     7.8444        5.3699        .11573E-06   -.20220E-04
  13  Prefactor     .10000E-03    10.307        .49539E-08** at limit **
  14  Prefactor     .10000E-03    3.8828       -.11414E-08** at limit **
  15  Prefactor     .10000E-03    20.151       -.19383E-05** at limit **
  16  Prefactor     .10000E-03    3.3363        .41813E-07** at limit **
  17  Prefactor     .10000E-03    7.2481       -.23669E-07** at limit **
  18  Prefactor     6.5836        9.6182        .57484E-07   -.62645E-05
  19  norm          .12713        7.4393        .12043E-06   -.30866E-04
  20  norm          3.8725        3.9694       -.28568E-06   -.97538E-04
  21  norm          .10000E-03    4.4615        .53626E-07** at limit **
  22  Prefactor     8.2087        5.2798        .44682E-08    .11099E-04
  23  Prefactor     3.1593        117.56       -.48191E-05   -.56036E-04
  24  norm          4.8485        5.0613        .26019E-06   -.26932E-04
  25  Prefactor     .10000E-03    5.0563       -.44952E-08** at limit **
  26  norm          .24029        .47535        .55713E-06   -.16658E-02
  27  norm          .10000E-03    1.3581       -.32570E-07** at limit **
  28  Prefactor     .10000E-03    21.081        .16390E-05** at limit **
  29  Prefactor     6.7797        3.8312       -.14312E-06   -.25016E-03
  30  Prefactor     .10000E-03    14.196       -.50365E-06** at limit **
  31  norm          23.903        22.297       -.76020E-06   -.10841E-03
  32  Prefactor     .56779        4.3465        .40458E-06   -.23755E-03
  33  Prefactor     1.5726        2.5191        .13864E-06   -.12106E-03
  34  Normalizat    .86903        .16386        .66637E-08   -.16110E-03
  35  Prefactor     .83768        .16452       -.34044E-06   -.10038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.67188
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 9.04321
  Prefactor  = 2.28977
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.1213
  Prefactor  = 0.0001
  Prefactor  = 7.84436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.58363
  norm       = 0.127125
  norm       = 3.8725
  norm       = 0.0001
  Prefactor  = 8.20872
  Prefactor  = 3.15934
  norm       = 4.84847
  Prefactor  = 0.0001
  norm       = 0.240289
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.7797
  Prefactor  = 0.0001
  norm       = 23.9027
  Prefactor  = 0.567787
  Prefactor  = 1.57264
  Normalizat = 0.869032
  Prefactor  = 0.837685
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.460     FROM HESSE     STATUS=OK           786 CALLS     5200 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    69.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6719        5.5431        .24935E-03   -1.5381    
   4  Prefactor     .10002E-03    52.267        .33609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0616        .10757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0432        9.9961        .13328E-03   -1.5106    
   7  Prefactor     2.2898        4.3852        .20727E-03   -1.5405    
   8  Prefactor     .10000E-03    61.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9793        .10548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .12130        26.489        .18619E-02   -1.5638    
  11  Prefactor     .10000E-03    15.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8444        5.3678        .13945E-03   -1.5148    
  13  Prefactor     .10000E-03    10.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9129        .14776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3743        .13694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5836        9.6130        .15639E-03   -1.5195    
  19  norm          .12713        10.680        .69322E-01   -1.5637    
  20  norm          3.8725        3.9737        .15012E-03   -1.5314    
  21  norm          .10000E-03    4.5113        .31380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.2087        5.2803        .13528E-03   -1.5135    
  23  Prefactor     3.1593        115.88        .22758E-03   -1.5352    
  24  norm          4.8485        4.8559        .12497E-03   -1.5268    
  25  Prefactor     .10000E-03    5.0667        .16853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .24029        .51262        .20322E-03   -1.5610    
  27  norm          .10000E-03    1.3695        .87246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.7797        3.7847        .10232E-03   -1.5187    
  30  Prefactor     .10000E-03    14.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          23.903        22.431        .81948E-04   -1.4730    
  32  Prefactor     .56779        8.6515        .27174E-02   -1.5557    
  33  Prefactor     1.5726        2.5008        .14854E-03   -1.5457    
  34  Normalizat    .86903        .19947        .21907E-03   -.97557    
  35  Prefactor     .83768        .19953        .23502E-03   -.98354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47558e-08
Minuit parameter uncertainties:
  1  4.99166e-07
  2  0.000736071
  3  5.54419
  4  0.00206371
  5  1.88217e-07
  6  9.99791
  7  4.38582
  8  0.000890036
  9  9.36467e-07
  10  3.58516
  11  8.56693e-05
  12  5.36808
  13  2.96547e-06
  14  1.00575e-06
  15  0.000246258
  16  6.77879e-07
  17  2.31104e-06
  18  9.61529
  19  2.32991
  20  3.97401
  21  3.03851e-06
  22  5.28058
  23  38.3483
  24  4.85626
  25  6.52541e-07
  26  0.512631
  27  3.56805e-06
  28  0.00018216
  29  3.78478
  30  5.0819e-05
  31  22.4389
  32  4.43308
  33  2.50093
  34  0.199643
  35  0.199703
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  6.584e+00  9.615e+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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  8.377e-01  1.997e-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:  8.690e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/723078/likelihoodResults_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.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) = 5896.4599305
delta logL = 5.94826205997e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5896.45990032
delta logL = 8.96574247236e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5012       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4090       1.0000          .0000       10.000    
     3 'Normalizat'    .86879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83779       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=   5896.460     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      245 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4996        12.012        .15740E-03    .37306E-03
   2  Index         2.4086        1.0293        .95487E-02    .10333E-03
   3  Normalizat    .86884        .18513        .21909E-03   -.31101E-03
   4  Prefactor     .83782        .19560        .23501E-03   -.30753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49958
  Index      = 2.40864
  Normalizat = 0.868842
  Prefactor  = 0.837819
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.460     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4996        11.369        .62960E-05   -1.5198    
   2  Index         2.4086        .97497        .38195E-03   -.54483    
   3  Normalizat    .86884        .18525        .43819E-04   -.97564    
   4  Prefactor     .83782        .19573        .47001E-04   -.98349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94995e-10
Minuit parameter uncertainties:
  1  11.3732
  2  0.983618
  3  0.185385
  4  0.195897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723078': 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) = 5896.45989979
delta logL = 9.0187256319e-05

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  6.500e+00  1.137e+01  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.409e+00  9.836e-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:  8.378e-01  1.959e-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:  8.688e-01  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.66
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/723078/cmap_HighResolution_515116801_515376001_4FGL_J2315.6-5018_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-29 10:16:44.270491', job_id='723078', GAL2='0.84', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632935804.27', return_code2='0', ts='0.66', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='9.02e-05', ts2='0.66', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1064' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:16:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 723078: <4FGL_J2315.6-5018_daily_bin1064> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1064> 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) <bullet0098>, 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:44 2021
Results reported at Wed Sep 29 10:16:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1064 348.914 -50.3127 515116801 515376001 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 :                                   920.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             292.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            983 sec.

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

