/sdf/group/fermi/u/kocevski/software/conda/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)

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).

/sdf/group/fermi/u/kocevski/software/conda/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).

 outfile=/lscratch/kocevski/27248793/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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 /lscratch/kocevski/27248793/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
.....................!
real 16.70
user 16.18
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27248793/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" scfile=/lscratch/kocevski/27248793/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27248793/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248793/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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 /lscratch/kocevski/27248793/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
.....................!
real 63.88
user 59.25
sys 4.02

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=/lscratch/kocevski/27248793/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits scfile=/lscratch/kocevski/27248793/ft2_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248793/cmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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.51
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27248793/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits scfile=/lscratch/kocevski/27248793/ft2_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248793/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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.51
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27248793/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" scfile=/lscratch/kocevski/27248793/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27248793/Model_4FGL_J1516.8+3651_weekly_bin929.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 sourcnumber of points = 17272
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.8+3651_weekly_bin929
RA = 229.222, Dec = 36.8505
tmin = 800841601, tmax = 801446401
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='27248840', job_status='RUN', time_executed='2026-05-26 11:49:41.140856', time_epoch_executed='1779821381.14' WHERE source_name='4FGL J1516.8+3651' and cadence='weekly' and bin_id='929'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/27248840

Creating custom pfile directory:
/lscratch/kocevski/27248840/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=800841601.0 && nMetStart<801446401.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=800841601.0 && nMetStart<801446401.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/27248840/ft1_4FGL_J1516.8+3651_weekly_bin929.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=800841601.0 && nMetStart<801446401.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/27248840/ft1_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248840/ft1_filteredMKT_4FGL_J1516.8+3651_weekly_bin929.fits ra=229.222 dec=36.8505 rad=12.0 tmin=800841601.0 tmax=801446401.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.70
user 4.26
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/27248840/ft1_filteredMKT_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" outfile="/lscratch/kocevski/27248840/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.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('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1905

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/27248840/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" outfile=/lscratch/kocevski/27248814/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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 /lscratch/kocevski/27248814/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
.....................!
real 16.46
user 15.95
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27248814/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" scfile=/lscratch/kocevski/27248814/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27248814/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248814/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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 /lscratch/kocevski/27248814/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
.....................!
real 63.76
user 59.48
sys 3.72

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=/lscratch/kocevski/27248814/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits scfile=/lscratch/kocevski/27248814/ft2_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248814/cmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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.55
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27248814/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits scfile=/lscratch/kocevski/27248814/ft2_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248814/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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.48
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27248814/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" scfile=/lscratch/kocevski/27248814/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27248814/Model_4FGL_J1516.8+3651_weekly_bin929.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...
/lscratch/kocevski/27248662/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits.....................!
real 43.58
user 42.46
sys 0.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27248662/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits', '/lscratch/kocevski/27248662/ft2_4FGL_J1516.8+3651_weekly_bin929.fits', expMap='/lscratch/kocevski/27248662/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', expCube='/lscratch/kocevski/27248662/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27248662/Model_4FGL_J1516.8+3651_weekly_bin929.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): /lscratch/kocevski/27248662/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits
Spacecraft file(s): /lscratch/kocevski/27248662/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure map: /lscratch/kocevski/27248662/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure cube: /lscratch/kocevski/27248662/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27248662/Model_4FGL_J1516.8+3651_weekly_bin929.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) = 20022.286317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    60.500       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.2786       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.390       1.0000          .0000       .10000E+07
     4 'norm      '    .75496E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.9655       1.0000          .0000       .10000E+07
     6 'Prefactor '    141.38       1.0000          .0000       .10000E+07
     7 'norm      '    1.0008       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.006       1.0000          .0000       .10000E+07
     9 'Prefactor '    .37951E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .79168       1.0000          .0000       .10000E+07
    11 'norm      '    .55741E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .81646E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32007E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.670       1.0000          .0000       .10000E+07
    15 'Prefactor '    .64504E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11898E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.6358       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23633E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.5224       1.0000          .0000       .10000E+07
    20 'norm      '    1.3348       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18191E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .25722E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .30143E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.6274       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
  outfile=/lscratch/kocevski/27248818/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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 /lscratch/kocevski/27248818/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
.....................!
real 18.39
user 17.78
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27248818/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" scfile=/lscratch/kocevski/27248818/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27248818/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248818/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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 /lscratch/kocevski/27248818/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
.....................!
real 70.59
user 65.68
sys 4.30

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=/lscratch/kocevski/27248818/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits scfile=/lscratch/kocevski/27248818/ft2_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248818/cmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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.56
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27248818/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits scfile=/lscratch/kocevski/27248818/ft2_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248818/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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.54
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27248818/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" scfile=/lscratch/kocevski/27248818/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27248818/Model_4FGL_J1516.8+3651_weekly_bin929.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 sourc**   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20022.14     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2158 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          60.650        3.7793        .16432E-06    .76630E-01
   2  Prefactor     4.2621        8.6962        .17321E-05   -.11604E-01
   3  Prefactor     19.385        12.889       -.95398E-06    .13003E-01
   4  norm          .55511E-10    3.7489        .23064E-06** at limit **
   5  norm          1.9635        3.2688       -.59394E-07    .26153E-02
   6  Prefactor     144.03        39.901        .67653E-07   -.23452E-02
   7  norm          1.0033        2.2514       -.19040E-05    .11405E-02
   8  Prefactor     9.9621        1.4257       -.11721E-06   -.13308E-01
   9  Prefactor      .0000        1.2020        .32587E-07** at limit **
  10  Prefactor     .80203        .52691        .32310E-07   -.16749E-02
  11  norm          .56083E-01    .36517       -.26537E-07** at limit **
  12  norm          .55511E-10    .55299       -.25554E-07** at limit **
  13  Prefactor      .0000        .89445        .57077E-07** at limit **
  14  Prefactor     18.764        1.5972       -.12929E-06    .24453E-01
  15  Prefactor      .0000        2.8435       -.14112E-06** at limit **
  16  Prefactor      .0000        1.7524       -.91383E-07** at limit **
  17  norm          1.6372        .58862        .10329E-07    .89877E-02
  18  Prefactor      .0000        .88389        .17773E-07** at limit **
  19  Prefactor     6.5314        1.0496        .37566E-07   -.98936E-02
  20  norm          1.3306        7.4827        .13837E-05   -.14271E-02
  21  Prefactor     .55511E-10    .33333       -.73697E-08** at limit **
  22  Prefactor     .38858E-09    16.295        .77895E-07** at limit **
  23  Prefactor     .55511E-10    .38096        .93241E-07** at limit **
  24  Normalizat    1.6249        .14992       -.25076E-05   -.36397E-03
  25  Prefactor     .88012        .13980        .19623E-05   -.12334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 60.6498
  Prefactor  = 4.26206
  Prefactor  = 19.3847
  norm       = 5.55112e-11
  norm       = 1.9635
  Prefactor  = 144.029
  norm       = 1.00329
  Prefactor  = 9.9621
  Prefactor  = 0
  Prefactor  = 0.802029
  norm       = 0.0560834
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 18.764
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.63716
  Prefactor  = 0
  Prefactor  = 6.53145
  norm       = 1.33063
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88578e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.62486
  Prefactor  = 0.880119
