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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1127
RA = 348.914, Dec = -50.3127
tmin = 531446401, tmax = 531705601
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='723176', job_status='RUN', time_executed='2021-09-29 10:01:37.011221', time_epoch_executed='1632934897.01' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723176/ft1_4FGL_J2315.6-5018_daily_bin1127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723176/ft2_4FGL_J2315.6-5018_daily_bin1127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723176/ft1_4FGL_J2315.6-5018_daily_bin1127.fits outfile=/scratch/kocevski/723176/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1127.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=531446401.0 tmax=531705601.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.62
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/723176/ft2_4FGL_J2315.6-5018_daily_bin1127.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/723176/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1127.fits evtable="EVENTS" outfile="/scratch/kocevski/723176/ft1_filtered_4FGL_J2315.6-5018_daily_bin1127.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/723176/ft1_filtered_4FGL_J2315.6-5018_daily_bin1127.fits" evtable="EVENTS" scfile=/scratch/kocevski/723176/ft2_4FGL_J2315.6-5018_daily_bin1127.fits sctable="SC_DATA" outfile=/scratch/kocevski/723176/ltcube_531446401_531705601_4FGL_J2315.6-5018_daily_bin1127.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/723176/ft2_4FGL_J2315.6-5018_daily_bin1127.fits
.....................!
real 12.03
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723176/ft1_filtered_4FGL_J2315.6-5018_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/723176/ft2_4FGL_J2315.6-5018_daily_bin1127.fits sctable="SC_DATA" expcube=/scratch/kocevski/723176/ltcube_531446401_531705601_4FGL_J2315.6-5018_daily_bin1127.fits outfile=/scratch/kocevski/723176/expmap_531446401_531705601_4FGL_J2315.6-5018_daily_bin1127.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/723176/ltcube_531446401_531705601_4FGL_J2315.6-5018_daily_bin1127.fits
.....................!
real 189.43
user 184.81
sys 4.27

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

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/723176/ft1_filtered_4FGL_J2315.6-5018_daily_bin1127.fits scfile=/scratch/kocevski/723176/ft2_4FGL_J2315.6-5018_daily_bin1127.fits outfile=/scratch/kocevski/723176/cmap_HighResolution_531446401_531705601_4FGL_J2315.6-5018_daily_bin1127.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/723176/ft1_filtered_4FGL_J2315.6-5018_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/723176/ft2_4FGL_J2315.6-5018_daily_bin1127.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723176/Model_4FGL_J2315.6-5018_daily_bin1127.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/723176/ft1_filtered_4FGL_J2315.6-5018_daily_bin1127.fits.....................!
real 36.24
user 34.90
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.843       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1537       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.781       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4565       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46711       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.439       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.259       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7471       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18184E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    60.283       1.0000         .10000E-03   10000.    
    24 'norm      '    2.6009       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.9299       1.0000         .10000E-03   10000.    
    27 'norm      '    5.3535       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.7125       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.1777       1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.7839       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .31469       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1603       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .66686       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=   4453.079     FROM MIGRAD    STATUS=CONVERGED    964 CALLS     5097 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.843        23.057        .61252E-06   -.12106E-04
   2  Prefactor     .10000E-03    44.360       -.86324E-06** at limit **
   3  Prefactor     .10000E-03    7.9817       -.24140E-06** at limit **
   4  Prefactor     .10000E-03    4.8545        .24342E-06** at limit **
   5  Prefactor     .10000E-03    9.9842        .16224E-06** at limit **
   6  Prefactor     .10000E-03    2.7718       -.24661E-07** at limit **
   7  Prefactor     1.1542        2.6731       -.34768E-06   -.32161E-03
   8  Prefactor     .10000E-03    24.399        .92883E-06** at limit **
   9  norm          10.780        7.3174       -.76521E-07    .14315E-05
  10  Prefactor     5.4570        3.8072        .60418E-07    .12707E-05
  11  Prefactor     .10000E-03    32.457       -.15606E-05** at limit **
  12  Prefactor     .45152        4.0104        .31985E-06   -.78398E-04
  13  Prefactor     15.450        30.411       -.57043E-06    .72996E-05
  14  Prefactor     .10000E-03    5.7105        .10744E-06** at limit **
  15  Prefactor     .10000E-03    45.667       -.65279E-06** at limit **
  16  Prefactor     17.260        12.626        .23249E-06    .12980E-04
  17  Prefactor     .10000E-03    26.627        .33256E-06** at limit **
  18  Prefactor     2.7478        14.887        .39559E-05    .75448E-04
  19  norm          .10000E-03    4.7875       -.24311E-06** at limit **
  20  norm          .10000E-03    3.0454        .55263E-07** at limit **
  21  norm          .10000E-03    2.4291       -.16355E-08** at limit **
  22  Prefactor     .10038E-03    5.7644       -.18973E-05** at limit **
  23  Prefactor     60.327        63.630       -.52142E-05    .21001E-04
  24  norm          2.5963        7.0959        .19639E-05    .15702E-03
  25  Prefactor     .10000E-03    19.121        .75213E-06** at limit **
  26  norm          1.9298        1.2186        .21099E-07    .56979E-03
  27  norm          5.3544        5.9751        .14239E-06   -.27270E-04
  28  Prefactor     8.7123        14.058       -.10284E-06    .58707E-05
  29  Prefactor     .10000E-03    3.8823        .12192E-05** at limit **
  30  Prefactor     2.2056        72.061       -.69057E-05   -.15170E-04
  31  norm          .10000E-03    15.418       -.70586E-06** at limit **
  32  Prefactor     5.7849        6.6335        .14704E-05    .13400E-03
  33  Prefactor     .31465        3.0791        .46816E-06   -.12158E-03
  34  Normalizat    1.1601        .23440       -.31742E-05    .31835E-04
  35  Prefactor     .66712        .21052        .39668E-05    .28841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.15415
  Prefactor  = 0.0001
  norm       = 10.7799
  Prefactor  = 5.45701
  Prefactor  = 0.0001
  Prefactor  = 0.451525
  Prefactor  = 15.4496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.26
  Prefactor  = 0.0001
  Prefactor  = 2.74776
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100375
  Prefactor  = 60.3274
  norm       = 2.59631
  Prefactor  = 0.0001
  norm       = 1.92981
  norm       = 5.35438
  Prefactor  = 8.71233
  Prefactor  = 0.0001
  Prefactor  = 2.20564
  norm       = 0.0001
  Prefactor  = 5.78488
  Prefactor  = 0.314652
  Normalizat = 1.16008
  Prefactor  = 0.667121
 **********
 **   18 **HESSE 
 **********

 FCN=   4453.079     FROM HESSE     STATUS=OK           788 CALLS     5885 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.843        23.004        .12167E-03   -1.5049    
   2  Prefactor     .10000E-03    44.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8868        .14353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7763        .10850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1542        2.3016        .16124E-02   -1.5493    
   8  Prefactor     .10000E-03    24.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.780        7.3137        .61012E-03   -1.5051    
  10  Prefactor     5.4570        3.8060        .10454E-03   -1.5241    
  11  Prefactor     .10000E-03    32.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .45152        16.689        .24021E-02   -1.5574    
  13  Prefactor     15.450        29.944        .10193E-03   -1.4922    
  14  Prefactor     .10000E-03    5.7243        .15560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.260        12.637        .96407E-04   -1.4877    
  17  Prefactor     .10000E-03    26.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7478        15.532        .12281E-02   -1.5376    
  19  norm          .10000E-03    4.7876        .14257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.0497        .11372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4296        .10153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10038E-03    4.6856        .48117E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     60.327        63.628        .51676E-04   -1.4153    
  24  norm          2.5963        6.9920        .23435E-03   -1.5386    
  25  Prefactor     .10000E-03    19.533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.9298        1.2133        .54770E-04   -1.5430    
  27  norm          5.3544        5.9250        .15334E-03   -1.5245    
  28  Prefactor     8.7123        14.057        .13580E-03   -1.5118    
  29  Prefactor     .10000E-03    3.9844        .25540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.2056        71.383        .27899E-03   -1.5411    
  31  norm          .10000E-03    15.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     5.7849        6.6047        .83500E-03   -1.5227    
  33  Prefactor     .31465        11.692        .21451E-02   -1.5596    
  34  Normalizat    1.1601        .26554        .21502E-03   -.87845    
  35  Prefactor     .66712        .24172        .27621E-03   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53747e-08
