/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
number of points = 17462
number of fields = 31
RA_SUN column already exists. File will not be modified.

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

Done.


Performing analysis on: 4FGL_J0304.5+3349_weekly_bin935
RA = 46.1379, Dec = 33.8261
tmin = 804470401, tmax = 805075201
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='31000229', job_status='RUN', time_executed='2026-07-07 23:28:01.469111', time_epoch_executed='1783492081.47' WHERE source_name='4FGL J0304.5+3349' and cadence='weekly' and bin_id='935'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31000229

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31000229/ft1_4FGL_J0304.5+3349_weekly_bin935.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31000229/ft1_4FGL_J0304.5+3349_weekly_bin935.fits outfile=/lscratch/kocevski/31000229/ft1_filteredMKT_4FGL_J0304.5+3349_weekly_bin935.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=804470401.0 tmax=805075201.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 6.31
user 5.71
sys 0.34

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.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/31000229/ft1_filteredMKT_4FGL_J0304.5+3349_weekly_bin935.fits evtable="EVENTS" outfile="/lscratch/kocevski/31000229/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.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.55
user 0.24
sys 0.12

Number of photons that the gtmktime cut: 2966

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31000229/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.fits sctable="SC_DATA"/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J0304.5+3349_weekly_bin935
RA = 46.1379, Dec = 33.8261
tmin = 804470401, tmax = 805075201
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='31000236', job_status='RUN', time_executed='2026-07-07 23:29:07.519021', time_epoch_executed='1783492147.52' WHERE source_name='4FGL J0304.5+3349' and cadence='weekly' and bin_id='935'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31000236

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31000236/ft1_4FGL_J0304.5+3349_weekly_bin935.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31000236/ft1_4FGL_J0304.5+3349_weekly_bin935.fits outfile=/lscratch/kocevski/31000236/ft1_filteredMKT_4FGL_J0304.5+3349_weekly_bin935.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=804470401.0 tmax=805075201.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 6.51
user 5.35
sys 0.42

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.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/31000236/ft1_filteredMKT_4FGL_J0304.5+3349_weekly_bin935.fits evtable="EVENTS" outfile="/lscratch/kocevski/31000236/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.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.77
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 2966

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31000236/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31000229/ltcube_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.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/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.fits
.....................!
real 20.41
user 19.87
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31000229/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits evtable="EVENTS" scfile=/lscratch/kocevski/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31000229/ltcube_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits outfile=/lscratch/kocevski/31000229/expmap_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.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/31000229/ltcube_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits
.....................!
real 77.58
user 72.41
sys 4.42

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0304.5+3349 @ 46.1379 33.8261

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31000229/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits scfile=/lscratch/kocevski/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.fits outfile=/lscratch/kocevski/31000229/cmap_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.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=46.1379 yref=33.8261 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31000229/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits scfile=/lscratch/kocevski/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.fits outfile=/lscratch/kocevski/31000229/cmap_HighResolution_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.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=46.1379 yref=33.8261 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31000229/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits evtable="EVENTS" scfile=/lscratch/kocevski/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31000229/Model_4FGL_J0304.5+3349_weekly_bin935.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/31000236/ltcube_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.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/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.fits
.....................!
real 19.99
user 19.14
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31000236/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits evtable="EVENTS" scfile=/lscratch/kocevski/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31000236/ltcube_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits outfile=/lscratch/kocevski/31000236/expmap_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.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/31000236/ltcube_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits
.....................!
real 74.01
user 68.57
sys 4.32

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0304.5+3349 @ 46.1379 33.8261

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31000236/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits scfile=/lscratch/kocevski/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.fits outfile=/lscratch/kocevski/31000236/cmap_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.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=46.1379 yref=33.8261 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.74
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31000236/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits scfile=/lscratch/kocevski/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.fits outfile=/lscratch/kocevski/31000236/cmap_HighResolution_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.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=46.1379 yref=33.8261 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.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31000236/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits evtable="EVENTS" scfile=/lscratch/kocevski/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31000236/Model_4FGL_J0304.5+3349_weekly_bin935.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/31000229/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits.....................!
real 183.28
user 180.35
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31000229/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits', '/lscratch/kocevski/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.fits', expMap='/lscratch/kocevski/31000229/expmap_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits', expCube='/lscratch/kocevski/31000229/ltcube_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31000229/Model_4FGL_J0304.5+3349_weekly_bin935.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0304.5+3349'

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  3.979e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.863e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  3.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31000229/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits
Spacecraft file(s): /lscratch/kocevski/31000229/ft2_4FGL_J0304.5+3349_weekly_bin935.fits
Exposure map: /lscratch/kocevski/31000229/expmap_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits
Exposure cube: /lscratch/kocevski/31000229/ltcube_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31000229/Model_4FGL_J0304.5+3349_weekly_bin935.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) = 29631.0082515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52437       1.0000          .0000       .10000E+07
     2 'norm      '    .70355E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .14529E-05   1.0000          .0000       .10000E+07
     4 'norm      '    29.526       1.0000          .0000       .10000E+07
     5 'norm      '    .30737E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.5108       1.0000          .0000       .10000E+07
     7 'Prefactor '    8.4044       1.0000          .0000       .10000E+07
     8 'norm      '    173.25       1.0000          .0000       .10000E+07
     9 'Prefactor '    14.189       1.0000          .0000       .10000E+07
    10 'norm      '    7.3503       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.0826       1.0000          .0000       .10000E+07
    12 'norm      '    .62902       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.3582       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.3715       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .89716       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   29630.83     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      701 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51930        1.6787        .23504E-06    .14892E-02
   2  norm           .0000        .70315       -.30116E-06** at limit **
   3  Prefactor      .0000        2.3809        .23063E-06** at limit **
   4  norm          29.558        5.5905       -.75479E-07    .13032E-02
   5  norm           .0000        .24405       -.18492E-06** at limit **
   6  Prefactor     2.4890        4.4745       -.45830E-07   -.21092E-03
   7  Prefactor     7.4939        20.976       -.51876E-06    .27546E-03
   8  norm          173.66        26.389       -.12048E-06    .18160E-02
   9  Prefactor     14.080        10.079       -.34255E-07   -.66970E-03
  10  norm          7.3547        .70309       -.27329E-07    .89930E-02
  11  Prefactor     1.0819        .90656       -.12328E-06    .16261E-02
  12  norm          .62531        1.0160        .70274E-07    .91269E-04
  13  Prefactor     3.3790        122.32        .81568E-05   -.98458E-03
  14  Normalizat    1.3712        .15909       -.47878E-05    .10918E-04
  15  Prefactor     .89803        .50242E-01    .17655E-05   -.16617E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.519297
  norm       = 0
  Prefactor  = 0
  norm       = 29.5578
  norm       = 0
  Prefactor  = 2.48896
  Prefactor  = 7.49392
  norm       = 173.663
  Prefactor  = 14.0801
  norm       = 7.35475
  Prefactor  = 1.08191
  norm       = 0.625306
  Prefactor  = 3.37905
  Normalizat = 1.37115
  Prefactor  = 0.898027
 **********
 **   18 **HESSE 
 **********

 FCN=   29630.83     FROM HESSE     STATUS=OK           226 CALLS      927 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51930        1.9063        .76295E-03   -1.5694    
   2  norm           .0000        .99693E-01    .26307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.3813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          29.558        5.5845        .18406E-03   -1.5599    
   5  norm           .0000        .24354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4890        4.4822        .64457E-03   -1.5676    
   7  Prefactor     7.4939        21.066        .34556E-03   -1.5653    
   8  norm          173.66        26.425        .75980E-04   -1.5444    
   9  Prefactor     14.080        10.036        .26564E-03   -1.5633    
  10  norm          7.3547        .70644        .36971E-03   -1.5654    
  11  Prefactor     1.0819        .93476        .11557E-02   -1.5687    
  12  norm          .62531        1.0248        .66668E-03   -1.5692    
  13  Prefactor     3.3790        122.81        .34652E-03   -1.5671    
  14  Normalizat    1.3712        .14483        .98062E-01   -.81467    
  15  Prefactor     .89803        .44982E-01    .44969E-01   -.96210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50575e-07
