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


Performing analysis on: 4FGL_J0540.8-5415_daily_bin2170
RA = 85.2069, Dec = -54.2575
tmin = 801792001, tmax = 802051201
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='27623840', job_status='RUN', time_executed='2026-06-02 04:45:25.515538', time_epoch_executed='1780400725.52' WHERE source_name='4FGL J0540.8-5415' and cadence='daily' and bin_id='2170'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/27623840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/27623840/ft1_4FGL_J0540.8-5415_daily_bin2170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/27623840/ft1_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623840/ft1_filteredMKT_4FGL_J0540.8-5415_daily_bin2170.fits ra=85.2069 dec=-54.2575 rad=12.0 tmin=801792001.0 tmax=802051201.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.44
user 1.89
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.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/27623840/ft1_filteredMKT_4FGL_J0540.8-5415_daily_bin2170.fits evtable="EVENTS" outfile="/lscratch/kocevski/27623840/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.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.61
user 0.17
sys 0.14

Number of photons that the gtmktime cut: 931

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/27623840/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.fits sctable="SC_DATA" outfile=/lscratch/kocevski/27623722/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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/27623722/ft2_4FGL_J0540.8-5415_daily_bin2170.fits
.....................!
real 7.30
user 6.67
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27623722/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits evtable="EVENTS" scfile=/lscratch/kocevski/27623722/ft2_4FGL_J0540.8-5415_daily_bin2170.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27623722/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623722/expmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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/27623722/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits
.....................!
real 59.89
user 55.76
sys 3.41

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

Setting source of interest to:
4FGL J0540.8-5415 @ 85.2069 -54.2575

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27623722/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits scfile=/lscratch/kocevski/27623722/ft2_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623722/cmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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=85.2069 yref=-54.2575 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.71
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27623722/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits scfile=/lscratch/kocevski/27623722/ft2_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623722/cmap_HighResolution_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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=85.2069 yref=-54.2575 axisrot=0.0 /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).

outfile=/lscratch/kocevski/27623840/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.fits
.....................!
real 8.26
user 7.56
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27623840/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits evtable="EVENTS" scfile=/lscratch/kocevski/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27623840/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623840/expmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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/27623840/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits
.....................!
real 67.48
user 62.82
sys 3.63

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 LMC-North in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Added 214 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0540.8-5415 @ 85.2069 -54.2575

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27623840/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits scfile=/lscratch/kocevski/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623840/cmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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=85.2069 yref=-54.2575 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.62
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27623840/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits scfile=/lscratch/kocevski/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623840/cmap_HighResolution_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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=85.2069 yref=-54.2575 axisrot=0.0 number of points = 7412
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0540.8-5415_daily_bin2170
RA = 85.2069, Dec = -54.2575
tmin = 801792001, tmax = 802051201
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='27623926', job_status='RUN', time_executed='2026-06-02 04:47:16.803258', time_epoch_executed='1780400836.8' WHERE source_name='4FGL J0540.8-5415' and cadence='daily' and bin_id='2170'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/27623926

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/27623926/ft1_4FGL_J0540.8-5415_daily_bin2170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/27623926/ft1_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623926/ft1_filteredMKT_4FGL_J0540.8-5415_daily_bin2170.fits ra=85.2069 dec=-54.2575 rad=12.0 tmin=801792001.0 tmax=802051201.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.22
user 2.47
sys 3.42

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.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/27623926/ft1_filteredMKT_4FGL_J0540.8-5415_daily_bin2170.fits evtable="EVENTS" outfile="/lscratch/kocevski/27623926/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.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.54
user 0.87
sys 2.87

