/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J0330.6+0438_weekly_bin937
RA = 52.6727, Dec = 4.6349
tmin = 805680001, tmax = 806284801
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='32585893', job_status='RUN', time_executed='2026-07-21 02:50:24.817032', time_epoch_executed='1784627424.82' WHERE source_name='4FGL J0330.6+0438' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32585893

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32585893/ft1_4FGL_J0330.6+0438_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32585893/ft1_4FGL_J0330.6+0438_weekly_bin937.fits outfile=/lscratch/kocevski/32585893/ft1_filteredMKT_4FGL_J0330.6+0438_weekly_bin937.fits ra=52.6727 dec=4.6349 rad=12.0 tmin=805680001.0 tmax=806284801.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 5.14
user 3.72
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.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/32585893/ft1_filteredMKT_4FGL_J0330.6+0438_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32585893/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2668

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32585893/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.fits sctable="SC_DATA" onumber of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0330.6+0438_weekly_bin937
RA = 52.6727, Dec = 4.6349
tmin = 805680001, tmax = 806284801
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='32585933', job_status='RUN', time_executed='2026-07-21 02:51:22.802732', time_epoch_executed='1784627482.8' WHERE source_name='4FGL J0330.6+0438' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32585933

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32585933/ft1_4FGL_J0330.6+0438_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32585933/ft1_4FGL_J0330.6+0438_weekly_bin937.fits outfile=/lscratch/kocevski/32585933/ft1_filteredMKT_4FGL_J0330.6+0438_weekly_bin937.fits ra=52.6727 dec=4.6349 rad=12.0 tmin=805680001.0 tmax=806284801.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 5.21
user 4.03
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.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/32585933/ft1_filteredMKT_4FGL_J0330.6+0438_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32585933/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.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.96
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 2668

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32585933/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.fits sctable="SC_DATA" ouutfile=/lscratch/kocevski/32585893/ltcube_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.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/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.fits
.....................!
real 16.59
user 15.29
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32585893/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32585893/ltcube_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits outfile=/lscratch/kocevski/32585893/expmap_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.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/32585893/ltcube_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits
.....................!
real 62.94
user 58.03
sys 3.58

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

Setting source of interest to:
4FGL J0330.6+0438 @ 52.6727 4.6349

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32585893/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits scfile=/lscratch/kocevski/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.fits outfile=/lscratch/kocevski/32585893/cmap_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.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=52.6727 yref=4.6349 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.16
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32585893/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits scfile=/lscratch/kocevski/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.fits outfile=/lscratch/kocevski/32585893/cmap_HighResolution_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.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=52.6727 yref=4.6349 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.14
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32585893/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32585893/Model_4FGL_J0330.6+0438_weekly_bin937.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 GALtfile=/lscratch/kocevski/32585933/ltcube_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.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/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.fits
.....................!
real 16.75
user 15.61
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32585933/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32585933/ltcube_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits outfile=/lscratch/kocevski/32585933/expmap_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.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/32585933/ltcube_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits
.....................!
real 63.35
user 58.44
sys 3.77

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

Setting source of interest to:
4FGL J0330.6+0438 @ 52.6727 4.6349

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32585933/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits scfile=/lscratch/kocevski/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.fits outfile=/lscratch/kocevski/32585933/cmap_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.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=52.6727 yref=4.6349 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.99
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32585933/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits scfile=/lscratch/kocevski/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.fits outfile=/lscratch/kocevski/32585933/cmap_HighResolution_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.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=52.6727 yref=4.6349 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.02
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32585933/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32585933/Model_4FGL_J0330.6+0438_weekly_bin937.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/32585893/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits.....................!
real 122.37
user 119.53
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32585893/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits', '/lscratch/kocevski/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.fits', expMap='/lscratch/kocevski/32585893/expmap_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits', expCube='/lscratch/kocevski/32585893/ltcube_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32585893/Model_4FGL_J0330.6+0438_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0330.6+0438'

