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

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

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

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

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

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

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

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


Performing analysis on: 4FGL_J1018.4+3540_weekly_bin931
RA = 154.607, Dec = 35.6802
tmin = 802051201, tmax = 802656001
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='28151067', job_status='RUN', time_executed='2026-06-09 08:03:14.863356', time_epoch_executed='1781017394.86' WHERE source_name='4FGL J1018.4+3540' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28151067

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28151067/ft1_4FGL_J1018.4+3540_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28151067/ft1_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151067/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits ra=154.607 dec=35.6802 rad=12.0 tmin=802051201.0 tmax=802656001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.74
user 4.01
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.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/28151067/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28151067/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1237

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28151067/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA"number of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+3540_weekly_bin931
RA = 154.607, Dec = 35.6802
tmin = 802051201, tmax = 802656001
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='28151231', job_status='RUN', time_executed='2026-06-09 08:04:46.355465', time_epoch_executed='1781017486.36' WHERE source_name='4FGL J1018.4+3540' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28151231

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28151231/ft1_4FGL_J1018.4+3540_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28151231/ft1_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151231/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits ra=154.607 dec=35.6802 rad=12.0 tmin=802051201.0 tmax=802656001.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.65
user 4.72
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.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/28151231/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28151231/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.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.93
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1237

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28151231/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28151067/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 16.43
user 15.26
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28151067/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28151067/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151067/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151067/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 69.46
user 64.61
sys 3.51

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28151067/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151067/cmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.57
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28151067/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151067/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 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.91
user 0.19
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28151067/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28151067/Model_4FGL_J1018.4+3540_weekly_bin931.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 sourcnumber of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+3540_weekly_bin931
RA = 154.607, Dec = 35.6802
tmin = 802051201, tmax = 802656001
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='28151314', job_status='RUN', time_executed='2026-06-09 08:05:17.048239', time_epoch_executed='1781017517.05' WHERE source_name='4FGL J1018.4+3540' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28151314

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28151314/ft1_4FGL_J1018.4+3540_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28151314/ft1_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151314/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits ra=154.607 dec=35.6802 rad=12.0 tmin=802051201.0 tmax=802656001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.21
user 4.16
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.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/28151314/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28151314/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.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.92
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1237

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28151314/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA"Done.


Performing analysis on: 4FGL_J1018.4+3540_weekly_bin931
RA = 154.607, Dec = 35.6802
tmin = 802051201, tmax = 802656001
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='28151168', job_status='RUN', time_executed='2026-06-09 08:04:17.852531', time_epoch_executed='1781017457.85' WHERE source_name='4FGL J1018.4+3540' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28151168

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28151168/ft1_4FGL_J1018.4+3540_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28151168/ft1_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151168/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits ra=154.607 dec=35.6802 rad=12.0 tmin=802051201.0 tmax=802656001.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.19
user 4.05
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.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/28151168/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28151168/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.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.95
user 0.16
sys 0.13

Number of photons that the gtmktime cut: 1237

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28151168/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA"number of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+3540_weekly_bin931
RA = 154.607, Dec = 35.6802
tmin = 802051201, tmax = 802656001
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='28151365', job_status='RUN', time_executed='2026-06-09 08:05:46.014559', time_epoch_executed='1781017546.01' WHERE source_name='4FGL J1018.4+3540' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28151365

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28151365/ft1_4FGL_J1018.4+3540_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28151365/ft1_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151365/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits ra=154.607 dec=35.6802 rad=12.0 tmin=802051201.0 tmax=802656001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.08
user 4.76
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.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/28151365/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28151365/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.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.98
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 1237

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28151365/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA"number of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+3540_weekly_bin931
RA = 154.607, Dec = 35.6802
tmin = 802051201, tmax = 802656001
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='28151242', job_status='RUN', time_executed='2026-06-09 08:05:03.182805', time_epoch_executed='1781017503.18' WHERE source_name='4FGL J1018.4+3540' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28151242

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28151242/ft1_4FGL_J1018.4+3540_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28151242/ft1_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151242/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits ra=154.607 dec=35.6802 rad=12.0 tmin=802051201.0 tmax=802656001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.62
user 5.51
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.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/28151242/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28151242/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1237

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28151242/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28151231/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 18.92
user 17.76
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28151231/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28151231/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151231/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151231/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 71.01
user 65.98
sys 4.09

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28151231/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151231/cmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 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.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28151231/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151231/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.20
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28151231/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28151231/Model_4FGL_J1018.4+3540_weekly_bin931.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 sourcnumber of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
 outfile=/lscratch/kocevski/28151314/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 16.43
user 15.44
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28151314/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28151314/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151314/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151314/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 61.32
user 56.58
sys 3.57

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28151314/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151314/cmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 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.94
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28151314/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151314/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.99
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28151314/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28151314/Model_4FGL_J1018.4+3540_weekly_bin931.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 sourcDone.


Performing analysis on: 4FGL_J1018.4+3540_weekly_bin931
RA = 154.607, Dec = 35.6802
tmin = 802051201, tmax = 802656001
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='28151167', job_status='RUN', time_executed='2026-06-09 08:04:54.261801', time_epoch_executed='1781017494.26' WHERE source_name='4FGL J1018.4+3540' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28151167

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28151167/ft1_4FGL_J1018.4+3540_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28151167/ft1_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151167/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits ra=154.607 dec=35.6802 rad=12.0 tmin=802051201.0 tmax=802656001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.89
user 4.75
sys 3.45

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.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/28151167/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28151167/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1237

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28151167/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28151168/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 16.15
user 15.21
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28151168/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28151168/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151168/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151168/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 60.09
user 55.54
sys 3.41

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28151168/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151168/cmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.23
user 0.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28151168/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151168/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.05
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28151168/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28151168/Model_4FGL_J1018.4+3540_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/28151365/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 18.80
user 17.85
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28151365/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28151365/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151365/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151365/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 70.15
user 65.16
sys 4.07

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28151365/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151365/cmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 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.97
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28151365/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151365/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 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.92
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28151365/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28151365/Model_4FGL_J1018.4+3540_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/28151067/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits.....................!
real 34.47
user 32.55
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28151067/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits', '/lscratch/kocevski/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.fits', expMap='/lscratch/kocevski/28151067/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', expCube='/lscratch/kocevski/28151067/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28151067/Model_4FGL_J1018.4+3540_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28151067/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28151067/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28151067/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28151067/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28151067/Model_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2437671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4424       1.0000          .0000       .10000E+07
     2 'norm      '    2.4600       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33489E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51564E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17363E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5635       1.0000          .0000       .10000E+07
     7 'Prefactor '    .84338E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12713       1.0000          .0000       .10000E+07
     9 'norm      '    32.682       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64665E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30281E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .35933E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.390       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16431E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .46763E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18817E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    68.633       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0738       1.0000          .0000       .10000E+07
    19 'norm      '    1.3587       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17687E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    6.2707       1.0000          .0000       .10000E+07
    22 'norm      '    .25535E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2153 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4494        4.8676        .11171E-08    .19348E-02
   2  norm          2.4595        3.7586        .32831E-07    .89651E-03
   3  Prefactor     .55511E-10    28.713       -.26085E-06** at limit **
   4  Prefactor      .0000        3.1372        .20655E-06** at limit **
   5  Prefactor     .10880E-07    6.1378        .23562E-06** at limit **
   6  Prefactor     8.5839        4.3933        .11456E-06    .21666E-01
   7  Prefactor      .0000        1.5718        .27233E-07** at limit **
   8  Prefactor     .12730        1.5907       -.34499E-07** at limit **
   9  norm          32.683        1.8038        .15071E-07   -.25224    
  10  Prefactor      .0000        1.1724        .14202E-07** at limit **
  11  Prefactor     .55511E-10    .78770        .47903E-07** at limit **
  12  norm          .55511E-10    1.8906        .32036E-07** at limit **
  13  Prefactor     22.375        1.7556       -.10091E-07    .16283E-01
  14  Prefactor     .52736E-08    2.6217       -.56190E-07** at limit **
  15  Prefactor     .57565E-07    18.955        .24150E-06** at limit **
  16  Prefactor     .55400E-07    2.2366        .94854E-07** at limit **
  17  Prefactor     68.693        1.0904        .14065E-08   -.21666E-01
  18  Prefactor     2.0617        5.8827        .59848E-07    .48606E-03
  19  norm          1.3585        .20717       -.10398E-08   -.72926E-02
  20  Prefactor     .13878E-08    2.3563       -.50968E-07** at limit **
  21  Prefactor     6.2870        1.4577        .83484E-08    .14159E-01
  22  norm          .14561E-06    1.7925        .57313E-07** at limit **
  23  Normalizat    1.0732        .11164        .49392E-06    .91111E-04
  24  Prefactor     .70711        .13627       -.10698E-05   -.99287E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.44945
  norm       = 2.45948
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.08802e-08
  Prefactor  = 8.58391
  Prefactor  = 0
  Prefactor  = 0.127299
  norm       = 32.6833
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 22.375
  Prefactor  = 5.27356e-09
  Prefactor  = 5.75651e-08
  Prefactor  = 5.54001e-08
  Prefactor  = 68.6929
  Prefactor  = 2.06175
  norm       = 1.35852
  Prefactor  = 1.38778e-09
  Prefactor  = 6.28702
  norm       = 1.45606e-07
  Normalizat = 1.07316
  Prefactor  = 0.707106
