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


Performing analysis on: 4FGL_J0359.6+5057_weekly_bin944
RA = 59.9158, Dec = 50.959
tmin = 809913601, tmax = 810518401
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='37343646', job_status='RUN', time_executed='2026-09-08 03:16:57.420073', time_epoch_executed='1788862617.42' WHERE source_name='4FGL J0359.6+5057' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37343646

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37343646/ft1_4FGL_J0359.6+5057_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37343646/ft1_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343646/ft1_filteredMKT_4FGL_J0359.6+5057_weekly_bin944.fits ra=59.9158 dec=50.959 rad=12.0 tmin=809913601.0 tmax=810518401.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.04
user 4.39
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.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/37343646/ft1_filteredMKT_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37343646/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.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.67
user 0.24
sys 0.12

Number of photons that the gtmktime cut: 9203

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37343646/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" o
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).

utfile=/lscratch/kocevski/37343644/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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/37343644/ft2_4FGL_J0359.6+5057_weekly_bin944.fits
.....................!
real 17.83
user 17.34
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37343644/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37343644/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37343644/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343644/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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/37343644/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
.....................!
real 68.18
user 63.46
sys 3.97

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 G150.3+4.5 in ROI with RadialDisk spatial model.
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.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Added 166 point sources and 4 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 J0359.6+5057 @ 59.9158 50.959

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37343644/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits scfile=/lscratch/kocevski/37343644/ft2_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343644/cmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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=59.9158 yref=50.959 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.56
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37343644/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits scfile=/lscratch/kocevski/37343644/ft2_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343644/cmap_HighResolution_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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=59.9158 yref=50.959 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.utfile=/lscratch/kocevski/37343640/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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/37343640/ft2_4FGL_J0359.6+5057_weekly_bin944.fits
.....................!
real 19.82
user 19.13
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37343640/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37343640/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37343640/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343640/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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/37343640/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
.....................!
real 74.78
user 69.70
sys 4.27

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 G150.3+4.5 in ROI with RadialDisk spatial model.
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.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Added 166 point sources and 4 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 J0359.6+5057 @ 59.9158 50.959

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37343640/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits scfile=/lscratch/kocevski/37343640/ft2_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343640/cmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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=59.9158 yref=50.959 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.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37343640/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits scfile=/lscratch/kocevski/37343640/ft2_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343640/cmap_HighResolution_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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=59.9158 yref=50.959 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.utfile=/lscratch/kocevski/37343646/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.fits
.....................!
real 19.34
user 18.23
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37343646/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37343646/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343646/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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/37343646/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
.....................!
real 71.43
user 66.57
sys 4.11

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 G150.3+4.5 in ROI with RadialDisk spatial model.
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.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Added 166 point sources and 4 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 J0359.6+5057 @ 59.9158 50.959

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37343646/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits scfile=/lscratch/kocevski/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343646/cmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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=59.9158 yref=50.959 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.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37343646/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits scfile=/lscratch/kocevski/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343646/cmap_HighResolution_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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=59.9158 yref=50.959 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.number of points = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0359.6+5057_weekly_bin944
RA = 59.9158, Dec = 50.959
tmin = 809913601, tmax = 810518401
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='37343677', job_status='RUN', time_executed='2026-09-08 03:18:24.148517', time_epoch_executed='1788862704.15' WHERE source_name='4FGL J0359.6+5057' and cadence='weekly' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37343677

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37343677/ft1_4FGL_J0359.6+5057_weekly_bin944.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37343677/ft1_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343677/ft1_filteredMKT_4FGL_J0359.6+5057_weekly_bin944.fits ra=59.9158 dec=50.959 rad=12.0 tmin=809913601.0 tmax=810518401.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 7.05
user 4.76
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.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/37343677/ft1_filteredMKT_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" outfile="/lscratch/kocevski/37343677/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.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.67
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 9203

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37343677/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" outfile=/lscratch/kocevski/37343677/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.fits
.....................!
real 20.38
user 19.22
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37343677/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37343677/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343677/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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/37343677/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
.....................!
real 75.88
user 70.13
sys 4.47

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 G150.3+4.5 in ROI with RadialDisk spatial model.
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.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Added 166 point sources and 4 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 J0359.6+5057 @ 59.9158 50.959

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37343677/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits scfile=/lscratch/kocevski/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343677/cmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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=59.9158 yref=50.959 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.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37343677/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits scfile=/lscratch/kocevski/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.fits outfile=/lscratch/kocevski/37343677/cmap_HighResolution_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.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=59.9158 yref=50.959 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.96
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37343606/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37343606/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37343606/Model_4FGL_J0359.6+5057_weekly_bin944.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/37343606/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits.....................!
real 583.26
user 578.17
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37343606/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits', '/lscratch/kocevski/37343606/ft2_4FGL_J0359.6+5057_weekly_bin944.fits', expMap='/lscratch/kocevski/37343606/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', expCube='/lscratch/kocevski/37343606/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37343606/Model_4FGL_J0359.6+5057_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0359.6+5057'

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.547e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37343606/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37343606/ft2_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37343606/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37343606/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37343606/Model_4FGL_J0359.6+5057_weekly_bin944.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) = 87464.0142159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58858E-06   1.0000          .0000       .10000E+07
     2 'norm      '    5.4045       1.0000          .0000       .10000E+07
     3 'norm      '    7.7312       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.8837       1.0000          .0000       .10000E+07
     5 'norm      '    .41303E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11872E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.1956       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24951E-02   1.0000          .0000       .10000E+07
     9 'norm      '    7.4156       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9681       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.3258       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .98493       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   87463.93     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      621 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6607       -.18053E-06** at limit **
   2  norm          5.4053        2.2452        .74880E-07   -.38488E-03
   3  norm          7.7309        .66366        .87824E-08   -.31968E-02
   4  Prefactor     8.4878        12.330       -.10602E-06   -.38469E-04
   5  norm           .0000        12.436        .70387E-06** at limit **
   6  Prefactor      .0000        4.2400        .78714E-06** at limit **
   7  Prefactor     1.1984        1.2456       -.83200E-08   -.15914E-04
   8  Prefactor      .0000        13.475        .25713E-06** at limit **
   9  norm          7.4638        5.1608        .20520E-06   -.15656E-03
  10  Prefactor     1.9669        2.5940       -.31766E-07    .22999E-04
  11  Normalizat    1.3261        .19035        .49231E-05   -.14485E-04
  12  Prefactor     .98494        .19579E-01   -.70175E-06   -.22316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.40529
  norm       = 7.73093
  Prefactor  = 8.48784
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.19835
  Prefactor  = 0
  norm       = 7.46377
  Prefactor  = 1.96693
  Normalizat = 1.32614
  Prefactor  = 0.984938