number of points = 17272
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.8+3651_weekly_bin929
RA = 229.222, Dec = 36.8505
tmin = 800841601, tmax = 801446401
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='27248912', job_status='RUN', time_executed='2026-05-26 11:50:42.204212', time_epoch_executed='1779821442.2' WHERE source_name='4FGL J1516.8+3651' and cadence='weekly' and bin_id='929'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/27248912

Creating custom pfile directory:
/lscratch/kocevski/27248912/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=800841601.0 && nMetStart<801446401.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=800841601.0 && nMetStart<801446401.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/27248912/ft1_4FGL_J1516.8+3651_weekly_bin929.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=800841601.0 && nMetStart<801446401.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/27248912/ft1_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248912/ft1_filteredMKT_4FGL_J1516.8+3651_weekly_bin929.fits ra=229.222 dec=36.8505 rad=12.0 tmin=800841601.0 tmax=801446401.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 5.18
user 4.71
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/27248912/ft1_filteredMKT_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" outfile="/lscratch/kocevski/27248912/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.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('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.59
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1905

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/27248912/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA"  **********
 **   18 **HESSE 
 **********

 FCN=   20022.14     FROM HESSE     STATUS=OK           483 CALLS     2641 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          60.650        11.108        .12857E-03   -1.5552    
   2  Prefactor     4.2621        9.6167        .48683E-03   -1.5667    
   3  Prefactor     19.385        13.211        .22717E-03   -1.5620    
   4  norm          .55511E-10    3.7528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9635        3.3099        .73947E-03   -1.5680    
   6  Prefactor     144.03        39.566        .84107E-04   -1.5468    
   7  norm          1.0033        2.2713        .43793E-03   -1.5688    
   8  Prefactor     9.9621        8.0638        .31652E-03   -1.5645    
   9  Prefactor      .0000        1.2049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80203        3.1095        .53557E-03   -1.5690    
  11  norm          .56083E-01    .19140        .32068E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    .55502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .89586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.764        19.875        .23152E-03   -1.5621    
  15  Prefactor      .0000        2.8488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.7670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6372        .59210        .82614E-03   -1.5682    
  18  Prefactor      .0000        .88551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5314        8.1164        .39272E-03   -1.5657    
  20  norm          1.3306        7.4700        .94939E-03   -1.5685    
  21  Prefactor     .55511E-10    .33844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .38858E-09    16.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    .38283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6249        .12676        .57823E-01   -.74328    
  25  Prefactor     .88012        .11660        .72406E-01   -.96839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37552e-06
Minuit parameter uncertainties:
  1  11.1084
  2  9.61671
  3  13.2109
  4  3.32346e-05
  5  3.30992
  6  39.5659
  7  2.27132
  8  8.06381
  9  1.05721e-05
  10  3.10953
  11  0.191397
  12  9.27069e-06
  13  5.05153e-06
  14  19.8755
  15  1.30266e-05
  16  3.13445e-06
  17  0.592097
  18  5.59501e-06
  19  8.11643
  20  6.30548
  21  6.3749e-06
  22  0.000159357
  23  6.85932e-06
  24  0.126784
  25  0.116632
 outfile=/lscratch/kocevski/27248840/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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 /lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
.....................!
real 16.65
user 16.19
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27248840/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" scfile=/lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27248840/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248840/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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 /lscratch/kocevski/27248840/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
.....................!
real 63.54
user 59.41
sys 3.68

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=/lscratch/kocevski/27248840/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits scfile=/lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248840/cmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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.58
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27248840/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits scfile=/lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248840/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27248840/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" scfile=/lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27248840/Model_4FGL_J1516.8+3651_weekly_bin929.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 sourcDone.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.876e+01  1.988e+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.801e-01  1.166e-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.625e+00  1.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.59e-09 +/- 8.04e-09
Energy Flux (Fixed Index): 3.47e-06 +/- 3.68e-06

TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 3.01447495686e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0022951105528 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27248662/likelihoodResults_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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) = 20021.6461088
delta logL = 0.493864800163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20021.610451
delta logL = 0.529522568533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.326       1.0000          .0000       .10000E+07
     2 'Index     '    1.5831       1.0000          .0000       10.000    
     3 'Normalizat'    1.6299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87651       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=   20021.61     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      277 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.325        32.045        .35181E-04    .44728E-02
   2  Index         1.5828        .53801        .15047E-01    .21672E-03
   3  Normalizat    1.6299        .14437        .25534E-03   -.10689E-03
   4  Prefactor     .87651        .13918        .32094E-03   -.10089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3246
  Index      = 1.58278
  Normalizat = 1.62988
  Prefactor  = 0.876508
 **********
 **   18 **HESSE 
 **********

 FCN=   20021.61     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.325        32.092        .70363E-05   -1.5594    
   2  Index         1.5828        .53919        .60187E-03   -.75247    
   3  Normalizat    1.6299        .14450        .51068E-04   -.74191    
   4  Prefactor     .87651        .13931        .12837E-04   -.96967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74474e-09
Minuit parameter uncertainties:
  1  32.0922
  2  0.541168
  3  0.144534
  4  0.139364
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) = 20021.6104508
delta logL = 0.529522795296

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.232e+01  3.209e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  1.583e+00  5.412e-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.765e-01  1.394e-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.630e+00  1.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.58 +/- 0.54
Photon Flux (Free Index): 4.73e-09 +/- 5.79e-09
Energy Flux (Free Index): 1.13e-05 +/- 1.66e-05

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 /lscratch/kocevski/27248662/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-03', comment='SUCCESS', photon_flux='7.59e-09', energy_flux2='1.13e-05', photon_flux_error='8.04e-09', dlogl='5.30e-01', energy_flux='3.47e-06', photon_flux2='4.73e-09', job_status='DONE', time_completed='2026-05-26 11:54:59.212287', photon_index_error2='0.54', photon_index2='1.58', ts='1.96', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.01e-08', energy_flux_error2='1.66e-05', EG='1.62', time_epoch_completed='1779821699.21', return_code='0', job_id='27248662', GAL2='0.88', EG2='1.63', return_code2='0', energy_flux_error='3.68e-06', photon_flux_error2='5.79e-09', ts2='3.02', photon_index='2.19' WHERE bin_id='929' AND source_name='4FGL J1516.8+3651' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 26 11:54:59 PDT 2026

