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


Performing analysis on: 4FGL_J0334.2-4008_weekly_bin939
RA = 53.5566, Dec = -40.145
tmin = 806889601, tmax = 807494401
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='34139488', job_status='RUN', time_executed='2026-08-04 02:54:16.268931', time_epoch_executed='1785837256.27' WHERE source_name='4FGL J0334.2-4008' and cadence='weekly' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34139488

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34139488/ft1_4FGL_J0334.2-4008_weekly_bin939.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34139488/ft1_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139488/ft1_filteredMKT_4FGL_J0334.2-4008_weekly_bin939.fits ra=53.5566 dec=-40.145 rad=12.0 tmin=806889601.0 tmax=807494401.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.67
user 3.08
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.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/34139488/ft1_filteredMKT_4FGL_J0334.2-4008_weekly_bin939.fits evtable="EVENTS" outfile="/lscratch/kocevski/34139488/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.72
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1848

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34139488/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.fits sctable="SC_DATA"/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)
number of points = 17478
number of fields = 31
RA_SUN column already exists. File will not be modified.

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

Done.


Performing analysis on: 4FGL_J0334.2-4008_weekly_bin939
RA = 53.5566, Dec = -40.145
tmin = 806889601, tmax = 807494401
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='34139489', job_status='RUN', time_executed='2026-08-04 02:54:16.990374', time_epoch_executed='1785837256.99' WHERE source_name='4FGL J0334.2-4008' and cadence='weekly' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34139489

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34139489/ft1_4FGL_J0334.2-4008_weekly_bin939.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34139489/ft1_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139489/ft1_filteredMKT_4FGL_J0334.2-4008_weekly_bin939.fits ra=53.5566 dec=-40.145 rad=12.0 tmin=806889601.0 tmax=807494401.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.37
user 3.72
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.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/34139489/ft1_filteredMKT_4FGL_J0334.2-4008_weekly_bin939.fits evtable="EVENTS" outfile="/lscratch/kocevski/34139489/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.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.23
sys 0.13

