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


Performing analysis on: 4FGL_J0340.5-2118_daily_bin2193
RA = 55.1477, Dec = -21.3158
tmin = 807753601, tmax = 808012801
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='34634215', job_status='RUN', time_executed='2026-08-10 02:56:05.088925', time_epoch_executed='1786355765.09' WHERE source_name='4FGL J0340.5-2118' and cadence='daily' and bin_id='2193'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34634215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34634215/ft1_4FGL_J0340.5-2118_daily_bin2193.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34634215/ft1_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634215/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits ra=55.1477 dec=-21.3158 rad=12.0 tmin=807753601.0 tmax=808012801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.42
user 1.72
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.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/34634215/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" outfile="/lscratch/kocevski/34634215/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.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.86
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34634215/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" /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 = 7691
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0340.5-2118_daily_bin2193
RA = 55.1477, Dec = -21.3158
tmin = 807753601, tmax = 808012801
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='34634234', job_status='RUN', time_executed='2026-08-10 02:56:48.671278', time_epoch_executed='1786355808.67' WHERE source_name='4FGL J0340.5-2118' and cadence='daily' and bin_id='2193'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34634234

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34634234/ft1_4FGL_J0340.5-2118_daily_bin2193.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34634234/ft1_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634234/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits ra=55.1477 dec=-21.3158 rad=12.0 tmin=807753601.0 tmax=808012801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.18
user 1.51
sys 0.15

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.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/34634234/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" outfile="/lscratch/kocevski/34634234/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.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.79
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34634234/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" number of points = 7691
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0340.5-2118_daily_bin2193
RA = 55.1477, Dec = -21.3158
tmin = 807753601, tmax = 808012801
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='34634228', job_status='RUN', time_executed='2026-08-10 02:56:45.578433', time_epoch_executed='1786355805.58' WHERE source_name='4FGL J0340.5-2118' and cadence='daily' and bin_id='2193'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34634228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34634228/ft1_4FGL_J0340.5-2118_daily_bin2193.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34634228/ft1_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634228/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits ra=55.1477 dec=-21.3158 rad=12.0 tmin=807753601.0 tmax=808012801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.43
user 1.75
sys 0.15

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.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/34634228/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" outfile="/lscratch/kocevski/34634228/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.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.80
user 0.23
sys 0.11

Number of photons that the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34634228/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" number of points = 7691
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0340.5-2118_daily_bin2193
RA = 55.1477, Dec = -21.3158
tmin = 807753601, tmax = 808012801
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='34634239', job_status='RUN', time_executed='2026-08-10 02:56:55.055265', time_epoch_executed='1786355815.06' WHERE source_name='4FGL J0340.5-2118' and cadence='daily' and bin_id='2193'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34634239

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34634239/ft1_4FGL_J0340.5-2118_daily_bin2193.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34634239/ft1_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634239/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits ra=55.1477 dec=-21.3158 rad=12.0 tmin=807753601.0 tmax=808012801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.36
user 1.67
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.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/34634239/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" outfile="/lscratch/kocevski/34634239/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.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.19
sys 0.13

Number of photons that the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34634239/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34634189/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634189/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 9.71
user 8.76
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34634189/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634189/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34634189/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634189/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634189/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 71.26
user 66.17
sys 4.13

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34634189/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634189/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634189/cmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 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.84
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34634189/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634189/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634189/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 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.76
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34634189/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634189/ft2_4FGL_J0340.5-2118_daily_bin2193.finumber of points = 7691
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0340.5-2118_daily_bin2193
RA = 55.1477, Dec = -21.3158
tmin = 807753601, tmax = 808012801
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='34634253', job_status='RUN', time_executed='2026-08-10 02:57:29.382607', time_epoch_executed='1786355849.38' WHERE source_name='4FGL J0340.5-2118' and cadence='daily' and bin_id='2193'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34634253

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34634253/ft1_4FGL_J0340.5-2118_daily_bin2193.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34634253/ft1_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634253/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits ra=55.1477 dec=-21.3158 rad=12.0 tmin=807753601.0 tmax=808012801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.35
user 1.62
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.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/34634253/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" outfile="/lscratch/kocevski/34634253/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.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.85
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34634253/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34634215/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 9.71
user 8.83
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34634215/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34634215/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634215/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634215/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 77.68
user 71.82
sys 4.61

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34634215/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634215/cmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 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.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34634215/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634215/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.86
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34634215/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.finumber of points = 7691
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0340.5-2118_daily_bin2193
RA = 55.1477, Dec = -21.3158
tmin = 807753601, tmax = 808012801
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='34634262', job_status='RUN', time_executed='2026-08-10 02:57:55.079144', time_epoch_executed='1786355875.08' WHERE source_name='4FGL J0340.5-2118' and cadence='daily' and bin_id='2193'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34634262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34634262/ft1_4FGL_J0340.5-2118_daily_bin2193.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34634262/ft1_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634262/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits ra=55.1477 dec=-21.3158 rad=12.0 tmin=807753601.0 tmax=808012801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.63
user 1.65
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.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/34634262/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" outfile="/lscratch/kocevski/34634262/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.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.74
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34634262/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34634234/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 8.59
user 7.95
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34634234/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34634234/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634234/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634234/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 67.49
user 62.68
sys 4.00

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34634234/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634234/cmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.72
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34634234/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634234/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 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.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34634234/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.fioutfile=/lscratch/kocevski/34634228/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 10.05
user 9.18
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34634228/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34634228/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634228/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634228/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 77.93
user 71.93
sys 4.49

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34634228/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634228/cmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.89
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34634228/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634228/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.86
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34634228/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.foutfile=/lscratch/kocevski/34634239/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 9.51
user 8.63
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34634239/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34634239/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634239/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634239/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 73.27
user 67.95
sys 4.40

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34634239/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634239/cmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.80
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34634239/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634239/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 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.84
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34634239/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.fioutfile=/lscratch/kocevski/34634253/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 9.08
user 8.23
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34634253/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34634253/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634253/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634253/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 72.47
user 67.39
sys 4.31

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34634253/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634253/cmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 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.78
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34634253/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634253/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 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.82
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34634253/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.finumber of points = 7691
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0340.5-2118_daily_bin2193
RA = 55.1477, Dec = -21.3158
tmin = 807753601, tmax = 808012801
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='34634285', job_status='RUN', time_executed='2026-08-10 02:58:48.689506', time_epoch_executed='1786355928.69' WHERE source_name='4FGL J0340.5-2118' and cadence='daily' and bin_id='2193'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34634285

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34634285/ft1_4FGL_J0340.5-2118_daily_bin2193.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34634285/ft1_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634285/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits ra=55.1477 dec=-21.3158 rad=12.0 tmin=807753601.0 tmax=808012801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.38
user 1.64
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.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/34634285/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" outfile="/lscratch/kocevski/34634285/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.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.99
user 0.19
sys 0.09