number of points = 17382
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+3540_weekly_bin931
RA = 154.607, Dec = 35.6802
tmin = 802051201, tmax = 802656001
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='28151315', job_status='RUN', time_executed='2026-06-09 08:05:34.275348', time_epoch_executed='1781017534.28' WHERE source_name='4FGL J1018.4+3540' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28151315

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28151315/ft1_4FGL_J1018.4+3540_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28151315/ft1_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151315/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits ra=154.607 dec=35.6802 rad=12.0 tmin=802051201.0 tmax=802656001.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.28
user 4.82
sys 0.44

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.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/28151315/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28151315/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1237

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28151315/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" **********
 **   18 **HESSE 
 **********

 FCN=   13260.24     FROM HESSE     STATUS=OK           451 CALLS     2604 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4494        4.8712        .32589E-03   -1.5646    
   2  norm          2.4595        3.7756        .65181E-03   -1.5677    
   3  Prefactor     .55511E-10    28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.1654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10880E-07    6.2037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5839        4.4587        .34231E-03   -1.5649    
   7  Prefactor      .0000        1.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12730        .61290        .29461E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.683        7.5334        .17494E-03   -1.5594    
  10  Prefactor      .0000        1.1581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    .78616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.375        24.836        .21139E-03   -1.5613    
  14  Prefactor     .52736E-08    4.9558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .57565E-07    1.2060        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55400E-07    3.8971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.693        59.000        .12071E-03   -1.5542    
  18  Prefactor     2.0617        5.8985        .71699E-03   -1.5679    
  19  norm          1.3585        .21555        .44838E-03   -1.5685    
  20  Prefactor     .13878E-08    4.9792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2870        8.6439        .40063E-03   -1.5658    
  22  norm          .14561E-06    4.0428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0732        .97769E-01    .39215E-01   -.90618    
  24  Prefactor     .70711        .11812        .66222E-01   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04626e-07
Minuit parameter uncertainties:
  1  4.87119
  2  3.77563
  3  8.01464e-05
  4  1.7662e-05
  5  0.000519742
  6  4.45872
  7  6.08e-06
  8  0.558645
  9  7.53345
  10  1.93077e-06
  11  9.76901e-06
  12  1.61789e-05
  13  24.8363
  14  0.000322699
  15  0.000527049
  16  0.000929137
  17  59.0008
  18  5.89855
  19  0.215553
  20  0.00016613
  21  8.6439
  22  0.00153456
  23  0.0977854
  24  0.118164
 outfile=/lscratch/kocevski/28151242/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 21.98
user 20.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28151242/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28151242/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151242/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151242/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 80.17
user 74.04
sys 4.66

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28151242/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151242/cmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.31
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28151242/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151242/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.34
user 0.28
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28151242/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28151242/Model_4FGL_J1018.4+3540_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/28151167/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 16.07
user 15.90
sys 3.50

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28151167/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28151167/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151167/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151167/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 68.11
user 60.42
sys 7.08

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28151167/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151167/cmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 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.79
user 0.95
sys 3.39

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28151167/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151167/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 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.98
user 0.95
sys 3.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28151167/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28151167/Model_4FGL_J1018.4+3540_weekly_bin931.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 sourcDone.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.551e-11  9.769e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  9.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 2.79420149724e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0021854522849 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28151067/likelihoodResults_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2473352
delta logL = -0.00442647003365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13260.2429113
delta logL = -2.625371053e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      240 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .78829        .42118E-03** at limit **
   2  Index         2.6449        1.2597        .14334E-07     .0000    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.95069E-04
   4  Prefactor     .70711        1.0568       -.12229E-05   -.67528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6449
  Normalizat = 1.07316
  Prefactor  = 0.707106
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13260.24     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .78829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .79144        1.9516        .14334E-07   -.49045    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.90618    
   4  Prefactor     .70711        1.0568       -.12229E-05   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.92767e-12
Minuit parameter uncertainties:
  1  1.99003e-06
  2  1.27753
  3  1.20792
  4  1.0893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 13260.2429087
