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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1750
RA = 229.222, Dec = 36.8505
tmin = 692928001, tmax = 693187201
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='16238', job_status='RUN', time_executed='2022-12-20 01:07:16.912946', time_epoch_executed='1671527236.91' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16238/ft1_4FGL_J1516.8+3651_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16238/ft2_4FGL_J1516.8+3651_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16238/ft1_4FGL_J1516.8+3651_daily_bin1750.fits outfile=/scratch/kocevski/16238/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1750.fits ra=229.222 dec=36.8505 rad=12.0 tmin=692928001.0 tmax=693187201.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.44
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/16238/ft2_4FGL_J1516.8+3651_daily_bin1750.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/16238/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/16238/ft1_filtered_4FGL_J1516.8+3651_daily_bin1750.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 547

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/16238/ft1_filtered_4FGL_J1516.8+3651_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/16238/ft2_4FGL_J1516.8+3651_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/16238/ltcube_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.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/16238/ft2_4FGL_J1516.8+3651_daily_bin1750.fits
.....................!
real 11.50
user 11.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16238/ft1_filtered_4FGL_J1516.8+3651_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/16238/ft2_4FGL_J1516.8+3651_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/16238/ltcube_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.fits outfile=/scratch/kocevski/16238/expmap_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.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/16238/ltcube_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.fits
.....................!
real 190.54
user 184.74
sys 5.44

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/16238/ft1_filtered_4FGL_J1516.8+3651_daily_bin1750.fits scfile=/scratch/kocevski/16238/ft2_4FGL_J1516.8+3651_daily_bin1750.fits outfile=/scratch/kocevski/16238/cmap_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16238/ft1_filtered_4FGL_J1516.8+3651_daily_bin1750.fits scfile=/scratch/kocevski/16238/ft2_4FGL_J1516.8+3651_daily_bin1750.fits outfile=/scratch/kocevski/16238/cmap_HighResolution_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.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.55
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/16238/ft1_filtered_4FGL_J1516.8+3651_daily_bin1750.fits', '/scratch/kocevski/16238/ft2_4FGL_J1516.8+3651_daily_bin1750.fits', expMap='/scratch/kocevski/16238/expmap_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.fits', expCube='/scratch/kocevski/16238/ltcube_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/16238/Model_4FGL_J1516.8+3651_daily_bin1750.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/16238/ft1_filtered_4FGL_J1516.8+3651_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/16238/ft2_4FGL_J1516.8+3651_daily_bin1750.fits
Exposure map: /scratch/kocevski/16238/expmap_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.fits
Exposure cube: /scratch/kocevski/16238/ltcube_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/16238/Model_4FGL_J1516.8+3651_daily_bin1750.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) = 5951.27066607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54227E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .34889E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .24621E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .23294E-02   1.0000          .0000       .10000E+07
     5 'norm      '    6.3715       1.0000          .0000       .10000E+07
     6 'Prefactor '    21.983       1.0000          .0000       .10000E+07
     7 'norm      '    .95239E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    19.327       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.2131       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.1873       1.0000          .0000       .10000E+07
    11 'norm      '    2.2885       1.0000          .0000       .10000E+07
    12 'norm      '    8.3507       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16728E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    64.403       1.0000          .0000       .10000E+07
    15 'Prefactor '    .31906E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    14.767       1.0000          .0000       .10000E+07
    17 'norm      '    .31014E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.6581       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22133E-04   1.0000          .0000       .10000E+07
    20 'norm      '    5.4249       1.0000          .0000       .10000E+07
    21 'Prefactor '    .11630E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .21295       1.0000          .0000       .10000E+07
    23 'Prefactor '    .50649E-04   1.0000          .0000       .10000E+07
    24 'Normalizat'    .77850       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1669       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=   5951.252     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2110 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3868        .15338E-06** at limit **
   2  Prefactor     .55511E-10    5.1954       -.18219E-05** at limit **
   3  Prefactor      .0000        11.330       -.21831E-05** at limit **
   4  norm          .55511E-10    3.9612       -.34653E-06** at limit **
   5  norm          6.3763        5.8632        .46566E-07   -.30785E-03
   6  Prefactor     22.095        1.8681       -.21505E-06    .27152E-01
   7  norm          .12768E-08    5.4526        .15589E-05** at limit **
   8  Prefactor     19.337        1.5006       -.11323E-07   -.12556E-02
   9  Prefactor     7.2296        2.4875        .23381E-06   -.81610E-02
  10  Prefactor     3.1989        6.2354        .50578E-07    .46946E-04
  11  norm          2.2887        1.8905        .35573E-07    .62694E-03
  12  norm          8.3511        4.0119       -.17596E-07   -.74586E-04
  13  Prefactor     .11102E-09    8.4458       -.23361E-05** at limit **
  14  Prefactor     64.098        68.089       -.13718E-05    .68461E-03
  15  Prefactor     .26645E-08    8.8908        .24458E-05** at limit **
  16  Prefactor     14.731        4.3913       -.33949E-06   -.21276E-01
  17  norm           .0000        .76052        .48967E-07** at limit **
  18  Prefactor     5.6333        6.5581       -.10812E-07   -.48064E-03
  19  Prefactor      .0000        19.335        .82242E-06** at limit **
  20  norm          5.4372        1.5258        .37707E-06    .34830E-02
  21  Prefactor      .0000        1.0951       -.17420E-06** at limit **
  22  Prefactor     .38858E-09    34.429        .63691E-05** at limit **
  23  Prefactor      .0000        2.0630        .15891E-07** at limit **
  24  Normalizat    .77870        .20380        .79557E-05   -.61017E-04
  25  Prefactor     1.1670        .20210       -.35020E-05   -.53265E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 5.55112e-11
  norm       = 6.37629
  Prefactor  = 22.095
  norm       = 1.27676e-09
  Prefactor  = 19.3367
  Prefactor  = 7.22956
  Prefactor  = 3.19888
  norm       = 2.2887
  norm       = 8.35108
  Prefactor  = 1.11022e-10
  Prefactor  = 64.0976
  Prefactor  = 2.66454e-09
  Prefactor  = 14.7306
  norm       = 0
  Prefactor  = 5.63333
  Prefactor  = 0
  norm       = 5.43723
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  Normalizat = 0.778704
  Prefactor  = 1.16695
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.252     FROM HESSE     STATUS=OK           477 CALLS     2587 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    5.2821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        11.338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    3.9672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3763        5.8978        .39740E-03   -1.5657    
   6  Prefactor     22.095        24.169        .21334E-03   -1.5614    
   7  norm          .12768E-08    5.6081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.337        14.340        .22754E-03   -1.5620    
   9  Prefactor     7.2296        12.068        .37324E-03   -1.5654    
  10  Prefactor     3.1989        6.2528        .56733E-03   -1.5672    
  11  norm          2.2887        2.2311        .67830E-03   -1.5678    
  12  norm          8.3511        4.1677        .34668E-03   -1.5650    
  13  Prefactor     .11102E-09    8.5021        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     64.098        68.382        .12462E-03   -1.5548    
  15  Prefactor     .26645E-08    9.7264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.731        13.100        .26038E-03   -1.5631    
  17  norm           .0000        .74344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6333        6.5919        .42207E-03   -1.5660    
  19  Prefactor      .0000        19.340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.4372        9.9520        .43119E-03   -1.5661    
  21  Prefactor      .0000        1.0903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .38858E-09    34.102        .11550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        2.0597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77870        .17846        .43329E-01   -1.0086    
  25  Prefactor     1.1670        .17233        .50807E-01   -.87354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64021e-08