Number of photons that the gtmktime cut: 1848

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34139489/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34139488/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.fits
.....................!
real 16.77
user 15.93
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34139488/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34139488/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139488/expmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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/34139488/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits
.....................!
real 59.80
user 55.67
sys 3.35

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 183 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 J0334.2-4008 @ 53.5566 -40.145

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34139488/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits scfile=/lscratch/kocevski/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139488/cmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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=53.5566 yref=-40.145 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.76
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34139488/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits scfile=/lscratch/kocevski/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139488/cmap_HighResolution_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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=53.5566 yref=-40.145 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.83
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34139488/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.finumber of points = 17478
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0334.2-4008_weekly_bin939
RA = 53.5566, Dec = -40.145
tmin = 806889601, tmax = 807494401
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='34139521', job_status='RUN', time_executed='2026-08-04 02:56:13.613454', time_epoch_executed='1785837373.61' WHERE source_name='4FGL J0334.2-4008' and cadence='weekly' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34139521

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34139521/ft1_4FGL_J0334.2-4008_weekly_bin939.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34139521/ft1_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139521/ft1_filteredMKT_4FGL_J0334.2-4008_weekly_bin939.fits ra=53.5566 dec=-40.145 rad=12.0 tmin=806889601.0 tmax=807494401.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.44
user 3.79
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.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/34139521/ft1_filteredMKT_4FGL_J0334.2-4008_weekly_bin939.fits evtable="EVENTS" outfile="/lscratch/kocevski/34139521/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.73
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1848

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34139521/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34139489/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.fits
.....................!
real 19.84
user 18.96
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34139489/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34139489/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139489/expmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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/34139489/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits
.....................!
real 71.78
user 66.70
sys 4.10

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 183 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 J0334.2-4008 @ 53.5566 -40.145

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34139489/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits scfile=/lscratch/kocevski/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139489/cmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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=53.5566 yref=-40.145 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.74
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34139489/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits scfile=/lscratch/kocevski/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139489/cmap_HighResolution_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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=53.5566 yref=-40.145 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.74
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34139489/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.fi outfile=/lscratch/kocevski/34139521/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.fits
.....................!
real 20.50
user 19.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34139521/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34139521/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139521/expmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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/34139521/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits
.....................!
real 75.14
user 69.66
sys 4.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 183 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 J0334.2-4008 @ 53.5566 -40.145

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34139521/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits scfile=/lscratch/kocevski/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139521/cmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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=53.5566 yref=-40.145 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.75
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34139521/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits scfile=/lscratch/kocevski/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.fits outfile=/lscratch/kocevski/34139521/cmap_HighResolution_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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=53.5566 yref=-40.145 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.72
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34139521/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34139488/Model_4FGL_J0334.2-4008_weekly_bin939.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/34139488/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits.....................!
real 128.98
user 126.51
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34139488/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits', '/lscratch/kocevski/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.fits', expMap='/lscratch/kocevski/34139488/expmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits', expCube='/lscratch/kocevski/34139488/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34139488/Model_4FGL_J0334.2-4008_weekly_bin939.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0334.2-4008'

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  1.215e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.078e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34139488/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits
Spacecraft file(s): /lscratch/kocevski/34139488/ft2_4FGL_J0334.2-4008_weekly_bin939.fits
Exposure map: /lscratch/kocevski/34139488/expmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits
Exposure cube: /lscratch/kocevski/34139488/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34139488/Model_4FGL_J0334.2-4008_weekly_bin939.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) = 20072.5219149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59641E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.256       1.0000          .0000       .10000E+07
     3 'norm      '    .73757       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3878       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.6261       1.0000          .0000       .10000E+07
     6 'Prefactor '    10.200       1.0000          .0000       .10000E+07
     7 'Prefactor '    14.820       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.057       1.0000          .0000       .10000E+07
     9 'norm      '    6.2278       1.0000          .0000       .10000E+07
    10 'norm      '    .51533       1.0000          .0000       .10000E+07
    11 'Prefactor '    .28019E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .50053E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .23069E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .42653E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .28788E-01   1.0000          .0000       .10000E+07
    16 'norm      '    21.440       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.4549       1.0000          .0000       .10000E+07
    18 'Prefactor '    19.602       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.7654       1.0000          .0000       .10000E+07
    20 'norm      '    .61037       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20072.52     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1764 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    3.5602        .10991E-06** at limit **
   2  Prefactor     19.295        2.3841       -.33785E-06    .39768E-01
   3  norm          .73782        .50163       -.12611E-08   -.14022E-01
   4  Prefactor     3.4257        6.1874       -.24423E-07   -.11330E-02
   5  Prefactor     3.6221        2.5868        .10897E-07    .66179E-03
   6  Prefactor     10.194        5.9094       -.12664E-05   -.10369    
   7  Prefactor     14.819        3.2448        .55307E-06    .23313E-01
   8  Prefactor     12.065        7.2415       -.14194E-05    .73742E-01
   9  norm          6.2268        1.8501        .21420E-07   -.13293E-03
  10  norm          .51608        .40618        .15103E-07    .75765E-02
  11  Prefactor     .11102E-09    5.4576       -.19349E-07** at limit **
  12  Prefactor     .49960E-08    10.786        .38904E-07** at limit **
  13  Prefactor     .55511E-10    2.5483       -.74588E-08** at limit **
  14  Prefactor     .18319E-08    59.095       -.80451E-07** at limit **
  15  norm          .28906E-01    .97249E-01   -.25195E-08** at limit **
  16  norm          21.419        4.7048       -.13355E-07    .11848E-01
  17  Prefactor     5.4250        3.9236        .11168E-05   -.23156E-01
  18  Prefactor     19.644        6.2605        .60511E-07    .74861E-02
  19  Prefactor     1.7618        3.2855       -.16404E-07    .52405E-02
  20  norm          .60996        .22705        .21441E-08    .25613E-01
  21  Normalizat    1.0803        .10127       -.16373E-05    .80175E-04
  22  Prefactor     .86366        .11779        .15665E-05   -.12667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 19.295
  norm       = 0.737816
  Prefactor  = 3.42565
  Prefactor  = 3.62206
  Prefactor  = 10.194
  Prefactor  = 14.8193
  Prefactor  = 12.0648
  norm       = 6.22685
  norm       = 0.516081
  Prefactor  = 1.11022e-10
  Prefactor  = 4.996e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 1.83187e-09
  norm       = 0.0289055
  norm       = 21.4192
  Prefactor  = 5.42498
  Prefactor  = 19.6439
  Prefactor  = 1.7618
  norm       = 0.609961
  Normalizat = 1.08032
  Prefactor  = 0.863659
 **********
 **   18 **HESSE 
 **********

 FCN=   20072.52     FROM HESSE     STATUS=OK           394 CALLS     2158 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.5677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.295        18.947        .22796E-03   -1.5620    
   3  norm          .73782        .50247        .57709E-04   -1.5691    
   4  Prefactor     3.4257        6.2066        .54946E-03   -1.5671    
   5  Prefactor     3.6221        2.6014        .53032E-03   -1.5670    
   6  Prefactor     10.194        7.8125        .31348E-03   -1.5644    
   7  Prefactor     14.819        9.6519        .25991E-03   -1.5631    
   8  Prefactor     12.065        14.970        .28825E-03   -1.5638    
   9  norm          6.2268        1.8556        .40202E-03   -1.5658    
  10  norm          .51608        .41631        .77182E-03   -1.5694    
  11  Prefactor     .11102E-09    5.4726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .49960E-08    10.825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    2.5490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18319E-08    59.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .28906E-01    .75699E-01    .10797E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.419        4.7770        .21603E-03   -1.5615    
  17  Prefactor     5.4250        14.981        .42999E-03   -1.5661    
  18  Prefactor     19.644        6.3006        .22594E-03   -1.5619    
  19  Prefactor     1.7618        3.3432        .78807E-03   -1.5681    
  20  norm          .60996        .22939        .68304E-03   -1.5692    
  21  Normalizat    1.0803        .89814E-01    .38869E-01   -.90386    
  22  Prefactor     .86366        .10253        .44542E-01   -.97423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88534e-07