delta logL = 4.0017766878e-11

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.990e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.645e+00  1.278e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.089e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  1.208e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/28151067/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2026-06-09 08:14:49.387159', job_id='28151067', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1781018089.39', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='931' AND source_name='4FGL J1018.4+3540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 08:14:49 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/28151168/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits.....................!
real 34.53
user 32.34
sys 0.79

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28151168/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits', '/lscratch/kocevski/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.fits', expMap='/lscratch/kocevski/28151168/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', expCube='/lscratch/kocevski/28151168/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28151168/Model_4FGL_J1018.4+3540_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28151168/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28151168/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28151168/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28151168/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28151168/Model_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2437671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4424       1.0000          .0000       .10000E+07
     2 'norm      '    2.4600       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33489E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51564E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17363E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5635       1.0000          .0000       .10000E+07
     7 'Prefactor '    .84338E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12713       1.0000          .0000       .10000E+07
     9 'norm      '    32.682       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64665E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30281E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .35933E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.390       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16431E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .46763E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18817E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    68.633       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0738       1.0000          .0000       .10000E+07
    19 'norm      '    1.3587       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17687E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    6.2707       1.0000          .0000       .10000E+07
    22 'norm      '    .25535E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2153 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4494        4.8676        .11171E-08    .19348E-02
   2  norm          2.4595        3.7586        .32831E-07    .89651E-03
   3  Prefactor     .55511E-10    28.713       -.26085E-06** at limit **
   4  Prefactor      .0000        3.1372        .20655E-06** at limit **
   5  Prefactor     .10880E-07    6.1378        .23562E-06** at limit **
   6  Prefactor     8.5839        4.3933        .11456E-06    .21666E-01
   7  Prefactor      .0000        1.5718        .27233E-07** at limit **
   8  Prefactor     .12730        1.5907       -.34499E-07** at limit **
   9  norm          32.683        1.8038        .15071E-07   -.25224    
  10  Prefactor      .0000        1.1724        .14202E-07** at limit **
  11  Prefactor     .55511E-10    .78770        .47903E-07** at limit **
  12  norm          .55511E-10    1.8906        .32036E-07** at limit **
  13  Prefactor     22.375        1.7556       -.10091E-07    .16283E-01
  14  Prefactor     .52736E-08    2.6217       -.56190E-07** at limit **
  15  Prefactor     .57565E-07    18.955        .24150E-06** at limit **
  16  Prefactor     .55400E-07    2.2366        .94854E-07** at limit **
  17  Prefactor     68.693        1.0904        .14065E-08   -.21666E-01
  18  Prefactor     2.0617        5.8827        .59848E-07    .48606E-03
  19  norm          1.3585        .20717       -.10398E-08   -.72926E-02
  20  Prefactor     .13878E-08    2.3563       -.50968E-07** at limit **
  21  Prefactor     6.2870        1.4577        .83484E-08    .14159E-01
  22  norm          .14561E-06    1.7925        .57313E-07** at limit **
  23  Normalizat    1.0732        .11164        .49392E-06    .91111E-04
  24  Prefactor     .70711        .13627       -.10698E-05   -.99287E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.44945
  norm       = 2.45948
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.08802e-08
  Prefactor  = 8.58391
  Prefactor  = 0
  Prefactor  = 0.127299
  norm       = 32.6833
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 22.375
  Prefactor  = 5.27356e-09
  Prefactor  = 5.75651e-08
  Prefactor  = 5.54001e-08
  Prefactor  = 68.6929
  Prefactor  = 2.06175
  norm       = 1.35852
  Prefactor  = 1.38778e-09
  Prefactor  = 6.28702
  norm       = 1.45606e-07
  Normalizat = 1.07316
  Prefactor  = 0.707106
e GAL_V02
Working on...
/lscratch/kocevski/28151314/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits.....................!
real 35.00
user 33.27
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28151314/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits', '/lscratch/kocevski/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.fits', expMap='/lscratch/kocevski/28151314/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', expCube='/lscratch/kocevski/28151314/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28151314/Model_4FGL_J1018.4+3540_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28151314/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28151314/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28151314/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28151314/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28151314/Model_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2437671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4424       1.0000          .0000       .10000E+07
     2 'norm      '    2.4600       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33489E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51564E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17363E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5635       1.0000          .0000       .10000E+07
     7 'Prefactor '    .84338E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12713       1.0000          .0000       .10000E+07
     9 'norm      '    32.682       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64665E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30281E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .35933E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.390       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16431E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .46763E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18817E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    68.633       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0738       1.0000          .0000       .10000E+07
    19 'norm      '    1.3587       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17687E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    6.2707       1.0000          .0000       .10000E+07
    22 'norm      '    .25535E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2153 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4494        4.8676        .11171E-08    .19348E-02
   2  norm          2.4595        3.7586        .32831E-07    .89651E-03
   3  Prefactor     .55511E-10    28.713       -.26085E-06** at limit **
   4  Prefactor      .0000        3.1372        .20655E-06** at limit **
   5  Prefactor     .10880E-07    6.1378        .23562E-06** at limit **
   6  Prefactor     8.5839        4.3933        .11456E-06    .21666E-01
   7  Prefactor      .0000        1.5718        .27233E-07** at limit **
   8  Prefactor     .12730        1.5907       -.34499E-07** at limit **
   9  norm          32.683        1.8038        .15071E-07   -.25224    
  10  Prefactor      .0000        1.1724        .14202E-07** at limit **
  11  Prefactor     .55511E-10    .78770        .47903E-07** at limit **
  12  norm          .55511E-10    1.8906        .32036E-07** at limit **
  13  Prefactor     22.375        1.7556       -.10091E-07    .16283E-01
  14  Prefactor     .52736E-08    2.6217       -.56190E-07** at limit **
  15  Prefactor     .57565E-07    18.955        .24150E-06** at limit **
  16  Prefactor     .55400E-07    2.2366        .94854E-07** at limit **
  17  Prefactor     68.693        1.0904        .14065E-08   -.21666E-01
  18  Prefactor     2.0617        5.8827        .59848E-07    .48606E-03
  19  norm          1.3585        .20717       -.10398E-08   -.72926E-02
  20  Prefactor     .13878E-08    2.3563       -.50968E-07** at limit **
  21  Prefactor     6.2870        1.4577        .83484E-08    .14159E-01
  22  norm          .14561E-06    1.7925        .57313E-07** at limit **
  23  Normalizat    1.0732        .11164        .49392E-06    .91111E-04
  24  Prefactor     .70711        .13627       -.10698E-05   -.99287E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.44945
  norm       = 2.45948
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.08802e-08
  Prefactor  = 8.58391
  Prefactor  = 0
  Prefactor  = 0.127299
  norm       = 32.6833
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 22.375
  Prefactor  = 5.27356e-09
  Prefactor  = 5.75651e-08
  Prefactor  = 5.54001e-08
  Prefactor  = 68.6929
  Prefactor  = 2.06175
  norm       = 1.35852
  Prefactor  = 1.38778e-09
  Prefactor  = 6.28702
  norm       = 1.45606e-07
  Normalizat = 1.07316
  Prefactor  = 0.707106