Number of photons that the gtmktime cut: 931

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/27623926/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.fits sctable="SC_DATA" outfile=/lscratch/kocevski/27623926/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.fits
.....................!
real 7.49
user 7.78
sys 3.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27623926/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits evtable="EVENTS" scfile=/lscratch/kocevski/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27623926/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623926/expmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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/27623926/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits
.....................!
real 67.14
user 62.71
sys 6.87

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 LMC-North in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Added 214 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0540.8-5415 @ 85.2069 -54.2575

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27623926/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits scfile=/lscratch/kocevski/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623926/cmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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=85.2069 yref=-54.2575 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.55
user 0.93
sys 3.32

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27623926/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits scfile=/lscratch/kocevski/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.fits outfile=/lscratch/kocevski/27623926/cmap_HighResolution_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.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=85.2069 yref=-54.2575 axisrot=0.0 rrafield="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.57
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27623722/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits evtable="EVENTS" scfile=/lscratch/kocevski/27623722/ft2_4FGL_J0540.8-5415_daily_bin2170.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27623722/Model_4FGL_J0540.8-5415_daily_bin2170.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/lscratch/kocevski/27623722/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits.....................!
real 1781.10
user 1769.87
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27623722/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits', '/lscratch/kocevski/27623722/ft2_4FGL_J0540.8-5415_daily_bin2170.fits', expMap='/lscratch/kocevski/27623722/expmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits', expCube='/lscratch/kocevski/27623722/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27623722/Model_4FGL_J0540.8-5415_daily_bin2170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0540.8-5415'

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  1.334e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.627e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27623722/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits
Spacecraft file(s): /lscratch/kocevski/27623722/ft2_4FGL_J0540.8-5415_daily_bin2170.fits
Exposure map: /lscratch/kocevski/27623722/expmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits
Exposure cube: /lscratch/kocevski/27623722/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27623722/Model_4FGL_J0540.8-5415_daily_bin2170.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) = 9646.65526427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24160E-03   1.0000          .0000       .10000E+07
     2 'norm      '    16.264       1.0000          .0000       .10000E+07
     3 'Prefactor '    14.356       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14404       1.0000          .0000       .10000E+07
     5 'Prefactor '    .88777E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .26823E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.1506       1.0000          .0000       .10000E+07
     8 'Prefactor '    21.695       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.2548       1.0000          .0000       .10000E+07
    10 'norm      '    7.8622       1.0000          .0000       .10000E+07
    11 'norm      '    .22587E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    13 'norm      '    15.839       1.0000          .0000       .10000E+07
    14 'Prefactor '    .33235E-05   1.0000          .0000       .10000E+07
    15 'norm      '    18.726       1.0000          .0000       .10000E+07
    16 'norm      '    6.9035       1.0000          .0000       .10000E+07
    17 'Prefactor '    .53540E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.4006       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.9172       1.0000          .0000       .10000E+07
    20 'Prefactor '    .53292E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .95891E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .55649E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .23842E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .71880E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .78536       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9646.585     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1767 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.5103       -.50248E-08** at limit **
   2  norm          16.327        7.2271       -.60502E-07    .88739E-02
   3  Prefactor     14.069        2.3557        .88806E-07    .51786E-01
   4  Prefactor     .22503E-05    32.491       -.26508E-06** at limit **
   5  Prefactor     .21816E-06    4.5361        .10525E-06** at limit **
   6  norm           .0000        2.6933        .81655E-07** at limit **
   7  Prefactor     5.1644        1.8507        .73801E-08    .16983E-02
   8  Prefactor     21.703        1.3213        .14988E-07    .33117E-01
   9  Prefactor     4.2538        2.0706       -.59851E-07    .23865E-02
  10  norm          7.8602        3.4461       -.12539E-07    .54391E-03
  11  norm          .49960E-09    1.2355        .28813E-06** at limit **
  12  norm           .0000        1.0065       -.33296E-07** at limit **
  13  norm          15.837        1.6887       -.46645E-08    .26537E-02
  14  Prefactor      .0000        1.6955        .48536E-07** at limit **
  15  norm          18.678        3.2751        .16695E-07    .23087E-01
  16  norm          6.9131        1.4728       -.91564E-08   -.29185E-01
  17  Prefactor     .27346E-05    18.505        .82321E-06** at limit **
  18  Prefactor     8.4474        8.3795        .92612E-07    .69799E-02
  19  Prefactor     4.7391        10.590       -.21048E-06    .36855E-01
  20  Prefactor     .14100E-07    8.6301        .84597E-07** at limit **
  21  Prefactor     .20151E-06    4.3071        .47621E-07** at limit **
  22  Prefactor     .34903E-05    18.092        .63646E-06** at limit **
  23  Prefactor     .18596E-07    9.8830        .88804E-06** at limit **
  24  Prefactor     .20234E-06    65.085       -.34637E-05** at limit **
  25  Normalizat    .78559        .18203       -.52475E-05    .26911E-04
  26  Prefactor     1.0779        .12817        .44088E-05    .13078E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 16.3273
  Prefactor  = 14.0688
  Prefactor  = 2.25026e-06
  Prefactor  = 2.18159e-07
  norm       = 0
  Prefactor  = 5.16435
  Prefactor  = 21.703
  Prefactor  = 4.25377
  norm       = 7.86023
  norm       = 4.996e-10
  norm       = 0
  norm       = 15.8373
  Prefactor  = 0
  norm       = 18.6782
  norm       = 6.91309
  Prefactor  = 2.73459e-06
  Prefactor  = 8.44737
  Prefactor  = 4.73915
  Prefactor  = 1.40998e-08
  Prefactor  = 2.01505e-07
  Prefactor  = 3.49026e-06
  Prefactor  = 1.85962e-08
  Prefactor  = 2.02338e-07
  Normalizat = 0.785591
  Prefactor  = 1.07791
 **********
 **   18 **HESSE 
 **********

 FCN=   9646.585     FROM HESSE     STATUS=OK           512 CALLS     2279 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.4989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.327        7.8802        .24809E-03   -1.5627    
   3  Prefactor     14.069        25.672        .26409E-03   -1.5633    
   4  Prefactor     .22503E-05    44.440        .12871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21816E-06    5.7523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        2.6882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1644        13.566        .44274E-03   -1.5663    
   8  Prefactor     21.703        18.846        .21475E-03   -1.5615    
   9  Prefactor     4.2538        2.0927        .48823E-03   -1.5667    
  10  norm          7.8602        3.6100        .35737E-03   -1.5652    
  11  norm          .49960E-09    1.4057        .64513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.0101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.837        1.6917        .25140E-03   -1.5628    
  14  Prefactor      .0000        1.6916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.678        7.9210        .23117E-03   -1.5622    
  16  norm          6.9131        8.8084        .38161E-03   -1.5655    
  17  Prefactor     .27346E-05    36.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4474        8.4407        .34564E-03   -1.5650    
  19  Prefactor     4.7391        12.603        .45334E-03   -1.5664    
  20  Prefactor     .14100E-07    9.0097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .20151E-06    5.4232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .34903E-05    37.240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .18596E-07    10.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .20234E-06    65.405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78559        .16568        .73938E-01   -1.0061    
  26  Prefactor     1.0779        .11382        .38495E-01   -.90176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04242e-07
