aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 0 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1767
RA = 229.222, Dec = 36.8505
tmin = 697334401, tmax = 697593601
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='80518', job_status='RUN', time_executed='2023-02-09 01:22:20.083586', time_epoch_executed='1675934540.08' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/80518

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/80518/ft1_4FGL_J1516.8+3651_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/80518/ft1_4FGL_J1516.8+3651_daily_bin1767.fits outfile=/scratch/kocevski/80518/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1767.fits ra=229.222 dec=36.8505 rad=12.0 tmin=697334401.0 tmax=697593601.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.59
user 3.34
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.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/80518/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1767.fits evtable="EVENTS" outfile="/scratch/kocevski/80518/ft1_filtered_4FGL_J1516.8+3651_daily_bin1767.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.15

Number of photons that the gtmktime cut: 617

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/80518/ft1_filtered_4FGL_J1516.8+3651_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/80518/ltcube_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.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/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.fits
.....................!
real 16.63
user 16.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/80518/ft1_filtered_4FGL_J1516.8+3651_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/80518/ltcube_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.fits outfile=/scratch/kocevski/80518/expmap_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.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/80518/ltcube_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.fits
.....................!
real 193.82
user 187.68
sys 5.47

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.8+3651 @ 229.222 36.8505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/80518/ft1_filtered_4FGL_J1516.8+3651_daily_bin1767.fits scfile=/scratch/kocevski/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.fits outfile=/scratch/kocevski/80518/cmap_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.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=229.222 yref=36.8505 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/80518/ft1_filtered_4FGL_J1516.8+3651_daily_bin1767.fits scfile=/scratch/kocevski/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.fits outfile=/scratch/kocevski/80518/cmap_HighResolution_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.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=229.222 yref=36.8505 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/80518/ft1_filtered_4FGL_J1516.8+3651_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/80518/Model_4FGL_J1516.8+3651_daily_bin1767.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/80518/ft1_filtered_4FGL_J1516.8+3651_daily_bin1767.fits.....................!
real 50.98
user 49.50
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/80518/ft1_filtered_4FGL_J1516.8+3651_daily_bin1767.fits', '/scratch/kocevski/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.fits', expMap='/scratch/kocevski/80518/expmap_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.fits', expCube='/scratch/kocevski/80518/ltcube_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/80518/Model_4FGL_J1516.8+3651_daily_bin1767.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.8+3651'

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.183e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/80518/ft1_filtered_4FGL_J1516.8+3651_daily_bin1767.fits
Spacecraft file(s): /scratch/kocevski/80518/ft2_4FGL_J1516.8+3651_daily_bin1767.fits
Exposure map: /scratch/kocevski/80518/expmap_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.fits
Exposure cube: /scratch/kocevski/80518/ltcube_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/80518/Model_4FGL_J1516.8+3651_daily_bin1767.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) = 6613.57908145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25338E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    18.142       1.0000          .0000       .10000E+07
     3 'Prefactor '    .37892E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .92673E-04   1.0000          .0000       .10000E+07
     5 'norm      '    8.2297       1.0000          .0000       .10000E+07
     6 'Prefactor '    250.54       1.0000          .0000       .10000E+07
     7 'norm      '    1.5532       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.5516       1.0000          .0000       .10000E+07
     9 'Prefactor '    .46138E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .23376E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .80716E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .17309E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .16741E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    34.746       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33172E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    25.488       1.0000          .0000       .10000E+07
    17 'norm      '    .13733E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .56281E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    27.362       1.0000          .0000       .10000E+07
    20 'norm      '    .41623E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    2.6456       1.0000          .0000       .10000E+07
    22 'Prefactor '    .12097E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .34801E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    .70575       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6613.578     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2287 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    2.8788        .89870E-07** at limit **
   2  Prefactor     18.191        2.0066       -.13058E-07    .96347E-02
   3  Prefactor     .11102E-09    36.889       -.83847E-07** at limit **
   4  norm          .22204E-09    4.6701       -.44563E-07** at limit **
   5  norm          8.2886        6.0050       -.16938E-07   -.24427E-03
   6  Prefactor     250.56        2.0411        .42551E-08    .61278E-01
   7  norm          1.5696        8.2895        .18816E-06    .21246E-02
   8  Prefactor     3.5651        7.4041       -.84337E-07   -.15013E-01
   9  Prefactor     .55511E-10    2.1925        .12000E-07** at limit **
  10  Prefactor      .0000        1.2916        .78946E-07** at limit **
  11  norm           .0000        2.4102       -.97141E-07** at limit **
  12  norm          .13802E-04    1.1084        .92588E-07** at limit **
  13  Prefactor     .66280E-07    58.251        .12100E-05** at limit **
  14  Prefactor     34.689        1.0890        .44792E-08    .33602E-02
  15  Prefactor     .26645E-08    24.440        .85502E-07** at limit **
  16  Prefactor     25.467        10.073        .26895E-07   -.19311E-01
  17  norm           .0000        .32678        .45370E-07** at limit **
  18  Prefactor     .61062E-09    12.569        .62857E-08** at limit **
  19  Prefactor     27.418        4.9836       -.66989E-07    .40416E-01
  20  norm          .33307E-09    3.8982       -.27128E-07** at limit **
  21  Prefactor     2.6447        2.0255        .31201E-07   -.21643E-03
  22  Prefactor     .20539E-08    5.9777       -.77009E-07** at limit **
  23  Prefactor     .31086E-08    17.034       -.47494E-07** at limit **
  24  Normalizat    .70554        .18082        .16937E-05   -.25976E-04
  25  Prefactor     1.1296        .18038       -.40858E-06   -.28856E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  Prefactor  = 18.1911
  Prefactor  = 1.11022e-10
  norm       = 2.22045e-10
  norm       = 8.28858
  Prefactor  = 250.564
  norm       = 1.56956
  Prefactor  = 3.56513
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 1.38016e-05
  Prefactor  = 6.62803e-08
  Prefactor  = 34.6891
  Prefactor  = 2.66454e-09
  Prefactor  = 25.4671
  norm       = 0
  Prefactor  = 6.10623e-10
  Prefactor  = 27.4183
  norm       = 3.33067e-10
  Prefactor  = 2.64469
  Prefactor  = 2.05391e-09
  Prefactor  = 3.10862e-09
  Normalizat = 0.705544
  Prefactor  = 1.12958
 **********
 **   18 **HESSE 
 **********

 FCN=   6613.578     FROM HESSE     STATUS=OK           499 CALLS     2786 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    2.8760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.191        18.072        .23487E-03   -1.5623    
   3  Prefactor     .11102E-09    20.481        .98557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .22204E-09    4.6770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.2886        6.0482        .34923E-03   -1.5650    
   6  Prefactor     250.56        48.404        .63186E-04   -1.5391    
   7  norm          1.5696        9.4236        .85409E-03   -1.5683    
   8  Prefactor     3.5651        12.325        .53608E-03   -1.5670    
   9  Prefactor     .55511E-10    2.1984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.2930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .70466        .22618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13802E-04    2.4410        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .66280E-07    7.6741        .60306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.689        41.407        .16967E-03   -1.5590    
  15  Prefactor     .26645E-08    24.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.467        14.166        .19812E-03   -1.5607    
  17  norm           .0000        .32547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .61062E-09    12.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.418        30.123        .19121E-03   -1.5603    
  20  norm          .33307E-09    3.9086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6447        2.0410        .62654E-03   -1.5675    
  22  Prefactor     .20539E-08    6.0457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .31086E-08    2.0863        .66317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .70554        .16601        .60962E-01   -1.0367    
  25  Prefactor     1.1296        .15737        .36560E-01   -.88527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15323e-07