Number of photons that the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34634285/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/34634189/Model_4FGL_J0340.5-2118_daily_bin2193.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/34634189/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits.....................!
real 55.37
user 53.29
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34634189/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits', '/lscratch/kocevski/34634189/ft2_4FGL_J0340.5-2118_daily_bin2193.fits', expMap='/lscratch/kocevski/34634189/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', expCube='/lscratch/kocevski/34634189/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34634189/Model_4FGL_J0340.5-2118_daily_bin2193.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34634189/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits
Spacecraft file(s): /lscratch/kocevski/34634189/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure map: /lscratch/kocevski/34634189/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure cube: /lscratch/kocevski/34634189/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34634189/Model_4FGL_J0340.5-2118_daily_bin2193.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) = 6079.2224917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9962       1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85790E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10266E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7726       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11122E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33438E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    23.393       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12115E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8871       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6243       1.0000          .0000       .10000E+07
    13 'norm      '    .88651E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.0896       1.0000          .0000       .10000E+07
    15 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30537E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12438E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.2373       1.0000          .0000       .10000E+07
    19 'norm      '    11.388       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18969E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.2548       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11823E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .62568       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2016 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9968        2.2657        .23595E-07   -.27062E-03
   2  norm           .0000        .90242       -.66267E-08** at limit **
   3  Prefactor     .12580E-04    29.326        .57879E-07** at limit **
   4  Prefactor     .34792E-05    41.662       -.93569E-07** at limit **
   5  Prefactor     3.8005        3.3200        .44774E-09    .61503E-04
   6  Prefactor      .0000        4.0795        .29410E-06** at limit **
   7  Prefactor     .82521E-05    22.184        .31669E-06** at limit **
   8  Prefactor     22.961        9.8963       -.12125E-07    .69104E-01
   9  Prefactor     .53307E-05    26.030        .59382E-06** at limit **
  10  Prefactor      .0000        .57062       -.58316E-07** at limit **
  11  Prefactor     4.8908        4.0484        .12027E-06   -.49155E-03
  12  Prefactor     3.6249        3.6641       -.72383E-07   -.17431E-04
  13  norm           .0000        .25242        .22268E-07** at limit **
  14  Prefactor     1.2379        84.862        .37505E-06    .39461E-02
  15  norm           .0000        .38479       -.69676E-08** at limit **
  16  Prefactor     .31486E-05    12.446        .44466E-06** at limit **
  17  Prefactor     .75528E-06    22.976       -.23879E-07** at limit **
  18  Prefactor     6.2440        3.1864       -.44855E-07    .11776E-03
  19  norm          11.393        14.425       -.64221E-08   -.13604E-01
  20  Prefactor     .18874E-08    9.9444       -.75039E-07** at limit **
  21  Prefactor     7.2971        6.3046       -.13564E-06    .59124E-05
  22  Prefactor      .0000        4.0325       -.89564E-07** at limit **
  23  Normalizat    .62580        .19343       -.14234E-05   -.80354E-05
  24  Prefactor     1.3236        .18352        .15449E-05   -.90061E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99681
  norm       = 0
  Prefactor  = 1.25799e-05
  Prefactor  = 3.47922e-06
  Prefactor  = 3.80053
  Prefactor  = 0
  Prefactor  = 8.25212e-06
  Prefactor  = 22.9612
  Prefactor  = 5.33068e-06
  Prefactor  = 0
  Prefactor  = 4.89078
  Prefactor  = 3.62494
  norm       = 0
  Prefactor  = 1.23787
  norm       = 0
  Prefactor  = 3.14859e-06
  Prefactor  = 7.55285e-07
  Prefactor  = 6.24401
  norm       = 11.3929
  Prefactor  = 1.88738e-09
  Prefactor  = 7.29713
  Prefactor  = 0
  Normalizat = 0.625804
  Prefactor  = 1.32356
outfile=/lscratch/kocevski/34634262/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 9.63
user 8.73
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34634262/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34634262/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634262/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634262/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 73.50
user 68.18
sys 4.30

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34634262/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634262/cmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 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.95
user 0.24
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34634262/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634262/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 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.78
user 0.24
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34634262/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.fi **********
 **   18 **HESSE 
 **********

 FCN=   6079.206     FROM HESSE     STATUS=OK           445 CALLS     2461 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9968        2.2702        .50427E-03   -1.5668    
   2  norm           .0000        .89998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12580E-04    59.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34792E-05    70.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8005        3.3247        .51952E-03   -1.5669    
   6  Prefactor      .0000        4.0849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .82521E-05    46.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.961        46.074        .20680E-03   -1.5612    
   9  Prefactor     .53307E-05    35.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .57011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8908        4.0639        .45476E-03   -1.5664    
  12  Prefactor     3.6249        3.6862        .53045E-03   -1.5670    
  13  norm           .0000        .25196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2379        16.565        .11462E-01   -1.5686    
  15  norm           .0000        .38426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31486E-05    37.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75528E-06    68.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2440        3.1915        .40171E-03   -1.5658    
  19  norm          11.393        14.454        .29662E-03   -1.5640    
  20  Prefactor     .18874E-08    9.9880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2971        6.3200        .37216E-03   -1.5654    
  22  Prefactor      .0000        4.0143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62580        .17080        .67250E-01   -1.0690    
  24  Prefactor     1.3236        .15882        .46349E-01   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13312e-06
Minuit parameter uncertainties:
  1  2.27017
  2  4.47842e-07
  3  0.0546394
  4  0.0313726
  5  3.32469
  6  6.67139e-06
  7  0.0389684
  8  46.0746
  9  0.0274699
  10  1.11536e-07
  11  4.06388
  12  3.68624
  13  5.48965e-09
  14  9.05672
  15  7.44621e-08
  16  0.0216085
  17  0.0144296
  18  3.19147
  19  14.4538
  20  0.000273237
  21  6.32001
  22  2.68751e-06
  23  0.170945
  24  0.158876
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.115e-07  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 4.25465156621e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00325622347091 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34634189/likelihoodResults_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20608626
delta logL = -0.000205654649108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20588063
delta logL = -2.45454430114e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      238 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .53017E-01    .33460E-07** at limit **
   2  Index         .36650        .52200        .36206E-05     .0000    
   3  Normalizat    .62580        .18806        .35645E-05   -.14621E-05
   4  Prefactor     1.3236        .18283       -.12556E-05    .58879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.366504
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6079.206     FROM HESSE     STATUS=FAILED        11 CALLS      249 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52773E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .38847E-01    .49145        .36206E-05   -1.1855    
   3  Normalizat    .62580        .96412        .35645E-05   -1.0690    
   4  Prefactor     1.3236        1.0728       -.12556E-05   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.02821e-13
