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

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


Performing analysis on: 4FGL_J0336.4+3224_daily_bin2194
RA = 54.1015, Dec = 32.4111
tmin = 808012801, tmax = 808272001
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='34805918', job_status='RUN', time_executed='2026-08-13 03:01:05.046308', time_epoch_executed='1786615265.05' WHERE source_name='4FGL J0336.4+3224' and cadence='daily' and bin_id='2194'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34805918

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34805918/ft1_4FGL_J0336.4+3224_daily_bin2194.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34805918/ft1_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805918/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin2194.fits ra=54.1015 dec=32.4111 rad=12.0 tmin=808012801.0 tmax=808272001.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 1.96
user 1.37
sys 0.15

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.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/34805918/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" outfile="/lscratch/kocevski/34805918/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.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.76
user 0.17
sys 0.14

Number of photons that the gtmktime cut: 3086

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34805918/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="SC_DATA" o/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 = 7635
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 7635
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0336.4+3224_daily_bin2194
RA = 54.1015, Dec = 32.4111
tmin = 808012801, tmax = 808272001
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='34805902', job_status='RUN', time_executed='2026-08-13 03:01:05.158092', time_epoch_executed='1786615265.16' WHERE source_name='4FGL J0336.4+3224' and cadence='daily' and bin_id='2194'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34805902

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34805902/ft1_4FGL_J0336.4+3224_daily_bin2194.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34805902/ft1_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805902/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin2194.fits ra=54.1015 dec=32.4111 rad=12.0 tmin=808012801.0 tmax=808272001.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 1.92
user 1.33
sys 0.15

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.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/34805902/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" outfile="/lscratch/kocevski/34805902/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.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.75
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 3086

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34805902/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="SC_DATA" oDone.


Performing analysis on: 4FGL_J0336.4+3224_daily_bin2194
RA = 54.1015, Dec = 32.4111
tmin = 808012801, tmax = 808272001
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='34805901', job_status='RUN', time_executed='2026-08-13 03:01:05.260563', time_epoch_executed='1786615265.26' WHERE source_name='4FGL J0336.4+3224' and cadence='daily' and bin_id='2194'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34805901

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34805901/ft1_4FGL_J0336.4+3224_daily_bin2194.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34805901/ft1_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805901/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin2194.fits ra=54.1015 dec=32.4111 rad=12.0 tmin=808012801.0 tmax=808272001.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 1.92
user 1.30
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.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/34805901/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" outfile="/lscratch/kocevski/34805901/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.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.63
user 0.19
sys 0.12

Number of photons that the gtmktime cut: 3086

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34805901/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="SC_DATA" o
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

utfile=/lscratch/kocevski/34805841/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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/34805841/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
.....................!
real 9.40
user 8.55
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34805841/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" scfile=/lscratch/kocevski/34805841/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34805841/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805841/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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/34805841/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
.....................!
real 70.75
user 65.85
sys 3.95

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 HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 156 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 J0336.4+3224 @ 54.1015 32.4111

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34805841/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits scfile=/lscratch/kocevski/34805841/ft2_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805841/cmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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=54.1015 yref=32.4111 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.89
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34805841/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits scfile=/lscratch/kocevski/34805841/ft2_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805841/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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=54.1015 yref=32.4111 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.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34805841/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" scfile=/lscratch/kocevski/34805841/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="utfile=/lscratch/kocevski/34805918/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
.....................!
real 8.56
user 7.89
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34805918/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" scfile=/lscratch/kocevski/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34805918/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805918/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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/34805918/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
.....................!
real 70.73
user 66.10
sys 3.85

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 HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 156 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 J0336.4+3224 @ 54.1015 32.4111

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34805918/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits scfile=/lscratch/kocevski/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805918/cmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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=54.1015 yref=32.4111 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.86
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34805918/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits scfile=/lscratch/kocevski/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805918/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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=54.1015 yref=32.4111 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.80
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34805918/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" scfile=/lscratch/kocevski/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="utfile=/lscratch/kocevski/34805902/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
.....................!
real 8.42
user 7.77
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34805902/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" scfile=/lscratch/kocevski/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34805902/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805902/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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/34805902/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
.....................!
real 71.03
user 66.15
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 HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 156 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 J0336.4+3224 @ 54.1015 32.4111

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34805902/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits scfile=/lscratch/kocevski/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805902/cmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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=54.1015 yref=32.4111 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.71
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34805902/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits scfile=/lscratch/kocevski/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805902/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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=54.1015 yref=32.4111 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.73
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34805902/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" scfile=/lscratch/kocevski/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="utfile=/lscratch/kocevski/34805901/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
.....................!
real 8.38
user 7.81
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34805901/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" scfile=/lscratch/kocevski/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34805901/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805901/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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/34805901/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
.....................!
real 70.81
user 66.02
sys 4.06

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 HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 156 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 J0336.4+3224 @ 54.1015 32.4111

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34805901/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits scfile=/lscratch/kocevski/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805901/cmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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=54.1015 yref=32.4111 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.70
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34805901/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits scfile=/lscratch/kocevski/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34805901/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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=54.1015 yref=32.4111 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.71
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34805901/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" scfile=/lscratch/kocevski/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="number of points = 7635
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0336.4+3224_daily_bin2194
RA = 54.1015, Dec = 32.4111
tmin = 808012801, tmax = 808272001
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='34806024', job_status='RUN', time_executed='2026-08-13 03:03:05.946470', time_epoch_executed='1786615385.95' WHERE source_name='4FGL J0336.4+3224' and cadence='daily' and bin_id='2194'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34806024

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34806024/ft1_4FGL_J0336.4+3224_daily_bin2194.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34806024/ft1_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34806024/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin2194.fits ra=54.1015 dec=32.4111 rad=12.0 tmin=808012801.0 tmax=808272001.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 2.36
user 1.62
sys 0.13

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.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/34806024/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" outfile="/lscratch/kocevski/34806024/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.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.75
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 3086

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34806024/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="SC_DATA" oSC_DATA" srcmdl=/lscratch/kocevski/34805567/Model_4FGL_J0336.4+3224_daily_bin2194.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/34805567/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits.....................!
real 208.58
user 205.89
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34805567/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits', '/lscratch/kocevski/34805567/ft2_4FGL_J0336.4+3224_daily_bin2194.fits', expMap='/lscratch/kocevski/34805567/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', expCube='/lscratch/kocevski/34805567/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34805567/Model_4FGL_J0336.4+3224_daily_bin2194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34805567/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits
Spacecraft file(s): /lscratch/kocevski/34805567/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure map: /lscratch/kocevski/34805567/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure cube: /lscratch/kocevski/34805567/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34805567/Model_4FGL_J0336.4+3224_daily_bin2194.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) = 28817.9219287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    127.30       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.265       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5546       1.0000          .0000       .10000E+07
     5 'norm      '    31.401       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61017       1.0000          .0000       .10000E+07
     7 'norm      '    .84706       1.0000          .0000       .10000E+07
     8 'norm      '    .14405E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14353       1.0000          .0000       .10000E+07
    10 'norm      '    .16792E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.9819       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .96262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      718 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.846        .51191E-06** at limit **
   2  norm          127.73        25.235        .32243E-08   -.62113E-04
   3  Prefactor     33.359        14.316        .82154E-07   -.19175E-03
   4  Prefactor     2.5519        4.9029        .68277E-07    .27904E-04
   5  norm          31.439        1.3926       -.87721E-08   -.17358E-02
   6  Prefactor     .60952        .79797       -.37840E-07   -.15704E-03
   7  norm          .84460        1.7768       -.50319E-07   -.33164E-04
   8  norm           .0000        .52401        .11954E-07** at limit **
   9  Prefactor      .0000        37.018        .98534E-07** at limit **
  10  norm           .0000        28.948       -.16255E-06** at limit **
  11  norm          2.9816        3.2919       -.88436E-07   -.30057E-03
  12  Normalizat    1.1933        .20088        .17537E-05   -.21289E-04
  13  Prefactor     .96250        .48660E-01   -.57949E-06   -.15777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 127.726
  Prefactor  = 33.3592
  Prefactor  = 2.55188
  norm       = 31.4386
  Prefactor  = 0.609519
  norm       = 0.844597
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 2.98161
  Normalizat = 1.1933
  Prefactor  = 0.962505
