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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1716
RA = 229.222, Dec = 36.8505
tmin = 684115201, tmax = 684374401
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='159724', job_status='RUN', time_executed='2022-09-16 19:03:26.611959', time_epoch_executed='1663380206.61' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159724/ft1_4FGL_J1516.8+3651_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159724/ft2_4FGL_J1516.8+3651_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159724/ft1_4FGL_J1516.8+3651_daily_bin1716.fits outfile=/scratch/kocevski/159724/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1716.fits ra=229.222 dec=36.8505 rad=12.0 tmin=684115201.0 tmax=684374401.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.17
user 3.87
sys 0.25

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

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

Number of photons that the gtmktime cut: 530

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159724/ft1_filtered_4FGL_J1516.8+3651_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/159724/ft2_4FGL_J1516.8+3651_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/159724/ltcube_684115201_684374401_4FGL_J1516.8+3651_daily_bin1716.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/159724/ft2_4FGL_J1516.8+3651_daily_bin1716.fits
.....................!
real 13.94
user 13.43
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159724/ft1_filtered_4FGL_J1516.8+3651_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/159724/ft2_4FGL_J1516.8+3651_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/159724/ltcube_684115201_684374401_4FGL_J1516.8+3651_daily_bin1716.fits outfile=/scratch/kocevski/159724/expmap_684115201_684374401_4FGL_J1516.8+3651_daily_bin1716.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/159724/ltcube_684115201_684374401_4FGL_J1516.8+3651_daily_bin1716.fits
.....................!
real 192.27
user 186.12
sys 5.28

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/159724/ft1_filtered_4FGL_J1516.8+3651_daily_bin1716.fits scfile=/scratch/kocevski/159724/ft2_4FGL_J1516.8+3651_daily_bin1716.fits outfile=/scratch/kocevski/159724/cmap_684115201_684374401_4FGL_J1516.8+3651_daily_bin1716.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/159724/ft1_filtered_4FGL_J1516.8+3651_daily_bin1716.fits scfile=/scratch/kocevski/159724/ft2_4FGL_J1516.8+3651_daily_bin1716.fits outfile=/scratch/kocevski/159724/cmap_HighResolution_684115201_684374401_4FGL_J1516.8+3651_daily_bin1716.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25082E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .34263E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.8675       1.0000          .0000       .10000E+07
     4 'norm      '    .25358E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .11917E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    51.623       1.0000          .0000       .10000E+07
     7 'norm      '    3.2449       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.465       1.0000          .0000       .10000E+07
     9 'Prefactor '    .49506E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .68352E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .40087       1.0000          .0000       .10000E+07
    12 'norm      '    .34702E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .58015E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    32.127       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10203E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .57826E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .86777       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.0227       1.0000          .0000       .10000E+07
    19 'Prefactor '    .58222       1.0000          .0000       .10000E+07
    20 'norm      '    18.033       1.0000          .0000       .10000E+07
    21 'Prefactor '    .37748E-08   1.0000          .0000       .10000E+07
    22 'Prefactor '    .63864E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .92754E-05   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1109       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82341       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=   5710.011     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2100 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27756E-09    16.691        .36030E-06** at limit **
   2  Prefactor     .37748E-08    19.411       -.12114E-06** at limit **
   3  Prefactor     7.0117        8.4886       -.31912E-08    .17913E-01
   4  norm           .0000        5.5374       -.44339E-08** at limit **
   5  norm           .0000        2.2547       -.58566E-08** at limit **
   6  Prefactor     52.251        17.207        .41607E-07    .74036E-01
   7  norm          3.2436        4.9143        .42869E-07    .19543E-02
   8  Prefactor     10.453        4.3921       -.32360E-08   -.86486E-01
   9  Prefactor     .55511E-10    3.2486       -.18189E-06** at limit **
  10  Prefactor      .0000        2.6004       -.35750E-07** at limit **
  11  norm          .40009        1.0595       -.39374E-07   -.11653E-02
  12  norm           .0000        .97637        .24900E-07** at limit **
  13  Prefactor      .0000        2.0442       -.45031E-07** at limit **
  14  Prefactor     32.994        38.850        .11593E-06   -.28913E-01
  15  Prefactor     .22204E-09    17.078        .11468E-07** at limit **
  16  Prefactor     .27756E-09    4.4004       -.10377E-06** at limit **
  17  norm          .86933        .84010       -.18821E-08   -.13461E-02
  18  Prefactor     4.0515        6.0944       -.51113E-07   -.10867E-02
  19  Prefactor     .92815E-07    85.616       -.30689E-06** at limit **
  20  norm          18.024        12.092       -.23494E-07    .89918E-02
  21  Prefactor      .0000        .79674       -.25135E-08** at limit **
  22  Prefactor     .38858E-09    7.5877        .80450E-07** at limit **
  23  Prefactor      .0000        1.1495        .60732E-07** at limit **
  24  Normalizat    1.1096        .19556        .15349E-05   -.85749E-04
  25  Prefactor     .82412        .18670       -.27968E-05   -.12341E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77556e-10
  Prefactor  = 3.77476e-09
  Prefactor  = 7.01168
  norm       = 0
  norm       = 0
  Prefactor  = 52.2515
  norm       = 3.24357
  Prefactor  = 10.4532
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0.400095
  norm       = 0
  Prefactor  = 0
  Prefactor  = 32.9943
  Prefactor  = 2.22045e-10
  Prefactor  = 2.77556e-10
  norm       = 0.869325
  Prefactor  = 4.05155
  Prefactor  = 9.28146e-08
  norm       = 18.0236
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  Normalizat = 1.10962
  Prefactor  = 0.824122
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.011     FROM HESSE     STATUS=OK           477 CALLS     2577 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27756E-09    3.3837        .77691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .37748E-08    20.086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0117        16.245        .38262E-03   -1.5655    
   4  norm           .0000        5.5338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        2.2531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.251        36.509        .13919E-03   -1.5563    
   7  norm          3.2436        4.9358        .56201E-03   -1.5672    
   8  Prefactor     10.453        9.8611        .30947E-03   -1.5643    
   9  Prefactor     .55511E-10    3.2446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.5963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .40009        1.0947        .89386E-03   -1.5695    
  12  norm           .0000        .97567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.0443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.994        43.217        .17645E-03   -1.5593    
  15  Prefactor     .22204E-09    17.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .27756E-09    4.3977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .86933        .84668        .48015E-03   -1.5689    
  18  Prefactor     4.0515        6.1440        .50255E-03   -1.5668    
  19  Prefactor     .92815E-07    86.896        .70836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.024        15.118        .23558E-03   -1.5623    
  21  Prefactor      .0000        .79326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .38858E-09    7.6273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        1.1493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1096        .17190        .37572E-01   -.89444    
  25  Prefactor     .82412        .16231        .44021E-01   -.98845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30911e-07