Minuit parameter uncertainties:
  1  4.50484e-08
  2  0.497234
  3  0.992071
  4  1.09156
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) = 6079.20588061
delta logL = 0.0

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  4.505e-08  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.665e-01  4.972e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.092e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  9.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/34634189/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2026-08-10 03:02:18.519802', job_id='34634189', GAL2='1.32', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1786356138.52', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2193' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 10 03:02:18 PDT 2026

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/34634215/Model_4FGL_J0340.5-2118_daily_bin2193.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/34634215/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits.....................!
real 58.69
user 56.43
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34634215/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits', '/lscratch/kocevski/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.fits', expMap='/lscratch/kocevski/34634215/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', expCube='/lscratch/kocevski/34634215/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34634215/Model_4FGL_J0340.5-2118_daily_bin2193.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34634215/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits
Spacecraft file(s): /lscratch/kocevski/34634215/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure map: /lscratch/kocevski/34634215/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure cube: /lscratch/kocevski/34634215/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34634215/Model_4FGL_J0340.5-2118_daily_bin2193.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) = 6079.2224917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9962       1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85790E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10266E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7726       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11122E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33438E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    23.393       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12115E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8871       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6243       1.0000          .0000       .10000E+07
    13 'norm      '    .88651E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.0896       1.0000          .0000       .10000E+07
    15 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30537E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12438E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.2373       1.0000          .0000       .10000E+07
    19 'norm      '    11.388       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18969E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.2548       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11823E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .62568       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2016 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9968        2.2657        .23595E-07   -.27062E-03
   2  norm           .0000        .90242       -.66267E-08** at limit **
   3  Prefactor     .12580E-04    29.326        .57879E-07** at limit **
   4  Prefactor     .34792E-05    41.662       -.93569E-07** at limit **
   5  Prefactor     3.8005        3.3200        .44774E-09    .61503E-04
   6  Prefactor      .0000        4.0795        .29410E-06** at limit **
   7  Prefactor     .82521E-05    22.184        .31669E-06** at limit **
   8  Prefactor     22.961        9.8963       -.12125E-07    .69104E-01
   9  Prefactor     .53307E-05    26.030        .59382E-06** at limit **
  10  Prefactor      .0000        .57062       -.58316E-07** at limit **
  11  Prefactor     4.8908        4.0484        .12027E-06   -.49155E-03
  12  Prefactor     3.6249        3.6641       -.72383E-07   -.17431E-04
  13  norm           .0000        .25242        .22268E-07** at limit **
  14  Prefactor     1.2379        84.862        .37505E-06    .39461E-02
  15  norm           .0000        .38479       -.69676E-08** at limit **
  16  Prefactor     .31486E-05    12.446        .44466E-06** at limit **
  17  Prefactor     .75528E-06    22.976       -.23879E-07** at limit **
  18  Prefactor     6.2440        3.1864       -.44855E-07    .11776E-03
  19  norm          11.393        14.425       -.64221E-08   -.13604E-01
  20  Prefactor     .18874E-08    9.9444       -.75039E-07** at limit **
  21  Prefactor     7.2971        6.3046       -.13564E-06    .59124E-05
  22  Prefactor      .0000        4.0325       -.89564E-07** at limit **
  23  Normalizat    .62580        .19343       -.14234E-05   -.80354E-05
  24  Prefactor     1.3236        .18352        .15449E-05   -.90061E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99681
  norm       = 0
  Prefactor  = 1.25799e-05
  Prefactor  = 3.47922e-06
  Prefactor  = 3.80053
  Prefactor  = 0
  Prefactor  = 8.25212e-06
  Prefactor  = 22.9612
  Prefactor  = 5.33068e-06
  Prefactor  = 0
  Prefactor  = 4.89078
  Prefactor  = 3.62494
  norm       = 0
  Prefactor  = 1.23787
  norm       = 0
  Prefactor  = 3.14859e-06
  Prefactor  = 7.55285e-07
  Prefactor  = 6.24401
  norm       = 11.3929
  Prefactor  = 1.88738e-09
  Prefactor  = 7.29713
  Prefactor  = 0
  Normalizat = 0.625804
  Prefactor  = 1.32356
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/34634234/Model_4FGL_J0340.5-2118_daily_bin2193.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/34634234/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits.....................!
real 52.46
user 50.74
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34634234/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits', '/lscratch/kocevski/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.fits', expMap='/lscratch/kocevski/34634234/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', expCube='/lscratch/kocevski/34634234/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34634234/Model_4FGL_J0340.5-2118_daily_bin2193.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34634234/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits
Spacecraft file(s): /lscratch/kocevski/34634234/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure map: /lscratch/kocevski/34634234/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure cube: /lscratch/kocevski/34634234/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34634234/Model_4FGL_J0340.5-2118_daily_bin2193.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) = 6079.2224917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9962       1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85790E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10266E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7726       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11122E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33438E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    23.393       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12115E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8871       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6243       1.0000          .0000       .10000E+07
    13 'norm      '    .88651E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.0896       1.0000          .0000       .10000E+07
    15 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30537E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12438E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.2373       1.0000          .0000       .10000E+07
    19 'norm      '    11.388       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18969E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.2548       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11823E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .62568       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2016 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9968        2.2657        .23595E-07   -.27062E-03
   2  norm           .0000        .90242       -.66267E-08** at limit **
   3  Prefactor     .12580E-04    29.326        .57879E-07** at limit **
   4  Prefactor     .34792E-05    41.662       -.93569E-07** at limit **
   5  Prefactor     3.8005        3.3200        .44774E-09    .61503E-04
   6  Prefactor      .0000        4.0795        .29410E-06** at limit **
   7  Prefactor     .82521E-05    22.184        .31669E-06** at limit **
   8  Prefactor     22.961        9.8963       -.12125E-07    .69104E-01
   9  Prefactor     .53307E-05    26.030        .59382E-06** at limit **
  10  Prefactor      .0000        .57062       -.58316E-07** at limit **
  11  Prefactor     4.8908        4.0484        .12027E-06   -.49155E-03
  12  Prefactor     3.6249        3.6641       -.72383E-07   -.17431E-04
  13  norm           .0000        .25242        .22268E-07** at limit **
  14  Prefactor     1.2379        84.862        .37505E-06    .39461E-02
  15  norm           .0000        .38479       -.69676E-08** at limit **
  16  Prefactor     .31486E-05    12.446        .44466E-06** at limit **
  17  Prefactor     .75528E-06    22.976       -.23879E-07** at limit **
  18  Prefactor     6.2440        3.1864       -.44855E-07    .11776E-03
  19  norm          11.393        14.425       -.64221E-08   -.13604E-01
  20  Prefactor     .18874E-08    9.9444       -.75039E-07** at limit **
  21  Prefactor     7.2971        6.3046       -.13564E-06    .59124E-05
  22  Prefactor      .0000        4.0325       -.89564E-07** at limit **
  23  Normalizat    .62580        .19343       -.14234E-05   -.80354E-05
  24  Prefactor     1.3236        .18352        .15449E-05   -.90061E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99681
  norm       = 0
  Prefactor  = 1.25799e-05
  Prefactor  = 3.47922e-06
  Prefactor  = 3.80053
  Prefactor  = 0
  Prefactor  = 8.25212e-06
  Prefactor  = 22.9612
  Prefactor  = 5.33068e-06
  Prefactor  = 0
  Prefactor  = 4.89078
  Prefactor  = 3.62494
  norm       = 0
  Prefactor  = 1.23787
  norm       = 0
  Prefactor  = 3.14859e-06
  Prefactor  = 7.55285e-07
  Prefactor  = 6.24401
  norm       = 11.3929
  Prefactor  = 1.88738e-09
  Prefactor  = 7.29713
  Prefactor  = 0
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.206     FROM HESSE     STATUS=OK           445 CALLS     2461 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9968        2.2702        .50427E-03   -1.5668    
   2  norm           .0000        .89998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12580E-04    59.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34792E-05    70.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8005        3.3247        .51952E-03   -1.5669    
   6  Prefactor      .0000        4.0849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .82521E-05    46.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.961        46.074        .20680E-03   -1.5612    
   9  Prefactor     .53307E-05    35.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .57011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8908        4.0639        .45476E-03   -1.5664    
  12  Prefactor     3.6249        3.6862        .53045E-03   -1.5670    
  13  norm           .0000        .25196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2379        16.565        .11462E-01   -1.5686    
  15  norm           .0000        .38426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31486E-05    37.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75528E-06    68.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2440        3.1915        .40171E-03   -1.5658    
  19  norm          11.393        14.454        .29662E-03   -1.5640    
  20  Prefactor     .18874E-08    9.9880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2971        6.3200        .37216E-03   -1.5654    
  22  Prefactor      .0000        4.0143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62580        .17080        .67250E-01   -1.0690    
  24  Prefactor     1.3236        .15882        .46349E-01   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13312e-06
Minuit parameter uncertainties:
  1  2.27017
  2  4.47842e-07
  3  0.0546394
  4  0.0313726
  5  3.32469
  6  6.67139e-06
  7  0.0389684
  8  46.0746
  9  0.0274699
  10  1.11536e-07
  11  4.06388
  12  3.68624
  13  5.48965e-09
  14  9.05672
  15  7.44621e-08
  16  0.0216085
  17  0.0144296
  18  3.19147
  19  14.4538
  20  0.000273237
  21  6.32001
  22  2.68751e-06
  23  0.170945
  24  0.158876