Minuit parameter uncertainties:
  1  2.6245e-05
  2  18.9474
  3  0.502475
  4  6.20666
  5  2.60137
  6  7.81247
  7  9.65189
  8  14.9703
  9  1.85561
  10  0.416306
  11  4.64815e-05
  12  0.000466396
  13  2.30227e-05
  14  0.000657269
  15  0.075699
  16  4.77697
  17  14.981
  18  6.30055
  19  3.3432
  20  0.229388
  21  0.0898262
  22  0.102558
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/34139489/Model_4FGL_J0334.2-4008_weekly_bin939.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/34139489/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits.....................!
real 150.74
user 148.27
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34139489/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits', '/lscratch/kocevski/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.fits', expMap='/lscratch/kocevski/34139489/expmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits', expCube='/lscratch/kocevski/34139489/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34139489/Model_4FGL_J0334.2-4008_weekly_bin939.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0334.2-4008'

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  1.215e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.078e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34139489/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits
Spacecraft file(s): /lscratch/kocevski/34139489/ft2_4FGL_J0334.2-4008_weekly_bin939.fits
Exposure map: /lscratch/kocevski/34139489/expmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits
Exposure cube: /lscratch/kocevski/34139489/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34139489/Model_4FGL_J0334.2-4008_weekly_bin939.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) = 20072.5219149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59641E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.256       1.0000          .0000       .10000E+07
     3 'norm      '    .73757       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3878       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.6261       1.0000          .0000       .10000E+07
     6 'Prefactor '    10.200       1.0000          .0000       .10000E+07
     7 'Prefactor '    14.820       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.057       1.0000          .0000       .10000E+07
     9 'norm      '    6.2278       1.0000          .0000       .10000E+07
    10 'norm      '    .51533       1.0000          .0000       .10000E+07
    11 'Prefactor '    .28019E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .50053E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .23069E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .42653E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .28788E-01   1.0000          .0000       .10000E+07
    16 'norm      '    21.440       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.4549       1.0000          .0000       .10000E+07
    18 'Prefactor '    19.602       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.7654       1.0000          .0000       .10000E+07
    20 'norm      '    .61037       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20072.52     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1764 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    3.5602        .10991E-06** at limit **
   2  Prefactor     19.295        2.3841       -.33785E-06    .39768E-01
   3  norm          .73782        .50163       -.12611E-08   -.14022E-01
   4  Prefactor     3.4257        6.1874       -.24423E-07   -.11330E-02
   5  Prefactor     3.6221        2.5868        .10897E-07    .66179E-03
   6  Prefactor     10.194        5.9094       -.12664E-05   -.10369    
   7  Prefactor     14.819        3.2448        .55307E-06    .23313E-01
   8  Prefactor     12.065        7.2415       -.14194E-05    .73742E-01
   9  norm          6.2268        1.8501        .21420E-07   -.13293E-03
  10  norm          .51608        .40618        .15103E-07    .75765E-02
  11  Prefactor     .11102E-09    5.4576       -.19349E-07** at limit **
  12  Prefactor     .49960E-08    10.786        .38904E-07** at limit **
  13  Prefactor     .55511E-10    2.5483       -.74588E-08** at limit **
  14  Prefactor     .18319E-08    59.095       -.80451E-07** at limit **
  15  norm          .28906E-01    .97249E-01   -.25195E-08** at limit **
  16  norm          21.419        4.7048       -.13355E-07    .11848E-01
  17  Prefactor     5.4250        3.9236        .11168E-05   -.23156E-01
  18  Prefactor     19.644        6.2605        .60511E-07    .74861E-02
  19  Prefactor     1.7618        3.2855       -.16404E-07    .52405E-02
  20  norm          .60996        .22705        .21441E-08    .25613E-01
  21  Normalizat    1.0803        .10127       -.16373E-05    .80175E-04
  22  Prefactor     .86366        .11779        .15665E-05   -.12667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 19.295
  norm       = 0.737816
  Prefactor  = 3.42565
  Prefactor  = 3.62206
  Prefactor  = 10.194
  Prefactor  = 14.8193
  Prefactor  = 12.0648
  norm       = 6.22685
  norm       = 0.516081
  Prefactor  = 1.11022e-10
  Prefactor  = 4.996e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 1.83187e-09
  norm       = 0.0289055
  norm       = 21.4192
  Prefactor  = 5.42498
  Prefactor  = 19.6439
  Prefactor  = 1.7618
  norm       = 0.609961
  Normalizat = 1.08032
  Prefactor  = 0.863659
