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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin1708
RA = 229.049, Dec = 43.8527
tmin = 682041601, tmax = 682300801
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='159697', job_status='RUN', time_executed='2022-09-16 19:02:51.440509', time_epoch_executed='1663380171.44' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159697/ft1_4FGL_J1516.1+4351_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159697/ft1_4FGL_J1516.1+4351_daily_bin1708.fits outfile=/scratch/kocevski/159697/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1708.fits ra=229.049 dec=43.8527 rad=12.0 tmin=682041601.0 tmax=682300801.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 4.00
user 3.75
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.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/159697/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/159697/ft1_filtered_4FGL_J1516.1+4351_daily_bin1708.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.55
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159697/ft1_filtered_4FGL_J1516.1+4351_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/159697/ltcube_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.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/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.fits
.....................!
real 15.28
user 14.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159697/ft1_filtered_4FGL_J1516.1+4351_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/159697/ltcube_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.fits outfile=/scratch/kocevski/159697/expmap_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.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/159697/ltcube_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.fits
.....................!
real 193.49
user 188.09
sys 4.92

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

Setting source of interest to:
4FGL J1516.1+4351 @ 229.049 43.8527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/159697/ft1_filtered_4FGL_J1516.1+4351_daily_bin1708.fits scfile=/scratch/kocevski/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.fits outfile=/scratch/kocevski/159697/cmap_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.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.049 yref=43.8527 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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159697/ft1_filtered_4FGL_J1516.1+4351_daily_bin1708.fits scfile=/scratch/kocevski/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.fits outfile=/scratch/kocevski/159697/cmap_HighResolution_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.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.049 yref=43.8527 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/159697/ft1_filtered_4FGL_J1516.1+4351_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/159697/Model_4FGL_J1516.1+4351_daily_bin1708.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/159697/ft1_filtered_4FGL_J1516.1+4351_daily_bin1708.fits.....................!
real 49.57
user 48.22
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/159697/ft1_filtered_4FGL_J1516.1+4351_daily_bin1708.fits', '/scratch/kocevski/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.fits', expMap='/scratch/kocevski/159697/expmap_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.fits', expCube='/scratch/kocevski/159697/ltcube_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/159697/Model_4FGL_J1516.1+4351_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.1+4351'

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.184e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/159697/ft1_filtered_4FGL_J1516.1+4351_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/159697/ft2_4FGL_J1516.1+4351_daily_bin1708.fits
Exposure map: /scratch/kocevski/159697/expmap_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.fits
Exposure cube: /scratch/kocevski/159697/ltcube_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/159697/Model_4FGL_J1516.1+4351_daily_bin1708.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) = 6075.34382815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2043       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27635       1.0000          .0000       .10000E+07
     3 'Prefactor '    .37593E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    18.275       1.0000          .0000       .10000E+07
     5 'norm      '    .18335E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    34.972       1.0000          .0000       .10000E+07
     7 'norm      '    15.078       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17358E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .24386E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .90789E-04   1.0000          .0000       .10000E+07
    11 'norm      '    1.6647       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10722E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .36321E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .10547E-07   1.0000          .0000       .10000E+07
    15 'norm      '    5.1378       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15380E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .47731E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .28865E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .85404E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .42245E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .40407E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .52240E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .23437E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    .70985E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.3731       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .71757       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6075.291     FROM MIGRAD    STATUS=CONVERGED    202 CALLS     2239 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2136        3.3557       -.18280E-07   -.39255E-03
   2  Prefactor     .11471E-03    53.473       -.81357E-06** at limit **
   3  Prefactor     .48478E-06    122.51       -.13282E-05** at limit **
   4  Prefactor     18.342        12.115        .23956E-06    .69454E-03
   5  norm          .98810E-07    9.0869       -.15946E-07** at limit **
   6  Prefactor     32.467        36.040       -.22798E-06   -.34827E-01
   7  norm          15.048        8.8271       -.27947E-07   -.37155E-03
   8  Prefactor     .17669E-06    6.9174       -.32571E-07** at limit **
   9  norm           .0000        2.9691       -.64207E-07** at limit **
  10  Prefactor     .13922E-06    8.4669        .27308E-07** at limit **
  11  norm          1.6657        1.1118        .11453E-07    .88824E-03
  12  Prefactor     .82490E-07    5.6000        .21619E-07** at limit **
  13  Prefactor     .55511E-10    3.7244       -.16136E-06** at limit **
  14  norm           .0000        .60288       -.29004E-07** at limit **
  15  norm          5.1325        4.1035       -.24824E-07   -.25744E-03
  16  Prefactor     .55511E-10    3.6146       -.11107E-06** at limit **
  17  Prefactor     .83322E-07    16.279        .37013E-06** at limit **
  18  Prefactor     .14039E-06    6.7777       -.81038E-07** at limit **
  19  Prefactor     .13323E-08    5.0083       -.34910E-07** at limit **
  20  norm          .84266E-07    5.6908       -.19900E-06** at limit **
  21  Prefactor     .11102E-08    14.501       -.24362E-06** at limit **
  22  Prefactor     .22876E-06    23.697       -.11584E-06** at limit **
  23  Prefactor      .0000        1.5941       -.22659E-07** at limit **
  24  Prefactor     .51625E-08    5.0625       -.12100E-06** at limit **
  25  Normalizat    1.3744        .20961       -.46546E-06    .40063E-04
  26  Prefactor     .71709        .21242        .14694E-05    .34547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21358
  Prefactor  = 0.000114711
  Prefactor  = 4.84779e-07
  Prefactor  = 18.3424
  norm       = 9.88098e-08
  Prefactor  = 32.4667
  norm       = 15.0477
  Prefactor  = 1.76692e-07
  norm       = 0
  Prefactor  = 1.39222e-07
  norm       = 1.66567
  Prefactor  = 8.24896e-08
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 5.13255
  Prefactor  = 5.55112e-11
  Prefactor  = 8.33222e-08
  Prefactor  = 1.40388e-07
  Prefactor  = 1.33227e-09
  norm       = 8.42659e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 2.28761e-07
  Prefactor  = 0
  Prefactor  = 5.16254e-09
  Normalizat = 1.37445
  Prefactor  = 0.717093
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.291     FROM HESSE     STATUS=OK           502 CALLS     2741 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2136        3.4004        .69266E-03   -1.5678    
   2  Prefactor     .11471E-03    19.488        .10549E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .48478E-06    126.72        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.342        21.795        .23401E-03   -1.5622    
   5  norm          .98810E-07    12.084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.467        38.430        .16912E-03   -1.5594    
   7  norm          15.048        8.8744        .25767E-03   -1.5630    
   8  Prefactor     .17669E-06    8.3460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.9708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .13922E-06    10.876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6657        1.1035        .81710E-03   -1.5682    
  12  Prefactor     .82490E-07    6.0340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    3.7145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .60013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1325        4.1099        .44330E-03   -1.5663    
  16  Prefactor     .55511E-10    3.6125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .83322E-07    20.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .14039E-06    7.7993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    5.0107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .84266E-07    6.1518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11102E-08    15.601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .22876E-06    26.497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        1.5935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .51625E-08    5.0851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3744        .17743        .49145E-01   -.81371    
  26  Prefactor     .71709        .17856        .66994E-01   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85252e-07