Minuit parameter uncertainties:
  1  3.62754e-05
  2  18.0717
  3  9.39232e-05
  4  6.80484e-05
  5  6.04817
  6  48.4042
  7  7.69182
  8  12.3255
  9  2.41453e-05
  10  8.29684e-06
  11  8.40414e-06
  12  0.0116086
  13  0.00142656
  14  41.407
  15  0.000512462
  16  14.1659
  17  5.546e-07
  18  0.000174907
  19  30.1231
  20  7.33758e-05
  21  2.04105
  22  0.000222113
  23  0.000160711
  24  0.16613
  25  0.157431
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.469e+01  4.141e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  1.130e+00  1.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  7.055e-01  1.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.40e-08 +/- 1.67e-08
Energy Flux (Fixed Index): 6.42e-06 +/- 7.66e-06

TS (Fixed Index): 1.26
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 6.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/80518/likelihoodResults_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.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) = 6613.48576336
delta logL = 0.0926889862303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6613.4825297
delta logL = 0.0959226497798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.516       1.0000          .0000       .10000E+07
     2 'Index     '    1.8467       1.0000          .0000       10.000    
     3 'Normalizat'    .71121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1252       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+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=   6613.483     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.536        65.431        .55734E-05    .30434E-03
   2  Index         1.8466        .72533        .10641E-01    .16755E-03
   3  Normalizat    .71129        .17840        .26861E-03   -.29627E-04
   4  Prefactor     1.1252        .17932        .21790E-03   -.50400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.5364
  Index      = 1.84662
  Normalizat = 0.711292
  Prefactor  = 1.1252
 **********
 **   18 **HESSE 
 **********

 FCN=   6613.483     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.536        64.083        .11147E-05   -1.5564    
   2  Index         1.8466        .71072        .21282E-02   -.68242    
   3  Normalizat    .71129        .17851        .10744E-04   -1.0345    
   4  Prefactor     1.1252        .17945        .87161E-05   -.88665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90026e-11
Minuit parameter uncertainties:
  1  64.0836
  2  0.714753
  3  0.17866
  4  0.179546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/80518': 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) = 6613.48252939
delta logL = 0.0959229515556

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  5.154e+01  6.408e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  1.847e+00  7.148e-01  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  1.125e+00  1.795e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  7.113e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.85 +/- 0.71
Photon Flux (Free Index): 1.11e-08 +/- 1.46e-08
Energy Flux (Free Index): 1.16e-05 +/- 2.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/80518/cmap_HighResolution_697334401_697593601_4FGL_J1516.8+3651_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', comment='SUCCESS', photon_flux='1.40e-08', energy_flux2='1.16e-05', photon_flux_error='1.67e-08', dlogl='9.59e-02', energy_flux='6.42e-06', photon_flux2='1.11e-08', job_status='DONE', time_completed='2023-02-09 01:33:56.703010', photon_index_error2='0.71', photon_index2='1.85', ts='1.26', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='6.01e-08', energy_flux_error2='2.08e-05', EG='0.71', time_epoch_completed='1675935236.7', return_code='0', job_id='80518', GAL2='1.13', EG2='0.71', return_code2='0', energy_flux_error='7.66e-06', photon_flux_error2='1.46e-08', ts2='1.45', photon_index='2.19' WHERE bin_id='1767' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 01:33:56 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 80518: <4FGL_J1516.8+3651_daily_bin1767> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1767> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Feb  9 01:20:40 2023
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:22:09 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:22:09 2023
Terminated at Thu Feb  9 01:33:57 2023
Results reported at Thu Feb  9 01:33:57 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1767 229.222 36.8505 697334401 697593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.8+3651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   697.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            797 sec.

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