utfile=/lscratch/kocevski/34806024/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
.....................!
real 9.62
user 8.99
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34806024/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" scfile=/lscratch/kocevski/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34806024/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34806024/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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/34806024/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
.....................!
real 73.49
user 68.53
sys 4.17

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 HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 156 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 J0336.4+3224 @ 54.1015 32.4111

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34806024/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits scfile=/lscratch/kocevski/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34806024/cmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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=54.1015 yref=32.4111 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.69
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34806024/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits scfile=/lscratch/kocevski/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.fits outfile=/lscratch/kocevski/34806024/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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=54.1015 yref=32.4111 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34806024/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits evtable="EVENTS" scfile=/lscratch/kocevski/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.fits sctable=" **********
 **   18 **HESSE 
 **********

 FCN=   28817.17     FROM HESSE     STATUS=OK           175 CALLS      893 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          127.73        25.227        .88637E-04   -1.5482    
   3  Prefactor     33.359        14.271        .17086E-03   -1.5592    
   4  Prefactor     2.5519        5.0099        .63852E-03   -1.5676    
   5  norm          31.439        1.3902        .17848E-03   -1.5596    
   6  Prefactor     .60952        .80963        .68322E-03   -1.5692    
   7  norm          .84460        1.8073        .49491E-03   -1.5690    
   8  norm           .0000        .51740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        36.756        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        28.294        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9816        3.2856        .58767E-03   -1.5673    
  12  Normalizat    1.1933        .18604        .13609       -.86810    
  13  Prefactor     .96250        .44253E-01    .45798E-01   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79643e-06
Minuit parameter uncertainties:
  1  1.58652e-05
  2  25.2275
  3  14.2714
  4  5.00988
  5  1.3902
  6  0.809629
  7  1.80726
  8  2.09191e-07
  9  4.85807e-05
  10  6.23928e-06
  11  3.28565
  12  0.186144
  13  0.0442543
SC_DATA" srcmdl=/lscratch/kocevski/34805574/Model_4FGL_J0336.4+3224_daily_bin2194.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/34805574/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits.....................!
real 211.88
user 208.63
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34805574/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits', '/lscratch/kocevski/34805574/ft2_4FGL_J0336.4+3224_daily_bin2194.fits', expMap='/lscratch/kocevski/34805574/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', expCube='/lscratch/kocevski/34805574/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34805574/Model_4FGL_J0336.4+3224_daily_bin2194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34805574/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits
Spacecraft file(s): /lscratch/kocevski/34805574/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure map: /lscratch/kocevski/34805574/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure cube: /lscratch/kocevski/34805574/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34805574/Model_4FGL_J0336.4+3224_daily_bin2194.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) = 28817.9219287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    127.30       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.265       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5546       1.0000          .0000       .10000E+07
     5 'norm      '    31.401       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61017       1.0000          .0000       .10000E+07
     7 'norm      '    .84706       1.0000          .0000       .10000E+07
     8 'norm      '    .14405E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14353       1.0000          .0000       .10000E+07
    10 'norm      '    .16792E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.9819       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .96262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      718 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.846        .51191E-06** at limit **
   2  norm          127.73        25.235        .32243E-08   -.62113E-04
   3  Prefactor     33.359        14.316        .82154E-07   -.19175E-03
   4  Prefactor     2.5519        4.9029        .68277E-07    .27904E-04
   5  norm          31.439        1.3926       -.87721E-08   -.17358E-02
   6  Prefactor     .60952        .79797       -.37840E-07   -.15704E-03
   7  norm          .84460        1.7768       -.50319E-07   -.33164E-04
   8  norm           .0000        .52401        .11954E-07** at limit **
   9  Prefactor      .0000        37.018        .98534E-07** at limit **
  10  norm           .0000        28.948       -.16255E-06** at limit **
  11  norm          2.9816        3.2919       -.88436E-07   -.30057E-03
  12  Normalizat    1.1933        .20088        .17537E-05   -.21289E-04
  13  Prefactor     .96250        .48660E-01   -.57949E-06   -.15777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 127.726
  Prefactor  = 33.3592
  Prefactor  = 2.55188
  norm       = 31.4386
  Prefactor  = 0.609519
  norm       = 0.844597
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 2.98161
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********

 FCN=   28817.17     FROM HESSE     STATUS=OK           175 CALLS      893 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          127.73        25.227        .88637E-04   -1.5482    
   3  Prefactor     33.359        14.271        .17086E-03   -1.5592    
   4  Prefactor     2.5519        5.0099        .63852E-03   -1.5676    
   5  norm          31.439        1.3902        .17848E-03   -1.5596    
   6  Prefactor     .60952        .80963        .68322E-03   -1.5692    
   7  norm          .84460        1.8073        .49491E-03   -1.5690    
   8  norm           .0000        .51740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        36.756        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        28.294        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9816        3.2856        .58767E-03   -1.5673    
  12  Normalizat    1.1933        .18604        .13609       -.86810    
  13  Prefactor     .96250        .44253E-01    .45798E-01   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79643e-06