41).

This is gtbin version HEAD
real 0.51
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37343644/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37343644/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37343644/Model_4FGL_J0359.6+5057_weekly_bin944.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/37343644/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits.....................!
real 561.60
user 557.26
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37343644/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits', '/lscratch/kocevski/37343644/ft2_4FGL_J0359.6+5057_weekly_bin944.fits', expMap='/lscratch/kocevski/37343644/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', expCube='/lscratch/kocevski/37343644/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37343644/Model_4FGL_J0359.6+5057_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0359.6+5057'

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.547e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37343644/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37343644/ft2_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37343644/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37343644/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37343644/Model_4FGL_J0359.6+5057_weekly_bin944.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) = 87464.0142159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58858E-06   1.0000          .0000       .10000E+07
     2 'norm      '    5.4045       1.0000          .0000       .10000E+07
     3 'norm      '    7.7312       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.8837       1.0000          .0000       .10000E+07
     5 'norm      '    .41303E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11872E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.1956       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24951E-02   1.0000          .0000       .10000E+07
     9 'norm      '    7.4156       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9681       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.3258       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .98493       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   87463.93     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      621 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6607       -.18053E-06** at limit **
   2  norm          5.4053        2.2452        .74880E-07   -.38488E-03
   3  norm          7.7309        .66366        .87824E-08   -.31968E-02
   4  Prefactor     8.4878        12.330       -.10602E-06   -.38469E-04
   5  norm           .0000        12.436        .70387E-06** at limit **
   6  Prefactor      .0000        4.2400        .78714E-06** at limit **
   7  Prefactor     1.1984        1.2456       -.83200E-08   -.15914E-04
   8  Prefactor      .0000        13.475        .25713E-06** at limit **
   9  norm          7.4638        5.1608        .20520E-06   -.15656E-03
  10  Prefactor     1.9669        2.5940       -.31766E-07    .22999E-04
  11  Normalizat    1.3261        .19035        .49231E-05   -.14485E-04
  12  Prefactor     .98494        .19579E-01   -.70175E-06   -.22316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.40529
  norm       = 7.73093
  Prefactor  = 8.48784
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.19835
  Prefactor  = 0
  norm       = 7.46377
  Prefactor  = 1.96693
  Normalizat = 1.32614
  Prefactor  = 0.984938
41).