e GAL_V02
Working on...
/lscratch/kocevski/28151231/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits.....................!
real 40.11
user 38.24
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28151231/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits', '/lscratch/kocevski/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.fits', expMap='/lscratch/kocevski/28151231/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', expCube='/lscratch/kocevski/28151231/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28151231/Model_4FGL_J1018.4+3540_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28151231/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28151231/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28151231/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28151231/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28151231/Model_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2437671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4424       1.0000          .0000       .10000E+07
     2 'norm      '    2.4600       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33489E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51564E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17363E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5635       1.0000          .0000       .10000E+07
     7 'Prefactor '    .84338E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12713       1.0000          .0000       .10000E+07
     9 'norm      '    32.682       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64665E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30281E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .35933E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.390       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16431E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .46763E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18817E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    68.633       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0738       1.0000          .0000       .10000E+07
    19 'norm      '    1.3587       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17687E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    6.2707       1.0000          .0000       .10000E+07
    22 'norm      '    .25535E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2153 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4494        4.8676        .11171E-08    .19348E-02
   2  norm          2.4595        3.7586        .32831E-07    .89651E-03
   3  Prefactor     .55511E-10    28.713       -.26085E-06** at limit **
   4  Prefactor      .0000        3.1372        .20655E-06** at limit **
   5  Prefactor     .10880E-07    6.1378        .23562E-06** at limit **
   6  Prefactor     8.5839        4.3933        .11456E-06    .21666E-01
   7  Prefactor      .0000        1.5718        .27233E-07** at limit **
   8  Prefactor     .12730        1.5907       -.34499E-07** at limit **
   9  norm          32.683        1.8038        .15071E-07   -.25224    
  10  Prefactor      .0000        1.1724        .14202E-07** at limit **
  11  Prefactor     .55511E-10    .78770        .47903E-07** at limit **
  12  norm          .55511E-10    1.8906        .32036E-07** at limit **
  13  Prefactor     22.375        1.7556       -.10091E-07    .16283E-01
  14  Prefactor     .52736E-08    2.6217       -.56190E-07** at limit **
  15  Prefactor     .57565E-07    18.955        .24150E-06** at limit **
  16  Prefactor     .55400E-07    2.2366        .94854E-07** at limit **
  17  Prefactor     68.693        1.0904        .14065E-08   -.21666E-01
  18  Prefactor     2.0617        5.8827        .59848E-07    .48606E-03
  19  norm          1.3585        .20717       -.10398E-08   -.72926E-02
  20  Prefactor     .13878E-08    2.3563       -.50968E-07** at limit **
  21  Prefactor     6.2870        1.4577        .83484E-08    .14159E-01
  22  norm          .14561E-06    1.7925        .57313E-07** at limit **
  23  Normalizat    1.0732        .11164        .49392E-06    .91111E-04
  24  Prefactor     .70711        .13627       -.10698E-05   -.99287E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.44945
  norm       = 2.45948
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.08802e-08
  Prefactor  = 8.58391
  Prefactor  = 0
  Prefactor  = 0.127299
  norm       = 32.6833
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 22.375
  Prefactor  = 5.27356e-09
  Prefactor  = 5.75651e-08
  Prefactor  = 5.54001e-08
  Prefactor  = 68.6929
  Prefactor  = 2.06175
  norm       = 1.35852
  Prefactor  = 1.38778e-09
  Prefactor  = 6.28702
  norm       = 1.45606e-07
  Normalizat = 1.07316
  Prefactor  = 0.707106
 **********
 **   18 **HESSE 
 **********

 FCN=   13260.24     FROM HESSE     STATUS=OK           451 CALLS     2604 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4494        4.8712        .32589E-03   -1.5646    
   2  norm          2.4595        3.7756        .65181E-03   -1.5677    
   3  Prefactor     .55511E-10    28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.1654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10880E-07    6.2037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5839        4.4587        .34231E-03   -1.5649    
   7  Prefactor      .0000        1.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12730        .61290        .29461E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.683        7.5334        .17494E-03   -1.5594    
  10  Prefactor      .0000        1.1581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    .78616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.375        24.836        .21139E-03   -1.5613    
  14  Prefactor     .52736E-08    4.9558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .57565E-07    1.2060        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55400E-07    3.8971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.693        59.000        .12071E-03   -1.5542    
  18  Prefactor     2.0617        5.8985        .71699E-03   -1.5679    
  19  norm          1.3585        .21555        .44838E-03   -1.5685    
  20  Prefactor     .13878E-08    4.9792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2870        8.6439        .40063E-03   -1.5658    
  22  norm          .14561E-06    4.0428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0732        .97769E-01    .39215E-01   -.90618    
  24  Prefactor     .70711        .11812        .66222E-01   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04626e-07
Minuit parameter uncertainties:
  1  4.87119
  2  3.77563
  3  8.01464e-05
  4  1.7662e-05
  5  0.000519742
  6  4.45872
  7  6.08e-06
  8  0.558645
  9  7.53345
  10  1.93077e-06
  11  9.76901e-06
  12  1.61789e-05
  13  24.8363
  14  0.000322699
  15  0.000527049
  16  0.000929137
  17  59.0008
  18  5.89855
  19  0.215553
  20  0.00016613
  21  8.6439
  22  0.00153456
  23  0.0977854
  24  0.118164
 **********
 **   18 **HESSE 
 **********

 FCN=   13260.24     FROM HESSE     STATUS=OK           451 CALLS     2604 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4494        4.8712        .32589E-03   -1.5646    
   2  norm          2.4595        3.7756        .65181E-03   -1.5677    
   3  Prefactor     .55511E-10    28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.1654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10880E-07    6.2037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5839        4.4587        .34231E-03   -1.5649    
   7  Prefactor      .0000        1.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12730        .61290        .29461E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.683        7.5334        .17494E-03   -1.5594    
  10  Prefactor      .0000        1.1581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    .78616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.375        24.836        .21139E-03   -1.5613    
  14  Prefactor     .52736E-08    4.9558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .57565E-07    1.2060        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55400E-07    3.8971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.693        59.000        .12071E-03   -1.5542    
  18  Prefactor     2.0617        5.8985        .71699E-03   -1.5679    
  19  norm          1.3585        .21555        .44838E-03   -1.5685    
  20  Prefactor     .13878E-08    4.9792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2870        8.6439        .40063E-03   -1.5658    
  22  norm          .14561E-06    4.0428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0732        .97769E-01    .39215E-01   -.90618    
  24  Prefactor     .70711        .11812        .66222E-01   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04626e-07
Minuit parameter uncertainties:
  1  4.87119
  2  3.77563
  3  8.01464e-05
  4  1.7662e-05
  5  0.000519742
  6  4.45872
  7  6.08e-06
  8  0.558645
  9  7.53345
  10  1.93077e-06
  11  9.76901e-06
  12  1.61789e-05
  13  24.8363
  14  0.000322699
  15  0.000527049
  16  0.000929137
  17  59.0008
  18  5.89855
  19  0.215553
  20  0.00016613
  21  8.6439
  22  0.00153456
  23  0.0977854
  24  0.118164
 **********
 **   18 **HESSE 
 **********

 FCN=   13260.24     FROM HESSE     STATUS=OK           451 CALLS     2604 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4494        4.8712        .32589E-03   -1.5646    
   2  norm          2.4595        3.7756        .65181E-03   -1.5677    
   3  Prefactor     .55511E-10    28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.1654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10880E-07    6.2037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5839        4.4587        .34231E-03   -1.5649    
   7  Prefactor      .0000        1.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12730        .61290        .29461E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.683        7.5334        .17494E-03   -1.5594    
  10  Prefactor      .0000        1.1581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    .78616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.375        24.836        .21139E-03   -1.5613    
  14  Prefactor     .52736E-08    4.9558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .57565E-07    1.2060        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55400E-07    3.8971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.693        59.000        .12071E-03   -1.5542    
  18  Prefactor     2.0617        5.8985        .71699E-03   -1.5679    
  19  norm          1.3585        .21555        .44838E-03   -1.5685    
  20  Prefactor     .13878E-08    4.9792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2870        8.6439        .40063E-03   -1.5658    
  22  norm          .14561E-06    4.0428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0732        .97769E-01    .39215E-01   -.90618    
  24  Prefactor     .70711        .11812        .66222E-01   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04626e-07
Minuit parameter uncertainties:
  1  4.87119
  2  3.77563
  3  8.01464e-05
  4  1.7662e-05
  5  0.000519742
  6  4.45872
  7  6.08e-06
  8  0.558645
  9  7.53345
  10  1.93077e-06
  11  9.76901e-06
  12  1.61789e-05
  13  24.8363
  14  0.000322699
  15  0.000527049
  16  0.000929137
  17  59.0008
  18  5.89855
  19  0.215553
  20  0.00016613
  21  8.6439
  22  0.00153456
  23  0.0977854
  24  0.118164
 outfile=/lscratch/kocevski/28151315/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 26.06