Minuit parameter uncertainties:
  1  1.58652e-05
  2  25.2275
  3  14.2714
  4  5.00988
  5  1.3902
  6  0.809629
  7  1.80726
  8  2.09191e-07
  9  4.85807e-05
  10  6.23928e-06
  11  3.28565
  12  0.186144
  13  0.0442543
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  2.092e-07  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  4.425e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 5.87648928738e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/34805567/likelihoodResults_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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): 102
logL (Free Index) = 28817.1908062
delta logL = -0.02243705828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28817.1683691
delta logL = -6.65750121698e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    3.0319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      191 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .38442        .64951E-07** at limit **
   2  alpha         1.5896        1.1006        .22452E-04     .0000    
   3  Normalizat    1.1933        .19062       -.11687E-04   -.89533E-04
   4  Prefactor     .96251        .47291E-01    .35756E-05    .31734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.58962
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28817.17     FROM HESSE     STATUS=FAILED        11 CALLS      202 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .38349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .56882        1.1014        .22452E-04   -.37272    
   3  Normalizat    1.1933        1.1087       -.11687E-04   -.86810    
   4  Prefactor     .96251        1.3040        .35756E-05   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.66146e-11
Minuit parameter uncertainties:
  1  1.10189e-06
  2  0.987107
  3  1.13172
  4  1.3507
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) = 28817.1683691
delta logL = -4.72937244922e-11

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  1.102e-06  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  1.590e+00  9.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  1.351e+00  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 54.102 32.411

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/34805567/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.88e-08', time_completed='2026-08-13 03:07:45.273901', job_id='34805567', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1786615665.27', return_code2='101', ts='0.00', return_code='0', GAL='0.96', dlogl='-4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='2194' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 13 03:07:45 PDT 2026

SC_DATA" srcmdl=/lscratch/kocevski/34805726/Model_4FGL_J0336.4+3224_daily_bin2194.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/34805726/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits.....................!
real 223.14
user 218.00
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34805726/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits', '/lscratch/kocevski/34805726/ft2_4FGL_J0336.4+3224_daily_bin2194.fits', expMap='/lscratch/kocevski/34805726/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', expCube='/lscratch/kocevski/34805726/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34805726/Model_4FGL_J0336.4+3224_daily_bin2194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34805726/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits
Spacecraft file(s): /lscratch/kocevski/34805726/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure map: /lscratch/kocevski/34805726/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure cube: /lscratch/kocevski/34805726/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34805726/Model_4FGL_J0336.4+3224_daily_bin2194.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) = 28817.9219287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    127.30       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.265       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5546       1.0000          .0000       .10000E+07
     5 'norm      '    31.401       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61017       1.0000          .0000       .10000E+07
     7 'norm      '    .84706       1.0000          .0000       .10000E+07
     8 'norm      '    .14405E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14353       1.0000          .0000       .10000E+07
    10 'norm      '    .16792E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.9819       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .96262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      718 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.846        .51191E-06** at limit **
   2  norm          127.73        25.235        .32243E-08   -.62113E-04
   3  Prefactor     33.359        14.316        .82154E-07   -.19175E-03
   4  Prefactor     2.5519        4.9029        .68277E-07    .27904E-04
   5  norm          31.439        1.3926       -.87721E-08   -.17358E-02
   6  Prefactor     .60952        .79797       -.37840E-07   -.15704E-03
   7  norm          .84460        1.7768       -.50319E-07   -.33164E-04
   8  norm           .0000        .52401        .11954E-07** at limit **
   9  Prefactor      .0000        37.018        .98534E-07** at limit **
  10  norm           .0000        28.948       -.16255E-06** at limit **
  11  norm          2.9816        3.2919       -.88436E-07   -.30057E-03
  12  Normalizat    1.1933        .20088        .17537E-05   -.21289E-04
  13  Prefactor     .96250        .48660E-01   -.57949E-06   -.15777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 127.726
  Prefactor  = 33.3592
  Prefactor  = 2.55188
  norm       = 31.4386
  Prefactor  = 0.609519
  norm       = 0.844597
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 2.98161
  Normalizat = 1.1933
  Prefactor  = 0.962505
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  2.092e-07  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  4.425e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 5.87648928738e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/34805574/likelihoodResults_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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): 102
logL (Free Index) = 28817.1908062
delta logL = -0.02243705828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28817.1683691
delta logL = -6.65750121698e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    3.0319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      191 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .38442        .64951E-07** at limit **
   2  alpha         1.5896        1.1006        .22452E-04     .0000    
   3  Normalizat    1.1933        .19062       -.11687E-04   -.89533E-04
   4  Prefactor     .96251        .47291E-01    .35756E-05    .31734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.58962
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28817.17     FROM HESSE     STATUS=FAILED        11 CALLS      202 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .38349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .56882        1.1014        .22452E-04   -.37272    
   3  Normalizat    1.1933        1.1087       -.11687E-04   -.86810    
   4  Prefactor     .96251        1.3040        .35756E-05   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.66146e-11
Minuit parameter uncertainties:
  1  1.10189e-06
  2  0.987107
  3  1.13172
  4  1.3507
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) = 28817.1683691
delta logL = -4.72937244922e-11

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  1.102e-06  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  1.590e+00  9.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  1.351e+00  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 54.102 32.411

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/34805574/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.88e-08', time_completed='2026-08-13 03:08:11.044855', job_id='34805574', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1786615691.04', return_code2='101', ts='0.00', return_code='0', GAL='0.96', dlogl='-4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='2194' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 13 03:08:11 PDT 2026

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

 FCN=   28817.17     FROM HESSE     STATUS=OK           175 CALLS      893 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          127.73        25.227        .88637E-04   -1.5482    
   3  Prefactor     33.359        14.271        .17086E-03   -1.5592    
   4  Prefactor     2.5519        5.0099        .63852E-03   -1.5676    
   5  norm          31.439        1.3902        .17848E-03   -1.5596    
   6  Prefactor     .60952        .80963        .68322E-03   -1.5692    
   7  norm          .84460        1.8073        .49491E-03   -1.5690    
   8  norm           .0000        .51740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        36.756        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        28.294        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9816        3.2856        .58767E-03   -1.5673    
  12  Normalizat    1.1933        .18604        .13609       -.86810    
  13  Prefactor     .96250        .44253E-01    .45798E-01   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79643e-06
