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


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


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

number of points = 17150
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin926
RA = 29.8858, Dec = 10.7737
tmin = 799027201, tmax = 799632001
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='26194889', job_status='RUN', time_executed='2026-05-05 00:08:46.770489', time_epoch_executed='1777964926.77' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26194889

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26194889/ft1_4FGL_J0159.5+1046_weekly_bin926.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26194889/ft1_4FGL_J0159.5+1046_weekly_bin926.fits outfile=/lscratch/kocevski/26194889/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin926.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=799027201.0 tmax=799632001.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.05
user 3.15
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.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/26194889/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin926.fits evtable="EVENTS" outfile="/lscratch/kocevski/26194889/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.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 1.08
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 427

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26194889/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.fits sctable="SC_DATA" number of points = 17150
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin926
RA = 29.8858, Dec = 10.7737
tmin = 799027201, tmax = 799632001
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='26194897', job_status='RUN', time_executed='2026-05-05 00:08:46.755349', time_epoch_executed='1777964926.76' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26194897

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26194897/ft1_4FGL_J0159.5+1046_weekly_bin926.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26194897/ft1_4FGL_J0159.5+1046_weekly_bin926.fits outfile=/lscratch/kocevski/26194897/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin926.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=799027201.0 tmax=799632001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.95
user 3.15
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.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/26194897/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin926.fits evtable="EVENTS" outfile="/lscratch/kocevski/26194897/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.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 1.07
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 427

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26194897/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26194889/ltcube_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.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/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.fits
.....................!
real 19.79
user 18.62
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26194889/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26194889/ltcube_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits outfile=/lscratch/kocevski/26194889/expmap_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.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/26194889/ltcube_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits
.....................!
real 60.16
user 55.41
sys 3.59

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26194889/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits scfile=/lscratch/kocevski/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.fits outfile=/lscratch/kocevski/26194889/cmap_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.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=29.8858 yref=10.7737 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.94
user 0.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26194889/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits scfile=/lscratch/kocevski/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.fits outfile=/lscratch/kocevski/26194889/cmap_HighResolution_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.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=29.8858 yref=10.7737 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 1.03
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26194889/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26194889/Model_4FGL_J0159.5+1046_weekly_bin926.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 sourceoutfile=/lscratch/kocevski/26194897/ltcube_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.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/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.fits
.....................!
real 24.48
user 23.27
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26194897/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26194897/ltcube_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits outfile=/lscratch/kocevski/26194897/expmap_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.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/26194897/ltcube_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits
.....................!
real 59.94
user 55.37
sys 3.57

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26194897/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits scfile=/lscratch/kocevski/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.fits outfile=/lscratch/kocevski/26194897/cmap_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.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=29.8858 yref=10.7737 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 1.10
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26194897/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits scfile=/lscratch/kocevski/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.fits outfile=/lscratch/kocevski/26194897/cmap_HighResolution_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.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=29.8858 yref=10.7737 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 1.01
user 0.19
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26194897/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26194897/Model_4FGL_J0159.5+1046_weekly_bin926.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/26194889/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits.....................!
real 22.62
user 21.37
sys 0.46

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26194889/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits', '/lscratch/kocevski/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.fits', expMap='/lscratch/kocevski/26194889/expmap_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits', expCube='/lscratch/kocevski/26194889/ltcube_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26194889/Model_4FGL_J0159.5+1046_weekly_bin926.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26194889/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits
Spacecraft file(s): /lscratch/kocevski/26194889/ft2_4FGL_J0159.5+1046_weekly_bin926.fits
Exposure map: /lscratch/kocevski/26194889/expmap_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits
Exposure cube: /lscratch/kocevski/26194889/ltcube_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26194889/Model_4FGL_J0159.5+1046_weekly_bin926.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) = 5161.21762104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7302       1.0000          .0000       .10000E+07
     2 'Prefactor '    .14599E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .68836E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.4200       1.0000          .0000       .10000E+07
     5 'norm      '    .43854E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17486E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    12.054       1.0000          .0000       .10000E+07
     8 'norm      '    21.523       1.0000          .0000       .10000E+07
     9 'Prefactor '    19.659       1.0000          .0000       .10000E+07
    10 'norm      '    6.1707       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16503E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .14599E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .82325E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    39.380       1.0000          .0000       .10000E+07
    15 'Prefactor '    11.518       1.0000          .0000       .10000E+07
    16 'Prefactor '    .21638E-06   1.0000          .0000       .10000E+07
    17 'norm      '     .0000       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11902E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19373E-07   1.0000          .0000       .10000E+07
    20 'norm      '    20.941       1.0000          .0000       .10000E+07
    21 'Prefactor '    .85709E-07   1.0000          .0000       .10000E+07
    22 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.6130       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5161.128     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     2266 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7314        10.979       -.74064E-07    .96266E-04
   2  Prefactor      .0000        13.800        .34339E-06** at limit **
   3  Prefactor     .12236E-05    23.463       -.13614E-05** at limit **
   4  Prefactor     7.4214        5.1042       -.15676E-06    .10356E-02
   5  norm           .0000        10.619       -.10317E-06** at limit **
   6  Prefactor      .0000        6.4430        .31969E-06** at limit **
   7  Prefactor     12.054        6.9371        .17484E-06   -.21113E-03
   8  norm          21.523        15.321       -.29898E-07   -.40263E-03
   9  Prefactor     19.653        7.6509        .47211E-06   -.16054E-02
  10  norm          6.1714        1.6979        .10876E-06    .22846E-02
  11  Prefactor     .49960E-09    19.829        .23706E-05** at limit **
  12  Prefactor     .20539E-08    30.049        .26358E-05** at limit **
  13  Prefactor     .63283E-08    227.65        .13531E-04** at limit **
  14  Prefactor     39.372        1.7950        .34125E-07    .41967E-02
  15  Prefactor     11.501        3.3080       -.31185E-06    .79886E-02
  16  Prefactor     .41078E-08    22.428        .12281E-05** at limit **
  17  norm           .0000        .42879       -.16918E-07** at limit **
  18  Prefactor     .11290E-05    21.164       -.11777E-05** at limit **
  19  Prefactor     .11435E-07    28.118        .25638E-05** at limit **
  20  norm          20.932        1.2548        .39329E-07   -.36343E-03
  21  Prefactor     .58342E-07    31.926        .14577E-05** at limit **
  22  Normalizat    .10000E-01    .59755        .21490E-04** at limit **
  23  Prefactor     1.6130        .10819       -.24027E-05    .11755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.73137
  Prefactor  = 0
  Prefactor  = 1.22363e-06
  Prefactor  = 7.42136
  norm       = 0
  Prefactor  = 0
  Prefactor  = 12.0536
  norm       = 21.5228
  Prefactor  = 19.6532
  norm       = 6.17138
  Prefactor  = 4.996e-10
  Prefactor  = 2.05391e-09
  Prefactor  = 6.32827e-09
  Prefactor  = 39.3716
  Prefactor  = 11.5009
  Prefactor  = 4.10783e-09
  norm       = 0
  Prefactor  = 1.12899e-06
  Prefactor  = 1.14353e-08
  norm       = 20.9322
  Prefactor  = 5.83422e-08
  Normalizat = 0.01
  Prefactor  = 1.61304
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.128     FROM HESSE     STATUS=OK           414 CALLS     2680 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7314        11.003        .32101E-03   -1.5646    
   2  Prefactor      .0000        13.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12236E-05    45.930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4214        5.1548        .36795E-03   -1.5653    
   5  norm           .0000        10.641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        6.4461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.054        6.9583        .28828E-03   -1.5639    
   8  norm          21.523        15.341        .21561E-03   -1.5615    
   9  Prefactor     19.653        7.7135        .22561E-03   -1.5619    
  10  norm          6.1714        1.7100        .40390E-03   -1.5658    
  11  Prefactor     .49960E-09    19.863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .20539E-08    58.482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .63283E-08    227.79        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.372        28.289        .15937E-03   -1.5582    
  15  Prefactor     11.501        36.657        .29493E-03   -1.5640    
  16  Prefactor     .41078E-08    22.501        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .42941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11290E-05    40.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11435E-07    58.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.932        31.955        .21859E-03   -1.5616    
  21  Prefactor     .58342E-07    32.899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .14420        .32193       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.6130        .14562        .42695E-01   -.74421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5201e-08