outfile=/lscratch/kocevski/27248912/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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 /lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
.....................!
real 19.34
user 18.69
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27248912/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" scfile=/lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27248912/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248912/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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 /lscratch/kocevski/27248912/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
.....................!
real 73.08
user 68.25
sys 4.23

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=/lscratch/kocevski/27248912/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits scfile=/lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248912/cmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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.67
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27248912/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits scfile=/lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits outfile=/lscratch/kocevski/27248912/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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.63
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27248912/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits evtable="EVENTS" scfile=/lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27248912/Model_4FGL_J1516.8+3651_weekly_bin929.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 sourcee GAL_V02
Working on...
/lscratch/kocevski/27248793/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits.....................!
real 47.09
user 45.51
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27248793/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits', '/lscratch/kocevski/27248793/ft2_4FGL_J1516.8+3651_weekly_bin929.fits', expMap='/lscratch/kocevski/27248793/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', expCube='/lscratch/kocevski/27248793/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27248793/Model_4FGL_J1516.8+3651_weekly_bin929.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): /lscratch/kocevski/27248793/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits
Spacecraft file(s): /lscratch/kocevski/27248793/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure map: /lscratch/kocevski/27248793/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure cube: /lscratch/kocevski/27248793/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27248793/Model_4FGL_J1516.8+3651_weekly_bin929.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) = 20022.286317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    60.500       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.2786       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.390       1.0000          .0000       .10000E+07
     4 'norm      '    .75496E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.9655       1.0000          .0000       .10000E+07
     6 'Prefactor '    141.38       1.0000          .0000       .10000E+07
     7 'norm      '    1.0008       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.006       1.0000          .0000       .10000E+07
     9 'Prefactor '    .37951E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .79168       1.0000          .0000       .10000E+07
    11 'norm      '    .55741E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .81646E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32007E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.670       1.0000          .0000       .10000E+07
    15 'Prefactor '    .64504E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11898E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.6358       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23633E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.5224       1.0000          .0000       .10000E+07
    20 'norm      '    1.3348       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18191E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .25722E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .30143E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.6274       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87920       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=   20022.14     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2158 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          60.650        3.7793        .16432E-06    .76630E-01
   2  Prefactor     4.2621        8.6962        .17321E-05   -.11604E-01
   3  Prefactor     19.385        12.889       -.95398E-06    .13003E-01
   4  norm          .55511E-10    3.7489        .23064E-06** at limit **
   5  norm          1.9635        3.2688       -.59394E-07    .26153E-02
   6  Prefactor     144.03        39.901        .67653E-07   -.23452E-02
   7  norm          1.0033        2.2514       -.19040E-05    .11405E-02
   8  Prefactor     9.9621        1.4257       -.11721E-06   -.13308E-01
   9  Prefactor      .0000        1.2020        .32587E-07** at limit **
  10  Prefactor     .80203        .52691        .32310E-07   -.16749E-02
  11  norm          .56083E-01    .36517       -.26537E-07** at limit **
  12  norm          .55511E-10    .55299       -.25554E-07** at limit **
  13  Prefactor      .0000        .89445        .57077E-07** at limit **
  14  Prefactor     18.764        1.5972       -.12929E-06    .24453E-01
  15  Prefactor      .0000        2.8435       -.14112E-06** at limit **
  16  Prefactor      .0000        1.7524       -.91383E-07** at limit **
  17  norm          1.6372        .58862        .10329E-07    .89877E-02
  18  Prefactor      .0000        .88389        .17773E-07** at limit **
  19  Prefactor     6.5314        1.0496        .37566E-07   -.98936E-02
  20  norm          1.3306        7.4827        .13837E-05   -.14271E-02
  21  Prefactor     .55511E-10    .33333       -.73697E-08** at limit **
  22  Prefactor     .38858E-09    16.295        .77895E-07** at limit **
  23  Prefactor     .55511E-10    .38096        .93241E-07** at limit **
  24  Normalizat    1.6249        .14992       -.25076E-05   -.36397E-03
  25  Prefactor     .88012        .13980        .19623E-05   -.12334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 60.6498
  Prefactor  = 4.26206
  Prefactor  = 19.3847
  norm       = 5.55112e-11
  norm       = 1.9635
  Prefactor  = 144.029
  norm       = 1.00329
  Prefactor  = 9.9621
  Prefactor  = 0
  Prefactor  = 0.802029
  norm       = 0.0560834
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 18.764
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.63716
  Prefactor  = 0
  Prefactor  = 6.53145
  norm       = 1.33063
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88578e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.62486
  Prefactor  = 0.880119
e GAL_V02
Working on...
/lscratch/kocevski/27248814/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits.....................!
real 48.56
user 47.00
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27248814/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits', '/lscratch/kocevski/27248814/ft2_4FGL_J1516.8+3651_weekly_bin929.fits', expMap='/lscratch/kocevski/27248814/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', expCube='/lscratch/kocevski/27248814/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27248814/Model_4FGL_J1516.8+3651_weekly_bin929.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): /lscratch/kocevski/27248814/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits
Spacecraft file(s): /lscratch/kocevski/27248814/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure map: /lscratch/kocevski/27248814/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure cube: /lscratch/kocevski/27248814/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27248814/Model_4FGL_J1516.8+3651_weekly_bin929.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) = 20022.286317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    60.500       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.2786       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.390       1.0000          .0000       .10000E+07
     4 'norm      '    .75496E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.9655       1.0000          .0000       .10000E+07
     6 'Prefactor '    141.38       1.0000          .0000       .10000E+07
     7 'norm      '    1.0008       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.006       1.0000          .0000       .10000E+07
     9 'Prefactor '    .37951E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .79168       1.0000          .0000       .10000E+07
    11 'norm      '    .55741E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .81646E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32007E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.670       1.0000          .0000       .10000E+07
    15 'Prefactor '    .64504E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11898E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.6358       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23633E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.5224       1.0000          .0000       .10000E+07
    20 'norm      '    1.3348       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18191E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .25722E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .30143E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.6274       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
  **********
 **   18 **HESSE 
 **********

 FCN=   20022.14     FROM HESSE     STATUS=OK           483 CALLS     2641 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          60.650        11.108        .12857E-03   -1.5552    
   2  Prefactor     4.2621        9.6167        .48683E-03   -1.5667    
   3  Prefactor     19.385        13.211        .22717E-03   -1.5620    
   4  norm          .55511E-10    3.7528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9635        3.3099        .73947E-03   -1.5680    
   6  Prefactor     144.03        39.566        .84107E-04   -1.5468    
   7  norm          1.0033        2.2713        .43793E-03   -1.5688    
   8  Prefactor     9.9621        8.0638        .31652E-03   -1.5645    
   9  Prefactor      .0000        1.2049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80203        3.1095        .53557E-03   -1.5690    
  11  norm          .56083E-01    .19140        .32068E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    .55502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .89586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.764        19.875        .23152E-03   -1.5621    
  15  Prefactor      .0000        2.8488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.7670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6372        .59210        .82614E-03   -1.5682    
  18  Prefactor      .0000        .88551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5314        8.1164        .39272E-03   -1.5657    
  20  norm          1.3306        7.4700        .94939E-03   -1.5685    
  21  Prefactor     .55511E-10    .33844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .38858E-09    16.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    .38283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6249        .12676        .57823E-01   -.74328    
  25  Prefactor     .88012        .11660        .72406E-01   -.96839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37552e-06
Minuit parameter uncertainties:
  1  11.1084
  2  9.61671
  3  13.2109
  4  3.32346e-05
  5  3.30992
  6  39.5659
  7  2.27132
  8  8.06381
  9  1.05721e-05
  10  3.10953
  11  0.191397
  12  9.27069e-06
  13  5.05153e-06
  14  19.8755
  15  1.30266e-05
  16  3.13445e-06
  17  0.592097
  18  5.59501e-06
  19  8.11643
  20  6.30548
  21  6.3749e-06
  22  0.000159357
  23  6.85932e-06
  24  0.126784
  25  0.116632