Minuit parameter uncertainties:
  1  1.58652e-05
  2  25.2275
  3  14.2714
  4  5.00988
  5  1.3902
  6  0.809629
  7  1.80726
  8  2.09191e-07
  9  4.85807e-05
  10  6.23928e-06
  11  3.28565
  12  0.186144
  13  0.0442543
"SC_DATA" srcmdl=/lscratch/kocevski/34805787/Model_4FGL_J0336.4+3224_daily_bin2194.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/34805787/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits.....................!
real 227.69
user 222.30
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34805787/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits', '/lscratch/kocevski/34805787/ft2_4FGL_J0336.4+3224_daily_bin2194.fits', expMap='/lscratch/kocevski/34805787/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', expCube='/lscratch/kocevski/34805787/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34805787/Model_4FGL_J0336.4+3224_daily_bin2194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34805787/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits
Spacecraft file(s): /lscratch/kocevski/34805787/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure map: /lscratch/kocevski/34805787/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure cube: /lscratch/kocevski/34805787/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34805787/Model_4FGL_J0336.4+3224_daily_bin2194.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) = 28817.9219287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    127.30       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.265       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5546       1.0000          .0000       .10000E+07
     5 'norm      '    31.401       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61017       1.0000          .0000       .10000E+07
     7 'norm      '    .84706       1.0000          .0000       .10000E+07
     8 'norm      '    .14405E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14353       1.0000          .0000       .10000E+07
    10 'norm      '    .16792E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.9819       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .96262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      718 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.846        .51191E-06** at limit **
   2  norm          127.73        25.235        .32243E-08   -.62113E-04
   3  Prefactor     33.359        14.316        .82154E-07   -.19175E-03
   4  Prefactor     2.5519        4.9029        .68277E-07    .27904E-04
   5  norm          31.439        1.3926       -.87721E-08   -.17358E-02
   6  Prefactor     .60952        .79797       -.37840E-07   -.15704E-03
   7  norm          .84460        1.7768       -.50319E-07   -.33164E-04
   8  norm           .0000        .52401        .11954E-07** at limit **
   9  Prefactor      .0000        37.018        .98534E-07** at limit **
  10  norm           .0000        28.948       -.16255E-06** at limit **
  11  norm          2.9816        3.2919       -.88436E-07   -.30057E-03
  12  Normalizat    1.1933        .20088        .17537E-05   -.21289E-04
  13  Prefactor     .96250        .48660E-01   -.57949E-06   -.15777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 127.726
  Prefactor  = 33.3592
  Prefactor  = 2.55188
  norm       = 31.4386
  Prefactor  = 0.609519
  norm       = 0.844597
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 2.98161
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********

 FCN=   28817.17     FROM HESSE     STATUS=OK           175 CALLS      893 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          127.73        25.227        .88637E-04   -1.5482    
   3  Prefactor     33.359        14.271        .17086E-03   -1.5592    
   4  Prefactor     2.5519        5.0099        .63852E-03   -1.5676    
   5  norm          31.439        1.3902        .17848E-03   -1.5596    
   6  Prefactor     .60952        .80963        .68322E-03   -1.5692    
   7  norm          .84460        1.8073        .49491E-03   -1.5690    
   8  norm           .0000        .51740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        36.756        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        28.294        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9816        3.2856        .58767E-03   -1.5673    
  12  Normalizat    1.1933        .18604        .13609       -.86810    
  13  Prefactor     .96250        .44253E-01    .45798E-01   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79643e-06
Minuit parameter uncertainties:
  1  1.58652e-05
  2  25.2275
  3  14.2714
  4  5.00988
  5  1.3902
  6  0.809629
  7  1.80726
  8  2.09191e-07
  9  4.85807e-05
  10  6.23928e-06
  11  3.28565
  12  0.186144
  13  0.0442543
SC_DATA" srcmdl=/lscratch/kocevski/34805841/Model_4FGL_J0336.4+3224_daily_bin2194.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/34805841/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits.....................!
real 218.18
user 214.85
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34805841/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits', '/lscratch/kocevski/34805841/ft2_4FGL_J0336.4+3224_daily_bin2194.fits', expMap='/lscratch/kocevski/34805841/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', expCube='/lscratch/kocevski/34805841/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34805841/Model_4FGL_J0336.4+3224_daily_bin2194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34805841/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits
Spacecraft file(s): /lscratch/kocevski/34805841/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure map: /lscratch/kocevski/34805841/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure cube: /lscratch/kocevski/34805841/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34805841/Model_4FGL_J0336.4+3224_daily_bin2194.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) = 28817.9219287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    127.30       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.265       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5546       1.0000          .0000       .10000E+07
     5 'norm      '    31.401       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61017       1.0000          .0000       .10000E+07
     7 'norm      '    .84706       1.0000          .0000       .10000E+07
     8 'norm      '    .14405E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14353       1.0000          .0000       .10000E+07
    10 'norm      '    .16792E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.9819       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .96262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      718 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.846        .51191E-06** at limit **
   2  norm          127.73        25.235        .32243E-08   -.62113E-04
   3  Prefactor     33.359        14.316        .82154E-07   -.19175E-03
   4  Prefactor     2.5519        4.9029        .68277E-07    .27904E-04
   5  norm          31.439        1.3926       -.87721E-08   -.17358E-02
   6  Prefactor     .60952        .79797       -.37840E-07   -.15704E-03
   7  norm          .84460        1.7768       -.50319E-07   -.33164E-04
   8  norm           .0000        .52401        .11954E-07** at limit **
   9  Prefactor      .0000        37.018        .98534E-07** at limit **
  10  norm           .0000        28.948       -.16255E-06** at limit **
  11  norm          2.9816        3.2919       -.88436E-07   -.30057E-03
  12  Normalizat    1.1933        .20088        .17537E-05   -.21289E-04
  13  Prefactor     .96250        .48660E-01   -.57949E-06   -.15777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 127.726
  Prefactor  = 33.3592
  Prefactor  = 2.55188
  norm       = 31.4386
  Prefactor  = 0.609519
  norm       = 0.844597
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 2.98161
  Normalizat = 1.1933
  Prefactor  = 0.962505
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  2.092e-07  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  4.425e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 5.87648928738e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/34805726/likelihoodResults_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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): 102
logL (Free Index) = 28817.1908062
delta logL = -0.02243705828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28817.1683691
delta logL = -6.65750121698e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    3.0319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      191 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .38442        .64951E-07** at limit **
   2  alpha         1.5896        1.1006        .22452E-04     .0000    
   3  Normalizat    1.1933        .19062       -.11687E-04   -.89533E-04
   4  Prefactor     .96251        .47291E-01    .35756E-05    .31734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.58962
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28817.17     FROM HESSE     STATUS=FAILED        11 CALLS      202 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .38349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .56882        1.1014        .22452E-04   -.37272    
   3  Normalizat    1.1933        1.1087       -.11687E-04   -.86810    
   4  Prefactor     .96251        1.3040        .35756E-05   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.66146e-11