Done.

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

Extracting fit parameters...

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  5.161e-01  4.163e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.078e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  8.637e-01  1.026e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.080e+00  8.983e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 53.557 -40.145
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 1.76e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 8.25e-06 +/- 6.66e-06

TS (Fixed Index): 2.06
Ra Dec: 53.557 -40.145
Photon Flux Upper Limit: 4.46822427721e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.09914410372e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34139488/likelihoodResults_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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) = 20071.272175
delta logL = 1.24384777503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20071.2326154
delta logL = 1.28340732149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42242       1.0000          .0000       .10000E+07
     2 'alpha     '    3.1073       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20071.23     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42204        1.9303        .86934E-03    .16799E-01
   2  alpha         3.1084        3.7864        .42802        .16039E-03
   3  Normalizat    1.0421        .19900E-01    .41122E-01    .21513E-04
   4  Prefactor     .89148        .23255E-01    .44896E-01    .40456E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.422042
  alpha      = 3.10839
  Normalizat = 1.04206
  Prefactor  = 0.891483
 **********
 **   18 **HESSE 
 **********

 FCN=   20071.23     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42204        .55264        .45734E-05   -1.5695    
   2  alpha         3.1084        1.0682        .18918E-01    .24583    
   3  Normalizat    1.0421        .10599        .21764E-03   -.91634    
   4  Prefactor     .89148        .12195        .27346E-03   -.96439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96834e-09