outfile=/lscratch/kocevski/34634285/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 9.35
user 8.58
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34634285/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34634285/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634285/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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/34634285/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
.....................!
real 72.86
user 67.58
sys 4.31

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34634285/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634285/cmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.80
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34634285/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits scfile=/lscratch/kocevski/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.fits outfile=/lscratch/kocevski/34634285/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.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=55.1477 yref=-21.3158 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.77
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34634285/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits evtable="EVENTS" scfile=/lscratch/kocevski/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.fi **********
 **   18 **HESSE 
 **********

 FCN=   6079.206     FROM HESSE     STATUS=OK           445 CALLS     2461 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9968        2.2702        .50427E-03   -1.5668    
   2  norm           .0000        .89998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12580E-04    59.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34792E-05    70.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8005        3.3247        .51952E-03   -1.5669    
   6  Prefactor      .0000        4.0849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .82521E-05    46.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.961        46.074        .20680E-03   -1.5612    
   9  Prefactor     .53307E-05    35.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .57011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8908        4.0639        .45476E-03   -1.5664    
  12  Prefactor     3.6249        3.6862        .53045E-03   -1.5670    
  13  norm           .0000        .25196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2379        16.565        .11462E-01   -1.5686    
  15  norm           .0000        .38426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31486E-05    37.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75528E-06    68.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2440        3.1915        .40171E-03   -1.5658    
  19  norm          11.393        14.454        .29662E-03   -1.5640    
  20  Prefactor     .18874E-08    9.9880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2971        6.3200        .37216E-03   -1.5654    
  22  Prefactor      .0000        4.0143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62580        .17080        .67250E-01   -1.0690    
  24  Prefactor     1.3236        .15882        .46349E-01   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13312e-06
Minuit parameter uncertainties:
  1  2.27017
  2  4.47842e-07
  3  0.0546394
  4  0.0313726
  5  3.32469
  6  6.67139e-06
  7  0.0389684
  8  46.0746
  9  0.0274699
  10  1.11536e-07
  11  4.06388
  12  3.68624
  13  5.48965e-09
  14  9.05672
  15  7.44621e-08
  16  0.0216085
  17  0.0144296
  18  3.19147
  19  14.4538
  20  0.000273237
  21  6.32001
  22  2.68751e-06
  23  0.170945
  24  0.158876
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/34634239/Model_4FGL_J0340.5-2118_daily_bin2193.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/34634239/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits.....................!
real 56.28
user 54.32
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34634239/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits', '/lscratch/kocevski/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.fits', expMap='/lscratch/kocevski/34634239/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', expCube='/lscratch/kocevski/34634239/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34634239/Model_4FGL_J0340.5-2118_daily_bin2193.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34634239/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits
Spacecraft file(s): /lscratch/kocevski/34634239/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure map: /lscratch/kocevski/34634239/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure cube: /lscratch/kocevski/34634239/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34634239/Model_4FGL_J0340.5-2118_daily_bin2193.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) = 6079.2224917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9962       1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85790E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10266E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7726       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11122E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33438E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    23.393       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12115E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8871       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6243       1.0000          .0000       .10000E+07
    13 'norm      '    .88651E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.0896       1.0000          .0000       .10000E+07
    15 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30537E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12438E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.2373       1.0000          .0000       .10000E+07
    19 'norm      '    11.388       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18969E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.2548       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11823E-03   1.0000          .0000    Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.115e-07  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 4.25465156621e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00325622347091 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34634215/likelihoodResults_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20608626
delta logL = -0.000205654649108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20588063
delta logL = -2.45454430114e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      238 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .53017E-01    .33460E-07** at limit **
   2  Index         .36650        .52200        .36206E-05     .0000    
   3  Normalizat    .62580        .18806        .35645E-05   -.14621E-05
   4  Prefactor     1.3236        .18283       -.12556E-05    .58879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.366504
  Normalizat = 0.625804
  Prefactor  = 1.32356
   .10000E+07
    23 'Normalizat'    .62568       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2016 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9968        2.2657        .23595E-07   -.27062E-03
   2  norm           .0000        .90242       -.66267E-08** at limit **
   3  Prefactor     .12580E-04    29.326        .57879E-07** at limit **
   4  Prefactor     .34792E-05    41.662       -.93569E-07** at limit **
   5  Prefactor     3.8005        3.3200        .44774E-09    .61503E-04
   6  Prefactor      .0000        4.0795        .29410E-06** at limit **
   7  Prefactor     .82521E-05    22.184        .31669E-06** at limit **
   8  Prefactor     22.961        9.8963       -.12125E-07    .69104E-01
   9  Prefactor     .53307E-05    26.030        .59382E-06** at limit **
  10  Prefactor      .0000        .57062       -.58316E-07** at limit **
  11  Prefactor     4.8908        4.0484        .12027E-06   -.49155E-03
  12  Prefactor     3.6249        3.6641       -.72383E-07   -.17431E-04
  13  norm           .0000        .25242        .22268E-07** at limit **
  14  Prefactor     1.2379        84.862        .37505E-06    .39461E-02
  15  norm           .0000        .38479       -.69676E-08** at limit **
  16  Prefactor     .31486E-05    12.446        .44466E-06** at limit **
  17  Prefactor     .75528E-06    22.976       -.23879E-07** at limit **
  18  Prefactor     6.2440        3.1864       -.44855E-07    .11776E-03
  19  norm          11.393        14.425       -.64221E-08   -.13604E-01
  20  Prefactor     .18874E-08    9.9444       -.75039E-07** at limit **
  21  Prefactor     7.2971        6.3046       -.13564E-06    .59124E-05
  22  Prefactor      .0000        4.0325       -.89564E-07** at limit **
  23  Normalizat    .62580        .19343       -.14234E-05   -.80354E-05
  24  Prefactor     1.3236        .18352        .15449E-05   -.90061E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99681
  norm       = 0
  Prefactor  = 1.25799e-05
  Prefactor  = 3.47922e-06
  Prefactor  = 3.80053
  Prefactor  = 0
  Prefactor  = 8.25212e-06
  Prefactor  = 22.9612
  Prefactor  = 5.33068e-06
  Prefactor  = 0
  Prefactor  = 4.89078
  Prefactor  = 3.62494
  norm       = 0
  Prefactor  = 1.23787
  norm       = 0
  Prefactor  = 3.14859e-06
  Prefactor  = 7.55285e-07
  Prefactor  = 6.24401
  norm       = 11.3929
  Prefactor  = 1.88738e-09
  Prefactor  = 7.29713
  Prefactor  = 0
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6079.206     FROM HESSE     STATUS=FAILED        11 CALLS      249 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52773E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .38847E-01    .49145        .36206E-05   -1.1855    
   3  Normalizat    .62580        .96412        .35645E-05   -1.0690    
   4  Prefactor     1.3236        1.0728       -.12556E-05   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.02821e-13
Minuit parameter uncertainties:
  1  4.50484e-08
  2  0.497234
  3  0.992071
  4  1.09156
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) = 6079.20588061
delta logL = 0.0

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  4.505e-08  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.665e-01  4.972e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.092e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  9.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/34634215/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2026-08-10 03:03:04.720735', job_id='34634215', GAL2='1.32', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1786356184.72', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2193' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 10 03:03:05 PDT 2026