This is gtbin version HEAD
real 0.60
user 0.26
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37343603/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37343603/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37343603/Model_4FGL_J0359.6+5057_weekly_bin944.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/37343603/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits.....................!
real 603.40
user 597.23
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37343603/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits', '/lscratch/kocevski/37343603/ft2_4FGL_J0359.6+5057_weekly_bin944.fits', expMap='/lscratch/kocevski/37343603/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', expCube='/lscratch/kocevski/37343603/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37343603/Model_4FGL_J0359.6+5057_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0359.6+5057'

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.547e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37343603/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37343603/ft2_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37343603/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37343603/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37343603/Model_4FGL_J0359.6+5057_weekly_bin944.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) = 87464.0142159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58858E-06   1.0000          .0000       .10000E+07
     2 'norm      '    5.4045       1.0000          .0000       .10000E+07
     3 'norm      '    7.7312       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.8837       1.0000          .0000       .10000E+07
     5 'norm      '    .41303E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11872E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.1956       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24951E-02   1.0000          .0000       .10000E+07
     9 'norm      '    7.4156       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9681       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.3258       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .98493       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   87463.93     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      621 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6607       -.18053E-06** at limit **
   2  norm          5.4053        2.2452        .74880E-07   -.38488E-03
   3  norm          7.7309        .66366        .87824E-08   -.31968E-02
   4  Prefactor     8.4878        12.330       -.10602E-06   -.38469E-04
   5  norm           .0000        12.436        .70387E-06** at limit **
   6  Prefactor      .0000        4.2400        .78714E-06** at limit **
   7  Prefactor     1.1984        1.2456       -.83200E-08   -.15914E-04
   8  Prefactor      .0000        13.475        .25713E-06** at limit **
   9  norm          7.4638        5.1608        .20520E-06   -.15656E-03
  10  Prefactor     1.9669        2.5940       -.31766E-07    .22999E-04
  11  Normalizat    1.3261        .19035        .49231E-05   -.14485E-04
  12  Prefactor     .98494        .19579E-01   -.70175E-06   -.22316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.40529
  norm       = 7.73093
  Prefactor  = 8.48784
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.19835
  Prefactor  = 0
  norm       = 7.46377
  Prefactor  = 1.96693
  Normalizat = 1.32614
  Prefactor  = 0.984938
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.93     FROM HESSE     STATUS=OK           157 CALLS      778 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4053        2.2468        .43202E-03   -1.5661    
   3  norm          7.7309        .66413        .36041E-03   -1.5652    
   4  Prefactor     8.4878        12.355        .33604E-03   -1.5650    
   5  norm           .0000        12.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.2487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1984        1.2704        .10395E-02   -1.5686    
   8  Prefactor      .0000        13.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4638        5.1749        .36806E-03   -1.5653    
  10  Prefactor     1.9669        2.6120        .73890E-03   -1.5680    
  11  Normalizat    1.3261        .19148        .22424       -.82790    
  12  Prefactor     .98494        .19339E-01    .26543E-01   -.93233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87673e-08
Minuit parameter uncertainties:
  1  2.00806e-06
  2  2.24676
  3  0.664128
  4  12.3553
  5  9.51569e-06
  6  3.62894e-06
  7  1.27036
  8  1.11359e-05
  9  5.17494
  10  2.61199
  11  0.191583
  12  0.0193395
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.93     FROM HESSE     STATUS=OK           157 CALLS      778 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4053        2.2468        .43202E-03   -1.5661    
   3  norm          7.7309        .66413        .36041E-03   -1.5652    
   4  Prefactor     8.4878        12.355        .33604E-03   -1.5650    
   5  norm           .0000        12.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.2487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1984        1.2704        .10395E-02   -1.5686    
   8  Prefactor      .0000        13.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4638        5.1749        .36806E-03   -1.5653    
  10  Prefactor     1.9669        2.6120        .73890E-03   -1.5680    
  11  Normalizat    1.3261        .19148        .22424       -.82790    
  12  Prefactor     .98494        .19339E-01    .26543E-01   -.93233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87673e-08
Minuit parameter uncertainties:
  1  2.00806e-06
  2  2.24676
  3  0.664128
  4  12.3553
  5  9.51569e-06
  6  3.62894e-06
  7  1.27036
  8  1.11359e-05
  9  5.17494
  10  2.61199
  11  0.191583
  12  0.0193395
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.93     FROM HESSE     STATUS=OK           157 CALLS      778 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4053        2.2468        .43202E-03   -1.5661    
   3  norm          7.7309        .66413        .36041E-03   -1.5652    
   4  Prefactor     8.4878        12.355        .33604E-03   -1.5650    
   5  norm           .0000        12.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.2487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1984        1.2704        .10395E-02   -1.5686    
   8  Prefactor      .0000        13.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4638        5.1749        .36806E-03   -1.5653    
  10  Prefactor     1.9669        2.6120        .73890E-03   -1.5680    
  11  Normalizat    1.3261        .19148        .22424       -.82790    
  12  Prefactor     .98494        .19339E-01    .26543E-01   -.93233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87673e-08