Minuit parameter uncertainties:
  1  23.0231
  2  0.000109057
  3  1.01791e-05
  4  1.15707e-05
  5  2.31381e-05
  6  7.12528e-07
  7  2.30176
  8  3.63717e-05
  9  7.31428
  10  3.80617
  11  5.57373e-05
  12  5.49113
  13  29.9733
  14  1.06641e-05
  15  5.03665e-05
  16  12.6393
  17  1.59791e-05
  18  13.0708
  19  7.2699e-06
  20  2.97933e-07
  21  2.21049e-06
  22  0.00265194
  23  63.6994
  24  6.99419
  25  9.84783e-05
  26  1.21327
  27  5.9257
  28  14.0626
  29  8.01041e-05
  30  25.1276
  31  2.74569e-05
  32  6.60552
  33  3.83634
  34  0.265846
  35  0.242099
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  2.748e+00  1.307e+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:  6.671e-01  2.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.160e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/723176/likelihoodResults_531446401_531705601_4FGL_J2315.6-5018_daily_bin1127.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) = 4453.07906662
delta logL = 0.000221390726438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4453.07903361
delta logL = 0.000254400105405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8388       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3543       1.0000          .0000       10.000    
     3 'Normalizat'    1.1605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66693       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=   4453.079     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      246 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8553        207.27        .60336E-02    .11557E-03
   2  Index         2.3513        1.5058        .50000        .37694E-05
   3  Normalizat    1.1604        .17841E-01    .35942E-01    .30099E-05
   4  Prefactor     .66690        .17905E-01    .62445E-01    .18124E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.85534
  Index      = 2.35128
  Normalizat = 1.1604
  Prefactor  = 0.666901
 **********
 **   18 **HESSE 
 **********

 FCN=   4453.079     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8553        17.460        .24134E-03   -1.5370    
   2  Index         2.3513        1.9015        .63349E-02   -.55830    
   3  Normalizat    1.1604        .23359        .21500E-03   -.87836    
   4  Prefactor     .66690        .23349        .27625E-03   -1.0484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54078e-13
Minuit parameter uncertainties:
  1  14.1273
  2  1.97181
  3  0.233803
  4  0.233832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723176': 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) = 4453.07903152
delta logL = 0.000256492785411

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  6.669e-01  2.338e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.160e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/723176/cmap_HighResolution_531446401_531705601_4FGL_J2315.6-5018_daily_bin1127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2021-09-29 10:15:11.999277', job_id='723176', GAL2='0.67', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632935712.0', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.56e-04', ts2='0.05', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1127' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:15:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 723176: <4FGL_J2315.6-5018_daily_bin1127> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1127> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:00:31 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:00:32 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:32 2021
Terminated at Wed Sep 29 10:15:12 2021
Results reported at Wed Sep 29 10:15:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1127 348.914 -50.3127 531446401 531705601 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 :                                   809.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            881 sec.

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