Minuit parameter uncertainties:
  1  1.10189e-06
  2  0.987107
  3  1.13172
  4  1.3507
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) = 28817.1683691
delta logL = -4.72937244922e-11

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  1.102e-06  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  1.590e+00  9.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  1.351e+00  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 54.102 32.411

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/34805726/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.88e-08', time_completed='2026-08-13 03:09:37.395913', job_id='34805726', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1786615777.4', return_code2='101', ts='0.00', return_code='0', GAL='0.96', dlogl='-4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='2194' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 13 03:09:37 PDT 2026

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

 FCN=   28817.17     FROM HESSE     STATUS=OK           175 CALLS      893 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          127.73        25.227        .88637E-04   -1.5482    
   3  Prefactor     33.359        14.271        .17086E-03   -1.5592    
   4  Prefactor     2.5519        5.0099        .63852E-03   -1.5676    
   5  norm          31.439        1.3902        .17848E-03   -1.5596    
   6  Prefactor     .60952        .80963        .68322E-03   -1.5692    
   7  norm          .84460        1.8073        .49491E-03   -1.5690    
   8  norm           .0000        .51740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        36.756        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        28.294        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9816        3.2856        .58767E-03   -1.5673    
  12  Normalizat    1.1933        .18604        .13609       -.86810    
  13  Prefactor     .96250        .44253E-01    .45798E-01   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79643e-06
Minuit parameter uncertainties:
  1  1.58652e-05
  2  25.2275
  3  14.2714
  4  5.00988
  5  1.3902
  6  0.809629
  7  1.80726
  8  2.09191e-07
  9  4.85807e-05
  10  6.23928e-06
  11  3.28565
  12  0.186144
  13  0.0442543
SC_DATA" srcmdl=/lscratch/kocevski/34805902/Model_4FGL_J0336.4+3224_daily_bin2194.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/34805902/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits.....................!
real 216.49
user 213.60
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34805902/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits', '/lscratch/kocevski/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.fits', expMap='/lscratch/kocevski/34805902/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', expCube='/lscratch/kocevski/34805902/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34805902/Model_4FGL_J0336.4+3224_daily_bin2194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34805902/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits
Spacecraft file(s): /lscratch/kocevski/34805902/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure map: /lscratch/kocevski/34805902/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure cube: /lscratch/kocevski/34805902/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34805902/Model_4FGL_J0336.4+3224_daily_bin2194.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) = 28817.9219287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    127.30       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.265       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5546       1.0000          .0000       .10000E+07
     5 'norm      '    31.401       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61017       1.0000          .0000       .10000E+07
     7 'norm      '    .84706       1.0000          .0000       .10000E+07
     8 'norm      '    .14405E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14353       1.0000          .0000       .10000E+07
    10 'norm      '    .16792E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.9819       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .96262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      718 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.846        .51191E-06** at limit **
   2  norm          127.73        25.235        .32243E-08   -.62113E-04
   3  Prefactor     33.359        14.316        .82154E-07   -.19175E-03
   4  Prefactor     2.5519        4.9029        .68277E-07    .27904E-04
   5  norm          31.439        1.3926       -.87721E-08   -.17358E-02
   6  Prefactor     .60952        .79797       -.37840E-07   -.15704E-03
   7  norm          .84460        1.7768       -.50319E-07   -.33164E-04
   8  norm           .0000        .52401        .11954E-07** at limit **
   9  Prefactor      .0000        37.018        .98534E-07** at limit **
  10  norm           .0000        28.948       -.16255E-06** at limit **
  11  norm          2.9816        3.2919       -.88436E-07   -.30057E-03
  12  Normalizat    1.1933        .20088        .17537E-05   -.21289E-04
  13  Prefactor     .96250        .48660E-01   -.57949E-06   -.15777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 127.726
  Prefactor  = 33.3592
  Prefactor  = 2.55188
  norm       = 31.4386
  Prefactor  = 0.609519
  norm       = 0.844597
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 2.98161
  Normalizat = 1.1933
  Prefactor  = 0.962505
SC_DATA" srcmdl=/lscratch/kocevski/34805918/Model_4FGL_J0336.4+3224_daily_bin2194.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/34805918/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits.....................!
real 215.22
user 212.56
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34805918/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits', '/lscratch/kocevski/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.fits', expMap='/lscratch/kocevski/34805918/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', expCube='/lscratch/kocevski/34805918/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34805918/Model_4FGL_J0336.4+3224_daily_bin2194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34805918/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits
Spacecraft file(s): /lscratch/kocevski/34805918/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure map: /lscratch/kocevski/34805918/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure cube: /lscratch/kocevski/34805918/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34805918/Model_4FGL_J0336.4+3224_daily_bin2194.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) = 28817.9219287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    127.30       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.265       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5546       1.0000          .0000       .10000E+07
     5 'norm      '    31.401       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61017       1.0000          .0000       .10000E+07
     7 'norm      '    .84706       1.0000          .0000       .10000E+07
     8 'norm      '    .14405E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14353       1.0000          .0000       .10000E+07
    10 'norm      '    .16792E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.9819       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .96262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      718 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.846        .51191E-06** at limit **
   2  norm          127.73        25.235        .32243E-08   -.62113E-04
   3  Prefactor     33.359        14.316        .82154E-07   -.19175E-03
   4  Prefactor     2.5519        4.9029        .68277E-07    .27904E-04
   5  norm          31.439        1.3926       -.87721E-08   -.17358E-02
   6  Prefactor     .60952        .79797       -.37840E-07   -.15704E-03
   7  norm          .84460        1.7768       -.50319E-07   -.33164E-04
   8  norm           .0000        .52401        .11954E-07** at limit **
   9  Prefactor      .0000        37.018        .98534E-07** at limit **
  10  norm           .0000        28.948       -.16255E-06** at limit **
  11  norm          2.9816        3.2919       -.88436E-07   -.30057E-03
  12  Normalizat    1.1933        .20088        .17537E-05   -.21289E-04
  13  Prefactor     .96250        .48660E-01   -.57949E-06   -.15777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 127.726
  Prefactor  = 33.3592
  Prefactor  = 2.55188
  norm       = 31.4386
  Prefactor  = 0.609519
  norm       = 0.844597
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 2.98161
  Normalizat = 1.1933
  Prefactor  = 0.962505