Minuit parameter uncertainties:
  1  1.90631
  2  3.12445e-06
  3  1.1918e-05
  4  5.58448
  5  1.45038e-06
  6  4.48219
  7  21.0663
  8  26.4253
  9  10.0356
  10  0.706442
  11  0.934764
  12  1.02485
  13  40.7433
  14  0.144868
  15  0.0449837
e GAL_V02
Working on...
/lscratch/kocevski/31000236/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits.....................!
real 175.20
user 171.90
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31000236/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits', '/lscratch/kocevski/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.fits', expMap='/lscratch/kocevski/31000236/expmap_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits', expCube='/lscratch/kocevski/31000236/ltcube_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31000236/Model_4FGL_J0304.5+3349_weekly_bin935.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0304.5+3349'

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  3.979e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.863e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  3.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31000236/ft1_filtered_4FGL_J0304.5+3349_weekly_bin935.fits
Spacecraft file(s): /lscratch/kocevski/31000236/ft2_4FGL_J0304.5+3349_weekly_bin935.fits
Exposure map: /lscratch/kocevski/31000236/expmap_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits
Exposure cube: /lscratch/kocevski/31000236/ltcube_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31000236/Model_4FGL_J0304.5+3349_weekly_bin935.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) = 29631.0082515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52437       1.0000          .0000       .10000E+07
     2 'norm      '    .70355E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .14529E-05   1.0000          .0000       .10000E+07
     4 'norm      '    29.526       1.0000          .0000       .10000E+07
     5 'norm      '    .30737E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.5108       1.0000          .0000       .10000E+07
     7 'Prefactor '    8.4044       1.0000          .0000       .10000E+07
     8 'norm      '    173.25       1.0000          .0000       .10000E+07
     9 'Prefactor '    14.189       1.0000          .0000       .10000E+07
    10 'norm      '    7.3503       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.0826       1.0000          .0000       .10000E+07
    12 'norm      '    .62902       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.3582       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.3715       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .89716       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   29630.83     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      701 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51930        1.6787        .23504E-06    .14892E-02
   2  norm           .0000        .70315       -.30116E-06** at limit **
   3  Prefactor      .0000        2.3809        .23063E-06** at limit **
   4  norm          29.558        5.5905       -.75479E-07    .13032E-02
   5  norm           .0000        .24405       -.18492E-06** at limit **
   6  Prefactor     2.4890        4.4745       -.45830E-07   -.21092E-03
   7  Prefactor     7.4939        20.976       -.51876E-06    .27546E-03
   8  norm          173.66        26.389       -.12048E-06    .18160E-02
   9  Prefactor     14.080        10.079       -.34255E-07   -.66970E-03
  10  norm          7.3547        .70309       -.27329E-07    .89930E-02
  11  Prefactor     1.0819        .90656       -.12328E-06    .16261E-02
  12  norm          .62531        1.0160        .70274E-07    .91269E-04
  13  Prefactor     3.3790        122.32        .81568E-05   -.98458E-03
  14  Normalizat    1.3712        .15909       -.47878E-05    .10918E-04
  15  Prefactor     .89803        .50242E-01    .17655E-05   -.16617E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.519297
  norm       = 0
  Prefactor  = 0
  norm       = 29.5578
  norm       = 0
  Prefactor  = 2.48896
  Prefactor  = 7.49392
  norm       = 173.663
  Prefactor  = 14.0801
  norm       = 7.35475
  Prefactor  = 1.08191
  norm       = 0.625306
  Prefactor  = 3.37905
  Normalizat = 1.37115
  Prefactor  = 0.898027
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.737e+02  2.643e+01  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.863e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  3.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  8.980e-01  4.498e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.371e+00  1.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 112.09
Ra Dec: 46.138 33.826
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 2.49e-07 +/- 3.79e-08
Energy Flux (Fixed Index): 8.15e-05 +/- 1.24e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29629.8639054
delta logL = 0.962912793548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29629.863793
delta logL = 0.963025131812

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   29629.86     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      313 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          226.16        52.135        .13300E-04    .68384E-03
   2  alpha         2.5335        .25040        .95691E-02    .11917E-02
   3  Normalizat    1.4215        .15318        .42839E-03    .20519E-03
   4  Prefactor     .89001        .48621E-01    .17043E-03   -.26149E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 226.16
  alpha      = 2.53346
  Normalizat = 1.42148
  Prefactor  = 0.890014
 **********
 **   18 **HESSE 
 **********

 FCN=   29629.86     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          226.16        50.296        .53199E-06   -1.5407    
   2  alpha         2.5335        .24138        .19138E-02    .13383E-01
   3  Normalizat    1.4215        .15289        .17136E-04   -.80009    
   4  Prefactor     .89001        .48612E-01    .68171E-05   -.96491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13981e-10