its sctable="SC_DATA" srcmdl=/lscratch/kocevski/34634228/Model_4FGL_J0340.5-2118_daily_bin2193.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/34634228/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits.....................!
real 60.64
user 57.63
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34634228/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits', '/lscratch/kocevski/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.fits', expMap='/lscratch/kocevski/34634228/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', expCube='/lscratch/kocevski/34634228/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34634228/Model_4FGL_J0340.5-2118_daily_bin2193.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34634228/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits
Spacecraft file(s): /lscratch/kocevski/34634228/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure map: /lscratch/kocevski/34634228/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure cube: /lscratch/kocevski/34634228/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34634228/Model_4FGL_J0340.5-2118_daily_bin2193.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) = 6079.2224917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9962       1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85790E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10266E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7726       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11122E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33438E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    23.393       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12115E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8871       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6243       1.0000          .0000       .10000E+07
    13 'norm      '    .88651E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.0896       1.0000          .0000       .10000E+07
    15 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30537E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12438E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.2373       1.0000          .0000       .10000E+07
    19 'norm      '    11.388       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18969E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.2548       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11823E-03   1.0000          .0000   Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.115e-07  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 4.25465156621e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00325622347091 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34634234/likelihoodResults_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20608626
delta logL = -0.000205654649108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20588063
delta logL = -2.45454430114e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      238 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .53017E-01    .33460E-07** at limit **
   2  Index         .36650        .52200        .36206E-05     .0000    
   3  Normalizat    .62580        .18806        .35645E-05   -.14621E-05
   4  Prefactor     1.3236        .18283       -.12556E-05    .58879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.366504
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6079.206     FROM HESSE     STATUS=FAILED        11 CALLS      249 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52773E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .38847E-01    .49145        .36206E-05   -1.1855    
   3  Normalizat    .62580        .96412        .35645E-05   -1.0690    
   4  Prefactor     1.3236        1.0728       -.12556E-05   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.02821e-13
Minuit parameter uncertainties:
  1  4.50484e-08
  2  0.497234
  3  0.992071
  4  1.09156
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) = 6079.20588061
delta logL = 0.0

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  4.505e-08  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.665e-01  4.972e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.092e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  9.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/34634234/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2026-08-10 03:03:09.324515', job_id='34634234', GAL2='1.32', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1786356189.32', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2193' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 10 03:03:09 PDT 2026

    .10000E+07
    23 'Normalizat'    .62568       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2016 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9968        2.2657        .23595E-07   -.27062E-03
   2  norm           .0000        .90242       -.66267E-08** at limit **
   3  Prefactor     .12580E-04    29.326        .57879E-07** at limit **
   4  Prefactor     .34792E-05    41.662       -.93569E-07** at limit **
   5  Prefactor     3.8005        3.3200        .44774E-09    .61503E-04
   6  Prefactor      .0000        4.0795        .29410E-06** at limit **
   7  Prefactor     .82521E-05    22.184        .31669E-06** at limit **
   8  Prefactor     22.961        9.8963       -.12125E-07    .69104E-01
   9  Prefactor     .53307E-05    26.030        .59382E-06** at limit **
  10  Prefactor      .0000        .57062       -.58316E-07** at limit **
  11  Prefactor     4.8908        4.0484        .12027E-06   -.49155E-03
  12  Prefactor     3.6249        3.6641       -.72383E-07   -.17431E-04
  13  norm           .0000        .25242        .22268E-07** at limit **
  14  Prefactor     1.2379        84.862        .37505E-06    .39461E-02
  15  norm           .0000        .38479       -.69676E-08** at limit **
  16  Prefactor     .31486E-05    12.446        .44466E-06** at limit **
  17  Prefactor     .75528E-06    22.976       -.23879E-07** at limit **
  18  Prefactor     6.2440        3.1864       -.44855E-07    .11776E-03
  19  norm          11.393        14.425       -.64221E-08   -.13604E-01
  20  Prefactor     .18874E-08    9.9444       -.75039E-07** at limit **
  21  Prefactor     7.2971        6.3046       -.13564E-06    .59124E-05
  22  Prefactor      .0000        4.0325       -.89564E-07** at limit **
  23  Normalizat    .62580        .19343       -.14234E-05   -.80354E-05
  24  Prefactor     1.3236        .18352        .15449E-05   -.90061E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99681
  norm       = 0
  Prefactor  = 1.25799e-05
  Prefactor  = 3.47922e-06
  Prefactor  = 3.80053
  Prefactor  = 0
  Prefactor  = 8.25212e-06
  Prefactor  = 22.9612
  Prefactor  = 5.33068e-06
  Prefactor  = 0
  Prefactor  = 4.89078
  Prefactor  = 3.62494
  norm       = 0
  Prefactor  = 1.23787
  norm       = 0
  Prefactor  = 3.14859e-06
  Prefactor  = 7.55285e-07
  Prefactor  = 6.24401
  norm       = 11.3929
  Prefactor  = 1.88738e-09
  Prefactor  = 7.29713
  Prefactor  = 0
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.206     FROM HESSE     STATUS=OK           445 CALLS     2461 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9968        2.2702        .50427E-03   -1.5668    
   2  norm           .0000        .89998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12580E-04    59.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34792E-05    70.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8005        3.3247        .51952E-03   -1.5669    
   6  Prefactor      .0000        4.0849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .82521E-05    46.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.961        46.074        .20680E-03   -1.5612    
   9  Prefactor     .53307E-05    35.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .57011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8908        4.0639        .45476E-03   -1.5664    
  12  Prefactor     3.6249        3.6862        .53045E-03   -1.5670    
  13  norm           .0000        .25196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2379        16.565        .11462E-01   -1.5686    
  15  norm           .0000        .38426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31486E-05    37.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75528E-06    68.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2440        3.1915        .40171E-03   -1.5658    
  19  norm          11.393        14.454        .29662E-03   -1.5640    
  20  Prefactor     .18874E-08    9.9880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2971        6.3200        .37216E-03   -1.5654    
  22  Prefactor      .0000        4.0143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62580        .17080        .67250E-01   -1.0690    
  24  Prefactor     1.3236        .15882        .46349E-01   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13312e-06
Minuit parameter uncertainties:
  1  2.27017
  2  4.47842e-07
  3  0.0546394
  4  0.0313726
  5  3.32469
  6  6.67139e-06
  7  0.0389684
  8  46.0746
  9  0.0274699
  10  1.11536e-07
  11  4.06388
  12  3.68624
  13  5.48965e-09
  14  9.05672
  15  7.44621e-08
  16  0.0216085
  17  0.0144296
  18  3.19147
  19  14.4538
  20  0.000273237
  21  6.32001
  22  2.68751e-06
  23  0.170945
  24  0.158876
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.206     FROM HESSE     STATUS=OK           445 CALLS     2461 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9968        2.2702        .50427E-03   -1.5668    
   2  norm           .0000        .89998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12580E-04    59.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34792E-05    70.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8005        3.3247        .51952E-03   -1.5669    
   6  Prefactor      .0000        4.0849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .82521E-05    46.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.961        46.074        .20680E-03   -1.5612    
   9  Prefactor     .53307E-05    35.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .57011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8908        4.0639        .45476E-03   -1.5664    
  12  Prefactor     3.6249        3.6862        .53045E-03   -1.5670    
  13  norm           .0000        .25196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2379        16.565        .11462E-01   -1.5686    
  15  norm           .0000        .38426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31486E-05    37.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75528E-06    68.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2440        3.1915        .40171E-03   -1.5658    
  19  norm          11.393        14.454        .29662E-03   -1.5640    
  20  Prefactor     .18874E-08    9.9880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2971        6.3200        .37216E-03   -1.5654    
  22  Prefactor      .0000        4.0143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62580        .17080        .67250E-01   -1.0690    
  24  Prefactor     1.3236        .15882        .46349E-01   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13312e-06