SC_DATA" srcmdl=/lscratch/kocevski/34805901/Model_4FGL_J0336.4+3224_daily_bin2194.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/34805901/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits.....................!
real 218.53
user 215.83
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34805901/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits', '/lscratch/kocevski/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.fits', expMap='/lscratch/kocevski/34805901/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', expCube='/lscratch/kocevski/34805901/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34805901/Model_4FGL_J0336.4+3224_daily_bin2194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34805901/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits
Spacecraft file(s): /lscratch/kocevski/34805901/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure map: /lscratch/kocevski/34805901/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure cube: /lscratch/kocevski/34805901/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34805901/Model_4FGL_J0336.4+3224_daily_bin2194.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) = 28817.9219287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    127.30       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.265       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5546       1.0000          .0000       .10000E+07
     5 'norm      '    31.401       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61017       1.0000          .0000       .10000E+07
     7 'norm      '    .84706       1.0000          .0000       .10000E+07
     8 'norm      '    .14405E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14353       1.0000          .0000       .10000E+07
    10 'norm      '    .16792E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.9819       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .96262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      718 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.846        .51191E-06** at limit **
   2  norm          127.73        25.235        .32243E-08   -.62113E-04
   3  Prefactor     33.359        14.316        .82154E-07   -.19175E-03
   4  Prefactor     2.5519        4.9029        .68277E-07    .27904E-04
   5  norm          31.439        1.3926       -.87721E-08   -.17358E-02
   6  Prefactor     .60952        .79797       -.37840E-07   -.15704E-03
   7  norm          .84460        1.7768       -.50319E-07   -.33164E-04
   8  norm           .0000        .52401        .11954E-07** at limit **
   9  Prefactor      .0000        37.018        .98534E-07** at limit **
  10  norm           .0000        28.948       -.16255E-06** at limit **
  11  norm          2.9816        3.2919       -.88436E-07   -.30057E-03
  12  Normalizat    1.1933        .20088        .17537E-05   -.21289E-04
  13  Prefactor     .96250        .48660E-01   -.57949E-06   -.15777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 127.726
  Prefactor  = 33.3592
  Prefactor  = 2.55188
  norm       = 31.4386
  Prefactor  = 0.609519
  norm       = 0.844597
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 2.98161
  Normalizat = 1.1933
  Prefactor  = 0.962505
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  2.092e-07  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  4.425e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 5.87648928738e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/34805787/likelihoodResults_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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): 102
logL (Free Index) = 28817.1908062
delta logL = -0.02243705828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28817.1683691
delta logL = -6.65750121698e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    3.0319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      191 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .38442        .64951E-07** at limit **
   2  alpha         1.5896        1.1006        .22452E-04     .0000    
   3  Normalizat    1.1933        .19062       -.11687E-04   -.89533E-04
   4  Prefactor     .96251        .47291E-01    .35756E-05    .31734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.58962
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28817.17     FROM HESSE     STATUS=FAILED        11 CALLS      202 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .38349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .56882        1.1014        .22452E-04   -.37272    
   3  Normalizat    1.1933        1.1087       -.11687E-04   -.86810    
   4  Prefactor     .96251        1.3040        .35756E-05   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.66146e-11
Minuit parameter uncertainties:
  1  1.10189e-06
  2  0.987107
  3  1.13172
  4  1.3507
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) = 28817.1683691
delta logL = -4.72937244922e-11

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  1.102e-06  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  1.590e+00  9.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  1.351e+00  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 54.102 32.411

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/34805787/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.88e-08', time_completed='2026-08-13 03:10:30.751127', job_id='34805787', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1786615830.75', return_code2='101', ts='0.00', return_code='0', GAL='0.96', dlogl='-4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='2194' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 13 03:10:31 PDT 2026

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

 FCN=   28817.17     FROM HESSE     STATUS=OK           175 CALLS      893 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          127.73        25.227        .88637E-04   -1.5482    
   3  Prefactor     33.359        14.271        .17086E-03   -1.5592    
   4  Prefactor     2.5519        5.0099        .63852E-03   -1.5676    
   5  norm          31.439        1.3902        .17848E-03   -1.5596    
   6  Prefactor     .60952        .80963        .68322E-03   -1.5692    
   7  norm          .84460        1.8073        .49491E-03   -1.5690    
   8  norm           .0000        .51740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        36.756        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        28.294        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9816        3.2856        .58767E-03   -1.5673    
  12  Normalizat    1.1933        .18604        .13609       -.86810    
  13  Prefactor     .96250        .44253E-01    .45798E-01   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79643e-06
Minuit parameter uncertainties:
  1  1.58652e-05
  2  25.2275
  3  14.2714
  4  5.00988
  5  1.3902
  6  0.809629
  7  1.80726
  8  2.09191e-07
  9  4.85807e-05
  10  6.23928e-06
  11  3.28565
  12  0.186144
  13  0.0442543
 **********
 **   18 **HESSE 
 **********

 FCN=   28817.17     FROM HESSE     STATUS=OK           175 CALLS      893 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          127.73        25.227        .88637E-04   -1.5482    
   3  Prefactor     33.359        14.271        .17086E-03   -1.5592    
   4  Prefactor     2.5519        5.0099        .63852E-03   -1.5676    
   5  norm          31.439        1.3902        .17848E-03   -1.5596    
   6  Prefactor     .60952        .80963        .68322E-03   -1.5692    
   7  norm          .84460        1.8073        .49491E-03   -1.5690    
   8  norm           .0000        .51740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        36.756        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        28.294        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9816        3.2856        .58767E-03   -1.5673    
  12  Normalizat    1.1933        .18604        .13609       -.86810    
  13  Prefactor     .96250        .44253E-01    .45798E-01   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79643e-06