Minuit parameter uncertainties:
  1  2.34262e-06
  2  7.88021
  3  25.6725
  4  0.0200004
  5  0.00224039
  6  7.27997e-06
  7  13.5658
  8  18.8461
  9  2.09266
  10  3.61001
  11  5.30859e-05
  12  1.07027e-06
  13  1.69171
  14  2.51849e-06
  15  7.92103
  16  8.80843
  17  0.0198643
  18  8.44074
  19  12.6032
  20  0.000713
  21  0.00209068
  22  0.0228017
  23  0.000897372
  24  0.00727583
  25  0.165788
  26  0.113845
Done.

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

Extracting fit parameters...

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  2.518e-06  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.627e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  1.078e+00  1.138e-01  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  7.856e-01  1.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 85.207 -54.258
Photon Flux Upper Limit: 6.17819937288e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00484283155931 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27623722/likelihoodResults_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9646.58716422
delta logL = -0.00244352712798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9646.5847244
delta logL = -3.70378984371e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9646.585     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      266 TOTAL
                     EDM=   .79E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .52229        .42118E-03** at limit **
   2  Index         3.7217        2.1068       -.15221E-04     .0000    
   3  Normalizat    .78559        1.1248        .38590E-06   -.37898E-04
   4  Prefactor     1.0779        1.1649       -.53490E-06   -.40050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.7217
  Normalizat = 0.785591
  Prefactor  = 1.07791
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9646.585     FROM HESSE     STATUS=FAILED         9 CALLS      275 TOTAL
                     EDM=   .79E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5246        2.3249       -.15221E-04   -.25853    
   3  Normalizat    .78559        1.1248        .38590E-06   -1.0061    
   4  Prefactor     1.0779        1.1649       -.53490E-06   -.90176    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.88672e-12