Minuit parameter uncertainties:
  1  2.27017
  2  4.47842e-07
  3  0.0546394
  4  0.0313726
  5  3.32469
  6  6.67139e-06
  7  0.0389684
  8  46.0746
  9  0.0274699
  10  1.11536e-07
  11  4.06388
  12  3.68624
  13  5.48965e-09
  14  9.05672
  15  7.44621e-08
  16  0.0216085
  17  0.0144296
  18  3.19147
  19  14.4538
  20  0.000273237
  21  6.32001
  22  2.68751e-06
  23  0.170945
  24  0.158876
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/34634253/Model_4FGL_J0340.5-2118_daily_bin2193.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/34634253/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits.....................!
real 56.36
user 54.41
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34634253/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits', '/lscratch/kocevski/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.fits', expMap='/lscratch/kocevski/34634253/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', expCube='/lscratch/kocevski/34634253/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34634253/Model_4FGL_J0340.5-2118_daily_bin2193.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34634253/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits
Spacecraft file(s): /lscratch/kocevski/34634253/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure map: /lscratch/kocevski/34634253/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure cube: /lscratch/kocevski/34634253/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34634253/Model_4FGL_J0340.5-2118_daily_bin2193.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) = 6079.2224917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9962       1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85790E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10266E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7726       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11122E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33438E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    23.393       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12115E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8871       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6243       1.0000          .0000       .10000E+07
    13 'norm      '    .88651E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.0896       1.0000          .0000       .10000E+07
    15 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30537E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12438E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.2373       1.0000          .0000       .10000E+07
    19 'norm      '    11.388       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18969E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.2548       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11823E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .62568       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2016 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9968        2.2657        .23595E-07   -.27062E-03
   2  norm           .0000        .90242       -.66267E-08** at limit **
   3  Prefactor     .12580E-04    29.326        .57879E-07** at limit **
   4  Prefactor     .34792E-05    41.662       -.93569E-07** at limit **
   5  Prefactor     3.8005        3.3200        .44774E-09    .61503E-04
   6  Prefactor      .0000        4.0795        .29410E-06** at limit **
   7  Prefactor     .82521E-05    22.184        .31669E-06** at limit **
   8  Prefactor     22.961        9.8963       -.12125E-07    .69104E-01
   9  Prefactor     .53307E-05    26.030        .59382E-06** at limit **
  10  Prefactor      .0000        .57062       -.58316E-07** at limit **
  11  Prefactor     4.8908        4.0484        .12027E-06   -.49155E-03
  12  Prefactor     3.6249        3.6641       -.72383E-07   -.17431E-04
  13  norm           .0000        .25242        .22268E-07** at limit **
  14  Prefactor     1.2379        84.862        .37505E-06    .39461E-02
  15  norm           .0000        .38479       -.69676E-08** at limit **
  16  Prefactor     .31486E-05    12.446        .44466E-06** at limit **
  17  Prefactor     .75528E-06    22.976       -.23879E-07** at limit **
  18  Prefactor     6.2440        3.1864       -.44855E-07    .11776E-03
  19  norm          11.393        14.425       -.64221E-08   -.13604E-01
  20  Prefactor     .18874E-08    9.9444       -.75039E-07** at limit **
  21  Prefactor     7.2971        6.3046       -.13564E-06    .59124E-05
  22  Prefactor      .0000        4.0325       -.89564E-07** at limit **
  23  Normalizat    .62580        .19343       -.14234E-05   -.80354E-05
  24  Prefactor     1.3236        .18352        .15449E-05   -.90061E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99681
  norm       = 0
  Prefactor  = 1.25799e-05
  Prefactor  = 3.47922e-06
  Prefactor  = 3.80053
  Prefactor  = 0
  Prefactor  = 8.25212e-06
  Prefactor  = 22.9612
  Prefactor  = 5.33068e-06
  Prefactor  = 0
  Prefactor  = 4.89078
  Prefactor  = 3.62494
  norm       = 0
  Prefactor  = 1.23787
  norm       = 0
  Prefactor  = 3.14859e-06
  Prefactor  = 7.55285e-07
  Prefactor  = 6.24401
  norm       = 11.3929
  Prefactor  = 1.88738e-09
  Prefactor  = 7.29713
  Prefactor  = 0
  Normalizat = 0.625804
  Prefactor  = 1.32356
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.115e-07  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 4.25465156621e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00325622347091 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34634239/likelihoodResults_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20608626
delta logL = -0.000205654649108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20588063
delta logL = -2.45454430114e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      238 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .53017E-01    .33460E-07** at limit **
   2  Index         .36650        .52200        .36206E-05     .0000    
   3  Normalizat    .62580        .18806        .35645E-05   -.14621E-05
   4  Prefactor     1.3236        .18283       -.12556E-05    .58879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.366504
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6079.206     FROM HESSE     STATUS=FAILED        11 CALLS      249 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52773E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .38847E-01    .49145        .36206E-05   -1.1855    
   3  Normalizat    .62580        .96412        .35645E-05   -1.0690    
   4  Prefactor     1.3236        1.0728       -.12556E-05   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.02821e-13
Minuit parameter uncertainties:
  1  4.50484e-08
  2  0.497234
  3  0.992071
  4  1.09156
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) = 6079.20588061
delta logL = 0.0

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  4.505e-08  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.665e-01  4.972e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.092e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  9.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/34634239/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2026-08-10 03:03:40.057079', job_id='34634239', GAL2='1.32', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1786356220.06', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2193' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 10 03:03:40 PDT 2026

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

 FCN=   6079.206     FROM HESSE     STATUS=OK           445 CALLS     2461 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9968        2.2702        .50427E-03   -1.5668    
   2  norm           .0000        .89998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12580E-04    59.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34792E-05    70.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8005        3.3247        .51952E-03   -1.5669    
   6  Prefactor      .0000        4.0849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .82521E-05    46.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.961        46.074        .20680E-03   -1.5612    
   9  Prefactor     .53307E-05    35.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .57011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8908        4.0639        .45476E-03   -1.5664    
  12  Prefactor     3.6249        3.6862        .53045E-03   -1.5670    
  13  norm           .0000        .25196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2379        16.565        .11462E-01   -1.5686    
  15  norm           .0000        .38426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31486E-05    37.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75528E-06    68.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2440        3.1915        .40171E-03   -1.5658    
  19  norm          11.393        14.454        .29662E-03   -1.5640    
  20  Prefactor     .18874E-08    9.9880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2971        6.3200        .37216E-03   -1.5654    
  22  Prefactor      .0000        4.0143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62580        .17080        .67250E-01   -1.0690    
  24  Prefactor     1.3236        .15882        .46349E-01   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13312e-06
Minuit parameter uncertainties:
  1  2.27017
  2  4.47842e-07
  3  0.0546394
  4  0.0313726
  5  3.32469
  6  6.67139e-06
  7  0.0389684
  8  46.0746
  9  0.0274699
  10  1.11536e-07
  11  4.06388
  12  3.68624
  13  5.48965e-09
  14  9.05672
  15  7.44621e-08
  16  0.0216085
  17  0.0144296
  18  3.19147
  19  14.4538
  20  0.000273237
  21  6.32001
  22  2.68751e-06
  23  0.170945
  24  0.158876
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.115e-07  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 4.25465156621e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00325622347091 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34634228/likelihoodResults_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20608626
delta logL = -0.000205654649108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20588063
delta logL = -2.45454430114e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      238 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .53017E-01    .33460E-07** at limit **
   2  Index         .36650        .52200        .36206E-05     .0000    
   3  Normalizat    .62580        .18806        .35645E-05   -.14621E-05
   4  Prefactor     1.3236        .18283       -.12556E-05    .58879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.366504
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6079.206     FROM HESSE     STATUS=FAILED        11 CALLS      249 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52773E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .38847E-01    .49145        .36206E-05   -1.1855    
   3  Normalizat    .62580        .96412        .35645E-05   -1.0690    
   4  Prefactor     1.3236        1.0728       -.12556E-05   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.02821e-13
