/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_J0158.5-3932_weekly_bin926
RA = 29.646, Dec = -39.5358
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='26194892', job_status='RUN', time_executed='2026-05-05 00:08:46.755323', time_epoch_executed='1777964926.76' WHERE source_name='4FGL J0158.5-3932' and cadence='weekly' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26194892

Creating custom pfile directory:
/lscratch/kocevski/26194892/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/26194892/ft1_4FGL_J0158.5-3932_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/26194892/ft2_4FGL_J0158.5-3932_weekly_bin926.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26194892/ft1_4FGL_J0158.5-3932_weekly_bin926.fits outfile=/lscratch/kocevski/26194892/ft1_filteredMKT_4FGL_J0158.5-3932_weekly_bin926.fits ra=29.646 dec=-39.5358 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.99
user 3.18
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26194892/ft2_4FGL_J0158.5-3932_weekly_bin926.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26194892/ft2_4FGL_J0158.5-3932_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/26194892/ft1_filteredMKT_4FGL_J0158.5-3932_weekly_bin926.fits evtable="EVENTS" outfile="/lscratch/kocevski/26194892/ft1_filtered_4FGL_J0158.5-3932_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.16
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 1586

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26194892/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26194892/ft2_4FGL_J0158.5-3932_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_J0158.5-3932_weekly_bin926
RA = 29.646, Dec = -39.5358
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='26194883', job_status='RUN', time_executed='2026-05-05 00:08:46.414320', time_epoch_executed='1777964926.41' WHERE source_name='4FGL J0158.5-3932' and cadence='weekly' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26194883