Minuit parameter uncertainties:
  1  3.19002e-06
  2  2.17992
  3  1.16095
  4  1.19422
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) = 9646.5847207
delta logL = 0.0

Extracting fit parameters...

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  3.190e-06  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  3.722e+00  2.180e+00  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  1.078e+00  1.194e+00  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  7.856e-01  1.161e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 85.207 -54.258

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/27623722/cmap_HighResolution_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2026-06-02 05:20:06.096959', job_id='27623722', GAL2='1.08', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1780402806.1', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='2170' AND source_name='4FGL J0540.8-5415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun  2 05:20:06 PDT 2026

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.60
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27623840/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits evtable="EVENTS" scfile=/lscratch/kocevski/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27623840/Model_4FGL_J0540.8-5415_daily_bin2170.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/lscratch/kocevski/27623840/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits.....................!
real 2002.90
user 1988.54
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27623840/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits', '/lscratch/kocevski/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.fits', expMap='/lscratch/kocevski/27623840/expmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits', expCube='/lscratch/kocevski/27623840/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27623840/Model_4FGL_J0540.8-5415_daily_bin2170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0540.8-5415'

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  1.334e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.627e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27623840/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits
Spacecraft file(s): /lscratch/kocevski/27623840/ft2_4FGL_J0540.8-5415_daily_bin2170.fits
Exposure map: /lscratch/kocevski/27623840/expmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits
Exposure cube: /lscratch/kocevski/27623840/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27623840/Model_4FGL_J0540.8-5415_daily_bin2170.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) = 9646.65526427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24160E-03   1.0000          .0000       .10000E+07
     2 'norm      '    16.264       1.0000          .0000       .10000E+07
     3 'Prefactor '    14.356       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14404       1.0000          .0000       .10000E+07
     5 'Prefactor '    .88777E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .26823E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.1506       1.0000          .0000       .10000E+07
     8 'Prefactor '    21.695       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.2548       1.0000          .0000       .10000E+07
    10 'norm      '    7.8622       1.0000          .0000       .10000E+07
    11 'norm      '    .22587E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    13 'norm      '    15.839       1.0000          .0000       .10000E+07
    14 'Prefactor '    .33235E-05   1.0000          .0000       .10000E+07
    15 'norm      '    18.726       1.0000          .0000       .10000E+07
    16 'norm      '    6.9035       1.0000          .0000       .10000E+07
    17 'Prefactor '    .53540E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.4006       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.9172       1.0000          .0000       .10000E+07
    20 'Prefactor '    .53292E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .95891E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .55649E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .23842E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .71880E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .78536       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9646.585     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1767 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.5103       -.50248E-08** at limit **
   2  norm          16.327        7.2271       -.60502E-07    .88739E-02
   3  Prefactor     14.069        2.3557        .88806E-07    .51786E-01
   4  Prefactor     .22503E-05    32.491       -.26508E-06** at limit **
   5  Prefactor     .21816E-06    4.5361        .10525E-06** at limit **
   6  norm           .0000        2.6933        .81655E-07** at limit **
   7  Prefactor     5.1644        1.8507        .73801E-08    .16983E-02
   8  Prefactor     21.703        1.3213        .14988E-07    .33117E-01
   9  Prefactor     4.2538        2.0706       -.59851E-07    .23865E-02
  10  norm          7.8602        3.4461       -.12539E-07    .54391E-03
  11  norm          .49960E-09    1.2355        .28813E-06** at limit **
  12  norm           .0000        1.0065       -.33296E-07** at limit **
  13  norm          15.837        1.6887       -.46645E-08    .26537E-02
  14  Prefactor      .0000        1.6955        .48536E-07** at limit **
  15  norm          18.678        3.2751        .16695E-07    .23087E-01
  16  norm          6.9131        1.4728       -.91564E-08   -.29185E-01
  17  Prefactor     .27346E-05    18.505        .82321E-06** at limit **
  18  Prefactor     8.4474        8.3795        .92612E-07    .69799E-02
  19  Prefactor     4.7391        10.590       -.21048E-06    .36855E-01
  20  Prefactor     .14100E-07    8.6301        .84597E-07** at limit **
  21  Prefactor     .20151E-06    4.3071        .47621E-07** at limit **
  22  Prefactor     .34903E-05    18.092        .63646E-06** at limit **
  23  Prefactor     .18596E-07    9.8830        .88804E-06** at limit **
  24  Prefactor     .20234E-06    65.085       -.34637E-05** at limit **
  25  Normalizat    .78559        .18203       -.52475E-05    .26911E-04
  26  Prefactor     1.0779        .12817        .44088E-05    .13078E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 16.3273
  Prefactor  = 14.0688
  Prefactor  = 2.25026e-06
  Prefactor  = 2.18159e-07
  norm       = 0
  Prefactor  = 5.16435
  Prefactor  = 21.703
  Prefactor  = 4.25377
  norm       = 7.86023
  norm       = 4.996e-10
  norm       = 0
  norm       = 15.8373
  Prefactor  = 0
  norm       = 18.6782
  norm       = 6.91309
  Prefactor  = 2.73459e-06
  Prefactor  = 8.44737
  Prefactor  = 4.73915
  Prefactor  = 1.40998e-08
  Prefactor  = 2.01505e-07
  Prefactor  = 3.49026e-06
  Prefactor  = 1.85962e-08
  Prefactor  = 2.02338e-07
  Normalizat = 0.785591
  Prefactor  = 1.07791
 **********
 **   18 **HESSE 
 **********

 FCN=   9646.585     FROM HESSE     STATUS=OK           512 CALLS     2279 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.4989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.327        7.8802        .24809E-03   -1.5627    
   3  Prefactor     14.069        25.672        .26409E-03   -1.5633    
   4  Prefactor     .22503E-05    44.440        .12871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21816E-06    5.7523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        2.6882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1644        13.566        .44274E-03   -1.5663    
   8  Prefactor     21.703        18.846        .21475E-03   -1.5615    
   9  Prefactor     4.2538        2.0927        .48823E-03   -1.5667    
  10  norm          7.8602        3.6100        .35737E-03   -1.5652    
  11  norm          .49960E-09    1.4057        .64513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.0101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.837        1.6917        .25140E-03   -1.5628    
  14  Prefactor      .0000        1.6916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.678        7.9210        .23117E-03   -1.5622    
  16  norm          6.9131        8.8084        .38161E-03   -1.5655    
  17  Prefactor     .27346E-05    36.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4474        8.4407        .34564E-03   -1.5650    
  19  Prefactor     4.7391        12.603        .45334E-03   -1.5664    
  20  Prefactor     .14100E-07    9.0097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .20151E-06    5.4232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .34903E-05    37.240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .18596E-07    10.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .20234E-06    65.405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78559        .16568        .73938E-01   -1.0061    
  26  Prefactor     1.0779        .11382        .38495E-01   -.90176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04242e-07