Minuit parameter uncertainties:
  1  4.50484e-08
  2  0.497234
  3  0.992071
  4  1.09156
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) = 6079.20588061
delta logL = 0.0

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  4.505e-08  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.665e-01  4.972e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.092e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  9.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/34634228/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2026-08-10 03:03:51.491756', job_id='34634228', GAL2='1.32', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1786356231.49', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2193' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 10 03:03:51 PDT 2026

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/34634262/Model_4FGL_J0340.5-2118_daily_bin2193.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/34634262/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits.....................!
real 56.37
user 54.36
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34634262/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits', '/lscratch/kocevski/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.fits', expMap='/lscratch/kocevski/34634262/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', expCube='/lscratch/kocevski/34634262/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34634262/Model_4FGL_J0340.5-2118_daily_bin2193.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34634262/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits
Spacecraft file(s): /lscratch/kocevski/34634262/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure map: /lscratch/kocevski/34634262/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure cube: /lscratch/kocevski/34634262/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34634262/Model_4FGL_J0340.5-2118_daily_bin2193.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) = 6079.2224917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9962       1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85790E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10266E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7726       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11122E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33438E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    23.393       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12115E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8871       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6243       1.0000          .0000       .10000E+07
    13 'norm      '    .88651E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.0896       1.0000          .0000       .10000E+07
    15 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30537E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12438E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.2373       1.0000          .0000       .10000E+07
    19 'norm      '    11.388       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18969E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.2548       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11823E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .62568       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2016 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9968        2.2657        .23595E-07   -.27062E-03
   2  norm           .0000        .90242       -.66267E-08** at limit **
   3  Prefactor     .12580E-04    29.326        .57879E-07** at limit **
   4  Prefactor     .34792E-05    41.662       -.93569E-07** at limit **
   5  Prefactor     3.8005        3.3200        .44774E-09    .61503E-04
   6  Prefactor      .0000        4.0795        .29410E-06** at limit **
   7  Prefactor     .82521E-05    22.184        .31669E-06** at limit **
   8  Prefactor     22.961        9.8963       -.12125E-07    .69104E-01
   9  Prefactor     .53307E-05    26.030        .59382E-06** at limit **
  10  Prefactor      .0000        .57062       -.58316E-07** at limit **
  11  Prefactor     4.8908        4.0484        .12027E-06   -.49155E-03
  12  Prefactor     3.6249        3.6641       -.72383E-07   -.17431E-04
  13  norm           .0000        .25242        .22268E-07** at limit **
  14  Prefactor     1.2379        84.862        .37505E-06    .39461E-02
  15  norm           .0000        .38479       -.69676E-08** at limit **
  16  Prefactor     .31486E-05    12.446        .44466E-06** at limit **
  17  Prefactor     .75528E-06    22.976       -.23879E-07** at limit **
  18  Prefactor     6.2440        3.1864       -.44855E-07    .11776E-03
  19  norm          11.393        14.425       -.64221E-08   -.13604E-01
  20  Prefactor     .18874E-08    9.9444       -.75039E-07** at limit **
  21  Prefactor     7.2971        6.3046       -.13564E-06    .59124E-05
  22  Prefactor      .0000        4.0325       -.89564E-07** at limit **
  23  Normalizat    .62580        .19343       -.14234E-05   -.80354E-05
  24  Prefactor     1.3236        .18352        .15449E-05   -.90061E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99681
  norm       = 0
  Prefactor  = 1.25799e-05
  Prefactor  = 3.47922e-06
  Prefactor  = 3.80053
  Prefactor  = 0
  Prefactor  = 8.25212e-06
  Prefactor  = 22.9612
  Prefactor  = 5.33068e-06
  Prefactor  = 0
  Prefactor  = 4.89078
  Prefactor  = 3.62494
  norm       = 0
  Prefactor  = 1.23787
  norm       = 0
  Prefactor  = 3.14859e-06
  Prefactor  = 7.55285e-07
  Prefactor  = 6.24401
  norm       = 11.3929
  Prefactor  = 1.88738e-09
  Prefactor  = 7.29713
  Prefactor  = 0
  Normalizat = 0.625804
  Prefactor  = 1.32356
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.115e-07  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 4.25465156621e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00325622347091 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34634253/likelihoodResults_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20608626
delta logL = -0.000205654649108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20588063
delta logL = -2.45454430114e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      238 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .53017E-01    .33460E-07** at limit **
   2  Index         .36650        .52200        .36206E-05     .0000    
   3  Normalizat    .62580        .18806        .35645E-05   -.14621E-05
   4  Prefactor     1.3236        .18283       -.12556E-05    .58879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.366504
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6079.206     FROM HESSE     STATUS=FAILED        11 CALLS      249 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52773E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .38847E-01    .49145        .36206E-05   -1.1855    
   3  Normalizat    .62580        .96412        .35645E-05   -1.0690    
   4  Prefactor     1.3236        1.0728       -.12556E-05   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.02821e-13
Minuit parameter uncertainties:
  1  4.50484e-08
  2  0.497234
  3  0.992071
  4  1.09156
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) = 6079.20588061
delta logL = 0.0

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  4.505e-08  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.665e-01  4.972e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.092e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  9.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/34634253/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2026-08-10 03:04:13.582339', job_id='34634253', GAL2='1.32', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1786356253.58', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2193' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 10 03:04:14 PDT 2026

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

 FCN=   6079.206     FROM HESSE     STATUS=OK           445 CALLS     2461 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9968        2.2702        .50427E-03   -1.5668    
   2  norm           .0000        .89998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12580E-04    59.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34792E-05    70.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8005        3.3247        .51952E-03   -1.5669    
   6  Prefactor      .0000        4.0849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .82521E-05    46.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.961        46.074        .20680E-03   -1.5612    
   9  Prefactor     .53307E-05    35.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .57011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8908        4.0639        .45476E-03   -1.5664    
  12  Prefactor     3.6249        3.6862        .53045E-03   -1.5670    
  13  norm           .0000        .25196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2379        16.565        .11462E-01   -1.5686    
  15  norm           .0000        .38426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31486E-05    37.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75528E-06    68.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2440        3.1915        .40171E-03   -1.5658    
  19  norm          11.393        14.454        .29662E-03   -1.5640    
  20  Prefactor     .18874E-08    9.9880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2971        6.3200        .37216E-03   -1.5654    
  22  Prefactor      .0000        4.0143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62580        .17080        .67250E-01   -1.0690    
  24  Prefactor     1.3236        .15882        .46349E-01   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13312e-06
Minuit parameter uncertainties:
  1  2.27017
  2  4.47842e-07
  3  0.0546394
  4  0.0313726
  5  3.32469
  6  6.67139e-06
  7  0.0389684
  8  46.0746
  9  0.0274699
  10  1.11536e-07
  11  4.06388
  12  3.68624
  13  5.48965e-09
  14  9.05672
  15  7.44621e-08
  16  0.0216085
  17  0.0144296
  18  3.19147
  19  14.4538
  20  0.000273237
  21  6.32001
  22  2.68751e-06
  23  0.170945
  24  0.158876
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.115e-07  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 4.25465156621e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00325622347091 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34634262/likelihoodResults_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20608626
delta logL = -0.000205654649108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20588063
delta logL = -2.45454430114e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      238 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .53017E-01    .33460E-07** at limit **
   2  Index         .36650        .52200        .36206E-05     .0000    
   3  Normalizat    .62580        .18806        .35645E-05   -.14621E-05
   4  Prefactor     1.3236        .18283       -.12556E-05    .58879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.366504
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6079.206     FROM HESSE     STATUS=FAILED        11 CALLS      249 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52773E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .38847E-01    .49145        .36206E-05   -1.1855    
   3  Normalizat    .62580        .96412        .35645E-05   -1.0690    
   4  Prefactor     1.3236        1.0728       -.12556E-05   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.02821e-13