**   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20022.14     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2158 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          60.650        3.7793        .16432E-06    .76630E-01
   2  Prefactor     4.2621        8.6962        .17321E-05   -.11604E-01
   3  Prefactor     19.385        12.889       -.95398E-06    .13003E-01
   4  norm          .55511E-10    3.7489        .23064E-06** at limit **
   5  norm          1.9635        3.2688       -.59394E-07    .26153E-02
   6  Prefactor     144.03        39.901        .67653E-07   -.23452E-02
   7  norm          1.0033        2.2514       -.19040E-05    .11405E-02
   8  Prefactor     9.9621        1.4257       -.11721E-06   -.13308E-01
   9  Prefactor      .0000        1.2020        .32587E-07** at limit **
  10  Prefactor     .80203        .52691        .32310E-07   -.16749E-02
  11  norm          .56083E-01    .36517       -.26537E-07** at limit **
  12  norm          .55511E-10    .55299       -.25554E-07** at limit **
  13  Prefactor      .0000        .89445        .57077E-07** at limit **
  14  Prefactor     18.764        1.5972       -.12929E-06    .24453E-01
  15  Prefactor      .0000        2.8435       -.14112E-06** at limit **
  16  Prefactor      .0000        1.7524       -.91383E-07** at limit **
  17  norm          1.6372        .58862        .10329E-07    .89877E-02
  18  Prefactor      .0000        .88389        .17773E-07** at limit **
  19  Prefactor     6.5314        1.0496        .37566E-07   -.98936E-02
  20  norm          1.3306        7.4827        .13837E-05   -.14271E-02
  21  Prefactor     .55511E-10    .33333       -.73697E-08** at limit **
  22  Prefactor     .38858E-09    16.295        .77895E-07** at limit **
  23  Prefactor     .55511E-10    .38096        .93241E-07** at limit **
  24  Normalizat    1.6249        .14992       -.25076E-05   -.36397E-03
  25  Prefactor     .88012        .13980        .19623E-05   -.12334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 60.6498
  Prefactor  = 4.26206
  Prefactor  = 19.3847
  norm       = 5.55112e-11
  norm       = 1.9635
  Prefactor  = 144.029
  norm       = 1.00329
  Prefactor  = 9.9621
  Prefactor  = 0
  Prefactor  = 0.802029
  norm       = 0.0560834
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 18.764
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.63716
  Prefactor  = 0
  Prefactor  = 6.53145
  norm       = 1.33063
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88578e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.62486
  Prefactor  = 0.880119
e GAL_V02
Working on...
/lscratch/kocevski/27248818/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits.....................!
real 52.17
user 50.69
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27248818/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits', '/lscratch/kocevski/27248818/ft2_4FGL_J1516.8+3651_weekly_bin929.fits', expMap='/lscratch/kocevski/27248818/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', expCube='/lscratch/kocevski/27248818/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27248818/Model_4FGL_J1516.8+3651_weekly_bin929.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): /lscratch/kocevski/27248818/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits
Spacecraft file(s): /lscratch/kocevski/27248818/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure map: /lscratch/kocevski/27248818/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure cube: /lscratch/kocevski/27248818/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27248818/Model_4FGL_J1516.8+3651_weekly_bin929.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) = 20022.286317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    60.500       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.2786       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.390       1.0000          .0000       .10000E+07
     4 'norm      '    .75496E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.9655       1.0000          .0000       .10000E+07
     6 'Prefactor '    141.38       1.0000          .0000       .10000E+07
     7 'norm      '    1.0008       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.006       1.0000          .0000       .10000E+07
     9 'Prefactor '    .37951E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .79168       1.0000          .0000       .10000E+07
    11 'norm      '    .55741E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .81646E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32007E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.670       1.0000          .0000       .10000E+07
    15 'Prefactor '    .64504E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11898E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.6358       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23633E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.5224       1.0000          .0000       .10000E+07
    20 'norm      '    1.3348       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18191E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .25722E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .30143E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.6274       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 e GAL_V02
Working on...
/lscratch/kocevski/27248840/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits.....................!
real 47.93
user 46.51
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27248840/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits', '/lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits', expMap='/lscratch/kocevski/27248840/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', expCube='/lscratch/kocevski/27248840/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27248840/Model_4FGL_J1516.8+3651_weekly_bin929.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): /lscratch/kocevski/27248840/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits
Spacecraft file(s): /lscratch/kocevski/27248840/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure map: /lscratch/kocevski/27248840/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure cube: /lscratch/kocevski/27248840/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27248840/Model_4FGL_J1516.8+3651_weekly_bin929.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) = 20022.286317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    60.500       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.2786       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.390       1.0000          .0000       .10000E+07
     4 'norm      '    .75496E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.9655       1.0000          .0000       .10000E+07
     6 'Prefactor '    141.38       1.0000          .0000       .10000E+07
     7 'norm      '    1.0008       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.006       1.0000          .0000       .10000E+07
     9 'Prefactor '    .37951E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .79168       1.0000          .0000       .10000E+07
    11 'norm      '    .55741E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .81646E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32007E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.670       1.0000          .0000       .10000E+07
    15 'Prefactor '    .64504E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11898E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.6358       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23633E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.5224       1.0000          .0000       .10000E+07
    20 'norm      '    1.3348       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18191E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .25722E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .30143E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.6274       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
  **********
 **   18 **HESSE 
 **********

 FCN=   20022.14     FROM HESSE     STATUS=OK           483 CALLS     2641 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          60.650        11.108        .12857E-03   -1.5552    
   2  Prefactor     4.2621        9.6167        .48683E-03   -1.5667    
   3  Prefactor     19.385        13.211        .22717E-03   -1.5620    
   4  norm          .55511E-10    3.7528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9635        3.3099        .73947E-03   -1.5680    
   6  Prefactor     144.03        39.566        .84107E-04   -1.5468    
   7  norm          1.0033        2.2713        .43793E-03   -1.5688    
   8  Prefactor     9.9621        8.0638        .31652E-03   -1.5645    
   9  Prefactor      .0000        1.2049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80203        3.1095        .53557E-03   -1.5690    
  11  norm          .56083E-01    .19140        .32068E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    .55502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .89586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.764        19.875        .23152E-03   -1.5621    
  15  Prefactor      .0000        2.8488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.7670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6372        .59210        .82614E-03   -1.5682    
  18  Prefactor      .0000        .88551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5314        8.1164        .39272E-03   -1.5657    
  20  norm          1.3306        7.4700        .94939E-03   -1.5685    
  21  Prefactor     .55511E-10    .33844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .38858E-09    16.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    .38283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6249        .12676        .57823E-01   -.74328    
  25  Prefactor     .88012        .11660        .72406E-01   -.96839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37552e-06