4FGL J0330.6+0438
   Spectrum: PowerLaw
276    Prefactor:  3.042e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.412e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32585893/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32585893/ft2_4FGL_J0330.6+0438_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32585893/expmap_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32585893/ltcube_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32585893/Model_4FGL_J0330.6+0438_weekly_bin937.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) = 28815.5877282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26090E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .79603E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .66613E-09   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3061       1.0000          .0000       .10000E+07
     5 'norm      '    5.8598       1.0000          .0000       .10000E+07
     6 'Prefactor '    .23759E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.1218       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14988E-08   1.0000          .0000       .10000E+07
     9 'norm      '    1.5556       1.0000          .0000       .10000E+07
    10 'norm      '    .65747       1.0000          .0000       .10000E+07
    11 'Prefactor '    19.587       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.6364       1.0000          .0000       .10000E+07
    13 'Normalizat'    .87565       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28814.87     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      722 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88818E-09    1.5165       -.29246E-07** at limit **
   2  norm          .11102E-09    3.1625       -.37841E-06** at limit **
   3  norm          .55511E-10    1.0690        .14036E-07** at limit **
   4  Prefactor     3.3053        3.0051       -.14798E-06   -.21118E-03
   5  norm          5.8528        3.5871        .42034E-07    .23477E-02
   6  Prefactor     .99920E-09    5.7955       -.86165E-06** at limit **
   7  Prefactor     4.1227        2.5388        .44611E-07    .31338E-02
   8  Prefactor     .88818E-09    1.4600       -.13505E-06** at limit **
   9  norm          1.5556        1.5070        .57408E-07    .22568E-02
  10  norm          .65752        .65871       -.52650E-07   -.50658E-02
  11  Prefactor     19.611        1.2755       -.17755E-07    .20461    
  12  Prefactor     8.6346        1.0601       -.42598E-08   -.27592E-01
  13  Normalizat    .87566        .12506       -.13276E-05   -.64539E-04
  14  Prefactor     1.0579        .46276E-01    .78707E-07   -.85387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.88178e-10
  norm       = 1.11022e-10
  norm       = 5.55112e-11
  Prefactor  = 3.30529
  norm       = 5.85276
  Prefactor  = 9.99201e-10
  Prefactor  = 4.1227
  Prefactor  = 8.88178e-10
  norm       = 1.5556
  norm       = 0.657518
  Prefactor  = 19.6109
  Prefactor  = 8.63459
  Normalizat = 0.875657
  Prefactor  = 1.0579
 **********
 **   18 **HESSE 
 **********

 FCN=   28814.87     FROM HESSE     STATUS=OK           192 CALLS      914 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88818E-09    1.5123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11102E-09    3.1678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3053        3.0190        .55653E-03   -1.5672    
   5  norm          5.8528        3.6001        .41463E-03   -1.5660    
   6  Prefactor     .99920E-09    5.7583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1227        2.5478        .49628E-03   -1.5667    
   8  Prefactor     .88818E-09    1.4609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5556        1.4842        .85324E-03   -1.5683    
  10  norm          .65752        .67119        .64230E-03   -1.5692    
  11  Prefactor     19.611        22.233        .22603E-03   -1.5619    
  12  Prefactor     8.6346        7.8506        .34085E-03   -1.5649    
  13  Normalizat    .87566        .11532        .97281E-01   -.97321    
  14  Prefactor     1.0579        .42245E-01    .39468E-01   -.90824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38732e-06
Minuit parameter uncertainties:
  1  7.29729e-05
  2  3.50746e-05
  3  1.10892e-05
  4  3.01895
  5  3.60013
  6  0.000149771
  7  2.54783
  8  7.19097e-05
  9  1.48421
  10  0.671195
  11  22.2327
  12  7.85059
  13  0.11535
  14  0.042246