user 24.20
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28151315/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28151315/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151315/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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/28151315/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
.....................!
real 73.73
user 68.00
sys 4.07

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28151315/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151315/cmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.73
user 0.35
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28151315/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits scfile=/lscratch/kocevski/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.fits outfile=/lscratch/kocevski/28151315/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.64
user 0.28
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28151315/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28151315/Model_4FGL_J1018.4+3540_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/28151365/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits.....................!
real 39.84
user 37.96
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28151365/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits', '/lscratch/kocevski/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.fits', expMap='/lscratch/kocevski/28151365/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', expCube='/lscratch/kocevski/28151365/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28151365/Model_4FGL_J1018.4+3540_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28151365/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28151365/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28151365/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28151365/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28151365/Model_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2437671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4424       1.0000          .0000       .10000E+07
     2 'norm      '    2.4600       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33489E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51564E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17363E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5635       1.0000          .0000       .10000E+07
     7 'Prefactor '    .84338E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12713       1.0000          .0000       .10000E+07
     9 'norm      '    32.682       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64665E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30281E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .35933E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.390       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16431E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .46763E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18817E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    68.633       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0738       1.0000          .0000       .10000E+07
    19 'norm      '    1.3587       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17687E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    6.2707       1.0000          .0000       .10000E+07
    22 'norm      '    .25535E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2153 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4494        4.8676        .11171E-08    .19348E-02
   2  norm          2.4595        3.7586        .32831E-07    .89651E-03
   3  Prefactor     .55511E-10    28.713       -.26085E-06** at limit **
   4  Prefactor      .0000        3.1372        .20655E-06** at limit **
   5  Prefactor     .10880E-07    6.1378        .23562E-06** at limit **
   6  Prefactor     8.5839        4.3933        .11456E-06    .21666E-01
   7  Prefactor      .0000        1.5718        .27233E-07** at limit **
   8  Prefactor     .12730        1.5907       -.34499E-07** at limit **
   9  norm          32.683        1.8038        .15071E-07   -.25224    
  10  Prefactor      .0000        1.1724        .14202E-07** at limit **
  11  Prefactor     .55511E-10    .78770        .47903E-07** at limit **
  12  norm          .55511E-10    1.8906        .32036E-07** at limit **
  13  Prefactor     22.375        1.7556       -.10091E-07    .16283E-01
  14  Prefactor     .52736E-08    2.6217       -.56190E-07** at limit **
  15  Prefactor     .57565E-07    18.955        .24150E-06** at limit **
  16  Prefactor     .55400E-07    2.2366        .94854E-07** at limit **
  17  Prefactor     68.693        1.0904        .14065E-08   -.21666E-01
  18  Prefactor     2.0617        5.8827        .59848E-07    .48606E-03
  19  norm          1.3585        .20717       -.10398E-08   -.72926E-02
  20  Prefactor     .13878E-08    2.3563       -.50968E-07** at limit **
  21  Prefactor     6.2870        1.4577        .83484E-08    .14159E-01
  22  norm          .14561E-06    1.7925        .57313E-07** at limit **
  23  Normalizat    1.0732        .11164        .49392E-06    .91111E-04
  24  Prefactor     .70711        .13627       -.10698E-05   -.99287E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.44945
  norm       = 2.45948
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.08802e-08
  Prefactor  = 8.58391
  Prefactor  = 0
  Prefactor  = 0.127299
  norm       = 32.6833
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 22.375
  Prefactor  = 5.27356e-09
  Prefactor  = 5.75651e-08
  Prefactor  = 5.54001e-08
  Prefactor  = 68.6929
  Prefactor  = 2.06175
  norm       = 1.35852
  Prefactor  = 1.38778e-09
  Prefactor  = 6.28702
  norm       = 1.45606e-07
  Normalizat = 1.07316
  Prefactor  = 0.707106
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.551e-11  9.769e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  9.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 2.79420149724e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0021854522849 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28151168/likelihoodResults_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2473352
delta logL = -0.00442647003365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13260.2429113
delta logL = -2.625371053e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      240 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .78829        .42118E-03** at limit **
   2  Index         2.6449        1.2597        .14334E-07     .0000    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.95069E-04
   4  Prefactor     .70711        1.0568       -.12229E-05   -.67528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6449
  Normalizat = 1.07316
  Prefactor  = 0.707106
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13260.24     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .78829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .79144        1.9516        .14334E-07   -.49045    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.90618    
   4  Prefactor     .70711        1.0568       -.12229E-05   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.92767e-12
Minuit parameter uncertainties:
  1  1.99003e-06
  2  1.27753
  3  1.20792
  4  1.0893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 13260.2429087
delta logL = 4.0017766878e-11

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.990e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.645e+00  1.278e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.089e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  1.208e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/28151168/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2026-06-09 08:16:56.266051', job_id='28151168', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1781018216.27', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='931' AND source_name='4FGL J1018.4+3540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 08:16:56 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.551e-11  9.769e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  9.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 2.79420149724e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0021854522849 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28151314/likelihoodResults_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2473352
delta logL = -0.00442647003365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13260.2429113
delta logL = -2.625371053e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      240 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .78829        .42118E-03** at limit **
   2  Index         2.6449        1.2597        .14334E-07     .0000    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.95069E-04
   4  Prefactor     .70711        1.0568       -.12229E-05   -.67528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6449
  Normalizat = 1.07316
  Prefactor  = 0.707106
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13260.24     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .78829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .79144        1.9516        .14334E-07   -.49045    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.90618    
   4  Prefactor     .70711        1.0568       -.12229E-05   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.92767e-12
Minuit parameter uncertainties:
  1  1.99003e-06
  2  1.27753
  3  1.20792
  4  1.0893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 13260.2429087
delta logL = 4.0017766878e-11

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.990e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.645e+00  1.278e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.089e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  1.208e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/28151314/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2026-06-09 08:17:01.676364', job_id='28151314', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1781018221.68', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='931' AND source_name='4FGL J1018.4+3540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 08:17:02 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.551e-11  9.769e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  9.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 2.79420149724e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0021854522849 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28151231/likelihoodResults_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2473352
delta logL = -0.00442647003365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13260.2429113
delta logL = -2.625371053e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      240 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .78829        .42118E-03** at limit **
   2  Index         2.6449        1.2597        .14334E-07     .0000    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.95069E-04
   4  Prefactor     .70711        1.0568       -.12229E-05   -.67528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6449
  Normalizat = 1.07316
  Prefactor  = 0.707106
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13260.24     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .78829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .79144        1.9516        .14334E-07   -.49045    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.90618    
   4  Prefactor     .70711        1.0568       -.12229E-05   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.92767e-12
Minuit parameter uncertainties:
  1  1.99003e-06
  2  1.27753
  3  1.20792
  4  1.0893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 13260.2429087