Minuit parameter uncertainties:
  1  2.00806e-06
  2  2.24676
  3  0.664128
  4  12.3553
  5  9.51569e-06
  6  3.62894e-06
  7  1.27036
  8  1.11359e-05
  9  5.17494
  10  2.61199
  11  0.191583
  12  0.0193395
41).

This is gtbin version HEAD
real 0.65
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37343646/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37343646/Model_4FGL_J0359.6+5057_weekly_bin944.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/37343646/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits.....................!
real 585.50
user 580.53
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37343646/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits', '/lscratch/kocevski/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.fits', expMap='/lscratch/kocevski/37343646/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', expCube='/lscratch/kocevski/37343646/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37343646/Model_4FGL_J0359.6+5057_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0359.6+5057'

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.547e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37343646/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37343646/ft2_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37343646/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37343646/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37343646/Model_4FGL_J0359.6+5057_weekly_bin944.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) = 87464.0142159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58858E-06   1.0000          .0000       .10000E+07
     2 'norm      '    5.4045       1.0000          .0000       .10000E+07
     3 'norm      '    7.7312       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.8837       1.0000          .0000       .10000E+07
     5 'norm      '    .41303E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11872E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.1956       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24951E-02   1.0000          .0000       .10000E+07
     9 'norm      '    7.4156       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9681       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.3258       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .98493       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   87463.93     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      621 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6607       -.18053E-06** at limit **
   2  norm          5.4053        2.2452        .74880E-07   -.38488E-03
   3  norm          7.7309        .66366        .87824E-08   -.31968E-02
   4  Prefactor     8.4878        12.330       -.10602E-06   -.38469E-04
   5  norm           .0000        12.436        .70387E-06** at limit **
   6  Prefactor      .0000        4.2400        .78714E-06** at limit **
   7  Prefactor     1.1984        1.2456       -.83200E-08   -.15914E-04
   8  Prefactor      .0000        13.475        .25713E-06** at limit **
   9  norm          7.4638        5.1608        .20520E-06   -.15656E-03
  10  Prefactor     1.9669        2.5940       -.31766E-07    .22999E-04
  11  Normalizat    1.3261        .19035        .49231E-05   -.14485E-04
  12  Prefactor     .98494        .19579E-01   -.70175E-06   -.22316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.40529
  norm       = 7.73093
  Prefactor  = 8.48784
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.19835
  Prefactor  = 0
  norm       = 7.46377
  Prefactor  = 1.96693
  Normalizat = 1.32614
  Prefactor  = 0.984938
41).

This is gtbin version HEAD
real 0.63
user 0.27
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37343640/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37343640/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37343640/Model_4FGL_J0359.6+5057_weekly_bin944.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/37343640/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits.....................!
real 613.51
user 607.65
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37343640/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits', '/lscratch/kocevski/37343640/ft2_4FGL_J0359.6+5057_weekly_bin944.fits', expMap='/lscratch/kocevski/37343640/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', expCube='/lscratch/kocevski/37343640/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37343640/Model_4FGL_J0359.6+5057_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0359.6+5057'

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.547e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37343640/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37343640/ft2_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37343640/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37343640/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37343640/Model_4FGL_J0359.6+5057_weekly_bin944.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) = 87464.0142159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58858E-06   1.0000          .0000       .10000E+07
     2 'norm      '    5.4045       1.0000          .0000       .10000E+07
     3 'norm      '    7.7312       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.8837       1.0000          .0000       .10000E+07
     5 'norm      '    .41303E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11872E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.1956       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24951E-02   1.0000          .0000       .10000E+07
     9 'norm      '    7.4156       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9681       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.3258       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .98493       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   87463.93     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      621 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6607       -.18053E-06** at limit **
   2  norm          5.4053        2.2452        .74880E-07   -.38488E-03
   3  norm          7.7309        .66366        .87824E-08   -.31968E-02
   4  Prefactor     8.4878        12.330       -.10602E-06   -.38469E-04
   5  norm           .0000        12.436        .70387E-06** at limit **
   6  Prefactor      .0000        4.2400        .78714E-06** at limit **
   7  Prefactor     1.1984        1.2456       -.83200E-08   -.15914E-04
   8  Prefactor      .0000        13.475        .25713E-06** at limit **
   9  norm          7.4638        5.1608        .20520E-06   -.15656E-03
  10  Prefactor     1.9669        2.5940       -.31766E-07    .22999E-04
  11  Normalizat    1.3261        .19035        .49231E-05   -.14485E-04
  12  Prefactor     .98494        .19579E-01   -.70175E-06   -.22316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.40529
  norm       = 7.73093
  Prefactor  = 8.48784
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.19835
  Prefactor  = 0
  norm       = 7.46377
  Prefactor  = 1.96693
  Normalizat = 1.32614
  Prefactor  = 0.984938
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.93     FROM HESSE     STATUS=OK           157 CALLS      778 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4053        2.2468        .43202E-03   -1.5661    
   3  norm          7.7309        .66413        .36041E-03   -1.5652    
   4  Prefactor     8.4878        12.355        .33604E-03   -1.5650    
   5  norm           .0000        12.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.2487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1984        1.2704        .10395E-02   -1.5686    
   8  Prefactor      .0000        13.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4638        5.1749        .36806E-03   -1.5653    
  10  Prefactor     1.9669        2.6120        .73890E-03   -1.5680    
  11  Normalizat    1.3261        .19148        .22424       -.82790    
  12  Prefactor     .98494        .19339E-01    .26543E-01   -.93233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87673e-08