Minuit parameter uncertainties:
  1  11.003
  2  3.32201e-05
  3  0.0149938
  4  5.15485
  5  2.8794e-05
  6  5.68853e-06
  7  6.95827
  8  15.341
  9  7.71347
  10  1.71002
  11  0.000200579
  12  0.000690715
  13  0.00240022
  14  28.2892
  15  36.6574
  16  0.000607763
  17  9.42196e-07
  18  0.0135156
  19  0.00164031
  20  31.9553
  21  0.0027703
  22  8.682e-07
  23  0.145661
 GAL_V02
Working on...
/lscratch/kocevski/26194897/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits.....................!
real 22.63
user 21.19
sys 0.57

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26194897/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits', '/lscratch/kocevski/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.fits', expMap='/lscratch/kocevski/26194897/expmap_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits', expCube='/lscratch/kocevski/26194897/ltcube_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26194897/Model_4FGL_J0159.5+1046_weekly_bin926.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26194897/ft1_filtered_4FGL_J0159.5+1046_weekly_bin926.fits
Spacecraft file(s): /lscratch/kocevski/26194897/ft2_4FGL_J0159.5+1046_weekly_bin926.fits
Exposure map: /lscratch/kocevski/26194897/expmap_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits
Exposure cube: /lscratch/kocevski/26194897/ltcube_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26194897/Model_4FGL_J0159.5+1046_weekly_bin926.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) = 5161.21762104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7302       1.0000          .0000       .10000E+07
     2 'Prefactor '    .14599E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .68836E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.4200       1.0000          .0000       .10000E+07
     5 'norm      '    .43854E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17486E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    12.054       1.0000          .0000       .10000E+07
     8 'norm      '    21.523       1.0000          .0000       .10000E+07
     9 'Prefactor '    19.659       1.0000          .0000       .10000E+07
    10 'norm      '    6.1707       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16503E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .14599E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .82325E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    39.380       1.0000          .0000       .10000E+07
    15 'Prefactor '    11.518       1.0000          .0000       .10000E+07
    16 'Prefactor '    .21638E-06   1.0000          .0000       .10000E+07
    17 'norm      '     .0000       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11902E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19373E-07   1.0000          .0000       .10000E+07
    20 'norm      '    20.941       1.0000          .0000       .10000E+07
    21 'Prefactor '    .85709E-07   1.0000          .0000       .10000E+07
    22 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.6130       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5161.128     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     2266 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7314        10.979       -.74064E-07    .96266E-04
   2  Prefactor      .0000        13.800        .34339E-06** at limit **
   3  Prefactor     .12236E-05    23.463       -.13614E-05** at limit **
   4  Prefactor     7.4214        5.1042       -.15676E-06    .10356E-02
   5  norm           .0000        10.619       -.10317E-06** at limit **
   6  Prefactor      .0000        6.4430        .31969E-06** at limit **
   7  Prefactor     12.054        6.9371        .17484E-06   -.21113E-03
   8  norm          21.523        15.321       -.29898E-07   -.40263E-03
   9  Prefactor     19.653        7.6509        .47211E-06   -.16054E-02
  10  norm          6.1714        1.6979        .10876E-06    .22846E-02
  11  Prefactor     .49960E-09    19.829        .23706E-05** at limit **
  12  Prefactor     .20539E-08    30.049        .26358E-05** at limit **
  13  Prefactor     .63283E-08    227.65        .13531E-04** at limit **
  14  Prefactor     39.372        1.7950        .34125E-07    .41967E-02
  15  Prefactor     11.501        3.3080       -.31185E-06    .79886E-02
  16  Prefactor     .41078E-08    22.428        .12281E-05** at limit **
  17  norm           .0000        .42879       -.16918E-07** at limit **
  18  Prefactor     .11290E-05    21.164       -.11777E-05** at limit **
  19  Prefactor     .11435E-07    28.118        .25638E-05** at limit **
  20  norm          20.932        1.2548        .39329E-07   -.36343E-03
  21  Prefactor     .58342E-07    31.926        .14577E-05** at limit **
  22  Normalizat    .10000E-01    .59755        .21490E-04** at limit **
  23  Prefactor     1.6130        .10819       -.24027E-05    .11755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.73137
  Prefactor  = 0
  Prefactor  = 1.22363e-06
  Prefactor  = 7.42136
  norm       = 0
  Prefactor  = 0
  Prefactor  = 12.0536
  norm       = 21.5228
  Prefactor  = 19.6532
  norm       = 6.17138
  Prefactor  = 4.996e-10
  Prefactor  = 2.05391e-09
  Prefactor  = 6.32827e-09
  Prefactor  = 39.3716
  Prefactor  = 11.5009
  Prefactor  = 4.10783e-09
  norm       = 0
  Prefactor  = 1.12899e-06
  Prefactor  = 1.14353e-08
  norm       = 20.9322
  Prefactor  = 5.83422e-08
  Normalizat = 0.01
  Prefactor  = 1.61304
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.128     FROM HESSE     STATUS=OK           414 CALLS     2680 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7314        11.003        .32101E-03   -1.5646    
   2  Prefactor      .0000        13.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12236E-05    45.930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4214        5.1548        .36795E-03   -1.5653    
   5  norm           .0000        10.641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        6.4461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.054        6.9583        .28828E-03   -1.5639    
   8  norm          21.523        15.341        .21561E-03   -1.5615    
   9  Prefactor     19.653        7.7135        .22561E-03   -1.5619    
  10  norm          6.1714        1.7100        .40390E-03   -1.5658    
  11  Prefactor     .49960E-09    19.863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .20539E-08    58.482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .63283E-08    227.79        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.372        28.289        .15937E-03   -1.5582    
  15  Prefactor     11.501        36.657        .29493E-03   -1.5640    
  16  Prefactor     .41078E-08    22.501        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .42941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11290E-05    40.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11435E-07    58.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.932        31.955        .21859E-03   -1.5616    
  21  Prefactor     .58342E-07    32.899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .14420        .32193       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.6130        .14562        .42695E-01   -.74421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5201e-08