Minuit parameter uncertainties:
  1  2.34262e-06
  2  7.88021
  3  25.6725
  4  0.0200004
  5  0.00224039
  6  7.27997e-06
  7  13.5658
  8  18.8461
  9  2.09266
  10  3.61001
  11  5.30859e-05
  12  1.07027e-06
  13  1.69171
  14  2.51849e-06
  15  7.92103
  16  8.80843
  17  0.0198643
  18  8.44074
  19  12.6032
  20  0.000713
  21  0.00209068
  22  0.0228017
  23  0.000897372
  24  0.00727583
  25  0.165788
  26  0.113845
Done.

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

Extracting fit parameters...

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  2.518e-06  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.627e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  1.078e+00  1.138e-01  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  7.856e-01  1.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 85.207 -54.258
Photon Flux Upper Limit: 6.17819937288e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00484283155931 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27623840/likelihoodResults_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9646.58716422
delta logL = -0.00244352712798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9646.5847244
delta logL = -3.70378984371e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9646.585     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      266 TOTAL
                     EDM=   .79E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .52229        .42118E-03** at limit **
   2  Index         3.7217        2.1068       -.15221E-04     .0000    
   3  Normalizat    .78559        1.1248        .38590E-06   -.37898E-04
   4  Prefactor     1.0779        1.1649       -.53490E-06   -.40050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.7217
  Normalizat = 0.785591
  Prefactor  = 1.07791
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9646.585     FROM HESSE     STATUS=FAILED         9 CALLS      275 TOTAL
                     EDM=   .79E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5246        2.3249       -.15221E-04   -.25853    
   3  Normalizat    .78559        1.1248        .38590E-06   -1.0061    
   4  Prefactor     1.0779        1.1649       -.53490E-06   -.90176    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.88672e-12