Minuit parameter uncertainties:
  1  1.58652e-05
  2  25.2275
  3  14.2714
  4  5.00988
  5  1.3902
  6  0.809629
  7  1.80726
  8  2.09191e-07
  9  4.85807e-05
  10  6.23928e-06
  11  3.28565
  12  0.186144
  13  0.0442543
 **********
 **   18 **HESSE 
 **********

 FCN=   28817.17     FROM HESSE     STATUS=OK           175 CALLS      893 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          127.73        25.227        .88637E-04   -1.5482    
   3  Prefactor     33.359        14.271        .17086E-03   -1.5592    
   4  Prefactor     2.5519        5.0099        .63852E-03   -1.5676    
   5  norm          31.439        1.3902        .17848E-03   -1.5596    
   6  Prefactor     .60952        .80963        .68322E-03   -1.5692    
   7  norm          .84460        1.8073        .49491E-03   -1.5690    
   8  norm           .0000        .51740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        36.756        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        28.294        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9816        3.2856        .58767E-03   -1.5673    
  12  Normalizat    1.1933        .18604        .13609       -.86810    
  13  Prefactor     .96250        .44253E-01    .45798E-01   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79643e-06
Minuit parameter uncertainties:
  1  1.58652e-05
  2  25.2275
  3  14.2714
  4  5.00988
  5  1.3902
  6  0.809629
  7  1.80726
  8  2.09191e-07
  9  4.85807e-05
  10  6.23928e-06
  11  3.28565
  12  0.186144
  13  0.0442543
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  2.092e-07  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  4.425e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 5.87648928738e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/34805841/likelihoodResults_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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): 102
logL (Free Index) = 28817.1908062
delta logL = -0.02243705828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28817.1683691
delta logL = -6.65750121698e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    3.0319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      191 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .38442        .64951E-07** at limit **
   2  alpha         1.5896        1.1006        .22452E-04     .0000    
   3  Normalizat    1.1933        .19062       -.11687E-04   -.89533E-04
   4  Prefactor     .96251        .47291E-01    .35756E-05    .31734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.58962
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28817.17     FROM HESSE     STATUS=FAILED        11 CALLS      202 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .38349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .56882        1.1014        .22452E-04   -.37272    
   3  Normalizat    1.1933        1.1087       -.11687E-04   -.86810    
   4  Prefactor     .96251        1.3040        .35756E-05   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.66146e-11
Minuit parameter uncertainties:
  1  1.10189e-06
  2  0.987107
  3  1.13172
  4  1.3507
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) = 28817.1683691
delta logL = -4.72937244922e-11

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  1.102e-06  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  1.590e+00  9.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  1.351e+00  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 54.102 32.411

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/34805841/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.88e-08', time_completed='2026-08-13 03:11:02.022214', job_id='34805841', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1786615862.02', return_code2='101', ts='0.00', return_code='0', GAL='0.96', dlogl='-4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='2194' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 13 03:11:02 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  2.092e-07  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  4.425e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 5.87648928738e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/34805902/likelihoodResults_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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): 102
logL (Free Index) = 28817.1908062
delta logL = -0.02243705828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28817.1683691
delta logL = -6.65750121698e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    3.0319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      191 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .38442        .64951E-07** at limit **
   2  alpha         1.5896        1.1006        .22452E-04     .0000    
   3  Normalizat    1.1933        .19062       -.11687E-04   -.89533E-04
   4  Prefactor     .96251        .47291E-01    .35756E-05    .31734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.58962
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28817.17     FROM HESSE     STATUS=FAILED        11 CALLS      202 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .38349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .56882        1.1014        .22452E-04   -.37272    
   3  Normalizat    1.1933        1.1087       -.11687E-04   -.86810    
   4  Prefactor     .96251        1.3040        .35756E-05   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.66146e-11
Minuit parameter uncertainties:
  1  1.10189e-06
  2  0.987107
  3  1.13172
  4  1.3507
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) = 28817.1683691
delta logL = -4.72937244922e-11

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  1.102e-06  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  1.590e+00  9.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  1.351e+00  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 54.102 32.411

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/34805902/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.88e-08', time_completed='2026-08-13 03:11:53.284988', job_id='34805902', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1786615913.29', return_code2='101', ts='0.00', return_code='0', GAL='0.96', dlogl='-4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='2194' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 13 03:11:53 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  2.092e-07  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  4.425e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 5.87648928738e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/34805901/likelihoodResults_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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): 102
logL (Free Index) = 28817.1908062
delta logL = -0.02243705828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28817.1683691
delta logL = -6.65750121698e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    3.0319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      191 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .38442        .64951E-07** at limit **
   2  alpha         1.5896        1.1006        .22452E-04     .0000    
   3  Normalizat    1.1933        .19062       -.11687E-04   -.89533E-04
   4  Prefactor     .96251        .47291E-01    .35756E-05    .31734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.58962
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28817.17     FROM HESSE     STATUS=FAILED        11 CALLS      202 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .38349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .56882        1.1014        .22452E-04   -.37272    
   3  Normalizat    1.1933        1.1087       -.11687E-04   -.86810    
   4  Prefactor     .96251        1.3040        .35756E-05   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.66146e-11
Minuit parameter uncertainties:
  1  1.10189e-06
  2  0.987107
  3  1.13172
  4  1.3507
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  2.092e-07  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  4.425e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 5.87648928738e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/34805918/likelihoodResults_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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): 102
logL (Free Index) = 28817.1908062
delta logL = -0.02243705828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28817.1683691
delta logL = -6.65750121698e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    3.0319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      191 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .38442        .64951E-07** at limit **
   2  alpha         1.5896        1.1006        .22452E-04     .0000    
   3  Normalizat    1.1933        .19062       -.11687E-04   -.89533E-04
   4  Prefactor     .96251        .47291E-01    .35756E-05    .31734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.58962
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28817.17     FROM HESSE     STATUS=FAILED        11 CALLS      202 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .38349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .56882        1.1014        .22452E-04   -.37272    
   3  Normalizat    1.1933        1.1087       -.11687E-04   -.86810    
   4  Prefactor     .96251        1.3040        .35756E-05   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.66146e-11