Minuit parameter uncertainties:
  1  11.003
  2  3.32201e-05
  3  0.0149938
  4  5.15485
  5  2.8794e-05
  6  5.68853e-06
  7  6.95827
  8  15.341
  9  7.71347
  10  1.71002
  11  0.000200579
  12  0.000690715
  13  0.00240022
  14  28.2892
  15  36.6574
  16  0.000607763
  17  9.42196e-07
  18  0.0135156
  19  0.00164031
  20  31.9553
  21  0.0027703
  22  8.682e-07
  23  0.145661
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  0.000e+00  5.689e-06  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.613e+00  1.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.000e-02  8.682e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 1.1794764346e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0088420945461 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/26194889/likelihoodResults_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.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) = 5161.20287764
delta logL = -0.0750213305555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5161.12785847
delta logL = -2.16673925024e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19523E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.0281       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5161.128     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      209 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.3994        .98569E-07** at limit **
   2  Index         2.2764        2.6598        .19045E-05     .0000    
   3  Normalizat    .10000E-01    .60209        .87734E-04** at limit **
   4  Prefactor     1.6130        .98974E-01   -.82411E-05   -.20597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.27639
  Normalizat = 0.01
  Prefactor  = 1.61304
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5161.128     FROM HESSE     STATUS=FAILED        11 CALLS      220 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.3542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .57602        1.9306        .19045E-05   -.57606    
   3  Normalizat    .10000E-01    .25666        .87734E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6130        1.0389       -.82411E-05   -.74421    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.52168e-12