V02
Working on...
/lscratch/kocevski/32585933/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits.....................!
real 127.28
user 124.20
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32585933/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits', '/lscratch/kocevski/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.fits', expMap='/lscratch/kocevski/32585933/expmap_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits', expCube='/lscratch/kocevski/32585933/ltcube_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32585933/Model_4FGL_J0330.6+0438_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0330.6+0438'

4FGL J0330.6+0438
   Spectrum: PowerLaw
276    Prefactor:  3.042e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.412e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32585933/ft1_filtered_4FGL_J0330.6+0438_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32585933/ft2_4FGL_J0330.6+0438_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32585933/expmap_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32585933/ltcube_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32585933/Model_4FGL_J0330.6+0438_weekly_bin937.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) = 28815.5877282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26090E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .79603E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .66613E-09   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3061       1.0000          .0000       .10000E+07
     5 'norm      '    5.8598       1.0000          .0000       .10000E+07
     6 'Prefactor '    .23759E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.1218       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14988E-08   1.0000          .0000       .10000E+07
     9 'norm      '    1.5556       1.0000          .0000       .10000E+07
    10 'norm      '    .65747       1.0000          .0000       .10000E+07
    11 'Prefactor '    19.587       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.6364       1.0000          .0000       .10000E+07
    13 'Normalizat'    .87565       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.0579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28814.87     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      722 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88818E-09    1.5165       -.29246E-07** at limit **
   2  norm          .11102E-09    3.1625       -.37841E-06** at limit **
   3  norm          .55511E-10    1.0690        .14036E-07** at limit **
   4  Prefactor     3.3053        3.0051       -.14798E-06   -.21118E-03
   5  norm          5.8528        3.5871        .42034E-07    .23477E-02
   6  Prefactor     .99920E-09    5.7955       -.86165E-06** at limit **
   7  Prefactor     4.1227        2.5388        .44611E-07    .31338E-02
   8  Prefactor     .88818E-09    1.4600       -.13505E-06** at limit **
   9  norm          1.5556        1.5070        .57408E-07    .22568E-02
  10  norm          .65752        .65871       -.52650E-07   -.50658E-02
  11  Prefactor     19.611        1.2755       -.17755E-07    .20461    
  12  Prefactor     8.6346        1.0601       -.42598E-08   -.27592E-01
  13  Normalizat    .87566        .12506       -.13276E-05   -.64539E-04
  14  Prefactor     1.0579        .46276E-01    .78707E-07   -.85387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.88178e-10
  norm       = 1.11022e-10
  norm       = 5.55112e-11
  Prefactor  = 3.30529
  norm       = 5.85276
  Prefactor  = 9.99201e-10
  Prefactor  = 4.1227
  Prefactor  = 8.88178e-10
  norm       = 1.5556
  norm       = 0.657518
  Prefactor  = 19.6109
  Prefactor  = 8.63459
  Normalizat = 0.875657
  Prefactor  = 1.0579
 **********
 **   18 **HESSE 
 **********

 FCN=   28814.87     FROM HESSE     STATUS=OK           192 CALLS      914 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88818E-09    1.5123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11102E-09    3.1678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3053        3.0190        .55653E-03   -1.5672    
   5  norm          5.8528        3.6001        .41463E-03   -1.5660    
   6  Prefactor     .99920E-09    5.7583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1227        2.5478        .49628E-03   -1.5667    
   8  Prefactor     .88818E-09    1.4609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5556        1.4842        .85324E-03   -1.5683    
  10  norm          .65752        .67119        .64230E-03   -1.5692    
  11  Prefactor     19.611        22.233        .22603E-03   -1.5619    
  12  Prefactor     8.6346        7.8506        .34085E-03   -1.5649    
  13  Normalizat    .87566        .11532        .97281E-01   -.97321    
  14  Prefactor     1.0579        .42245E-01    .39468E-01   -.90824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38732e-06
Minuit parameter uncertainties:
  1  7.29729e-05
  2  3.50746e-05
  3  1.10892e-05
  4  3.01895
  5  3.60013
  6  0.000149771
  7  2.54783
  8  7.19097e-05
  9  1.48421
  10  0.671195
  11  22.2327
  12  7.85059
  13  0.11535
  14  0.042246