Creating custom pfile directory:
/lscratch/kocevski/26194883/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/26194883/ft1_4FGL_J0158.5-3932_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/26194883/ft2_4FGL_J0158.5-3932_weekly_bin926.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26194883/ft1_4FGL_J0158.5-3932_weekly_bin926.fits outfile=/lscratch/kocevski/26194883/ft1_filteredMKT_4FGL_J0158.5-3932_weekly_bin926.fits ra=29.646 dec=-39.5358 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.31
user 3.16
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26194883/ft2_4FGL_J0158.5-3932_weekly_bin926.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26194883/ft2_4FGL_J0158.5-3932_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/26194883/ft1_filteredMKT_4FGL_J0158.5-3932_weekly_bin926.fits evtable="EVENTS" outfile="/lscratch/kocevski/26194883/ft1_filtered_4FGL_J0158.5-3932_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.13
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1586

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26194883/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26194883/ft2_4FGL_J0158.5-3932_weekly_bin926.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26194892/ltcube_799027201_799632001_4FGL_J0158.5-3932_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/26194892/ft2_4FGL_J0158.5-3932_weekly_bin926.fits
.....................!
real 24.35
user 23.21
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26194892/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194892/ft2_4FGL_J0158.5-3932_weekly_bin926.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26194892/ltcube_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits outfile=/lscratch/kocevski/26194892/expmap_799027201_799632001_4FGL_J0158.5-3932_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/26194892/ltcube_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits
.....................!
real 60.00
user 55.51
sys 3.43

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
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 174 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0158.5-3932 @ 29.646 -39.5358

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26194892/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits scfile=/lscratch/kocevski/26194892/ft2_4FGL_J0158.5-3932_weekly_bin926.fits outfile=/lscratch/kocevski/26194892/cmap_799027201_799632001_4FGL_J0158.5-3932_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.646 yref=-39.5358 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.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26194892/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits scfile=/lscratch/kocevski/26194892/ft2_4FGL_J0158.5-3932_weekly_bin926.fits outfile=/lscratch/kocevski/26194892/cmap_HighResolution_799027201_799632001_4FGL_J0158.5-3932_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.646 yref=-39.5358 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.96
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26194892/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194892/ft2_4FGL_J0158.5-3932_weekly_bin926.fi outfile=/lscratch/kocevski/26194883/ltcube_799027201_799632001_4FGL_J0158.5-3932_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/26194883/ft2_4FGL_J0158.5-3932_weekly_bin926.fits
.....................!
real 17.35
user 16.24
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26194883/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194883/ft2_4FGL_J0158.5-3932_weekly_bin926.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26194883/ltcube_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits outfile=/lscratch/kocevski/26194883/expmap_799027201_799632001_4FGL_J0158.5-3932_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/26194883/ltcube_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits
.....................!
real 60.00
user 55.52
sys 3.54

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
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 174 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0158.5-3932 @ 29.646 -39.5358

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26194883/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits scfile=/lscratch/kocevski/26194883/ft2_4FGL_J0158.5-3932_weekly_bin926.fits outfile=/lscratch/kocevski/26194883/cmap_799027201_799632001_4FGL_J0158.5-3932_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.646 yref=-39.5358 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.07
user 0.19
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26194883/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits scfile=/lscratch/kocevski/26194883/ft2_4FGL_J0158.5-3932_weekly_bin926.fits outfile=/lscratch/kocevski/26194883/cmap_HighResolution_799027201_799632001_4FGL_J0158.5-3932_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.646 yref=-39.5358 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.13
user 0.19
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26194883/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194883/ft2_4FGL_J0158.5-3932_weekly_bin926.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26194892/Model_4FGL_J0158.5-3932_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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/26194892/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits.....................!
real 102.58
user 100.31
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26194892/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits', '/lscratch/kocevski/26194892/ft2_4FGL_J0158.5-3932_weekly_bin926.fits', expMap='/lscratch/kocevski/26194892/expmap_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits', expCube='/lscratch/kocevski/26194892/ltcube_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26194892/Model_4FGL_J0158.5-3932_weekly_bin926.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0158.5-3932'

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  4.060e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.091e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26194892/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits
Spacecraft file(s): /lscratch/kocevski/26194892/ft2_4FGL_J0158.5-3932_weekly_bin926.fits
Exposure map: /lscratch/kocevski/26194892/expmap_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits
Exposure cube: /lscratch/kocevski/26194892/ltcube_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26194892/Model_4FGL_J0158.5-3932_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) = 17328.1754492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9231       1.0000          .0000       .10000E+07
     2 'Prefactor '    55.239       1.0000          .0000       .10000E+07
     3 'Prefactor '    .57689       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.9932       1.0000          .0000       .10000E+07
     5 'norm      '    .12240E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .37081E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .39012       1.0000          .0000       .10000E+07
     8 'norm      '    .30531E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.8142       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16829E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    27.100       1.0000          .0000       .10000E+07
    12 'norm      '    2.5891       1.0000          .0000       .10000E+07
    13 'Prefactor '    18.600       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25953E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11254E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.6193       1.0000          .0000       .10000E+07
    17 'norm      '    .22010E-06   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0526       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17328.06     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1164 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9233        1.8729        .32262E-07    .64617E-02
   2  Prefactor     55.042        14.762       -.12136E-06   -.25667E-01
   3  Prefactor     .57651        1.3980        .47019E-08    .78780E-03
   4  Prefactor     7.9796        5.0215       -.60469E-07    .75987E-03
   5  norm          .90705E-07    5.8099       -.13727E-06** at limit **
   6  Prefactor     .55511E-10    1.5718       -.10395E-06** at limit **
   7  Prefactor     .50422        131.26        .86066E-06   -.37859E-02
   8  norm           .0000        .17547       -.15558E-07** at limit **
   9  Prefactor     7.8074        6.7105       -.12078E-06    .96780E-01
  10  Prefactor     .12323E-07    6.6146       -.96262E-08** at limit **
  11  Prefactor     26.993        7.1884       -.10010E-06   -.10641    
  12  norm          2.5879        1.4390       -.20748E-08    .17676E-02
  13  Prefactor     18.592        6.8779       -.12038E-06   -.73025E-01
  14  Prefactor     .59674E-07    3.5712        .17303E-06** at limit **
  15  Prefactor     .15388E-06    3.8363       -.13955E-06** at limit **
  16  Prefactor     2.6204        1.8569       -.43976E-07   -.35242E-02
  17  norm           .0000        .42424        .39807E-07** at limit **
  18  Normalizat    1.0529        .12334        .16447E-05    .36189E-03
  19  Prefactor     1.0514        .13434       -.16844E-06    .26893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.9233
  Prefactor  = 55.0415
  Prefactor  = 0.576506
  Prefactor  = 7.9796
  norm       = 9.07052e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 0.504222
  norm       = 0
  Prefactor  = 7.80744
  Prefactor  = 1.23235e-08
  Prefactor  = 26.993
  norm       = 2.58793
  Prefactor  = 18.5916
  Prefactor  = 5.96745e-08
  Prefactor  = 1.53877e-07
  Prefactor  = 2.62042
  norm       = 0
  Normalizat = 1.05288
  Prefactor  = 1.05145
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/26194883/Model_4FGL_J0158.5-3932_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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/26194883/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits.....................!
real 103.72
user 101.75
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26194883/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits', '/lscratch/kocevski/26194883/ft2_4FGL_J0158.5-3932_weekly_bin926.fits', expMap='/lscratch/kocevski/26194883/expmap_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits', expCube='/lscratch/kocevski/26194883/ltcube_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26194883/Model_4FGL_J0158.5-3932_weekly_bin926.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0158.5-3932'

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  4.060e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.091e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26194883/ft1_filtered_4FGL_J0158.5-3932_weekly_bin926.fits
Spacecraft file(s): /lscratch/kocevski/26194883/ft2_4FGL_J0158.5-3932_weekly_bin926.fits
Exposure map: /lscratch/kocevski/26194883/expmap_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits
Exposure cube: /lscratch/kocevski/26194883/ltcube_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26194883/Model_4FGL_J0158.5-3932_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) = 17328.1754492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9231       1.0000          .0000       .10000E+07
     2 'Prefactor '    55.239       1.0000          .0000       .10000E+07
     3 'Prefactor '    .57689       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.9932       1.0000          .0000       .10000E+07
     5 'norm      '    .12240E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .37081E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .39012       1.0000          .0000       .10000E+07
     8 'norm      '    .30531E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.8142       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16829E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    27.100       1.0000          .0000       .10000E+07
    12 'norm      '    2.5891       1.0000          .0000       .10000E+07
    13 'Prefactor '    18.600       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25953E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11254E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.6193       1.0000          .0000       .10000E+07
    17 'norm      '    .22010E-06   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0526       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17328.06     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1164 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9233        1.8729        .32262E-07    .64617E-02
   2  Prefactor     55.042        14.762       -.12136E-06   -.25667E-01
   3  Prefactor     .57651        1.3980        .47019E-08    .78780E-03
   4  Prefactor     7.9796        5.0215       -.60469E-07    .75987E-03
   5  norm          .90705E-07    5.8099       -.13727E-06** at limit **
   6  Prefactor     .55511E-10    1.5718       -.10395E-06** at limit **
   7  Prefactor     .50422        131.26        .86066E-06   -.37859E-02
   8  norm           .0000        .17547       -.15558E-07** at limit **
   9  Prefactor     7.8074        6.7105       -.12078E-06    .96780E-01
  10  Prefactor     .12323E-07    6.6146       -.96262E-08** at limit **
  11  Prefactor     26.993        7.1884       -.10010E-06   -.10641    
  12  norm          2.5879        1.4390       -.20748E-08    .17676E-02
  13  Prefactor     18.592        6.8779       -.12038E-06   -.73025E-01
  14  Prefactor     .59674E-07    3.5712        .17303E-06** at limit **
  15  Prefactor     .15388E-06    3.8363       -.13955E-06** at limit **
  16  Prefactor     2.6204        1.8569       -.43976E-07   -.35242E-02
  17  norm           .0000        .42424        .39807E-07** at limit **
  18  Normalizat    1.0529        .12334        .16447E-05    .36189E-03
  19  Prefactor     1.0514        .13434       -.16844E-06    .26893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.9233
  Prefactor  = 55.0415
  Prefactor  = 0.576506
  Prefactor  = 7.9796
  norm       = 9.07052e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 0.504222
  norm       = 0
  Prefactor  = 7.80744
  Prefactor  = 1.23235e-08
  Prefactor  = 26.993
  norm       = 2.58793
  Prefactor  = 18.5916
  Prefactor  = 5.96745e-08
  Prefactor  = 1.53877e-07
  Prefactor  = 2.62042
  norm       = 0
  Normalizat = 1.05288
  Prefactor  = 1.05145
 **********
 **   18 **HESSE 
 **********

 FCN=   17328.06     FROM HESSE     STATUS=OK           322 CALLS     1486 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9233        1.8690        .50910E-03   -1.5668    
   2  Prefactor     55.042        16.615        .13456E-03   -1.5560    
   3  Prefactor     .57651        1.4157        .71324E-03   -1.5693    
   4  Prefactor     7.9796        5.1253        .35440E-03   -1.5651    
   5  norm          .90705E-07    6.1213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    1.5673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .50422        10.619        .11236E-01   -1.5694    
   8  norm           .0000        .17499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8074        9.1490        .35847E-03   -1.5652    
  10  Prefactor     .12323E-07    6.6635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.993        22.479        .19213E-03   -1.5604    
  12  norm          2.5879        1.4432        .63389E-03   -1.5676    
  13  Prefactor     18.592        7.5266        .23196E-03   -1.5622    
  14  Prefactor     .59674E-07    3.8179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15388E-06    4.4996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6204        1.8631        .62993E-03   -1.5676    
  17  norm           .0000        .20598        .21082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0529        .10324        .40383E-01   -.91280    
  19  Prefactor     1.0514        .11245        .59064E-01   -.91034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20487e-07