delta logL = 4.0017766878e-11

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.990e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.645e+00  1.278e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.089e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  1.208e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/28151231/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2026-06-09 08:17:11.085654', job_id='28151231', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1781018231.09', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='931' AND source_name='4FGL J1018.4+3540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 08:17:11 PDT 2026

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

 FCN=   13260.24     FROM HESSE     STATUS=OK           451 CALLS     2604 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4494        4.8712        .32589E-03   -1.5646    
   2  norm          2.4595        3.7756        .65181E-03   -1.5677    
   3  Prefactor     .55511E-10    28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.1654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10880E-07    6.2037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5839        4.4587        .34231E-03   -1.5649    
   7  Prefactor      .0000        1.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12730        .61290        .29461E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.683        7.5334        .17494E-03   -1.5594    
  10  Prefactor      .0000        1.1581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    .78616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.375        24.836        .21139E-03   -1.5613    
  14  Prefactor     .52736E-08    4.9558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .57565E-07    1.2060        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55400E-07    3.8971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.693        59.000        .12071E-03   -1.5542    
  18  Prefactor     2.0617        5.8985        .71699E-03   -1.5679    
  19  norm          1.3585        .21555        .44838E-03   -1.5685    
  20  Prefactor     .13878E-08    4.9792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2870        8.6439        .40063E-03   -1.5658    
  22  norm          .14561E-06    4.0428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0732        .97769E-01    .39215E-01   -.90618    
  24  Prefactor     .70711        .11812        .66222E-01   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04626e-07
Minuit parameter uncertainties:
  1  4.87119
  2  3.77563
  3  8.01464e-05
  4  1.7662e-05
  5  0.000519742
  6  4.45872
  7  6.08e-06
  8  0.558645
  9  7.53345
  10  1.93077e-06
  11  9.76901e-06
  12  1.61789e-05
  13  24.8363
  14  0.000322699
  15  0.000527049
  16  0.000929137
  17  59.0008
  18  5.89855
  19  0.215553
  20  0.00016613
  21  8.6439
  22  0.00153456
  23  0.0977854
  24  0.118164
e GAL_V02
Working on...
/lscratch/kocevski/28151242/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits.....................!
real 45.23
user 42.26
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28151242/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits', '/lscratch/kocevski/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.fits', expMap='/lscratch/kocevski/28151242/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', expCube='/lscratch/kocevski/28151242/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28151242/Model_4FGL_J1018.4+3540_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28151242/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28151242/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28151242/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28151242/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28151242/Model_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2437671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4424       1.0000          .0000       .10000E+07
     2 'norm      '    2.4600       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33489E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51564E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17363E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5635       1.0000          .0000       .10000E+07
     7 'Prefactor '    .84338E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12713       1.0000          .0000       .10000E+07
     9 'norm      '    32.682       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64665E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30281E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .35933E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.390       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16431E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .46763E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18817E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    68.633       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0738       1.0000          .0000       .10000E+07
    19 'norm      '    1.3587       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17687E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    6.2707       1.0000          .0000       .10000E+07
    22 'norm      '    .25535E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2153 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4494        4.8676        .11171E-08    .19348E-02
   2  norm          2.4595        3.7586        .32831E-07    .89651E-03
   3  Prefactor     .55511E-10    28.713       -.26085E-06** at limit **
   4  Prefactor      .0000        3.1372        .20655E-06** at limit **
   5  Prefactor     .10880E-07    6.1378        .23562E-06** at limit **
   6  Prefactor     8.5839        4.3933        .11456E-06    .21666E-01
   7  Prefactor      .0000        1.5718        .27233E-07** at limit **
   8  Prefactor     .12730        1.5907       -.34499E-07** at limit **
   9  norm          32.683        1.8038        .15071E-07   -.25224    
  10  Prefactor      .0000        1.1724        .14202E-07** at limit **
  11  Prefactor     .55511E-10    .78770        .47903E-07** at limit **
  12  norm          .55511E-10    1.8906        .32036E-07** at limit **
  13  Prefactor     22.375        1.7556       -.10091E-07    .16283E-01
  14  Prefactor     .52736E-08    2.6217       -.56190E-07** at limit **
  15  Prefactor     .57565E-07    18.955        .24150E-06** at limit **
  16  Prefactor     .55400E-07    2.2366        .94854E-07** at limit **
  17  Prefactor     68.693        1.0904        .14065E-08   -.21666E-01
  18  Prefactor     2.0617        5.8827        .59848E-07    .48606E-03
  19  norm          1.3585        .20717       -.10398E-08   -.72926E-02
  20  Prefactor     .13878E-08    2.3563       -.50968E-07** at limit **
  21  Prefactor     6.2870        1.4577        .83484E-08    .14159E-01
  22  norm          .14561E-06    1.7925        .57313E-07** at limit **
  23  Normalizat    1.0732        .11164        .49392E-06    .91111E-04
  24  Prefactor     .70711        .13627       -.10698E-05   -.99287E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.44945
  norm       = 2.45948
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.08802e-08
  Prefactor  = 8.58391
  Prefactor  = 0
  Prefactor  = 0.127299
  norm       = 32.6833
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 22.375
  Prefactor  = 5.27356e-09
  Prefactor  = 5.75651e-08
  Prefactor  = 5.54001e-08
  Prefactor  = 68.6929
  Prefactor  = 2.06175
  norm       = 1.35852
  Prefactor  = 1.38778e-09
  Prefactor  = 6.28702
  norm       = 1.45606e-07
  Normalizat = 1.07316
  Prefactor  = 0.707106
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.551e-11  9.769e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  9.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 2.79420149724e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0021854522849 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28151365/likelihoodResults_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2473352
delta logL = -0.00442647003365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13260.2429113
delta logL = -2.625371053e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      240 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .78829        .42118E-03** at limit **
   2  Index         2.6449        1.2597        .14334E-07     .0000    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.95069E-04
   4  Prefactor     .70711        1.0568       -.12229E-05   -.67528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6449
  Normalizat = 1.07316
  Prefactor  = 0.707106
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13260.24     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .78829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .79144        1.9516        .14334E-07   -.49045    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.90618    
   4  Prefactor     .70711        1.0568       -.12229E-05   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.92767e-12
Minuit parameter uncertainties:
  1  1.99003e-06
  2  1.27753
  3  1.20792
  4  1.0893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 13260.2429087
delta logL = 4.0017766878e-11

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.990e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.645e+00  1.278e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.089e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  1.208e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/28151365/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2026-06-09 08:18:33.354109', job_id='28151365', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1781018313.35', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='931' AND source_name='4FGL J1018.4+3540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 08:18:33 PDT 2026

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

 FCN=   13260.24     FROM HESSE     STATUS=OK           451 CALLS     2604 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4494        4.8712        .32589E-03   -1.5646    
   2  norm          2.4595        3.7756        .65181E-03   -1.5677    
   3  Prefactor     .55511E-10    28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.1654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10880E-07    6.2037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5839        4.4587        .34231E-03   -1.5649    
   7  Prefactor      .0000        1.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12730        .61290        .29461E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.683        7.5334        .17494E-03   -1.5594    
  10  Prefactor      .0000        1.1581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    .78616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.375        24.836        .21139E-03   -1.5613    
  14  Prefactor     .52736E-08    4.9558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .57565E-07    1.2060        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55400E-07    3.8971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.693        59.000        .12071E-03   -1.5542    
  18  Prefactor     2.0617        5.8985        .71699E-03   -1.5679    
  19  norm          1.3585        .21555        .44838E-03   -1.5685    
  20  Prefactor     .13878E-08    4.9792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2870        8.6439        .40063E-03   -1.5658    
  22  norm          .14561E-06    4.0428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0732        .97769E-01    .39215E-01   -.90618    
  24  Prefactor     .70711        .11812        .66222E-01   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04626e-07