Minuit parameter uncertainties:
  1  50.2957
  2  0.241754
  3  0.152936
  4  0.0486144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29629.86379
delta logL = 0.963028146449

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  2.262e+02  5.030e+01  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.533e+00  2.418e-01  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  3.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  8.900e-01  4.861e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.421e+00  1.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 113.29
Ra Dec: 46.138 33.826
Photon Index (Free Index): 2.53 +/- 0.24
Photon Flux (Free Index): 2.04e-07 +/- 4.60e-08
Energy Flux (Free Index): 8.47e-05 +/- 1.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31000229/cmap_HighResolution_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.49e-07', energy_flux2='8.47e-05', photon_flux_error='3.79e-08', dlogl='9.63e-01', energy_flux='8.15e-05', photon_flux2='2.04e-07', job_status='DONE', time_completed='2026-07-07 23:37:38.516048', photon_index_error2='0.24', photon_index2='2.53', ts='112.09', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='1.37', time_epoch_completed='1783492658.52', return_code='0', job_id='31000229', GAL2='0.89', EG2='1.42', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.60e-08', ts2='113.29', photon_index='2.86' WHERE bin_id='935' AND source_name='4FGL J0304.5+3349' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  7 23:37:38 PDT 2026

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

 FCN=   29630.83     FROM HESSE     STATUS=OK           226 CALLS      927 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51930        1.9063        .76295E-03   -1.5694    
   2  norm           .0000        .99693E-01    .26307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.3813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          29.558        5.5845        .18406E-03   -1.5599    
   5  norm           .0000        .24354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4890        4.4822        .64457E-03   -1.5676    
   7  Prefactor     7.4939        21.066        .34556E-03   -1.5653    
   8  norm          173.66        26.425        .75980E-04   -1.5444    
   9  Prefactor     14.080        10.036        .26564E-03   -1.5633    
  10  norm          7.3547        .70644        .36971E-03   -1.5654    
  11  Prefactor     1.0819        .93476        .11557E-02   -1.5687    
  12  norm          .62531        1.0248        .66668E-03   -1.5692    
  13  Prefactor     3.3790        122.81        .34652E-03   -1.5671    
  14  Normalizat    1.3712        .14483        .98062E-01   -.81467    
  15  Prefactor     .89803        .44982E-01    .44969E-01   -.96210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50575e-07