Minuit parameter uncertainties:
  1  1.86897
  2  16.6153
  3  1.41574
  4  5.12532
  5  0.00149027
  6  1.71563e-05
  7  4.62789
  8  8.92881e-07
  9  9.149
  10  0.000573554
  11  22.4792
  12  1.44318
  13  7.52663
  14  0.000954703
  15  0.00166416
  16  1.86311
  17  2.84627e-06
  18  0.10326
  19  0.112474
 **********
 **   18 **HESSE 
 **********

 FCN=   17328.06     FROM HESSE     STATUS=OK           322 CALLS     1486 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9233        1.8690        .50910E-03   -1.5668    
   2  Prefactor     55.042        16.615        .13456E-03   -1.5560    
   3  Prefactor     .57651        1.4157        .71324E-03   -1.5693    
   4  Prefactor     7.9796        5.1253        .35440E-03   -1.5651    
   5  norm          .90705E-07    6.1213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    1.5673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .50422        10.619        .11236E-01   -1.5694    
   8  norm           .0000        .17499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8074        9.1490        .35847E-03   -1.5652    
  10  Prefactor     .12323E-07    6.6635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.993        22.479        .19213E-03   -1.5604    
  12  norm          2.5879        1.4432        .63389E-03   -1.5676    
  13  Prefactor     18.592        7.5266        .23196E-03   -1.5622    
  14  Prefactor     .59674E-07    3.8179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15388E-06    4.4996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6204        1.8631        .62993E-03   -1.5676    
  17  norm           .0000        .20598        .21082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0529        .10324        .40383E-01   -.91280    
  19  Prefactor     1.0514        .11245        .59064E-01   -.91034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20487e-07