Minuit parameter uncertainties:
  1  0.552641
  2  1.10618
  3  0.106016
  4  0.121987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20071.2326142
delta logL = 1.2834085059

Extracting fit parameters...

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  4.220e-01  5.526e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  3.108e+00  1.106e+00  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  8.915e-01  1.220e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.042e+00  1.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 53.557 -40.145
Photon Index (Free Index): 3.11 +/- 1.11
Photon Flux (Free Index): 4.50e-08 +/- 2.53e-08
Energy Flux (Free Index): 8.80e-06 +/- 5.02e-06

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/34139488/cmap_HighResolution_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', comment='SUCCESS', photon_flux='1.76e-08', energy_flux2='8.80e-06', photon_flux_error='1.42e-08', dlogl='1.28e+00', energy_flux='8.25e-06', photon_flux2='4.50e-08', job_status='DONE', time_completed='2026-08-04 03:04:45.161646', photon_index_error2='1.11', photon_index2='3.11', ts='2.06', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='4.47e-08', energy_flux_error2='5.02e-06', EG='1.08', time_epoch_completed='1785837885.16', return_code='0', job_id='34139488', GAL2='0.89', EG2='1.04', return_code2='0', energy_flux_error='6.66e-06', photon_flux_error2='2.53e-08', ts2='4.72', photon_index='2.08' WHERE bin_id='939' AND source_name='4FGL J0334.2-4008' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  4 03:04:45 PDT 2026

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

 FCN=   20072.52     FROM HESSE     STATUS=OK           394 CALLS     2158 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.5677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.295        18.947        .22796E-03   -1.5620    
   3  norm          .73782        .50247        .57709E-04   -1.5691    
   4  Prefactor     3.4257        6.2066        .54946E-03   -1.5671    
   5  Prefactor     3.6221        2.6014        .53032E-03   -1.5670    
   6  Prefactor     10.194        7.8125        .31348E-03   -1.5644    
   7  Prefactor     14.819        9.6519        .25991E-03   -1.5631    
   8  Prefactor     12.065        14.970        .28825E-03   -1.5638    
   9  norm          6.2268        1.8556        .40202E-03   -1.5658    
  10  norm          .51608        .41631        .77182E-03   -1.5694    
  11  Prefactor     .11102E-09    5.4726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .49960E-08    10.825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    2.5490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18319E-08    59.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .28906E-01    .75699E-01    .10797E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.419        4.7770        .21603E-03   -1.5615    
  17  Prefactor     5.4250        14.981        .42999E-03   -1.5661    
  18  Prefactor     19.644        6.3006        .22594E-03   -1.5619    
  19  Prefactor     1.7618        3.3432        .78807E-03   -1.5681    
  20  norm          .60996        .22939        .68304E-03   -1.5692    
  21  Normalizat    1.0803        .89814E-01    .38869E-01   -.90386    
  22  Prefactor     .86366        .10253        .44542E-01   -.97423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88534e-07