Minuit parameter uncertainties:
  1  11.1084
  2  9.61671
  3  13.2109
  4  3.32346e-05
  5  3.30992
  6  39.5659
  7  2.27132
  8  8.06381
  9  1.05721e-05
  10  3.10953
  11  0.191397
  12  9.27069e-06
  13  5.05153e-06
  14  19.8755
  15  1.30266e-05
  16  3.13445e-06
  17  0.592097
  18  5.59501e-06
  19  8.11643
  20  6.30548
  21  6.3749e-06
  22  0.000159357
  23  6.85932e-06
  24  0.126784
  25  0.116632
**   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20022.14     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2158 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          60.650        3.7793        .16432E-06    .76630E-01
   2  Prefactor     4.2621        8.6962        .17321E-05   -.11604E-01
   3  Prefactor     19.385        12.889       -.95398E-06    .13003E-01
   4  norm          .55511E-10    3.7489        .23064E-06** at limit **
   5  norm          1.9635        3.2688       -.59394E-07    .26153E-02
   6  Prefactor     144.03        39.901        .67653E-07   -.23452E-02
   7  norm          1.0033        2.2514       -.19040E-05    .11405E-02
   8  Prefactor     9.9621        1.4257       -.11721E-06   -.13308E-01
   9  Prefactor      .0000        1.2020        .32587E-07** at limit **
  10  Prefactor     .80203        .52691        .32310E-07   -.16749E-02
  11  norm          .56083E-01    .36517       -.26537E-07** at limit **
  12  norm          .55511E-10    .55299       -.25554E-07** at limit **
  13  Prefactor      .0000        .89445        .57077E-07** at limit **
  14  Prefactor     18.764        1.5972       -.12929E-06    .24453E-01
  15  Prefactor      .0000        2.8435       -.14112E-06** at limit **
  16  Prefactor      .0000        1.7524       -.91383E-07** at limit **
  17  norm          1.6372        .58862        .10329E-07    .89877E-02
  18  Prefactor      .0000        .88389        .17773E-07** at limit **
  19  Prefactor     6.5314        1.0496        .37566E-07   -.98936E-02
  20  norm          1.3306        7.4827        .13837E-05   -.14271E-02
  21  Prefactor     .55511E-10    .33333       -.73697E-08** at limit **
  22  Prefactor     .38858E-09    16.295        .77895E-07** at limit **
  23  Prefactor     .55511E-10    .38096        .93241E-07** at limit **
  24  Normalizat    1.6249        .14992       -.25076E-05   -.36397E-03
  25  Prefactor     .88012        .13980        .19623E-05   -.12334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 60.6498
  Prefactor  = 4.26206
  Prefactor  = 19.3847
  norm       = 5.55112e-11
  norm       = 1.9635
  Prefactor  = 144.029
  norm       = 1.00329
  Prefactor  = 9.9621
  Prefactor  = 0
  Prefactor  = 0.802029
  norm       = 0.0560834
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 18.764
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.63716
  Prefactor  = 0
  Prefactor  = 6.53145
  norm       = 1.33063
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88578e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.62486
  Prefactor  = 0.880119
**   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20022.14     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2158 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          60.650        3.7793        .16432E-06    .76630E-01
   2  Prefactor     4.2621        8.6962        .17321E-05   -.11604E-01
   3  Prefactor     19.385        12.889       -.95398E-06    .13003E-01
   4  norm          .55511E-10    3.7489        .23064E-06** at limit **
   5  norm          1.9635        3.2688       -.59394E-07    .26153E-02
   6  Prefactor     144.03        39.901        .67653E-07   -.23452E-02
   7  norm          1.0033        2.2514       -.19040E-05    .11405E-02
   8  Prefactor     9.9621        1.4257       -.11721E-06   -.13308E-01
   9  Prefactor      .0000        1.2020        .32587E-07** at limit **
  10  Prefactor     .80203        .52691        .32310E-07   -.16749E-02
  11  norm          .56083E-01    .36517       -.26537E-07** at limit **
  12  norm          .55511E-10    .55299       -.25554E-07** at limit **
  13  Prefactor      .0000        .89445        .57077E-07** at limit **
  14  Prefactor     18.764        1.5972       -.12929E-06    .24453E-01
  15  Prefactor      .0000        2.8435       -.14112E-06** at limit **
  16  Prefactor      .0000        1.7524       -.91383E-07** at limit **
  17  norm          1.6372        .58862        .10329E-07    .89877E-02
  18  Prefactor      .0000        .88389        .17773E-07** at limit **
  19  Prefactor     6.5314        1.0496        .37566E-07   -.98936E-02
  20  norm          1.3306        7.4827        .13837E-05   -.14271E-02
  21  Prefactor     .55511E-10    .33333       -.73697E-08** at limit **
  22  Prefactor     .38858E-09    16.295        .77895E-07** at limit **
  23  Prefactor     .55511E-10    .38096        .93241E-07** at limit **
  24  Normalizat    1.6249        .14992       -.25076E-05   -.36397E-03
  25  Prefactor     .88012        .13980        .19623E-05   -.12334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 60.6498
  Prefactor  = 4.26206
  Prefactor  = 19.3847
  norm       = 5.55112e-11
  norm       = 1.9635
  Prefactor  = 144.029
  norm       = 1.00329
  Prefactor  = 9.9621
  Prefactor  = 0
  Prefactor  = 0.802029
  norm       = 0.0560834
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 18.764
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.63716
  Prefactor  = 0
  Prefactor  = 6.53145
  norm       = 1.33063
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88578e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.62486
  Prefactor  = 0.880119
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.876e+01  1.988e+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.801e-01  1.166e-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.625e+00  1.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.59e-09 +/- 8.04e-09
Energy Flux (Fixed Index): 3.47e-06 +/- 3.68e-06

TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 3.01447495686e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0022951105528 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27248793/likelihoodResults_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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) = 20021.6461088
delta logL = 0.493864800163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20021.610451
delta logL = 0.529522568533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.326       1.0000          .0000       .10000E+07
     2 'Index     '    1.5831       1.0000          .0000       10.000    
     3 'Normalizat'    1.6299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87651       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=   20021.61     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      277 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.325        32.045        .35181E-04    .44728E-02
   2  Index         1.5828        .53801        .15047E-01    .21672E-03
   3  Normalizat    1.6299        .14437        .25534E-03   -.10689E-03
   4  Prefactor     .87651        .13918        .32094E-03   -.10089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3246
  Index      = 1.58278
  Normalizat = 1.62988
  Prefactor  = 0.876508
 **********
 **   18 **HESSE 
 **********

 FCN=   20021.61     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.325        32.092        .70363E-05   -1.5594    
   2  Index         1.5828        .53919        .60187E-03   -.75247    
   3  Normalizat    1.6299        .14450        .51068E-04   -.74191    
   4  Prefactor     .87651        .13931        .12837E-04   -.96967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74474e-09