Minuit parameter uncertainties:
  1  1.86897
  2  16.6153
  3  1.41574
  4  5.12532
  5  0.00149027
  6  1.71563e-05
  7  4.62789
  8  8.92881e-07
  9  9.149
  10  0.000573554
  11  22.4792
  12  1.44318
  13  7.52663
  14  0.000954703
  15  0.00166416
  16  1.86311
  17  2.84627e-06
  18  0.10326
  19  0.112474
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  5.551e-11  1.716e-05  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.091e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.051e+00  1.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.053e+00  1.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.646 -39.536
Photon Flux Upper Limit: 1.60461326383e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00121235825345 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/26194892/likelihoodResults_799027201_799632001_4FGL_J0158.5-3932_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) = 17328.0686831
delta logL = -0.00579256088895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17328.0628961
delta logL = -5.52852361579e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35477E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .96795       1.0000          .0000       10.000    
     3 'Normalizat'    1.0531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0511       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17328.06     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      229 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2385        .42118E-03** at limit **
   2  Index         2.4370        1.9008       -.30598E-05     .0000    
   3  Normalizat    1.0529        1.1994        .11722E-04    .68855E-04
   4  Prefactor     1.0514        1.1901       -.90041E-05    .91088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.43703
  Normalizat = 1.05288
  Prefactor  = 1.05145
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17328.06     FROM HESSE     STATUS=FAILED         9 CALLS      238 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.2385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66736        2.0346       -.30598E-05   -.53820    
   3  Normalizat    1.0529        1.1994        .11722E-04   -.91280    
   4  Prefactor     1.0514        1.1901       -.90041E-05   -.91034    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.70112e-12