Minuit parameter uncertainties:
  1  2.6245e-05
  2  18.9474
  3  0.502475
  4  6.20666
  5  2.60137
  6  7.81247
  7  9.65189
  8  14.9703
  9  1.85561
  10  0.416306
  11  4.64815e-05
  12  0.000466396
  13  2.30227e-05
  14  0.000657269
  15  0.075699
  16  4.77697
  17  14.981
  18  6.30055
  19  3.3432
  20  0.229388
  21  0.0898262
  22  0.102558
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/34139521/Model_4FGL_J0334.2-4008_weekly_bin939.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/34139521/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits.....................!
real 157.82
user 154.87
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34139521/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits', '/lscratch/kocevski/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.fits', expMap='/lscratch/kocevski/34139521/expmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits', expCube='/lscratch/kocevski/34139521/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34139521/Model_4FGL_J0334.2-4008_weekly_bin939.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0334.2-4008'

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  1.215e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.078e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34139521/ft1_filtered_4FGL_J0334.2-4008_weekly_bin939.fits
Spacecraft file(s): /lscratch/kocevski/34139521/ft2_4FGL_J0334.2-4008_weekly_bin939.fits
Exposure map: /lscratch/kocevski/34139521/expmap_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits
Exposure cube: /lscratch/kocevski/34139521/ltcube_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34139521/Model_4FGL_J0334.2-4008_weekly_bin939.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) = 20072.5219149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59641E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.256       1.0000          .0000       .10000E+07
     3 'norm      '    .73757       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3878       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.6261       1.0000          .0000       .10000E+07
     6 'Prefactor '    10.200       1.0000          .0000       .10000E+07
     7 'Prefactor '    14.820       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.057       1.0000          .0000       .10000E+07
     9 'norm      '    6.2278       1.0000          .0000       .10000E+07
    10 'norm      '    .51533       1.0000          .0000       .10000E+07
    11 'Prefactor '    .28019E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .50053E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .23069E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .42653E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .28788E-01   1.0000          .0000       .10000E+07
    16 'norm      '    21.440       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.4549       1.0000          .0000       .10000E+07
    18 'Prefactor '    19.602       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.7654       1.0000          .0000       .10000E+07
    20 'norm      '    .61037       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20072.52     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1764 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    3.5602        .10991E-06** at limit **
   2  Prefactor     19.295        2.3841       -.33785E-06    .39768E-01
   3  norm          .73782        .50163       -.12611E-08   -.14022E-01
   4  Prefactor     3.4257        6.1874       -.24423E-07   -.11330E-02
   5  Prefactor     3.6221        2.5868        .10897E-07    .66179E-03
   6  Prefactor     10.194        5.9094       -.12664E-05   -.10369    
   7  Prefactor     14.819        3.2448        .55307E-06    .23313E-01
   8  Prefactor     12.065        7.2415       -.14194E-05    .73742E-01
   9  norm          6.2268        1.8501        .21420E-07   -.13293E-03
  10  norm          .51608        .40618        .15103E-07    .75765E-02
  11  Prefactor     .11102E-09    5.4576       -.19349E-07** at limit **
  12  Prefactor     .49960E-08    10.786        .38904E-07** at limit **
  13  Prefactor     .55511E-10    2.5483       -.74588E-08** at limit **
  14  Prefactor     .18319E-08    59.095       -.80451E-07** at limit **
  15  norm          .28906E-01    .97249E-01   -.25195E-08** at limit **
  16  norm          21.419        4.7048       -.13355E-07    .11848E-01
  17  Prefactor     5.4250        3.9236        .11168E-05   -.23156E-01
  18  Prefactor     19.644        6.2605        .60511E-07    .74861E-02
  19  Prefactor     1.7618        3.2855       -.16404E-07    .52405E-02
  20  norm          .60996        .22705        .21441E-08    .25613E-01
  21  Normalizat    1.0803        .10127       -.16373E-05    .80175E-04
  22  Prefactor     .86366        .11779        .15665E-05   -.12667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 19.295
  norm       = 0.737816
  Prefactor  = 3.42565
  Prefactor  = 3.62206
  Prefactor  = 10.194
  Prefactor  = 14.8193
  Prefactor  = 12.0648
  norm       = 6.22685
  norm       = 0.516081
  Prefactor  = 1.11022e-10
  Prefactor  = 4.996e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 1.83187e-09
  norm       = 0.0289055
  norm       = 21.4192
  Prefactor  = 5.42498
  Prefactor  = 19.6439
  Prefactor  = 1.7618
  norm       = 0.609961
  Normalizat = 1.08032
  Prefactor  = 0.863659