Minuit parameter uncertainties:
  1  4.50484e-08
  2  0.497234
  3  0.992071
  4  1.09156
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) = 6079.20588061
delta logL = 0.0

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  4.505e-08  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.665e-01  4.972e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.092e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  9.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/34634262/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2026-08-10 03:04:47.094810', job_id='34634262', GAL2='1.32', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1786356287.09', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2193' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 10 03:04:47 PDT 2026

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/34634285/Model_4FGL_J0340.5-2118_daily_bin2193.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/34634285/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits.....................!
real 55.20
user 53.44
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34634285/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits', '/lscratch/kocevski/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.fits', expMap='/lscratch/kocevski/34634285/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', expCube='/lscratch/kocevski/34634285/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34634285/Model_4FGL_J0340.5-2118_daily_bin2193.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34634285/ft1_filtered_4FGL_J0340.5-2118_daily_bin2193.fits
Spacecraft file(s): /lscratch/kocevski/34634285/ft2_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure map: /lscratch/kocevski/34634285/expmap_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
Exposure cube: /lscratch/kocevski/34634285/ltcube_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34634285/Model_4FGL_J0340.5-2118_daily_bin2193.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) = 6079.2224917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9962       1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85790E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10266E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7726       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11122E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33438E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    23.393       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12115E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8871       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6243       1.0000          .0000       .10000E+07
    13 'norm      '    .88651E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.0896       1.0000          .0000       .10000E+07
    15 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30537E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12438E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.2373       1.0000          .0000       .10000E+07
    19 'norm      '    11.388       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18969E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.2548       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11823E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .62568       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2016 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9968        2.2657        .23595E-07   -.27062E-03
   2  norm           .0000        .90242       -.66267E-08** at limit **
   3  Prefactor     .12580E-04    29.326        .57879E-07** at limit **
   4  Prefactor     .34792E-05    41.662       -.93569E-07** at limit **
   5  Prefactor     3.8005        3.3200        .44774E-09    .61503E-04
   6  Prefactor      .0000        4.0795        .29410E-06** at limit **
   7  Prefactor     .82521E-05    22.184        .31669E-06** at limit **
   8  Prefactor     22.961        9.8963       -.12125E-07    .69104E-01
   9  Prefactor     .53307E-05    26.030        .59382E-06** at limit **
  10  Prefactor      .0000        .57062       -.58316E-07** at limit **
  11  Prefactor     4.8908        4.0484        .12027E-06   -.49155E-03
  12  Prefactor     3.6249        3.6641       -.72383E-07   -.17431E-04
  13  norm           .0000        .25242        .22268E-07** at limit **
  14  Prefactor     1.2379        84.862        .37505E-06    .39461E-02
  15  norm           .0000        .38479       -.69676E-08** at limit **
  16  Prefactor     .31486E-05    12.446        .44466E-06** at limit **
  17  Prefactor     .75528E-06    22.976       -.23879E-07** at limit **
  18  Prefactor     6.2440        3.1864       -.44855E-07    .11776E-03
  19  norm          11.393        14.425       -.64221E-08   -.13604E-01
  20  Prefactor     .18874E-08    9.9444       -.75039E-07** at limit **
  21  Prefactor     7.2971        6.3046       -.13564E-06    .59124E-05
  22  Prefactor      .0000        4.0325       -.89564E-07** at limit **
  23  Normalizat    .62580        .19343       -.14234E-05   -.80354E-05
  24  Prefactor     1.3236        .18352        .15449E-05   -.90061E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99681
  norm       = 0
  Prefactor  = 1.25799e-05
  Prefactor  = 3.47922e-06
  Prefactor  = 3.80053
  Prefactor  = 0
  Prefactor  = 8.25212e-06
  Prefactor  = 22.9612
  Prefactor  = 5.33068e-06
  Prefactor  = 0
  Prefactor  = 4.89078
  Prefactor  = 3.62494
  norm       = 0
  Prefactor  = 1.23787
  norm       = 0
  Prefactor  = 3.14859e-06
  Prefactor  = 7.55285e-07
  Prefactor  = 6.24401
  norm       = 11.3929
  Prefactor  = 1.88738e-09
  Prefactor  = 7.29713
  Prefactor  = 0
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.206     FROM HESSE     STATUS=OK           445 CALLS     2461 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9968        2.2702        .50427E-03   -1.5668    
   2  norm           .0000        .89998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12580E-04    59.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34792E-05    70.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8005        3.3247        .51952E-03   -1.5669    
   6  Prefactor      .0000        4.0849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .82521E-05    46.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.961        46.074        .20680E-03   -1.5612    
   9  Prefactor     .53307E-05    35.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .57011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8908        4.0639        .45476E-03   -1.5664    
  12  Prefactor     3.6249        3.6862        .53045E-03   -1.5670    
  13  norm           .0000        .25196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2379        16.565        .11462E-01   -1.5686    
  15  norm           .0000        .38426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31486E-05    37.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75528E-06    68.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2440        3.1915        .40171E-03   -1.5658    
  19  norm          11.393        14.454        .29662E-03   -1.5640    
  20  Prefactor     .18874E-08    9.9880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2971        6.3200        .37216E-03   -1.5654    
  22  Prefactor      .0000        4.0143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62580        .17080        .67250E-01   -1.0690    
  24  Prefactor     1.3236        .15882        .46349E-01   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13312e-06
Minuit parameter uncertainties:
  1  2.27017
  2  4.47842e-07
  3  0.0546394
  4  0.0313726
  5  3.32469
  6  6.67139e-06
  7  0.0389684
  8  46.0746
  9  0.0274699
  10  1.11536e-07
  11  4.06388
  12  3.68624
  13  5.48965e-09
  14  9.05672
  15  7.44621e-08
  16  0.0216085
  17  0.0144296
  18  3.19147
  19  14.4538
  20  0.000273237
  21  6.32001
  22  2.68751e-06
  23  0.170945
  24  0.158876
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.115e-07  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 4.25465156621e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00325622347091 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34634285/likelihoodResults_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20608626
delta logL = -0.000205654649108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.20588063
delta logL = -2.45454430114e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.206     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      238 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .53017E-01    .33460E-07** at limit **
   2  Index         .36650        .52200        .36206E-05     .0000    
   3  Normalizat    .62580        .18806        .35645E-05   -.14621E-05
   4  Prefactor     1.3236        .18283       -.12556E-05    .58879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.366504
  Normalizat = 0.625804
  Prefactor  = 1.32356
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6079.206     FROM HESSE     STATUS=FAILED        11 CALLS      249 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52773E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .38847E-01    .49145        .36206E-05   -1.1855    
   3  Normalizat    .62580        .96412        .35645E-05   -1.0690    
   4  Prefactor     1.3236        1.0728       -.12556E-05   -.82609    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.02821e-13
Minuit parameter uncertainties:
  1  4.50484e-08
  2  0.497234
  3  0.992071
  4  1.09156
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) = 6079.20588061
delta logL = 0.0

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  4.505e-08  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.665e-01  4.972e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.324e+00  1.092e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.258e-01  9.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/34634285/cmap_HighResolution_807753601_808012801_4FGL_J0340.5-2118_daily_bin2193.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2026-08-10 03:05:36.921628', job_id='34634285', GAL2='1.32', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1786356336.92', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2193' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 10 03:05:37 PDT 2026