Minuit parameter uncertainties:
  1  32.0922
  2  0.541168
  3  0.144534
  4  0.139364
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) = 20021.6104508
delta logL = 0.529522795296

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.232e+01  3.209e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  1.583e+00  5.412e-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.765e-01  1.394e-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.630e+00  1.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.58 +/- 0.54
Photon Flux (Free Index): 4.73e-09 +/- 5.79e-09
Energy Flux (Free Index): 1.13e-05 +/- 1.66e-05

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 /lscratch/kocevski/27248793/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-03', comment='SUCCESS', photon_flux='7.59e-09', energy_flux2='1.13e-05', photon_flux_error='8.04e-09', dlogl='5.30e-01', energy_flux='3.47e-06', photon_flux2='4.73e-09', job_status='DONE', time_completed='2026-05-26 11:58:17.782876', photon_index_error2='0.54', photon_index2='1.58', ts='1.96', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.01e-08', energy_flux_error2='1.66e-05', EG='1.62', time_epoch_completed='1779821897.78', return_code='0', job_id='27248793', GAL2='0.88', EG2='1.63', return_code2='0', energy_flux_error='3.68e-06', photon_flux_error2='5.79e-09', ts2='3.02', photon_index='2.19' WHERE bin_id='929' AND source_name='4FGL J1516.8+3651' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 26 11:58:17 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   20022.14     FROM HESSE     STATUS=OK           483 CALLS     2641 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          60.650        11.108        .12857E-03   -1.5552    
   2  Prefactor     4.2621        9.6167        .48683E-03   -1.5667    
   3  Prefactor     19.385        13.211        .22717E-03   -1.5620    
   4  norm          .55511E-10    3.7528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9635        3.3099        .73947E-03   -1.5680    
   6  Prefactor     144.03        39.566        .84107E-04   -1.5468    
   7  norm          1.0033        2.2713        .43793E-03   -1.5688    
   8  Prefactor     9.9621        8.0638        .31652E-03   -1.5645    
   9  Prefactor      .0000        1.2049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80203        3.1095        .53557E-03   -1.5690    
  11  norm          .56083E-01    .19140        .32068E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    .55502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .89586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.764        19.875        .23152E-03   -1.5621    
  15  Prefactor      .0000        2.8488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.7670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6372        .59210        .82614E-03   -1.5682    
  18  Prefactor      .0000        .88551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5314        8.1164        .39272E-03   -1.5657    
  20  norm          1.3306        7.4700        .94939E-03   -1.5685    
  21  Prefactor     .55511E-10    .33844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .38858E-09    16.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    .38283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6249        .12676        .57823E-01   -.74328    
  25  Prefactor     .88012        .11660        .72406E-01   -.96839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37552e-06
Minuit parameter uncertainties:
  1  11.1084
  2  9.61671
  3  13.2109
  4  3.32346e-05
  5  3.30992
  6  39.5659
  7  2.27132
  8  8.06381
  9  1.05721e-05
  10  3.10953
  11  0.191397
  12  9.27069e-06
  13  5.05153e-06
  14  19.8755
  15  1.30266e-05
  16  3.13445e-06
  17  0.592097
  18  5.59501e-06
  19  8.11643
  20  6.30548
  21  6.3749e-06
  22  0.000159357
  23  6.85932e-06
  24  0.126784
  25  0.116632
 **********
 **   18 **HESSE 
 **********

 FCN=   20022.14     FROM HESSE     STATUS=OK           483 CALLS     2641 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          60.650        11.108        .12857E-03   -1.5552    
   2  Prefactor     4.2621        9.6167        .48683E-03   -1.5667    
   3  Prefactor     19.385        13.211        .22717E-03   -1.5620    
   4  norm          .55511E-10    3.7528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9635        3.3099        .73947E-03   -1.5680    
   6  Prefactor     144.03        39.566        .84107E-04   -1.5468    
   7  norm          1.0033        2.2713        .43793E-03   -1.5688    
   8  Prefactor     9.9621        8.0638        .31652E-03   -1.5645    
   9  Prefactor      .0000        1.2049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80203        3.1095        .53557E-03   -1.5690    
  11  norm          .56083E-01    .19140        .32068E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    .55502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .89586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.764        19.875        .23152E-03   -1.5621    
  15  Prefactor      .0000        2.8488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.7670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6372        .59210        .82614E-03   -1.5682    
  18  Prefactor      .0000        .88551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5314        8.1164        .39272E-03   -1.5657    
  20  norm          1.3306        7.4700        .94939E-03   -1.5685    
  21  Prefactor     .55511E-10    .33844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .38858E-09    16.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    .38283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6249        .12676        .57823E-01   -.74328    
  25  Prefactor     .88012        .11660        .72406E-01   -.96839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37552e-06
Minuit parameter uncertainties:
  1  11.1084
  2  9.61671
  3  13.2109
  4  3.32346e-05
  5  3.30992
  6  39.5659
  7  2.27132
  8  8.06381
  9  1.05721e-05
  10  3.10953
  11  0.191397
  12  9.27069e-06
  13  5.05153e-06
  14  19.8755
  15  1.30266e-05
  16  3.13445e-06
  17  0.592097
  18  5.59501e-06
  19  8.11643
  20  6.30548
  21  6.3749e-06
  22  0.000159357
  23  6.85932e-06
  24  0.126784
  25  0.116632
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.876e+01  1.988e+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.801e-01  1.166e-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.625e+00  1.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.59e-09 +/- 8.04e-09
Energy Flux (Fixed Index): 3.47e-06 +/- 3.68e-06

TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 3.01447495686e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0022951105528 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27248814/likelihoodResults_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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) = 20021.6461088
delta logL = 0.493864800163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20021.610451
delta logL = 0.529522568533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.326       1.0000          .0000       .10000E+07
     2 'Index     '    1.5831       1.0000          .0000       10.000    
     3 'Normalizat'    1.6299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87651       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=   20021.61     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      277 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.325        32.045        .35181E-04    .44728E-02
   2  Index         1.5828        .53801        .15047E-01    .21672E-03
   3  Normalizat    1.6299        .14437        .25534E-03   -.10689E-03
   4  Prefactor     .87651        .13918        .32094E-03   -.10089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3246
  Index      = 1.58278
  Normalizat = 1.62988
  Prefactor  = 0.876508
 **********
 **   18 **HESSE 
 **********

 FCN=   20021.61     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.325        32.092        .70363E-05   -1.5594    
   2  Index         1.5828        .53919        .60187E-03   -.75247    
   3  Normalizat    1.6299        .14450        .51068E-04   -.74191    
   4  Prefactor     .87651        .13931        .12837E-04   -.96967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74474e-09