Done.

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

Extracting fit parameters...

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  5.161e-01  4.163e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.078e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  8.637e-01  1.026e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.080e+00  8.983e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 53.557 -40.145
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 1.76e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 8.25e-06 +/- 6.66e-06

TS (Fixed Index): 2.06
Ra Dec: 53.557 -40.145
Photon Flux Upper Limit: 4.46822427721e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.09914410372e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34139489/likelihoodResults_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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) = 20071.272175
delta logL = 1.24384777503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20071.2326154
delta logL = 1.28340732149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42242       1.0000          .0000       .10000E+07
     2 'alpha     '    3.1073       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20071.23     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42204        1.9303        .86934E-03    .16799E-01
   2  alpha         3.1084        3.7864        .42802        .16039E-03
   3  Normalizat    1.0421        .19900E-01    .41122E-01    .21513E-04
   4  Prefactor     .89148        .23255E-01    .44896E-01    .40456E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.422042
  alpha      = 3.10839
  Normalizat = 1.04206
  Prefactor  = 0.891483
 **********
 **   18 **HESSE 
 **********

 FCN=   20071.23     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42204        .55264        .45734E-05   -1.5695    
   2  alpha         3.1084        1.0682        .18918E-01    .24583    
   3  Normalizat    1.0421        .10599        .21764E-03   -.91634    
   4  Prefactor     .89148        .12195        .27346E-03   -.96439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96834e-09
Minuit parameter uncertainties:
  1  0.552641
  2  1.10618
  3  0.106016
  4  0.121987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20071.2326142
delta logL = 1.2834085059

Extracting fit parameters...

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  4.220e-01  5.526e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  3.108e+00  1.106e+00  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  8.915e-01  1.220e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.042e+00  1.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 53.557 -40.145
Photon Index (Free Index): 3.11 +/- 1.11
Photon Flux (Free Index): 4.50e-08 +/- 2.53e-08
Energy Flux (Free Index): 8.80e-06 +/- 5.02e-06

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/34139489/cmap_HighResolution_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', comment='SUCCESS', photon_flux='1.76e-08', energy_flux2='8.80e-06', photon_flux_error='1.42e-08', dlogl='1.28e+00', energy_flux='8.25e-06', photon_flux2='4.50e-08', job_status='DONE', time_completed='2026-08-04 03:06:15.222193', photon_index_error2='1.11', photon_index2='3.11', ts='2.06', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='4.47e-08', energy_flux_error2='5.02e-06', EG='1.08', time_epoch_completed='1785837975.22', return_code='0', job_id='34139489', GAL2='0.89', EG2='1.04', return_code2='0', energy_flux_error='6.66e-06', photon_flux_error2='2.53e-08', ts2='4.72', photon_index='2.08' WHERE bin_id='939' AND source_name='4FGL J0334.2-4008' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  4 03:06:15 PDT 2026

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

 FCN=   20072.52     FROM HESSE     STATUS=OK           394 CALLS     2158 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.5677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.295        18.947        .22796E-03   -1.5620    
   3  norm          .73782        .50247        .57709E-04   -1.5691    
   4  Prefactor     3.4257        6.2066        .54946E-03   -1.5671    
   5  Prefactor     3.6221        2.6014        .53032E-03   -1.5670    
   6  Prefactor     10.194        7.8125        .31348E-03   -1.5644    
   7  Prefactor     14.819        9.6519        .25991E-03   -1.5631    
   8  Prefactor     12.065        14.970        .28825E-03   -1.5638    
   9  norm          6.2268        1.8556        .40202E-03   -1.5658    
  10  norm          .51608        .41631        .77182E-03   -1.5694    
  11  Prefactor     .11102E-09    5.4726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .49960E-08    10.825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    2.5490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18319E-08    59.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .28906E-01    .75699E-01    .10797E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.419        4.7770        .21603E-03   -1.5615    
  17  Prefactor     5.4250        14.981        .42999E-03   -1.5661    
  18  Prefactor     19.644        6.3006        .22594E-03   -1.5619    
  19  Prefactor     1.7618        3.3432        .78807E-03   -1.5681    
  20  norm          .60996        .22939        .68304E-03   -1.5692    
  21  Normalizat    1.0803        .89814E-01    .38869E-01   -.90386    
  22  Prefactor     .86366        .10253        .44542E-01   -.97423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88534e-07