Minuit parameter uncertainties:
  1  1.90631
  2  3.12445e-06
  3  1.1918e-05
  4  5.58448
  5  1.45038e-06
  6  4.48219
  7  21.0663
  8  26.4253
  9  10.0356
  10  0.706442
  11  0.934764
  12  1.02485
  13  40.7433
  14  0.144868
  15  0.0449837
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.737e+02  2.643e+01  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.863e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  3.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  8.980e-01  4.498e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.371e+00  1.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 112.09
Ra Dec: 46.138 33.826
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 2.49e-07 +/- 3.79e-08
Energy Flux (Fixed Index): 8.15e-05 +/- 1.24e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29629.8639054
delta logL = 0.962912793548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29629.863793
delta logL = 0.963025131812

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   29629.86     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      313 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          226.16        52.135        .13300E-04    .68384E-03
   2  alpha         2.5335        .25040        .95691E-02    .11917E-02
   3  Normalizat    1.4215        .15318        .42839E-03    .20519E-03
   4  Prefactor     .89001        .48621E-01    .17043E-03   -.26149E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 226.16
  alpha      = 2.53346
  Normalizat = 1.42148
  Prefactor  = 0.890014
 **********
 **   18 **HESSE 
 **********

 FCN=   29629.86     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          226.16        50.296        .53199E-06   -1.5407    
   2  alpha         2.5335        .24138        .19138E-02    .13383E-01
   3  Normalizat    1.4215        .15289        .17136E-04   -.80009    
   4  Prefactor     .89001        .48612E-01    .68171E-05   -.96491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13981e-10
Minuit parameter uncertainties:
  1  50.2957
  2  0.241754
  3  0.152936
  4  0.0486144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29629.86379
delta logL = 0.963028146449

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  2.262e+02  5.030e+01  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.533e+00  2.418e-01  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  3.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  8.900e-01  4.861e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.421e+00  1.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 113.29
Ra Dec: 46.138 33.826
Photon Index (Free Index): 2.53 +/- 0.24
Photon Flux (Free Index): 2.04e-07 +/- 4.60e-08
Energy Flux (Free Index): 8.47e-05 +/- 1.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31000236/cmap_HighResolution_804470401_805075201_4FGL_J0304.5+3349_weekly_bin935.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.49e-07', energy_flux2='8.47e-05', photon_flux_error='3.79e-08', dlogl='9.63e-01', energy_flux='8.15e-05', photon_flux2='2.04e-07', job_status='DONE', time_completed='2026-07-07 23:38:50.685980', photon_index_error2='0.24', photon_index2='2.53', ts='112.09', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='1.37', time_epoch_completed='1783492730.69', return_code='0', job_id='31000236', GAL2='0.89', EG2='1.42', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.60e-08', ts2='113.29', photon_index='2.86' WHERE bin_id='935' AND source_name='4FGL J0304.5+3349' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  7 23:38:50 PDT 2026