Minuit parameter uncertainties:
  1  2.00806e-06
  2  2.24676
  3  0.664128
  4  12.3553
  5  9.51569e-06
  6  3.62894e-06
  7  1.27036
  8  1.11359e-05
  9  5.17494
  10  2.61199
  11  0.191583
  12  0.0193395
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.93     FROM HESSE     STATUS=OK           157 CALLS      778 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4053        2.2468        .43202E-03   -1.5661    
   3  norm          7.7309        .66413        .36041E-03   -1.5652    
   4  Prefactor     8.4878        12.355        .33604E-03   -1.5650    
   5  norm           .0000        12.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.2487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1984        1.2704        .10395E-02   -1.5686    
   8  Prefactor      .0000        13.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4638        5.1749        .36806E-03   -1.5653    
  10  Prefactor     1.9669        2.6120        .73890E-03   -1.5680    
  11  Normalizat    1.3261        .19148        .22424       -.82790    
  12  Prefactor     .98494        .19339E-01    .26543E-01   -.93233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87673e-08
Minuit parameter uncertainties:
  1  2.00806e-06
  2  2.24676
  3  0.664128
  4  12.3553
  5  9.51569e-06
  6  3.62894e-06
  7  1.27036
  8  1.11359e-05
  9  5.17494
  10  2.61199
  11  0.191583
  12  0.0193395
41).

This is gtbin version HEAD
real 0.76
user 0.27
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37343677/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits evtable="EVENTS" scfile=/lscratch/kocevski/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37343677/Model_4FGL_J0359.6+5057_weekly_bin944.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/37343677/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits.....................!
real 616.69
user 611.14
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37343677/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits', '/lscratch/kocevski/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.fits', expMap='/lscratch/kocevski/37343677/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', expCube='/lscratch/kocevski/37343677/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37343677/Model_4FGL_J0359.6+5057_weekly_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0359.6+5057'

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.547e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37343677/ft1_filtered_4FGL_J0359.6+5057_weekly_bin944.fits
Spacecraft file(s): /lscratch/kocevski/37343677/ft2_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure map: /lscratch/kocevski/37343677/expmap_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
Exposure cube: /lscratch/kocevski/37343677/ltcube_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37343677/Model_4FGL_J0359.6+5057_weekly_bin944.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) = 87464.0142159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58858E-06   1.0000          .0000       .10000E+07
     2 'norm      '    5.4045       1.0000          .0000       .10000E+07
     3 'norm      '    7.7312       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.8837       1.0000          .0000       .10000E+07
     5 'norm      '    .41303E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11872E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.1956       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24951E-02   1.0000          .0000       .10000E+07
     9 'norm      '    7.4156       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9681       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.3258       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .98493       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   87463.93     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      621 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6607       -.18053E-06** at limit **
   2  norm          5.4053        2.2452        .74880E-07   -.38488E-03
   3  norm          7.7309        .66366        .87824E-08   -.31968E-02
   4  Prefactor     8.4878        12.330       -.10602E-06   -.38469E-04
   5  norm           .0000        12.436        .70387E-06** at limit **
   6  Prefactor      .0000        4.2400        .78714E-06** at limit **
   7  Prefactor     1.1984        1.2456       -.83200E-08   -.15914E-04
   8  Prefactor      .0000        13.475        .25713E-06** at limit **
   9  norm          7.4638        5.1608        .20520E-06   -.15656E-03
  10  Prefactor     1.9669        2.5940       -.31766E-07    .22999E-04
  11  Normalizat    1.3261        .19035        .49231E-05   -.14485E-04
  12  Prefactor     .98494        .19579E-01   -.70175E-06   -.22316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.40529
  norm       = 7.73093
  Prefactor  = 8.48784
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.19835
  Prefactor  = 0
  norm       = 7.46377
  Prefactor  = 1.96693
  Normalizat = 1.32614
  Prefactor  = 0.984938