Minuit parameter uncertainties:
  1  8.5043e-06
  2  1.73626
  3  1.00527e-06
  4  1.05323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 5161.12785631
delta logL = 0.0

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  0.000e+00  8.504e-06  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  2.276e+00  1.736e+00  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.613e+00  1.053e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.000e-02  1.005e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 29.886 10.774

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/26194889/cmap_HighResolution_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2026-05-05 00:22:50.757892', job_id='26194889', GAL2='1.61', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1777965770.76', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.61', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='926' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  5 00:22:50 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  0.000e+00  5.689e-06  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.613e+00  1.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.000e-02  8.682e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 1.1794764346e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0088420945461 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/26194897/likelihoodResults_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.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) = 5161.20287764
delta logL = -0.0750213305555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5161.12785847
delta logL = -2.16673925024e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19523E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.0281       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5161.128     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      209 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.3994        .98569E-07** at limit **
   2  Index         2.2764        2.6598        .19045E-05     .0000    
   3  Normalizat    .10000E-01    .60209        .87734E-04** at limit **
   4  Prefactor     1.6130        .98974E-01   -.82411E-05   -.20597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.27639
  Normalizat = 0.01
  Prefactor  = 1.61304
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5161.128     FROM HESSE     STATUS=FAILED        11 CALLS      220 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.3542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .57602        1.9306        .19045E-05   -.57606    
   3  Normalizat    .10000E-01    .25666        .87734E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6130        1.0389       -.82411E-05   -.74421    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.52168e-12
Minuit parameter uncertainties:
  1  8.5043e-06
  2  1.73626
  3  1.00527e-06
  4  1.05323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 5161.12785631
delta logL = 0.0

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  0.000e+00  8.504e-06  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  2.276e+00  1.736e+00  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.613e+00  1.053e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.000e-02  1.005e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 29.886 10.774

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/26194897/cmap_HighResolution_799027201_799632001_4FGL_J0159.5+1046_weekly_bin926.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2026-05-05 00:23:02.389561', job_id='26194897', GAL2='1.61', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1777965782.39', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.61', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='926' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  5 00:23:02 PDT 2026