Minuit parameter uncertainties:
  1  1.10189e-06
  2  0.987107
  3  1.13172
  4  1.3507
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) = 28817.1683691
delta logL = -4.72937244922e-11

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  1.102e-06  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  1.590e+00  9.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  1.351e+00  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 54.102 32.411

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/34805901/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.88e-08', time_completed='2026-08-13 03:12:01.827798', job_id='34805901', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1786615921.83', return_code2='101', ts='0.00', return_code='0', GAL='0.96', dlogl='-4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='2194' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 13 03:12:02 PDT 2026

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) = 28817.1683691
delta logL = -4.72937244922e-11

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  1.102e-06  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  1.590e+00  9.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  1.351e+00  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 54.102 32.411

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/34805918/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.88e-08', time_completed='2026-08-13 03:12:04.279348', job_id='34805918', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1786615924.28', return_code2='101', ts='0.00', return_code='0', GAL='0.96', dlogl='-4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='2194' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 13 03:12:04 PDT 2026

SC_DATA" srcmdl=/lscratch/kocevski/34806024/Model_4FGL_J0336.4+3224_daily_bin2194.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/34806024/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits.....................!
real 218.23
user 215.38
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34806024/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits', '/lscratch/kocevski/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.fits', expMap='/lscratch/kocevski/34806024/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', expCube='/lscratch/kocevski/34806024/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34806024/Model_4FGL_J0336.4+3224_daily_bin2194.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34806024/ft1_filtered_4FGL_J0336.4+3224_daily_bin2194.fits
Spacecraft file(s): /lscratch/kocevski/34806024/ft2_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure map: /lscratch/kocevski/34806024/expmap_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
Exposure cube: /lscratch/kocevski/34806024/ltcube_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34806024/Model_4FGL_J0336.4+3224_daily_bin2194.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) = 28817.9219287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12114E-02   1.0000          .0000       .10000E+07
     2 'norm      '    127.30       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.265       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5546       1.0000          .0000       .10000E+07
     5 'norm      '    31.401       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61017       1.0000          .0000       .10000E+07
     7 'norm      '    .84706       1.0000          .0000       .10000E+07
     8 'norm      '    .14405E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14353       1.0000          .0000       .10000E+07
    10 'norm      '    .16792E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.9819       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .96262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      718 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.846        .51191E-06** at limit **
   2  norm          127.73        25.235        .32243E-08   -.62113E-04
   3  Prefactor     33.359        14.316        .82154E-07   -.19175E-03
   4  Prefactor     2.5519        4.9029        .68277E-07    .27904E-04
   5  norm          31.439        1.3926       -.87721E-08   -.17358E-02
   6  Prefactor     .60952        .79797       -.37840E-07   -.15704E-03
   7  norm          .84460        1.7768       -.50319E-07   -.33164E-04
   8  norm           .0000        .52401        .11954E-07** at limit **
   9  Prefactor      .0000        37.018        .98534E-07** at limit **
  10  norm           .0000        28.948       -.16255E-06** at limit **
  11  norm          2.9816        3.2919       -.88436E-07   -.30057E-03
  12  Normalizat    1.1933        .20088        .17537E-05   -.21289E-04
  13  Prefactor     .96250        .48660E-01   -.57949E-06   -.15777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 127.726
  Prefactor  = 33.3592
  Prefactor  = 2.55188
  norm       = 31.4386
  Prefactor  = 0.609519
  norm       = 0.844597
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 2.98161
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********

 FCN=   28817.17     FROM HESSE     STATUS=OK           175 CALLS      893 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          127.73        25.227        .88637E-04   -1.5482    
   3  Prefactor     33.359        14.271        .17086E-03   -1.5592    
   4  Prefactor     2.5519        5.0099        .63852E-03   -1.5676    
   5  norm          31.439        1.3902        .17848E-03   -1.5596    
   6  Prefactor     .60952        .80963        .68322E-03   -1.5692    
   7  norm          .84460        1.8073        .49491E-03   -1.5690    
   8  norm           .0000        .51740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        36.756        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        28.294        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9816        3.2856        .58767E-03   -1.5673    
  12  Normalizat    1.1933        .18604        .13609       -.86810    
  13  Prefactor     .96250        .44253E-01    .45798E-01   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79643e-06
Minuit parameter uncertainties:
  1  1.58652e-05
  2  25.2275
  3  14.2714
  4  5.00988
  5  1.3902
  6  0.809629
  7  1.80726
  8  2.09191e-07
  9  4.85807e-05
  10  6.23928e-06
  11  3.28565
  12  0.186144
  13  0.0442543
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  2.092e-07  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  4.425e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 5.87648928738e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/34806024/likelihoodResults_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.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): 102
logL (Free Index) = 28817.1908062
delta logL = -0.02243705828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28817.1683691
delta logL = -6.65750121698e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    3.0319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28817.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      191 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .38442        .64951E-07** at limit **
   2  alpha         1.5896        1.1006        .22452E-04     .0000    
   3  Normalizat    1.1933        .19062       -.11687E-04   -.89533E-04
   4  Prefactor     .96251        .47291E-01    .35756E-05    .31734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.58962
  Normalizat = 1.1933
  Prefactor  = 0.962505
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28817.17     FROM HESSE     STATUS=FAILED        11 CALLS      202 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .38349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .56882        1.1014        .22452E-04   -.37272    
   3  Normalizat    1.1933        1.1087       -.11687E-04   -.86810    
   4  Prefactor     .96251        1.3040        .35756E-05   -.93990    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.66146e-11
Minuit parameter uncertainties:
  1  1.10189e-06
  2  0.987107
  3  1.13172
  4  1.3507
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) = 28817.1683691
delta logL = -4.72937244922e-11

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  0.000e+00  1.102e-06  0.000e+00  1.000e+06 ( 1.000e-11)
288        alpha:  1.590e+00  9.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.625e-01  1.351e+00  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.193e+00  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 54.102 32.411

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/34806024/cmap_HighResolution_808012801_808272001_4FGL_J0336.4+3224_daily_bin2194.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.88e-08', time_completed='2026-08-13 03:14:20.332211', job_id='34806024', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1786616060.33', return_code2='101', ts='0.00', return_code='0', GAL='0.96', dlogl='-4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='2194' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 13 03:14:20 PDT 2026