Minuit parameter uncertainties:
  1  2.6245e-05
  2  18.9474
  3  0.502475
  4  6.20666
  5  2.60137
  6  7.81247
  7  9.65189
  8  14.9703
  9  1.85561
  10  0.416306
  11  4.64815e-05
  12  0.000466396
  13  2.30227e-05
  14  0.000657269
  15  0.075699
  16  4.77697
  17  14.981
  18  6.30055
  19  3.3432
  20  0.229388
  21  0.0898262
  22  0.102558
Done.

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

Extracting fit parameters...

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  5.161e-01  4.163e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.078e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  8.637e-01  1.026e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.080e+00  8.983e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 53.557 -40.145
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 1.76e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 8.25e-06 +/- 6.66e-06

TS (Fixed Index): 2.06
Ra Dec: 53.557 -40.145
Photon Flux Upper Limit: 4.46822427721e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.09914410372e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34139521/likelihoodResults_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.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) = 20071.272175
delta logL = 1.24384777503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20071.2326154
delta logL = 1.28340732149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42242       1.0000          .0000       .10000E+07
     2 'alpha     '    3.1073       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20071.23     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42204        1.9303        .86934E-03    .16799E-01
   2  alpha         3.1084        3.7864        .42802        .16039E-03
   3  Normalizat    1.0421        .19900E-01    .41122E-01    .21513E-04
   4  Prefactor     .89148        .23255E-01    .44896E-01    .40456E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.422042
  alpha      = 3.10839
  Normalizat = 1.04206
  Prefactor  = 0.891483
 **********
 **   18 **HESSE 
 **********

 FCN=   20071.23     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42204        .55264        .45734E-05   -1.5695    
   2  alpha         3.1084        1.0682        .18918E-01    .24583    
   3  Normalizat    1.0421        .10599        .21764E-03   -.91634    
   4  Prefactor     .89148        .12195        .27346E-03   -.96439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96834e-09
Minuit parameter uncertainties:
  1  0.552641
  2  1.10618
  3  0.106016
  4  0.121987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20071.2326142
delta logL = 1.2834085059

Extracting fit parameters...

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  4.220e-01  5.526e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  3.108e+00  1.106e+00  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  8.915e-01  1.220e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.042e+00  1.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 53.557 -40.145
Photon Index (Free Index): 3.11 +/- 1.11
Photon Flux (Free Index): 4.50e-08 +/- 2.53e-08
Energy Flux (Free Index): 8.80e-06 +/- 5.02e-06

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/34139521/cmap_HighResolution_806889601_807494401_4FGL_J0334.2-4008_weekly_bin939.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', comment='SUCCESS', photon_flux='1.76e-08', energy_flux2='8.80e-06', photon_flux_error='1.42e-08', dlogl='1.28e+00', energy_flux='8.25e-06', photon_flux2='4.50e-08', job_status='DONE', time_completed='2026-08-04 03:07:55.772995', photon_index_error2='1.11', photon_index2='3.11', ts='2.06', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='4.47e-08', energy_flux_error2='5.02e-06', EG='1.08', time_epoch_completed='1785838075.77', return_code='0', job_id='34139521', GAL2='0.89', EG2='1.04', return_code2='0', energy_flux_error='6.66e-06', photon_flux_error2='2.53e-08', ts2='4.72', photon_index='2.08' WHERE bin_id='939' AND source_name='4FGL J0334.2-4008' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  4 03:07:55 PDT 2026