Minuit parameter uncertainties:
  1  32.0922
  2  0.541168
  3  0.144534
  4  0.139364
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) = 20021.6104508
delta logL = 0.529522795296

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.232e+01  3.209e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  1.583e+00  5.412e-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.765e-01  1.394e-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.630e+00  1.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.58 +/- 0.54
Photon Flux (Free Index): 4.73e-09 +/- 5.79e-09
Energy Flux (Free Index): 1.13e-05 +/- 1.66e-05

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 /lscratch/kocevski/27248814/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-03', comment='SUCCESS', photon_flux='7.59e-09', energy_flux2='1.13e-05', photon_flux_error='8.04e-09', dlogl='5.30e-01', energy_flux='3.47e-06', photon_flux2='4.73e-09', job_status='DONE', time_completed='2026-05-26 11:59:10.923253', photon_index_error2='0.54', photon_index2='1.58', ts='1.96', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.01e-08', energy_flux_error2='1.66e-05', EG='1.62', time_epoch_completed='1779821950.92', return_code='0', job_id='27248814', GAL2='0.88', EG2='1.63', return_code2='0', energy_flux_error='3.68e-06', photon_flux_error2='5.79e-09', ts2='3.02', photon_index='2.19' WHERE bin_id='929' AND source_name='4FGL J1516.8+3651' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 26 11:59:11 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/27248912/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits.....................!
real 54.65
user 53.11
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27248912/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits', '/lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits', expMap='/lscratch/kocevski/27248912/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', expCube='/lscratch/kocevski/27248912/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27248912/Model_4FGL_J1516.8+3651_weekly_bin929.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): /lscratch/kocevski/27248912/ft1_filtered_4FGL_J1516.8+3651_weekly_bin929.fits
Spacecraft file(s): /lscratch/kocevski/27248912/ft2_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure map: /lscratch/kocevski/27248912/expmap_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
Exposure cube: /lscratch/kocevski/27248912/ltcube_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27248912/Model_4FGL_J1516.8+3651_weekly_bin929.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) = 20022.286317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    60.500       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.2786       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.390       1.0000          .0000       .10000E+07
     4 'norm      '    .75496E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.9655       1.0000          .0000       .10000E+07
     6 'Prefactor '    141.38       1.0000          .0000       .10000E+07
     7 'norm      '    1.0008       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.006       1.0000          .0000       .10000E+07
     9 'Prefactor '    .37951E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .79168       1.0000          .0000       .10000E+07
    11 'norm      '    .55741E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .81646E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32007E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.670       1.0000          .0000       .10000E+07
    15 'Prefactor '    .64504E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11898E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.6358       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23633E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.5224       1.0000          .0000       .10000E+07
    20 'norm      '    1.3348       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18191E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .25722E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .30143E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.6274       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 *Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.876e+01  1.988e+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.801e-01  1.166e-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.625e+00  1.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.59e-09 +/- 8.04e-09
Energy Flux (Fixed Index): 3.47e-06 +/- 3.68e-06

TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 3.01447495686e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0022951105528 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27248840/likelihoodResults_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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) = 20021.6461088
delta logL = 0.493864800163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20021.610451
delta logL = 0.529522568533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.326       1.0000          .0000       .10000E+07
     2 'Index     '    1.5831       1.0000          .0000       10.000    
     3 'Normalizat'    1.6299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87651       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=   20021.61     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      277 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.325        32.045        .35181E-04    .44728E-02
   2  Index         1.5828        .53801        .15047E-01    .21672E-03
   3  Normalizat    1.6299        .14437        .25534E-03   -.10689E-03
   4  Prefactor     .87651        .13918        .32094E-03   -.10089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3246
  Index      = 1.58278
  Normalizat = 1.62988
  Prefactor  = 0.876508
 **********
 **   18 **HESSE 
 **********

 FCN=   20021.61     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.325        32.092        .70363E-05   -1.5594    
   2  Index         1.5828        .53919        .60187E-03   -.75247    
   3  Normalizat    1.6299        .14450        .51068E-04   -.74191    
   4  Prefactor     .87651        .13931        .12837E-04   -.96967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74474e-09
Minuit parameter uncertainties:
  1  32.0922
  2  0.541168
  3  0.144534
  4  0.139364
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) = 20021.6104508
delta logL = 0.529522795296

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.232e+01  3.209e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  1.583e+00  5.412e-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.765e-01  1.394e-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.630e+00  1.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.58 +/- 0.54
Photon Flux (Free Index): 4.73e-09 +/- 5.79e-09
Energy Flux (Free Index): 1.13e-05 +/- 1.66e-05

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 /lscratch/kocevski/27248840/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-03', comment='SUCCESS', photon_flux='7.59e-09', energy_flux2='1.13e-05', photon_flux_error='8.04e-09', dlogl='5.30e-01', energy_flux='3.47e-06', photon_flux2='4.73e-09', job_status='DONE', time_completed='2026-05-26 12:00:13.120477', photon_index_error2='0.54', photon_index2='1.58', ts='1.96', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.01e-08', energy_flux_error2='1.66e-05', EG='1.62', time_epoch_completed='1779822013.12', return_code='0', job_id='27248840', GAL2='0.88', EG2='1.63', return_code2='0', energy_flux_error='3.68e-06', photon_flux_error2='5.79e-09', ts2='3.02', photon_index='2.19' WHERE bin_id='929' AND source_name='4FGL J1516.8+3651' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 26 12:00:13 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.876e+01  1.988e+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.801e-01  1.166e-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.625e+00  1.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.59e-09 +/- 8.04e-09
Energy Flux (Fixed Index): 3.47e-06 +/- 3.68e-06

TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 3.01447495686e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0022951105528 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27248818/likelihoodResults_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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) = 20021.6461088
delta logL = 0.493864800163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20021.610451
delta logL = 0.529522568533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.326       1.0000          .0000       .10000E+07
     2 'Index     '    1.5831       1.0000          .0000       10.000    
     3 'Normalizat'    1.6299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87651       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=   20021.61     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      277 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.325        32.045        .35181E-04    .44728E-02
   2  Index         1.5828        .53801        .15047E-01    .21672E-03
   3  Normalizat    1.6299        .14437        .25534E-03   -.10689E-03
   4  Prefactor     .87651        .13918        .32094E-03   -.10089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3246
  Index      = 1.58278
  Normalizat = 1.62988
  Prefactor  = 0.876508
*   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20022.14     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2158 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          60.650        3.7793        .16432E-06    .76630E-01
   2  Prefactor     4.2621        8.6962        .17321E-05   -.11604E-01
   3  Prefactor     19.385        12.889       -.95398E-06    .13003E-01
   4  norm          .55511E-10    3.7489        .23064E-06** at limit **
   5  norm          1.9635        3.2688       -.59394E-07    .26153E-02
   6  Prefactor     144.03        39.901        .67653E-07   -.23452E-02
   7  norm          1.0033        2.2514       -.19040E-05    .11405E-02
   8  Prefactor     9.9621        1.4257       -.11721E-06   -.13308E-01
   9  Prefactor      .0000        1.2020        .32587E-07** at limit **
  10  Prefactor     .80203        .52691        .32310E-07   -.16749E-02
  11  norm          .56083E-01    .36517       -.26537E-07** at limit **
  12  norm          .55511E-10    .55299       -.25554E-07** at limit **
  13  Prefactor      .0000        .89445        .57077E-07** at limit **
  14  Prefactor     18.764        1.5972       -.12929E-06    .24453E-01
  15  Prefactor      .0000        2.8435       -.14112E-06** at limit **
  16  Prefactor      .0000        1.7524       -.91383E-07** at limit **
  17  norm          1.6372        .58862        .10329E-07    .89877E-02
  18  Prefactor      .0000        .88389        .17773E-07** at limit **
  19  Prefactor     6.5314        1.0496        .37566E-07   -.98936E-02
  20  norm          1.3306        7.4827        .13837E-05   -.14271E-02
  21  Prefactor     .55511E-10    .33333       -.73697E-08** at limit **
  22  Prefactor     .38858E-09    16.295        .77895E-07** at limit **
  23  Prefactor     .55511E-10    .38096        .93241E-07** at limit **
  24  Normalizat    1.6249        .14992       -.25076E-05   -.36397E-03
  25  Prefactor     .88012        .13980        .19623E-05   -.12334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 60.6498
  Prefactor  = 4.26206
  Prefactor  = 19.3847
  norm       = 5.55112e-11
  norm       = 1.9635
  Prefactor  = 144.029
  norm       = 1.00329
  Prefactor  = 9.9621
  Prefactor  = 0
  Prefactor  = 0.802029
  norm       = 0.0560834
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 18.764
*HESSE 
 **********

 FCN=   20021.61     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.325        32.092        .70363E-05   -1.5594    
   2  Index         1.5828        .53919        .60187E-03   -.75247    
   3  Normalizat    1.6299        .14450        .51068E-04   -.74191    
   4  Prefactor     .87651        .13931        .12837E-04   -.96967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74474e-09
  Prefactor  = 0