Minuit parameter uncertainties:
  1  5.63124e-06
  2  3.45702e-05
  3  2.93361e-05
  4  3.54144e-05
  5  5.89783
  6  24.1692
  7  0.000168624
  8  14.3396
  9  12.0682
  10  6.25283
  11  2.23108
  12  4.16766
  13  6.00063e-05
  14  68.3825
  15  0.000321859
  16  13.0999
  17  1.93895e-07
  18  6.59196
  19  1.94411e-06
  20  9.952
  21  6.46924e-06
  22  0.000236414
  23  2.83587e-06
  24  0.178593
  25  0.172417
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.410e+01  6.838e+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.167e+00  1.724e-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.787e-01  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.59e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/16238/likelihoodResults_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.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) = 5951.25153191
delta logL = 7.79214587965e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5951.25148564
delta logL = 0.000124195584249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.350       1.0000          .0000       .10000E+07
     2 'Index     '    2.2025       1.0000          .0000       10.000    
     3 'Normalizat'    .77836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1671       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=   5951.251     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      259 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.305        88.013        .50259E-05    .90345E-03
   2  Index         2.2017        .74764        .81872E-02    .18217E-04
   3  Normalizat    .77839        .19990        .26762E-03    .17851E-03
   4  Prefactor     1.1671        .20137        .22460E-03    .14503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.3053
  Index      = 2.20165
  Normalizat = 0.77839
  Prefactor  = 1.16715
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.251     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.305        82.606        .10052E-05   -1.5549    
   2  Index         2.2017        .70195        .32749E-03   -.59399    
   3  Normalizat    .77839        .19990        .10705E-04   -1.0088    
   4  Prefactor     1.1671        .20143        .44920E-04   -.87348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25538e-10
Minuit parameter uncertainties:
  1  82.6077
  2  0.705349
  3  0.200084
  4  0.201563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16238': 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) = 5951.25148305
delta logL = 0.000126780039864

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.331e+01  8.261e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.202e+00  7.053e-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.167e+00  2.016e-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.784e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 229.222 36.850
Photon Index (Free Index): 2.20 +/- 0.71
Photon Flux (Free Index): 2.62e-08 +/- 3.13e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.46e-05

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/16238/cmap_HighResolution_692928001_693187201_4FGL_J1516.8+3651_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', comment='SUCCESS', photon_flux='2.59e-08', energy_flux2='1.17e-05', photon_flux_error='2.77e-08', dlogl='1.27e-04', energy_flux='1.19e-05', photon_flux2='2.62e-08', job_status='DONE', time_completed='2022-12-20 01:17:30.169871', photon_index_error2='0.71', photon_index2='2.20', ts='1.39', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='8.91e-08', energy_flux_error2='1.46e-05', EG='0.78', time_epoch_completed='1671527850.17', return_code='0', job_id='16238', GAL2='1.17', EG2='0.78', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.13e-08', ts2='1.39', photon_index='2.19' WHERE bin_id='1750' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:17:30 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 16238: <4FGL_J1516.8+3651_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1750> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec 20 01:05:21 2022
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:05:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:05:22 2022
Terminated at Tue Dec 20 01:17:30 2022
Results reported at Tue Dec 20 01:17:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1750 229.222 36.8505 692928001 693187201 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 :                                   614.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            729 sec.

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