Minuit parameter uncertainties:
  1  3.5178e-06
  2  1.96907
  3  1.23262
  4  1.22219
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) = 17328.0628905
delta logL = 3.63797880709e-11

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  0.000e+00  3.518e-06  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.437e+00  1.969e+00  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.051e+00  1.222e+00  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.053e+00  1.233e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.646 -39.536

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/26194892/cmap_HighResolution_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-03', job_status='DONE', photon_flux_upper_limit='1.60e-08', time_completed='2026-05-05 00:25:48.131021', job_id='26194892', GAL2='1.05', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1777965948.13', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='926' AND source_name='4FGL J0158.5-3932' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  5 00:25:48 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  5.551e-11  1.716e-05  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.091e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.051e+00  1.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.053e+00  1.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.646 -39.536
Photon Flux Upper Limit: 1.60461326383e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00121235825345 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/26194883/likelihoodResults_799027201_799632001_4FGL_J0158.5-3932_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) = 17328.0686831
delta logL = -0.00579256088895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17328.0628961
delta logL = -5.52852361579e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35477E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .96795       1.0000          .0000       10.000    
     3 'Normalizat'    1.0531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0511       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17328.06     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      229 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2385        .42118E-03** at limit **
   2  Index         2.4370        1.9008       -.30598E-05     .0000    
   3  Normalizat    1.0529        1.1994        .11722E-04    .68855E-04
   4  Prefactor     1.0514        1.1901       -.90041E-05    .91088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.43703
  Normalizat = 1.05288
  Prefactor  = 1.05145
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17328.06     FROM HESSE     STATUS=FAILED         9 CALLS      238 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.2385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66736        2.0346       -.30598E-05   -.53820    
   3  Normalizat    1.0529        1.1994        .11722E-04   -.91280    
   4  Prefactor     1.0514        1.1901       -.90041E-05   -.91034    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.70112e-12
Minuit parameter uncertainties:
  1  3.5178e-06
  2  1.96907
  3  1.23262
  4  1.22219
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) = 17328.0628905
delta logL = 3.63797880709e-11

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  0.000e+00  3.518e-06  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.437e+00  1.969e+00  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.051e+00  1.222e+00  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.053e+00  1.233e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.646 -39.536

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/26194883/cmap_HighResolution_799027201_799632001_4FGL_J0158.5-3932_weekly_bin926.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-03', job_status='DONE', photon_flux_upper_limit='1.60e-08', time_completed='2026-05-05 00:25:54.297303', job_id='26194883', GAL2='1.05', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1777965954.3', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='926' AND source_name='4FGL J0158.5-3932' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  5 00:25:54 PDT 2026

