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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin1758
RA = 229.049, Dec = 43.8527
tmin = 695001601, tmax = 695260801
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='369248', job_status='RUN', time_executed='2023-01-13 00:57:26.708945', time_epoch_executed='1673600246.71' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369248/ft1_4FGL_J1516.1+4351_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369248/ft2_4FGL_J1516.1+4351_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369248/ft1_4FGL_J1516.1+4351_daily_bin1758.fits outfile=/scratch/kocevski/369248/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1758.fits ra=229.049 dec=43.8527 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.75
user 2.53
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369248/ft2_4FGL_J1516.1+4351_daily_bin1758.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/369248/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/369248/ft1_filtered_4FGL_J1516.1+4351_daily_bin1758.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.54
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 951

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369248/ft1_filtered_4FGL_J1516.1+4351_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/369248/ft2_4FGL_J1516.1+4351_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/369248/ltcube_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.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/369248/ft2_4FGL_J1516.1+4351_daily_bin1758.fits
.....................!
real 16.60
user 16.13
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369248/ft1_filtered_4FGL_J1516.1+4351_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/369248/ft2_4FGL_J1516.1+4351_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/369248/ltcube_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.fits outfile=/scratch/kocevski/369248/expmap_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.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/369248/ltcube_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.fits
.....................!
real 192.96
user 186.91
sys 4.90

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/369248/ft1_filtered_4FGL_J1516.1+4351_daily_bin1758.fits scfile=/scratch/kocevski/369248/ft2_4FGL_J1516.1+4351_daily_bin1758.fits outfile=/scratch/kocevski/369248/cmap_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369248/ft1_filtered_4FGL_J1516.1+4351_daily_bin1758.fits scfile=/scratch/kocevski/369248/ft2_4FGL_J1516.1+4351_daily_bin1758.fits outfile=/scratch/kocevski/369248/cmap_HighResolution_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/369248/ft1_filtered_4FGL_J1516.1+4351_daily_bin1758.fits', '/scratch/kocevski/369248/ft2_4FGL_J1516.1+4351_daily_bin1758.fits', expMap='/scratch/kocevski/369248/expmap_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.fits', expCube='/scratch/kocevski/369248/ltcube_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/369248/Model_4FGL_J1516.1+4351_daily_bin1758.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/369248/ft1_filtered_4FGL_J1516.1+4351_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/369248/ft2_4FGL_J1516.1+4351_daily_bin1758.fits
Exposure map: /scratch/kocevski/369248/expmap_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.fits
Exposure cube: /scratch/kocevski/369248/ltcube_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/369248/Model_4FGL_J1516.1+4351_daily_bin1758.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) = 10366.319832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95868E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    .34305E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5497       1.0000          .0000       .10000E+07
     4 'Prefactor '    .63416E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .27657E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .36193E-06   1.0000          .0000       .10000E+07
     7 'norm      '    1.3300       1.0000          .0000       .10000E+07
     8 'Prefactor '    16.326       1.0000          .0000       .10000E+07
     9 'norm      '    9.9114       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.4185       1.0000          .0000       .10000E+07
    11 'norm      '    2.2782       1.0000          .0000       .10000E+07
    12 'Prefactor '    .49116E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.5524       1.0000          .0000       .10000E+07
    14 'norm      '    2.0167       1.0000          .0000       .10000E+07
    15 'norm      '    .18734E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.4975       1.0000          .0000       .10000E+07
    17 'Prefactor '    .25255E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .64413E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13163E-05   1.0000          .0000       .10000E+07
    20 'norm      '    .22198E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .14776E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .60916E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .14105E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5360       1.0000          .0000       .10000E+07
    25 'Normalizat'    .98560       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0754       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=   10366.20     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1715 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12768E-08    1.4150        .68477E-06** at limit **
   2  Prefactor     .20051E-06    5.9935        .98635E-06** at limit **
   3  Prefactor     2.5020        7.9531       -.10348E-05    .56849E-03
   4  Prefactor     .44964E-08    2.2422       -.10606E-05** at limit **
   5  norm          .57176E-08    3.8077        .12883E-05** at limit **
   6  Prefactor     .38758E-06    6.4333        .21776E-06** at limit **
   7  norm          1.3087        3.8392       -.32132E-06    .24260E-02
   8  Prefactor     16.230        1.2632       -.60161E-07    .49080E-02
   9  norm          9.9086        4.0312       -.19526E-07    .51907E-01
  10  Prefactor     6.4185        1.4354       -.76515E-07    .46245E-02
  11  norm          2.2783        1.2032        .46726E-08    .36120E-02
  12  Prefactor     .12212E-08    1.4384       -.28031E-06** at limit **
  13  Prefactor     8.5529        5.2534        .39302E-06    .40850E-01
  14  norm          2.0157        1.1050        .72446E-07    .19508E-03
  15  norm          .55511E-10    1.4930       -.14562E-06** at limit **
  16  Prefactor     1.4976        5.3101        .38045E-06    .75031E-04
  17  Prefactor     .31092E-06    12.186       -.96380E-06** at limit **
  18  Prefactor     .30032E-07    6.6282       -.16604E-05** at limit **
  19  Prefactor     .76605E-08    1.7566       -.87704E-06** at limit **
  20  norm          .11674E-06    3.6932        .11903E-05** at limit **
  21  Prefactor     .60341E-07    3.9508        .80643E-06** at limit **
  22  Prefactor     .14672E-06    8.0228        .43072E-06** at limit **
  23  Prefactor      .0000        1.7441       -.14187E-06** at limit **
  24  Prefactor     1.3895        1.0985       -.68452E-07    .50727E-03
  25  Normalizat    .98574        .15766        .88430E-05    .27589E-03
  26  Prefactor     1.0756        .16952       -.85533E-05   -.17409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27676e-09
  Prefactor  = 2.00506e-07
  Prefactor  = 2.50202
  Prefactor  = 4.4964e-09
  norm       = 5.71765e-09
  Prefactor  = 3.87579e-07
  norm       = 1.30865
  Prefactor  = 16.23
  norm       = 9.90861
  Prefactor  = 6.41846
  norm       = 2.27834
  Prefactor  = 1.22125e-09
  Prefactor  = 8.55295
  norm       = 2.01567
  norm       = 5.55112e-11
  Prefactor  = 1.49765
  Prefactor  = 3.10918e-07
  Prefactor  = 3.00315e-08
  Prefactor  = 7.66054e-09
  norm       = 1.1674e-07
  Prefactor  = 6.03406e-08
  Prefactor  = 1.46716e-07
  Prefactor  = 0
  Prefactor  = 1.38947
  Normalizat = 0.985736
  Prefactor  = 1.07562
 **********
 **   18 **HESSE 
 **********

 FCN=   10366.20     FROM HESSE     STATUS=OK           504 CALLS     2219 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12768E-08    1.4746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .20051E-06    14.954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5020        8.0384        .63920E-03   -1.5676    
   4  Prefactor     .44964E-08    4.4649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .57176E-08    4.0987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .38758E-06    17.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3087        3.8877        .95197E-03   -1.5685    
   8  Prefactor     16.230        14.130        .24761E-03   -1.5627    
   9  norm          9.9086        6.5762        .31805E-03   -1.5645    
  10  Prefactor     6.4185        8.4477        .39593E-03   -1.5657    
  11  norm          2.2783        1.2148        .68000E-03   -1.5678    
  12  Prefactor     .12212E-08    1.4573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5529        6.2120        .34254E-03   -1.5649    
  14  norm          2.0157        1.1161        .72854E-03   -1.5680    
  15  norm          .55511E-10    1.5014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4976        5.3571        .87503E-03   -1.5683    
  17  Prefactor     .31092E-06    18.414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30032E-07    7.8190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .76605E-08    4.3475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .11674E-06    6.7439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .60341E-07    5.4199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .14672E-06    13.786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        1.7464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3895        57.338        .86035E-03   -1.5684    
  25  Normalizat    .98574        .13344        .45986E-01   -.93510    
  26  Prefactor     1.0756        .14020        .56334E-01   -.90250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73804e-06