Minuit parameter uncertainties:
  1  4.87119
  2  3.77563
  3  8.01464e-05
  4  1.7662e-05
  5  0.000519742
  6  4.45872
  7  6.08e-06
  8  0.558645
  9  7.53345
  10  1.93077e-06
  11  9.76901e-06
  12  1.61789e-05
  13  24.8363
  14  0.000322699
  15  0.000527049
  16  0.000929137
  17  59.0008
  18  5.89855
  19  0.215553
  20  0.00016613
  21  8.6439
  22  0.00153456
  23  0.0977854
  24  0.118164
e GAL_V02
Working on...
/lscratch/kocevski/28151167/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits.....................!
real 43.05
user 37.32
sys 4.28

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28151167/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits', '/lscratch/kocevski/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.fits', expMap='/lscratch/kocevski/28151167/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', expCube='/lscratch/kocevski/28151167/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28151167/Model_4FGL_J1018.4+3540_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28151167/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28151167/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28151167/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28151167/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28151167/Model_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2437671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4424       1.0000          .0000       .10000E+07
     2 'norm      '    2.4600       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33489E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51564E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17363E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5635       1.0000          .0000       .10000E+07
     7 'Prefactor '    .84338E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12713       1.0000          .0000       .10000E+07
     9 'norm      '    32.682       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64665E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30281E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .35933E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.390       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16431E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .46763E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18817E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    68.633       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0738       1.0000          .0000       .10000E+07
    19 'norm      '    1.3587       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17687E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    6.2707       1.0000          .0000       .10000E+07
    22 'norm      '    .25535E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2153 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4494        4.8676        .11171E-08    .19348E-02
   2  norm          2.4595        3.7586        .32831E-07    .89651E-03
   3  Prefactor     .55511E-10    28.713       -.26085E-06** at limit **
   4  Prefactor      .0000        3.1372        .20655E-06** at limit **
   5  Prefactor     .10880E-07    6.1378        .23562E-06** at limit **
   6  Prefactor     8.5839        4.3933        .11456E-06    .21666E-01
   7  Prefactor      .0000        1.5718        .27233E-07** at limit **
   8  Prefactor     .12730        1.5907       -.34499E-07** at limit **
   9  norm          32.683        1.8038        .15071E-07   -.25224    
  10  Prefactor      .0000        1.1724        .14202E-07** at limit **
  11  Prefactor     .55511E-10    .78770        .47903E-07** at limit **
  12  norm          .55511E-10    1.8906        .32036E-07** at limit **
  13  Prefactor     22.375        1.7556       -.10091E-07    .16283E-01
  14  Prefactor     .52736E-08    2.6217       -.56190E-07** at limit **
  15  Prefactor     .57565E-07    18.955        .24150E-06** at limit **
  16  Prefactor     .55400E-07    2.2366        .94854E-07** at limit **
  17  Prefactor     68.693        1.0904        .14065E-08   -.21666E-01
  18  Prefactor     2.0617        5.8827        .59848E-07    .48606E-03
  19  norm          1.3585        .20717       -.10398E-08   -.72926E-02
  20  Prefactor     .13878E-08    2.3563       -.50968E-07** at limit **
  21  Prefactor     6.2870        1.4577        .83484E-08    .14159E-01
  22  norm          .14561E-06    1.7925        .57313E-07** at limit **
  23  Normalizat    1.0732        .11164        .49392E-06    .91111E-04
  24  Prefactor     .70711        .13627       -.10698E-05   -.99287E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.44945
  norm       = 2.45948
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.08802e-08
  Prefactor  = 8.58391
  Prefactor  = 0
  Prefactor  = 0.127299
  norm       = 32.6833
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 22.375
  Prefactor  = 5.27356e-09
  Prefactor  = 5.75651e-08
  Prefactor  = 5.54001e-08
  Prefactor  = 68.6929
  Prefactor  = 2.06175
  norm       = 1.35852
  Prefactor  = 1.38778e-09
  Prefactor  = 6.28702
  norm       = 1.45606e-07
  Normalizat = 1.07316
  Prefactor  = 0.707106
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.551e-11  9.769e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  9.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 2.79420149724e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0021854522849 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28151242/likelihoodResults_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2473352
delta logL = -0.00442647003365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13260.2429113
delta logL = -2.625371053e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      240 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .78829        .42118E-03** at limit **
   2  Index         2.6449        1.2597        .14334E-07     .0000    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.95069E-04
   4  Prefactor     .70711        1.0568       -.12229E-05   -.67528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6449
  Normalizat = 1.07316
  Prefactor  = 0.707106
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13260.24     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .78829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .79144        1.9516        .14334E-07   -.49045    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.90618    
   4  Prefactor     .70711        1.0568       -.12229E-05   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.92767e-12
Minuit parameter uncertainties:
  1  1.99003e-06
  2  1.27753
  3  1.20792
  4  1.0893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 13260.2429087
delta logL = 4.0017766878e-11

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.990e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.645e+00  1.278e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.089e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  1.208e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/28151242/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2026-06-09 08:20:10.814659', job_id='28151242', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1781018410.81', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='931' AND source_name='4FGL J1018.4+3540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 08:20:11 PDT 2026

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

 FCN=   13260.24     FROM HESSE     STATUS=OK           451 CALLS     2604 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4494        4.8712        .32589E-03   -1.5646    
   2  norm          2.4595        3.7756        .65181E-03   -1.5677    
   3  Prefactor     .55511E-10    28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.1654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10880E-07    6.2037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5839        4.4587        .34231E-03   -1.5649    
   7  Prefactor      .0000        1.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12730        .61290        .29461E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.683        7.5334        .17494E-03   -1.5594    
  10  Prefactor      .0000        1.1581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    .78616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.375        24.836        .21139E-03   -1.5613    
  14  Prefactor     .52736E-08    4.9558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .57565E-07    1.2060        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55400E-07    3.8971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.693        59.000        .12071E-03   -1.5542    
  18  Prefactor     2.0617        5.8985        .71699E-03   -1.5679    
  19  norm          1.3585        .21555        .44838E-03   -1.5685    
  20  Prefactor     .13878E-08    4.9792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2870        8.6439        .40063E-03   -1.5658    
  22  norm          .14561E-06    4.0428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0732        .97769E-01    .39215E-01   -.90618    
  24  Prefactor     .70711        .11812        .66222E-01   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04626e-07
Minuit parameter uncertainties:
  1  4.87119
  2  3.77563
  3  8.01464e-05
  4  1.7662e-05
  5  0.000519742
  6  4.45872
  7  6.08e-06
  8  0.558645
  9  7.53345
  10  1.93077e-06
  11  9.76901e-06
  12  1.61789e-05
  13  24.8363
  14  0.000322699
  15  0.000527049
  16  0.000929137
  17  59.0008
  18  5.89855
  19  0.215553
  20  0.00016613
  21  8.6439
  22  0.00153456
  23  0.0977854
  24  0.118164