Done.

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

Extracting fit parameters...

4FGL J0330.6+0438
   Spectrum: PowerLaw
276    Prefactor:  8.882e-10  7.191e-05  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.412e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.058e+00  4.225e-02  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  8.757e-01  1.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 52.673 4.635
Photon Flux Upper Limit: 2.32173462719e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00177440226375 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32585893/likelihoodResults_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.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) = 28814.8744797
delta logL = -0.000403126847232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28814.8740796
delta logL = -2.96682264889e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   28814.87     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      237 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .42240        .42118E-03** at limit **
   2  Index         3.1825        2.0486        .17781E-04     .0000    
   3  Normalizat    .87566        1.2121       -.31630E-05   -.29904E-06
   4  Prefactor     1.0579        1.1827        .72881E-06   -.99038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.18248
  Normalizat = 0.875657
  Prefactor  = 1.0579
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28814.87     FROM HESSE     STATUS=FAILED         9 CALLS      246 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .42240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1399        2.2278        .17781E-04   -.37203    
   3  Normalizat    .87566        1.2121       -.31630E-05   -.97321    
   4  Prefactor     1.0579        1.1827        .72881E-06   -.90824    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.82381e-12
Minuit parameter uncertainties:
  1  2.00331e-06
  2  2.12114
  3  1.25323
  4  1.21398
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) = 28814.8740766
delta logL = 3.05590219796e-10

Extracting fit parameters...

4FGL J0330.6+0438
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  2.003e-06  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  3.182e+00  2.121e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  1.412e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  8.757e-01  1.253e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 52.673 4.635

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/32585893/cmap_HighResolution_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-03', job_status='DONE', photon_flux_upper_limit='2.32e-08', time_completed='2026-07-21 03:01:53.996409', job_id='32585893', GAL2='1.06', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1784628114.0', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.06e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='937' AND source_name='4FGL J0330.6+0438' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 03:01:54 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0330.6+0438
   Spectrum: PowerLaw
276    Prefactor:  8.882e-10  7.191e-05  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.412e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.058e+00  4.225e-02  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  8.757e-01  1.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 52.673 4.635
Photon Flux Upper Limit: 2.32173462719e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00177440226375 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32585933/likelihoodResults_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.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) = 28814.8744797
delta logL = -0.000403126847232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28814.8740796
delta logL = -2.96682264889e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   28814.87     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      237 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .42240        .42118E-03** at limit **
   2  Index         3.1825        2.0486        .17781E-04     .0000    
   3  Normalizat    .87566        1.2121       -.31630E-05   -.29904E-06
   4  Prefactor     1.0579        1.1827        .72881E-06   -.99038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.18248
  Normalizat = 0.875657
  Prefactor  = 1.0579
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28814.87     FROM HESSE     STATUS=FAILED         9 CALLS      246 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .42240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1399        2.2278        .17781E-04   -.37203    
   3  Normalizat    .87566        1.2121       -.31630E-05   -.97321    
   4  Prefactor     1.0579        1.1827        .72881E-06   -.90824    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.82381e-12
Minuit parameter uncertainties:
  1  2.00331e-06
  2  2.12114
  3  1.25323
  4  1.21398
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) = 28814.8740766
delta logL = 3.05590219796e-10

Extracting fit parameters...

4FGL J0330.6+0438
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  2.003e-06  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  3.182e+00  2.121e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  1.412e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  8.757e-01  1.253e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 52.673 4.635

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/32585933/cmap_HighResolution_805680001_806284801_4FGL_J0330.6+0438_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-03', job_status='DONE', photon_flux_upper_limit='2.32e-08', time_completed='2026-07-21 03:02:34.697134', job_id='32585933', GAL2='1.06', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1784628154.7', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.06e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='937' AND source_name='4FGL J0330.6+0438' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 03:02:35 PDT 2026