Minuit parameter uncertainties:
  1  8.7315e-05
  2  0.00346344
  3  8.03838
  4  0.000282999
  5  0.00030656
  6  0.00518062
  7  3.88775
  8  14.1299
  9  6.57623
  10  8.4477
  11  1.21481
  12  8.42813e-05
  13  6.21196
  14  1.11612
  15  1.6226e-05
  16  5.3571
  17  0.00478558
  18  0.000969392
  19  0.000365023
  20  0.00177477
  21  0.00114366
  22  0.0028446
  23  1.32134e-05
  24  17.8517
  25  0.133486
  26  0.140244
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.498e+00  5.357e+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

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.076e+00  1.402e-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:  9.857e-01  1.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/369248/likelihoodResults_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.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) = 10366.1778685
delta logL = 0.0254350680843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10366.155809
delta logL = 0.0474945452224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1385       1.0000          .0000       .10000E+07
     2 'Index     '    1.9699       1.0000          .0000       10.000    
     3 'Normalizat'    .99005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0708       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10366.16     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      272 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1182        8.2388        .11439E-03    .25548E-02
   2  Index         1.9719        1.2306        .67133E-02    .11516E-05
   3  Normalizat    .98998        .15485        .23746E-03    .55535E-05
   4  Prefactor     1.0709        .16963        .24957E-03    .11297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.11818
  Index      = 1.97188
  Normalizat = 0.989979
  Prefactor  = 1.07088
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1182        8.1413        .22879E-04   -1.5673    
   2  Index         1.9719        1.2166        .26853E-03   -.65055    
   3  Normalizat    .98998        .15498        .94986E-05   -.93367    
   4  Prefactor     1.0709        .16977        .99830E-05   -.90403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28364e-13
Minuit parameter uncertainties:
  1  8.14135
  2  1.23644
  3  0.155053
  4  0.169854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369248': 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) = 10366.1558051
delta logL = 0.0474985014862

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  3.118e+00  8.141e+00  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  1.972e+00  1.236e+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:  1.071e+00  1.699e-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:  9.900e-01  1.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 229.049 43.853

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/369248/cmap_HighResolution_695001601_695260801_4FGL_J1516.1+4351_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2023-01-13 01:11:29.342724', job_id='369248', GAL2='1.07', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1673601089.34', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.75e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1758' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 01:11:29 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 369248: <4FGL_J1516.1+4351_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin1758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 13 00:55:19 2023
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:57:10 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:57:10 2023
Terminated at Fri Jan 13 01:11:30 2023
Results reported at Fri Jan 13 01:11:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin1758 229.049 43.8527 695001601 695260801 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 :                                   842.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            971 sec.

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