uncertainties:
  Prefactor  = 0
  norm       = 1.63716
  Prefactor  = 0
  Prefactor  = 6.53145
  norm       = 1.33063
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88578e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.62486
  Prefactor  = 0.880119
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) = 20021.6104508
delta logL = 0.529522795296

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.232e+01  3.209e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  1.583e+00  5.412e-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.765e-01  1.394e-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.630e+00  1.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.58 +/- 0.54
Photon Flux (Free Index): 4.73e-09 +/- 5.79e-09
Energy Flux (Free Index): 1.13e-05 +/- 1.66e-05

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 /lscratch/kocevski/27248818/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-03', comment='SUCCESS', photon_flux='7.59e-09', energy_flux2='1.13e-05', photon_flux_error='8.04e-09', dlogl='5.30e-01', energy_flux='3.47e-06', photon_flux2='4.73e-09', job_status='DONE', time_completed='2026-05-26 12:00:23.509230', photon_index_error2='0.54', photon_index2='1.58', ts='1.96', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.01e-08', energy_flux_error2='1.66e-05', EG='1.62', time_epoch_completed='1779822023.51', return_code='0', job_id='27248818', GAL2='0.88', EG2='1.63', return_code2='0', energy_flux_error='3.68e-06', photon_flux_error2='5.79e-09', ts2='3.02', photon_index='2.19' WHERE bin_id='929' AND source_name='4FGL J1516.8+3651' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 26 12:00:23 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   20022.14     FROM HESSE     STATUS=OK           483 CALLS     2641 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          60.650        11.108        .12857E-03   -1.5552    
   2  Prefactor     4.2621        9.6167        .48683E-03   -1.5667    
   3  Prefactor     19.385        13.211        .22717E-03   -1.5620    
   4  norm          .55511E-10    3.7528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9635        3.3099        .73947E-03   -1.5680    
   6  Prefactor     144.03        39.566        .84107E-04   -1.5468    
   7  norm          1.0033        2.2713        .43793E-03   -1.5688    
   8  Prefactor     9.9621        8.0638        .31652E-03   -1.5645    
   9  Prefactor      .0000        1.2049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80203        3.1095        .53557E-03   -1.5690    
  11  norm          .56083E-01    .19140        .32068E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    .55502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .89586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.764        19.875        .23152E-03   -1.5621    
  15  Prefactor      .0000        2.8488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.7670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6372        .59210        .82614E-03   -1.5682    
  18  Prefactor      .0000        .88551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5314        8.1164        .39272E-03   -1.5657    
  20  norm          1.3306        7.4700        .94939E-03   -1.5685    
  21  Prefactor     .55511E-10    .33844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .38858E-09    16.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    .38283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6249        .12676        .57823E-01   -.74328    
  25  Prefactor     .88012        .11660        .72406E-01   -.96839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37552e-06
Minuit parameter uncertainties:
  1  11.1084
  2  9.61671
  3  13.2109
  4  3.32346e-05
  5  3.30992
  6  39.5659
  7  2.27132
  8  8.06381
  9  1.05721e-05
  10  3.10953
  11  0.191397
  12  9.27069e-06
  13  5.05153e-06
  14  19.8755
  15  1.30266e-05
  16  3.13445e-06
  17  0.592097
  18  5.59501e-06
  19  8.11643
  20  6.30548
  21  6.3749e-06
  22  0.000159357
  23  6.85932e-06
  24  0.126784
  25  0.116632
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.876e+01  1.988e+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.801e-01  1.166e-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.625e+00  1.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.59e-09 +/- 8.04e-09
Energy Flux (Fixed Index): 3.47e-06 +/- 3.68e-06

TS (Fixed Index): 1.96
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 3.01447495686e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0022951105528 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27248912/likelihoodResults_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.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) = 20021.6461088
delta logL = 0.493864800163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20021.610451
delta logL = 0.529522568533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.326       1.0000          .0000       .10000E+07
     2 'Index     '    1.5831       1.0000          .0000       10.000    
     3 'Normalizat'    1.6299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87651       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=   20021.61     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      277 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.325        32.045        .35181E-04    .44728E-02
   2  Index         1.5828        .53801        .15047E-01    .21672E-03
   3  Normalizat    1.6299        .14437        .25534E-03   -.10689E-03
   4  Prefactor     .87651        .13918        .32094E-03   -.10089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3246
  Index      = 1.58278
  Normalizat = 1.62988
  Prefactor  = 0.876508
 **********
 **   18 **HESSE 
 **********

 FCN=   20021.61     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.325        32.092        .70363E-05   -1.5594    
   2  Index         1.5828        .53919        .60187E-03   -.75247    
   3  Normalizat    1.6299        .14450        .51068E-04   -.74191    
   4  Prefactor     .87651        .13931        .12837E-04   -.96967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74474e-09
Minuit parameter uncertainties:
  1  32.0922
  2  0.541168
  3  0.144534
  4  0.139364
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) = 20021.6104508
delta logL = 0.529522795296

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.232e+01  3.209e+01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  1.583e+00  5.412e-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.765e-01  1.394e-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.630e+00  1.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.58 +/- 0.54
Photon Flux (Free Index): 4.73e-09 +/- 5.79e-09
Energy Flux (Free Index): 1.13e-05 +/- 1.66e-05

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 /lscratch/kocevski/27248912/cmap_HighResolution_800841601_801446401_4FGL_J1516.8+3651_weekly_bin929.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-03', comment='SUCCESS', photon_flux='7.59e-09', energy_flux2='1.13e-05', photon_flux_error='8.04e-09', dlogl='5.30e-01', energy_flux='3.47e-06', photon_flux2='4.73e-09', job_status='DONE', time_completed='2026-05-26 12:03:09.662395', photon_index_error2='0.54', photon_index2='1.58', ts='1.96', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.01e-08', energy_flux_error2='1.66e-05', EG='1.62', time_epoch_completed='1779822189.66', return_code='0', job_id='27248912', GAL2='0.88', EG2='1.63', return_code2='0', energy_flux_error='3.68e-06', photon_flux_error2='5.79e-09', ts2='3.02', photon_index='2.19' WHERE bin_id='929' AND source_name='4FGL J1516.8+3651' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 26 12:03:09 PDT 2026