Minuit parameter uncertainties:
  1  3.19002e-06
  2  2.17992
  3  1.16095
  4  1.19422
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) = 9646.5847207
delta logL = 0.0

Extracting fit parameters...

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  3.190e-06  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  3.722e+00  2.180e+00  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  1.078e+00  1.194e+00  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  7.856e-01  1.161e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 85.207 -54.258

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/27623840/cmap_HighResolution_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2026-06-02 05:25:26.313546', job_id='27623840', GAL2='1.08', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1780403126.31', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='2170' AND source_name='4FGL J0540.8-5415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun  2 05:25:26 PDT 2026

afield="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.50
user 0.93
sys 3.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27623926/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits evtable="EVENTS" scfile=/lscratch/kocevski/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27623926/Model_4FGL_J0540.8-5415_daily_bin2170.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/lscratch/kocevski/27623926/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits.....................!
real 2350.66
user 2215.07
sys 4.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27623926/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits', '/lscratch/kocevski/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.fits', expMap='/lscratch/kocevski/27623926/expmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits', expCube='/lscratch/kocevski/27623926/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27623926/Model_4FGL_J0540.8-5415_daily_bin2170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0540.8-5415'

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  1.334e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.627e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27623926/ft1_filtered_4FGL_J0540.8-5415_daily_bin2170.fits
Spacecraft file(s): /lscratch/kocevski/27623926/ft2_4FGL_J0540.8-5415_daily_bin2170.fits
Exposure map: /lscratch/kocevski/27623926/expmap_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits
Exposure cube: /lscratch/kocevski/27623926/ltcube_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27623926/Model_4FGL_J0540.8-5415_daily_bin2170.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) = 9646.65526427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24160E-03   1.0000          .0000       .10000E+07
     2 'norm      '    16.264       1.0000          .0000       .10000E+07
     3 'Prefactor '    14.356       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14404       1.0000          .0000       .10000E+07
     5 'Prefactor '    .88777E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .26823E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.1506       1.0000          .0000       .10000E+07
     8 'Prefactor '    21.695       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.2548       1.0000          .0000       .10000E+07
    10 'norm      '    7.8622       1.0000          .0000       .10000E+07
    11 'norm      '    .22587E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    13 'norm      '    15.839       1.0000          .0000       .10000E+07
    14 'Prefactor '    .33235E-05   1.0000          .0000       .10000E+07
    15 'norm      '    18.726       1.0000          .0000       .10000E+07
    16 'norm      '    6.9035       1.0000          .0000       .10000E+07
    17 'Prefactor '    .53540E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.4006       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.9172       1.0000          .0000       .10000E+07
    20 'Prefactor '    .53292E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .95891E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .55649E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .23842E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .71880E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .78536       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9646.585     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1767 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.5103       -.50248E-08** at limit **
   2  norm          16.327        7.2271       -.60502E-07    .88739E-02
   3  Prefactor     14.069        2.3557        .88806E-07    .51786E-01
   4  Prefactor     .22503E-05    32.491       -.26508E-06** at limit **
   5  Prefactor     .21816E-06    4.5361        .10525E-06** at limit **
   6  norm           .0000        2.6933        .81655E-07** at limit **
   7  Prefactor     5.1644        1.8507        .73801E-08    .16983E-02
   8  Prefactor     21.703        1.3213        .14988E-07    .33117E-01
   9  Prefactor     4.2538        2.0706       -.59851E-07    .23865E-02
  10  norm          7.8602        3.4461       -.12539E-07    .54391E-03
  11  norm          .49960E-09    1.2355        .28813E-06** at limit **
  12  norm           .0000        1.0065       -.33296E-07** at limit **
  13  norm          15.837        1.6887       -.46645E-08    .26537E-02
  14  Prefactor      .0000        1.6955        .48536E-07** at limit **
  15  norm          18.678        3.2751        .16695E-07    .23087E-01
  16  norm          6.9131        1.4728       -.91564E-08   -.29185E-01
  17  Prefactor     .27346E-05    18.505        .82321E-06** at limit **
  18  Prefactor     8.4474        8.3795        .92612E-07    .69799E-02
  19  Prefactor     4.7391        10.590       -.21048E-06    .36855E-01
  20  Prefactor     .14100E-07    8.6301        .84597E-07** at limit **
  21  Prefactor     .20151E-06    4.3071        .47621E-07** at limit **
  22  Prefactor     .34903E-05    18.092        .63646E-06** at limit **
  23  Prefactor     .18596E-07    9.8830        .88804E-06** at limit **
  24  Prefactor     .20234E-06    65.085       -.34637E-05** at limit **
  25  Normalizat    .78559        .18203       -.52475E-05    .26911E-04
  26  Prefactor     1.0779        .12817        .44088E-05    .13078E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 16.3273
  Prefactor  = 14.0688
  Prefactor  = 2.25026e-06
  Prefactor  = 2.18159e-07
  norm       = 0
  Prefactor  = 5.16435
  Prefactor  = 21.703
  Prefactor  = 4.25377
  norm       = 7.86023
  norm       = 4.996e-10
  norm       = 0
  norm       = 15.8373
  Prefactor  = 0
  norm       = 18.6782
  norm       = 6.91309
  Prefactor  = 2.73459e-06
  Prefactor  = 8.44737
  Prefactor  = 4.73915
  Prefactor  = 1.40998e-08
  Prefactor  = 2.01505e-07
  Prefactor  = 3.49026e-06
  Prefactor  = 1.85962e-08
  Prefactor  = 2.02338e-07
  Normalizat = 0.785591
  Prefactor  = 1.07791
 **********
 **   18 **HESSE 
 **********

 FCN=   9646.585     FROM HESSE     STATUS=OK           512 CALLS     2279 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.4989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.327        7.8802        .24809E-03   -1.5627    
   3  Prefactor     14.069        25.672        .26409E-03   -1.5633    
   4  Prefactor     .22503E-05    44.440        .12871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21816E-06    5.7523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        2.6882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1644        13.566        .44274E-03   -1.5663    
   8  Prefactor     21.703        18.846        .21475E-03   -1.5615    
   9  Prefactor     4.2538        2.0927        .48823E-03   -1.5667    
  10  norm          7.8602        3.6100        .35737E-03   -1.5652    
  11  norm          .49960E-09    1.4057        .64513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.0101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.837        1.6917        .25140E-03   -1.5628    
  14  Prefactor      .0000        1.6916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.678        7.9210        .23117E-03   -1.5622    
  16  norm          6.9131        8.8084        .38161E-03   -1.5655    
  17  Prefactor     .27346E-05    36.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4474        8.4407        .34564E-03   -1.5650    
  19  Prefactor     4.7391        12.603        .45334E-03   -1.5664    
  20  Prefactor     .14100E-07    9.0097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .20151E-06    5.4232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .34903E-05    37.240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .18596E-07    10.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .20234E-06    65.405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78559        .16568        .73938E-01   -1.0061    
  26  Prefactor     1.0779        .11382        .38495E-01   -.90176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04242e-07