Minuit parameter uncertainties:
  1  3.40041
  2  0.0945614
  3  0.0156762
  4  21.7955
  5  0.00218562
  6  38.4308
  7  8.8744
  8  0.00242867
  9  1.31315e-05
  10  0.00246089
  11  1.10353
  12  0.00141106
  13  3.04856e-05
  14  1.89777e-06
  15  4.10994
  16  2.14867e-05
  17  0.00262472
  18  0.00209291
  19  0.000163505
  20  0.00144007
  21  0.000263003
  22  0.00492407
  23  4.64752e-06
  24  0.000323496
  25  0.177511
  26  0.1787
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  5.551e-11  2.149e-05  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  7.171e-01  1.787e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.374e+00  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 6.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/159697/likelihoodResults_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6075.29156003
delta logL = -0.000360529098543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6075.29120048
delta logL = -9.74008798948e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14089E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.1026       1.0000          .0000       10.000    
     3 'Normalizat'    1.3746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6075.291     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      248 TOTAL
                     EDM=   .87E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.8460        .42118E-03** at limit **
   2  Index         2.7331        1.6319       -.74027E-05     .0000    
   3  Normalizat    1.3744        1.0657       -.32419E-05   -.10135E-04
   4  Prefactor     .71709        1.0668        .91509E-06   -.38113E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.73309
  Normalizat = 1.37445
  Prefactor  = 0.717092
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6075.291     FROM HESSE     STATUS=FAILED         9 CALLS      257 TOTAL
                     EDM=   .87E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .84597        2.0446       -.74027E-05   -.47055    
   3  Normalizat    1.3744        1.0657       -.32419E-05   -.81371    
   4  Prefactor     .71709        1.0668        .91509E-06   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.73793e-14
Minuit parameter uncertainties:
  1  4.82478e-07
  2  1.67073
  3  1.08363
  4  1.09975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159697': 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): 101
logL (Free Index) = 6075.2911995
delta logL = 8.18545231596e-12

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  4.825e-07  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.733e+00  1.671e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  7.171e-01  1.100e+00  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.374e+00  1.084e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.049 43.853

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/159697/cmap_HighResolution_682041601_682300801_4FGL_J1516.1+4351_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.55e-08', time_completed='2022-09-16 19:14:07.788765', job_id='159697', GAL2='0.72', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1663380847.79', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='8.19e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1708' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:14:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 159697: <4FGL_J1516.1+4351_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin1708> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 19:00:20 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:01:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:01:10 2022
Terminated at Fri Sep 16 19:14:08 2022
Results reported at Fri Sep 16 19:14:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin1708 229.049 43.8527 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.1+4351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   677.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            828 sec.

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