e GAL_V02
Working on...
/lscratch/kocevski/28151315/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits.....................!
real 47.66
user 43.04
sys 2.47

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28151315/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits', '/lscratch/kocevski/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.fits', expMap='/lscratch/kocevski/28151315/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', expCube='/lscratch/kocevski/28151315/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28151315/Model_4FGL_J1018.4+3540_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28151315/ft1_filtered_4FGL_J1018.4+3540_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28151315/ft2_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28151315/expmap_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28151315/ltcube_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28151315/Model_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2437671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4424       1.0000          .0000       .10000E+07
     2 'norm      '    2.4600       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33489E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51564E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17363E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5635       1.0000          .0000       .10000E+07
     7 'Prefactor '    .84338E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12713       1.0000          .0000       .10000E+07
     9 'norm      '    32.682       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64665E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30281E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .35933E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.390       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16431E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .46763E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18817E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    68.633       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0738       1.0000          .0000       .10000E+07
    19 'norm      '    1.3587       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17687E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    6.2707       1.0000          .0000       .10000E+07
    22 'norm      '    .25535E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2153 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4494        4.8676        .11171E-08    .19348E-02
   2  norm          2.4595        3.7586        .32831E-07    .89651E-03
   3  Prefactor     .55511E-10    28.713       -.26085E-06** at limit **
   4  Prefactor      .0000        3.1372        .20655E-06** at limit **
   5  Prefactor     .10880E-07    6.1378        .23562E-06** at limit **
   6  Prefactor     8.5839        4.3933        .11456E-06    .21666E-01
   7  Prefactor      .0000        1.5718        .27233E-07** at limit **
   8  Prefactor     .12730        1.5907       -.34499E-07** at limit **
   9  norm          32.683        1.8038        .15071E-07   -.25224    
  10  Prefactor      .0000        1.1724        .14202E-07** at limit **
  11  Prefactor     .55511E-10    .78770        .47903E-07** at limit **
  12  norm          .55511E-10    1.8906        .32036E-07** at limit **
  13  Prefactor     22.375        1.7556       -.10091E-07    .16283E-01
  14  Prefactor     .52736E-08    2.6217       -.56190E-07** at limit **
  15  Prefactor     .57565E-07    18.955        .24150E-06** at limit **
  16  Prefactor     .55400E-07    2.2366        .94854E-07** at limit **
  17  Prefactor     68.693        1.0904        .14065E-08   -.21666E-01
  18  Prefactor     2.0617        5.8827        .59848E-07    .48606E-03
  19  norm          1.3585        .20717       -.10398E-08   -.72926E-02
  20  Prefactor     .13878E-08    2.3563       -.50968E-07** at limit **
  21  Prefactor     6.2870        1.4577        .83484E-08    .14159E-01
  22  norm          .14561E-06    1.7925        .57313E-07** at limit **
  23  Normalizat    1.0732        .11164        .49392E-06    .91111E-04
  24  Prefactor     .70711        .13627       -.10698E-05   -.99287E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.44945
  norm       = 2.45948
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.08802e-08
  Prefactor  = 8.58391
  Prefactor  = 0
  Prefactor  = 0.127299
  norm       = 32.6833
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 22.375
  Prefactor  = 5.27356e-09
  Prefactor  = 5.75651e-08
  Prefactor  = 5.54001e-08
  Prefactor  = 68.6929
  Prefactor  = 2.06175
  norm       = 1.35852
  Prefactor  = 1.38778e-09
  Prefactor  = 6.28702
  norm       = 1.45606e-07
  Normalizat = 1.07316
  Prefactor  = 0.707106
 **********
 **   18 **HESSE 
 **********

 FCN=   13260.24     FROM HESSE     STATUS=OK           451 CALLS     2604 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4494        4.8712        .32589E-03   -1.5646    
   2  norm          2.4595        3.7756        .65181E-03   -1.5677    
   3  Prefactor     .55511E-10    28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.1654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10880E-07    6.2037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5839        4.4587        .34231E-03   -1.5649    
   7  Prefactor      .0000        1.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12730        .61290        .29461E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.683        7.5334        .17494E-03   -1.5594    
  10  Prefactor      .0000        1.1581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    .78616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.375        24.836        .21139E-03   -1.5613    
  14  Prefactor     .52736E-08    4.9558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .57565E-07    1.2060        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55400E-07    3.8971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.693        59.000        .12071E-03   -1.5542    
  18  Prefactor     2.0617        5.8985        .71699E-03   -1.5679    
  19  norm          1.3585        .21555        .44838E-03   -1.5685    
  20  Prefactor     .13878E-08    4.9792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2870        8.6439        .40063E-03   -1.5658    
  22  norm          .14561E-06    4.0428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0732        .97769E-01    .39215E-01   -.90618    
  24  Prefactor     .70711        .11812        .66222E-01   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04626e-07
Minuit parameter uncertainties:
  1  4.87119
  2  3.77563
  3  8.01464e-05
  4  1.7662e-05
  5  0.000519742
  6  4.45872
  7  6.08e-06
  8  0.558645
  9  7.53345
  10  1.93077e-06
  11  9.76901e-06
  12  1.61789e-05
  13  24.8363
  14  0.000322699
  15  0.000527049
  16  0.000929137
  17  59.0008
  18  5.89855
  19  0.215553
  20  0.00016613
  21  8.6439
  22  0.00153456
  23  0.0977854
  24  0.118164
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.551e-11  9.769e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  9.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 2.79420149724e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0021854522849 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28151167/likelihoodResults_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2473352
delta logL = -0.00442647003365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13260.2429113
delta logL = -2.625371053e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      240 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .78829        .42118E-03** at limit **
   2  Index         2.6449        1.2597        .14334E-07     .0000    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.95069E-04
   4  Prefactor     .70711        1.0568       -.12229E-05   -.67528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6449
  Normalizat = 1.07316
  Prefactor  = 0.707106
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13260.24     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .78829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .79144        1.9516        .14334E-07   -.49045    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.90618    
   4  Prefactor     .70711        1.0568       -.12229E-05   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.92767e-12
Minuit parameter uncertainties:
  1  1.99003e-06
  2  1.27753
  3  1.20792
  4  1.0893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 13260.2429087
delta logL = 4.0017766878e-11

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.990e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.645e+00  1.278e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.089e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  1.208e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/28151167/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2026-06-09 08:21:52.163259', job_id='28151167', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1781018512.16', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='931' AND source_name='4FGL J1018.4+3540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 08:21:52 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.551e-11  9.769e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  9.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 2.79420149724e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0021854522849 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28151315/likelihoodResults_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.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) = 13260.2473352
delta logL = -0.00442647003365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13260.2429113
delta logL = -2.625371053e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13260.24     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      240 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .78829        .42118E-03** at limit **
   2  Index         2.6449        1.2597        .14334E-07     .0000    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.95069E-04
   4  Prefactor     .70711        1.0568       -.12229E-05   -.67528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6449
  Normalizat = 1.07316
  Prefactor  = 0.707106
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13260.24     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .78829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .79144        1.9516        .14334E-07   -.49045    
   3  Normalizat    1.0732        1.1772       -.18182E-05   -.90618    
   4  Prefactor     .70711        1.0568       -.12229E-05   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.92767e-12
Minuit parameter uncertainties:
  1  1.99003e-06
  2  1.27753
  3  1.20792
  4  1.0893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 13260.2429087
delta logL = 4.0017766878e-11

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.990e-06  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.645e+00  1.278e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.071e-01  1.089e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.073e+00  1.208e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/28151315/cmap_HighResolution_802051201_802656001_4FGL_J1018.4+3540_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2026-06-09 08:22:44.129601', job_id='28151315', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1781018564.13', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='931' AND source_name='4FGL J1018.4+3540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 08:22:44 PDT 2026