Minuit parameter uncertainties:
  1  2.34262e-06
  2  7.88021
  3  25.6725
  4  0.0200004
  5  0.00224039
  6  7.27997e-06
  7  13.5658
  8  18.8461
  9  2.09266
  10  3.61001
  11  5.30859e-05
  12  1.07027e-06
  13  1.69171
  14  2.51849e-06
  15  7.92103
  16  8.80843
  17  0.0198643
  18  8.44074
  19  12.6032
  20  0.000713
  21  0.00209068
  22  0.0228017
  23  0.000897372
  24  0.00727583
  25  0.165788
  26  0.113845
Done.

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

Extracting fit parameters...

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  2.518e-06  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.627e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  1.078e+00  1.138e-01  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  7.856e-01  1.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 85.207 -54.258
Photon Flux Upper Limit: 6.17819937288e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00484283155931 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27623926/likelihoodResults_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9646.58716422
delta logL = -0.00244352712798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9646.5847244
delta logL = -3.70378984371e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9646.585     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      266 TOTAL
                     EDM=   .79E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .52229        .42118E-03** at limit **
   2  Index         3.7217        2.1068       -.15221E-04     .0000    
   3  Normalizat    .78559        1.1248        .38590E-06   -.37898E-04
   4  Prefactor     1.0779        1.1649       -.53490E-06   -.40050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.7217
  Normalizat = 0.785591
  Prefactor  = 1.07791
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9646.585     FROM HESSE     STATUS=FAILED         9 CALLS      275 TOTAL
                     EDM=   .79E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5246        2.3249       -.15221E-04   -.25853    
   3  Normalizat    .78559        1.1248        .38590E-06   -1.0061    
   4  Prefactor     1.0779        1.1649       -.53490E-06   -.90176    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.88672e-12
Minuit parameter uncertainties:
  1  3.19002e-06
  2  2.17992
  3  1.16095
  4  1.19422
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) = 9646.5847207
delta logL = 0.0

Extracting fit parameters...

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  3.190e-06  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  3.722e+00  2.180e+00  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  1.078e+00  1.194e+00  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  7.856e-01  1.161e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 85.207 -54.258

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/27623926/cmap_HighResolution_801792001_802051201_4FGL_J0540.8-5415_daily_bin2170.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2026-06-02 05:34:27.639772', job_id='27623926', GAL2='1.08', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1780403667.64', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='2170' AND source_name='4FGL J0540.8-5415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun  2 05:34:27 PDT 2026