Minuit parameter uncertainties:
  1  6.27036e-05
  2  0.000549143
  3  16.2453
  4  1.99659e-05
  5  9.15825e-07
  6  36.5087
  7  4.93584
  8  9.8611
  9  2.69189e-05
  10  2.36346e-06
  11  1.09466
  12  2.35614e-06
  13  4.38471e-06
  14  43.2176
  15  0.000130103
  16  6.84699e-05
  17  0.846683
  18  6.14396
  19  0.00567967
  20  15.1185
  21  2.82798e-07
  22  0.000109242
  23  6.38364e-06
  24  0.171984
  25  0.162409
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.299e+01  4.322e+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:  8.241e-01  1.624e-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:  1.110e+00  1.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.33e-08 +/- 1.75e-08
Energy Flux (Fixed Index): 6.10e-06 +/- 7.99e-06

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

Saving results to:
/scratch/kocevski/159724/likelihoodResults_684115201_684374401_4FGL_J1516.8+3651_daily_bin1716.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) = 5709.54232304
delta logL = 0.468199905212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5709.49941275
delta logL = 0.511110200196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.764       1.0000          .0000       .10000E+07
     2 'Index     '    1.4100       1.0000          .0000       10.000    
     3 'Normalizat'    1.1186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81927       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=   5709.499     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.853        59.490        .28643E-04   -.17425E-03
   2  Index         1.4113        .70681        .11200E-01   -.71394E-04
   3  Normalizat    1.1184        .18901        .21575E-03    .13402E-03
   4  Prefactor     .81933        .18596        .24301E-03    .16673E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.8525
  Index      = 1.41126
  Normalizat = 1.1184
  Prefactor  = 0.819326
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.499     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.853        60.071        .11457E-05   -1.5568    
   2  Index         1.4113        .71382        .22400E-02   -.80056    
   3  Normalizat    1.1184        .18917        .43151E-04   -.89163    
   4  Prefactor     .81933        .18612        .97205E-05   -.99020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61465e-11
Minuit parameter uncertainties:
  1  60.0722
  2  0.718919
  3  0.189289
  4  0.186265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159724': 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) = 5709.49940904
delta logL = 0.511113910929

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  4.885e+01  6.007e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  1.411e+00  7.189e-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:  8.193e-01  1.863e-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:  1.118e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.41 +/- 0.72
Photon Flux (Free Index): 5.98e-09 +/- 9.17e-09
Energy Flux (Free Index): 2.55e-05 +/- 4.60e-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/159724/cmap_HighResolution_684115201_684374401_4FGL_J1516.8+3651_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', comment='SUCCESS', photon_flux='1.33e-08', energy_flux2='2.55e-05', photon_flux_error='1.75e-08', dlogl='5.11e-01', energy_flux='6.10e-06', photon_flux2='5.98e-09', job_status='DONE', time_completed='2022-09-16 19:13:46.238668', photon_index_error2='0.72', photon_index2='1.41', ts='1.13', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='6.46e-08', energy_flux_error2='4.60e-05', EG='1.11', time_epoch_completed='1663380826.24', return_code='0', job_id='159724', GAL2='0.82', EG2='1.12', return_code2='0', energy_flux_error='7.99e-06', photon_flux_error2='9.17e-09', ts2='2.16', photon_index='2.19' WHERE bin_id='1716' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:13:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 159724: <4FGL_J1516.8+3651_daily_bin1716> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1716> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 19:00:22 2022
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:01:22 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:22 2022
Terminated at Fri Sep 16 19:13:47 2022
Results reported at Fri Sep 16 19:13:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1716 229.222 36.8505 684115201 684374401 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 :                                   620.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            805 sec.

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