Done.

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

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  7.464e+00  5.175e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.934e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.326e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.24e-05

TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Flux Upper Limit: 1.5118288309e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.0365828901e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37343606/likelihoodResults_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7865973
delta logL = 0.139373210011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7837647
delta logL = 0.142205778073

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   87463.78     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      280 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5151        165.00        .34329E-03   -.11374E-01
   2  alpha         2.2233        2.9965        .41475       -.56451E-04
   3  Normalizat    1.3387        .15134        .22339        .33010E-03
   4  Prefactor     .98485        .94294E-02    .26544E-01   -.17223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.51514
  alpha      = 2.22327
  Normalizat = 1.33866
  Prefactor  = 0.984851
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.78     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5151        6.0143        .13732E-04   -1.5650    
   2  alpha         2.2233        .73992        .56493E-01   -.11092    
   3  Normalizat    1.3387        .18653        .99722E-03   -.82420    
   4  Prefactor     .98485        .19524E-01    .11732E-03   -.93236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03324e-09
Minuit parameter uncertainties:
  1  6.01435
  2  0.751314
  3  0.186621
  4  0.0195237
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) = 87463.7837647
delta logL = 0.142205786091

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.515e+00  6.014e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.223e+00  7.513e-01  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.952e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.339e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 59.916 50.959
Photon Index (Free Index): 2.22 +/- 0.75
Photon Flux (Free Index): 4.63e-08 +/- 5.01e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/37343606/cmap_HighResolution_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='1.81e-05', photon_flux_error='4.64e-08', dlogl='1.42e-01', energy_flux='1.79e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2026-09-08 03:38:25.824550', photon_index_error2='0.75', photon_index2='2.22', ts='2.53', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.28e-05', EG='1.33', time_epoch_completed='1788863905.82', return_code='0', job_id='37343606', GAL2='0.98', EG2='1.34', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.01e-08', ts2='2.82', photon_index='2.64' WHERE bin_id='944' AND source_name='4FGL J0359.6+5057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 03:38:25 PDT 2026

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

 FCN=   87463.93     FROM HESSE     STATUS=OK           157 CALLS      778 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4053        2.2468        .43202E-03   -1.5661    
   3  norm          7.7309        .66413        .36041E-03   -1.5652    
   4  Prefactor     8.4878        12.355        .33604E-03   -1.5650    
   5  norm           .0000        12.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.2487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1984        1.2704        .10395E-02   -1.5686    
   8  Prefactor      .0000        13.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4638        5.1749        .36806E-03   -1.5653    
  10  Prefactor     1.9669        2.6120        .73890E-03   -1.5680    
  11  Normalizat    1.3261        .19148        .22424       -.82790    
  12  Prefactor     .98494        .19339E-01    .26543E-01   -.93233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87673e-08
Minuit parameter uncertainties:
  1  2.00806e-06
  2  2.24676
  3  0.664128
  4  12.3553
  5  9.51569e-06
  6  3.62894e-06
  7  1.27036
  8  1.11359e-05
  9  5.17494
  10  2.61199
  11  0.191583
  12  0.0193395
Done.

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

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  7.464e+00  5.175e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.934e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.326e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.24e-05

TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Flux Upper Limit: 1.5118288309e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.0365828901e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37343644/likelihoodResults_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7865973
delta logL = 0.139373210011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7837647
delta logL = 0.142205778073

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   87463.78     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      280 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5151        165.00        .34329E-03   -.11374E-01
   2  alpha         2.2233        2.9965        .41475       -.56451E-04
   3  Normalizat    1.3387        .15134        .22339        .33010E-03
   4  Prefactor     .98485        .94294E-02    .26544E-01   -.17223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.51514
  alpha      = 2.22327
  Normalizat = 1.33866
  Prefactor  = 0.984851
Done.

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

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  7.464e+00  5.175e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.934e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.326e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.24e-05

TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Flux Upper Limit: 1.5118288309e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.0365828901e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37343603/likelihoodResults_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7865973
delta logL = 0.139373210011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7837647
delta logL = 0.142205778073

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   87463.78     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      280 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5151        165.00        .34329E-03   -.11374E-01
   2  alpha         2.2233        2.9965        .41475       -.56451E-04
   3  Normalizat    1.3387        .15134        .22339        .33010E-03
   4  Prefactor     .98485        .94294E-02    .26544E-01   -.17223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.51514
  alpha      = 2.22327
  Normalizat = 1.33866
  Prefactor  = 0.984851
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.78     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5151        6.0143        .13732E-04   -1.5650    
   2  alpha         2.2233        .73992        .56493E-01   -.11092    
   3  Normalizat    1.3387        .18653        .99722E-03   -.82420    
   4  Prefactor     .98485        .19524E-01    .11732E-03   -.93236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03324e-09
Minuit parameter uncertainties:
  1  6.01435
  2  0.751314
  3  0.186621
  4  0.0195237
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.78     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5151        6.0143        .13732E-04   -1.5650    
   2  alpha         2.2233        .73992        .56493E-01   -.11092    
   3  Normalizat    1.3387        .18653        .99722E-03   -.82420    
   4  Prefactor     .98485        .19524E-01    .11732E-03   -.93236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03324e-09
Minuit parameter uncertainties:
  1  6.01435
  2  0.751314
  3  0.186621
  4  0.0195237
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) = 87463.7837647
delta logL = 0.142205786091

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.515e+00  6.014e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.223e+00  7.513e-01  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.952e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.339e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 59.916 50.959
Photon Index (Free Index): 2.22 +/- 0.75
Photon Flux (Free Index): 4.63e-08 +/- 5.01e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/37343644/cmap_HighResolution_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='1.81e-05', photon_flux_error='4.64e-08', dlogl='1.42e-01', energy_flux='1.79e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2026-09-08 03:39:01.115451', photon_index_error2='0.75', photon_index2='2.22', ts='2.53', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.28e-05', EG='1.33', time_epoch_completed='1788863941.12', return_code='0', job_id='37343644', GAL2='0.98', EG2='1.34', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.01e-08', ts2='2.82', photon_index='2.64' WHERE bin_id='944' AND source_name='4FGL J0359.6+5057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 03:39:01 PDT 2026

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) = 87463.7837647
delta logL = 0.142205786091

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.515e+00  6.014e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.223e+00  7.513e-01  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.952e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.339e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 59.916 50.959
Photon Index (Free Index): 2.22 +/- 0.75
Photon Flux (Free Index): 4.63e-08 +/- 5.01e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/37343603/cmap_HighResolution_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='1.81e-05', photon_flux_error='4.64e-08', dlogl='1.42e-01', energy_flux='1.79e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2026-09-08 03:39:06.648623', photon_index_error2='0.75', photon_index2='2.22', ts='2.53', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.28e-05', EG='1.33', time_epoch_completed='1788863946.65', return_code='0', job_id='37343603', GAL2='0.98', EG2='1.34', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.01e-08', ts2='2.82', photon_index='2.64' WHERE bin_id='944' AND source_name='4FGL J0359.6+5057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 03:39:06 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  7.464e+00  5.175e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.934e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.326e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.24e-05

TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Flux Upper Limit: 1.5118288309e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.0365828901e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37343646/likelihoodResults_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7865973
delta logL = 0.139373210011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7837647
delta logL = 0.142205778073

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   87463.78     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      280 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5151        165.00        .34329E-03   -.11374E-01
   2  alpha         2.2233        2.9965        .41475       -.56451E-04
   3  Normalizat    1.3387        .15134        .22339        .33010E-03
   4  Prefactor     .98485        .94294E-02    .26544E-01   -.17223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.51514
  alpha      = 2.22327
  Normalizat = 1.33866
  Prefactor  = 0.984851
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.78     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5151        6.0143        .13732E-04   -1.5650    
   2  alpha         2.2233        .73992        .56493E-01   -.11092    
   3  Normalizat    1.3387        .18653        .99722E-03   -.82420    
   4  Prefactor     .98485        .19524E-01    .11732E-03   -.93236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03324e-09
Minuit parameter uncertainties:
  1  6.01435
  2  0.751314
  3  0.186621
  4  0.0195237
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) = 87463.7837647
delta logL = 0.142205786091

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.515e+00  6.014e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.223e+00  7.513e-01  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.952e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.339e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 59.916 50.959
Photon Index (Free Index): 2.22 +/- 0.75
Photon Flux (Free Index): 4.63e-08 +/- 5.01e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/37343646/cmap_HighResolution_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='1.81e-05', photon_flux_error='4.64e-08', dlogl='1.42e-01', energy_flux='1.79e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2026-09-08 03:40:23.943046', photon_index_error2='0.75', photon_index2='2.22', ts='2.53', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.28e-05', EG='1.33', time_epoch_completed='1788864023.94', return_code='0', job_id='37343646', GAL2='0.98', EG2='1.34', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.01e-08', ts2='2.82', photon_index='2.64' WHERE bin_id='944' AND source_name='4FGL J0359.6+5057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 03:40:24 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  7.464e+00  5.175e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.934e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.326e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.24e-05

TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Flux Upper Limit: 1.5118288309e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.0365828901e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37343640/likelihoodResults_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7865973
delta logL = 0.139373210011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7837647
delta logL = 0.142205778073

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   87463.78     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      280 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5151        165.00        .34329E-03   -.11374E-01
   2  alpha         2.2233        2.9965        .41475       -.56451E-04
   3  Normalizat    1.3387        .15134        .22339        .33010E-03
   4  Prefactor     .98485        .94294E-02    .26544E-01   -.17223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.51514
  alpha      = 2.22327
  Normalizat = 1.33866
  Prefactor  = 0.984851
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.78     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5151        6.0143        .13732E-04   -1.5650    
   2  alpha         2.2233        .73992        .56493E-01   -.11092    
   3  Normalizat    1.3387        .18653        .99722E-03   -.82420    
   4  Prefactor     .98485        .19524E-01    .11732E-03   -.93236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03324e-09
Minuit parameter uncertainties:
  1  6.01435
  2  0.751314
  3  0.186621
  4  0.0195237
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) = 87463.7837647
delta logL = 0.142205786091

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.515e+00  6.014e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.223e+00  7.513e-01  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.952e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.339e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 59.916 50.959
Photon Index (Free Index): 2.22 +/- 0.75
Photon Flux (Free Index): 4.63e-08 +/- 5.01e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/37343640/cmap_HighResolution_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='1.81e-05', photon_flux_error='4.64e-08', dlogl='1.42e-01', energy_flux='1.79e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2026-09-08 03:41:10.758476', photon_index_error2='0.75', photon_index2='2.22', ts='2.53', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.28e-05', EG='1.33', time_epoch_completed='1788864070.76', return_code='0', job_id='37343640', GAL2='0.98', EG2='1.34', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.01e-08', ts2='2.82', photon_index='2.64' WHERE bin_id='944' AND source_name='4FGL J0359.6+5057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 03:41:10 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  7.464e+00  5.175e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.934e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.326e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.24e-05

TS (Fixed Index): 2.53
Ra Dec: 59.916 50.959
Photon Flux Upper Limit: 1.5118288309e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.0365828901e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37343677/likelihoodResults_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7865973
delta logL = 0.139373210011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87463.7837647
delta logL = 0.142205778073

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   87463.78     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      280 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5151        165.00        .34329E-03   -.11374E-01
   2  alpha         2.2233        2.9965        .41475       -.56451E-04
   3  Normalizat    1.3387        .15134        .22339        .33010E-03
   4  Prefactor     .98485        .94294E-02    .26544E-01   -.17223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.51514
  alpha      = 2.22327
  Normalizat = 1.33866
  Prefactor  = 0.984851
 **********
 **   18 **HESSE 
 **********

 FCN=   87463.78     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5151        6.0143        .13732E-04   -1.5650    
   2  alpha         2.2233        .73992        .56493E-01   -.11092    
   3  Normalizat    1.3387        .18653        .99722E-03   -.82420    
   4  Prefactor     .98485        .19524E-01    .11732E-03   -.93236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03324e-09
Minuit parameter uncertainties:
  1  6.01435
  2  0.751314
  3  0.186621
  4  0.0195237
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) = 87463.7837647
delta logL = 0.142205786091

Extracting fit parameters...

4FGL J0359.6+5057
   Spectrum: LogParabola
320         norm:  8.515e+00  6.014e+00  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  2.223e+00  7.513e-01  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  1.244e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  7.364e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.849e-01  1.952e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.339e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 59.916 50.959
Photon Index (Free Index): 2.22 +/- 0.75
Photon Flux (Free Index): 4.63e-08 +/- 5.01e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/37343677/cmap_HighResolution_809913601_810518401_4FGL_J0359.6+5057_weekly_bin944.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='1.81e-05', photon_flux_error='4.64e-08', dlogl='1.42e-01', energy_flux='1.79e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2026-09-08 03:43:12.018631', photon_index_error2='0.75', photon_index2='2.22', ts='2.53', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.28e-05', EG='1.33', time_epoch_completed='1788864192.02', return_code='0', job_id='37343677', GAL2='0.98', EG2='1.34', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.01e-08', ts2='2.82', photon_index='2.64' WHERE bin_id='944' AND source_name='4FGL J0359.6+5057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep  8 03:43:12 PDT 2026

