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


Performing analysis on: 4FGL_J1338.0-4159_daily_bin2182
RA = 204.522, Dec = -41.9953
tmin = 804902401, tmax = 805161601
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='31429444', job_status='RUN', time_executed='2026-07-12 05:09:11.072019', time_epoch_executed='1783858151.07' WHERE source_name='4FGL J1338.0-4159' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31429444

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31429444/ft1_4FGL_J1338.0-4159_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31429444/ft1_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429444/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits ra=204.522 dec=-41.9953 rad=12.0 tmin=804902401.0 tmax=805161601.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 3.36
user 2.24
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.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/31429444/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31429444/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1810

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31429444/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA"outfile=/lscratch/kocevski/31429369/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429369/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 9.52
user 8.86
sys 0.17

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429369/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429369/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429369/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429369/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429369/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 79.03
user 73.38
sys 4.54

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429369/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429369/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429369/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.69
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429369/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429369/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429369/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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)./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/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa
/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)

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

 outfile=/lscratch/kocevski/31429437/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429437/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 8.87
user 8.18
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429437/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429437/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429437/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429437/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429437/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 71.51
user 66.56
sys 4.25

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429437/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429437/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429437/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.75
user 0.23
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429437/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429437/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429437/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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)/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)
/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)
outfile=/lscratch/kocevski/31429436/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429436/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 9.66
user 8.92
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429436/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429436/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429436/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429436/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429436/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 79.11
user 73.61
sys 4.65

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429436/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429436/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429436/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429436/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429436/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429436/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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).
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).


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

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


Performing analysis on: 4FGL_J1338.0-4159_daily_bin2182
RA = 204.522, Dec = -41.9953
tmin = 804902401, tmax = 805161601
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='31429481', job_status='RUN', time_executed='2026-07-12 05:10:05.901372', time_epoch_executed='1783858205.9' WHERE source_name='4FGL J1338.0-4159' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31429481

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31429481/ft1_4FGL_J1338.0-4159_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31429481/ft1_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429481/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits ra=204.522 dec=-41.9953 rad=12.0 tmin=804902401.0 tmax=805161601.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.78
user 2.24
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.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/31429481/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31429481/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1810

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31429481/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" 
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

 outfile=/lscratch/kocevski/31429453/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429453/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 9.26
user 8.56
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429453/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429453/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429453/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429453/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429453/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 73.15
user 68.29
sys 4.19

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429453/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429453/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429453/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.68
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429453/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429453/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429453/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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) outfile=/lscratch/kocevski/31429456/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429456/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 8.70
user 8.16
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429456/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429456/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429456/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429456/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429456/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 73.05
user 68.25
sys 4.21

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429456/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429456/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429456/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.75
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429456/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429456/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429456/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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)number of points = 7516
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.0-4159_daily_bin2182
RA = 204.522, Dec = -41.9953
tmin = 804902401, tmax = 805161601
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='31429476', job_status='RUN', time_executed='2026-07-12 05:10:10.720457', time_epoch_executed='1783858210.72' WHERE source_name='4FGL J1338.0-4159' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31429476

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31429476/ft1_4FGL_J1338.0-4159_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31429476/ft1_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429476/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits ra=204.522 dec=-41.9953 rad=12.0 tmin=804902401.0 tmax=805161601.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 3.19
user 2.24
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.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/31429476/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31429476/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.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.22
sys 0.12

Number of photons that the gtmktime cut: 1810

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31429476/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31429444/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 9.91
user 8.89
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429444/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429444/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429444/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429444/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 76.88
user 71.20
sys 4.57

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429444/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429444/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.01
user 0.24
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429444/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429444/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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)outfile=/lscratch/kocevski/31429481/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 9.22
user 8.57
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429481/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429481/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429481/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429481/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 74.53
user 69.41
sys 4.32

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429481/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429481/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.74
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429481/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429481/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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).number of points = 7516
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.0-4159_daily_bin2182
RA = 204.522, Dec = -41.9953
tmin = 804902401, tmax = 805161601
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='31429568', job_status='RUN', time_executed='2026-07-12 05:11:16.376253', time_epoch_executed='1783858276.38' WHERE source_name='4FGL J1338.0-4159' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31429568

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31429568/ft1_4FGL_J1338.0-4159_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31429568/ft1_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429568/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits ra=204.522 dec=-41.9953 rad=12.0 tmin=804902401.0 tmax=805161601.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 3.56
user 2.76
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.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/31429568/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31429568/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1810

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31429568/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31429476/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 9.75
user 8.71
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429476/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429476/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429476/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429476/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 77.71
user 71.57
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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429476/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429476/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.94
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429476/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429476/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.73
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429239/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429239/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429239/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429239/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 130.08
user 128.45
sys 0.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429239/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429239/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429239/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429239/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429239/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429239/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429239/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429239/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429239/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429239/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211  number of points = 7516
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 7516
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 7516
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.0-4159_daily_bin2182
RA = 204.522, Dec = -41.9953
tmin = 804902401, tmax = 805161601
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='31429581', job_status='RUN', time_executed='2026-07-12 05:11:36.001404', time_epoch_executed='1783858296.0' WHERE source_name='4FGL J1338.0-4159' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31429581

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31429581/ft1_4FGL_J1338.0-4159_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31429581/ft1_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429581/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits ra=204.522 dec=-41.9953 rad=12.0 tmin=804902401.0 tmax=805161601.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 3.22
user 2.18
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.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/31429581/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31429581/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1810

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31429581/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" Done.


Performing analysis on: 4FGL_J1338.0-4159_daily_bin2182
RA = 204.522, Dec = -41.9953
tmin = 804902401, tmax = 805161601
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='31429617', job_status='RUN', time_executed='2026-07-12 05:12:10.948664', time_epoch_executed='1783858330.95' WHERE source_name='4FGL J1338.0-4159' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31429617

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31429617/ft1_4FGL_J1338.0-4159_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31429617/ft1_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429617/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits ra=204.522 dec=-41.9953 rad=12.0 tmin=804902401.0 tmax=805161601.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.59
user 2.01
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.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/31429617/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31429617/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.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.19
sys 0.14

Number of photons that the gtmktime cut: 1810

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31429617/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA"Done.


Performing analysis on: 4FGL_J1338.0-4159_daily_bin2182
RA = 204.522, Dec = -41.9953
tmin = 804902401, tmax = 805161601
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='31429623', job_status='RUN', time_executed='2026-07-12 05:12:10.864579', time_epoch_executed='1783858330.86' WHERE source_name='4FGL J1338.0-4159' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31429623

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31429623/ft1_4FGL_J1338.0-4159_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31429623/ft1_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429623/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits ra=204.522 dec=-41.9953 rad=12.0 tmin=804902401.0 tmax=805161601.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.79
user 2.11
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.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/31429623/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31429623/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.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.83
user 0.28
sys 0.15

Number of photons that the gtmktime cut: 1810

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31429623/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA"     1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
).

This is gtbin version HEAD
real 1.12
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429130/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429130/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429130/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429130/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 146.94
user 143.32
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429130/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429130/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429130/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429130/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429130/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429130/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429130/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429130/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429130/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429130/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211 number of points = 7516
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.0-4159_daily_bin2182
RA = 204.522, Dec = -41.9953
tmin = 804902401, tmax = 805161601
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='31429589', job_status='RUN', time_executed='2026-07-12 05:12:13.285861', time_epoch_executed='1783858333.29' WHERE source_name='4FGL J1338.0-4159' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31429589

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31429589/ft1_4FGL_J1338.0-4159_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31429589/ft1_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429589/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits ra=204.522 dec=-41.9953 rad=12.0 tmin=804902401.0 tmax=805161601.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 3.38
user 2.44
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.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/31429589/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31429589/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.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.97
user 0.23
sys 0.15

Number of photons that the gtmktime cut: 1810

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31429589/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31429568/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 9.76
user 8.49
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429568/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429568/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429568/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429568/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 78.29
user 72.26
sys 4.73

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429568/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429568/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429568/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429568/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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)      1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
.

This is gtbin version HEAD
real 0.84
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429261/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429261/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429261/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429261/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 141.36
user 138.40
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429261/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429261/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429261/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429261/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429261/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429261/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429261/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429261/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429261/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429261/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211   outfile=/lscratch/kocevski/31429617/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 10.48
user 9.70
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429617/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429617/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429617/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429617/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 72.46
user 67.22
sys 4.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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429617/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429617/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.83
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429617/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429617/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.41outfile=/lscratch/kocevski/31429581/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 9.47
user 8.47
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429581/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429581/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429581/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429581/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 74.12
user 68.41
sys 4.07

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429581/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429581/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.03
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429581/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429581/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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). outfile=/lscratch/kocevski/31429623/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 13.41
user 12.54
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429623/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429623/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429623/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429623/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 81.65
user 76.13
sys 4.59

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429623/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429623/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429623/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429623/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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.4     1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
 outfile=/lscratch/kocevski/31429589/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 10.21
user 9.29
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31429589/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31429589/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429589/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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/31429589/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
.....................!
real 82.32
user 76.38
sys 4.72

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31429589/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429589/cmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.97
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31429589/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits scfile=/lscratch/kocevski/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.fits outfile=/lscratch/kocevski/31429589/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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=204.522 yref=-41.9953 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 **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
.

This is gtbin version HEAD
real 0.91
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429362/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429362/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429362/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429362/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 145.96
user 143.09
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429362/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429362/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429362/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429362/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429362/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429362/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429362/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429362/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429362/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429362/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211  Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429239/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429239/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:17:55.516468', job_id='31429239', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783858675.52', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:17:56 PDT 2026

     1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
.

This is gtbin version HEAD
real 0.74
user 0.22
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429437/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429437/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429437/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429437/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 134.41
user 132.31
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429437/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429437/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429437/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429437/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429437/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429437/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429437/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429437/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429437/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429437/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211  .

This is gtbin version HEAD
real 0.85
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429453/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429453/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429453/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429453/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 136.72
user 134.82
sys 0.68

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429453/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429453/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429453/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429453/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429453/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429453/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429453/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429453/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429453/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429453/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234


This is gtbin version HEAD
real 0.85
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429369/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429369/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429369/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429369/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 148.89
user 146.78
sys 0.72

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429369/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429369/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429369/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429369/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429369/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429369/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429369/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429369/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429369/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429369/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211   .

This is gtbin version HEAD
real 0.85
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429456/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429456/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429456/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429456/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 136.49
user 134.97
sys 0.67

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429456/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429456/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429456/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429456/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429456/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429456/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429456/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429456/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429456/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429456/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211  

This is gtbin version HEAD
real 0.81
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429436/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429436/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429436/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429436/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 148.83
user 146.70
sys 0.77

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429436/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429436/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429436/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429436/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429436/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429436/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429436/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429436/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429436/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429436/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211    **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429130/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
     1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429130/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:19:01.373640', job_id='31429130', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783858741.37', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:19:01 PDT 2026

     1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
    1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
    1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429261/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429261/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:19:29.588927', job_id='31429261', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783858769.59', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:19:30 PDT 2026

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

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
.

This is gtbin version HEAD
real 0.94
user 0.23
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429444/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429444/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429444/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 143.79
user 140.54
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429444/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429444/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429444/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429444/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429444/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429444/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429444/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429444/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429444/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211   **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
 **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159


This is gtbin version HEAD
real 0.70
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429481/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429481/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429481/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 139.32
user 137.57
sys 0.73

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429481/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429481/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429481/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429481/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429481/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429481/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429481/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429481/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429481/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211    **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
     1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
    1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
.

This is gtbin version HEAD
real 0.87
user 0.25
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429476/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429476/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429476/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 142.89
user 140.11
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429476/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429476/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429476/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429476/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429476/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429476/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429476/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429476/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429476/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211   **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429362/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429362/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:20:59.556438', job_id='31429362', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783858859.56', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:21:00 PDT 2026

     1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429437/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429437/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:21:21.573095', job_id='31429437', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783858881.57', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:21:21 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429453/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429453/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:21:43.380219', job_id='31429453', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783858903.38', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:21:43 PDT 2026

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

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429456/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429456/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:21:52.423846', job_id='31429456', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783858912.42', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:21:52 PDT 2026

.

This is gtbin version HEAD
real 0.94
user 0.29
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429568/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429568/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429568/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 147.25
user 143.23
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429568/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429568/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429568/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429568/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429568/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429568/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429568/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429568/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429568/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211  ).

This is gtbin version HEAD
real 0.76
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429617/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429617/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429617/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 137.99
user 135.37
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429617/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429617/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429617/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429617/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429617/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429617/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429617/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429617/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429617/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211 Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429369/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036


This is gtbin version HEAD
real 1.12
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429581/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429581/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429581/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 139.52
user 136.33
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429581/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429581/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429581/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429581/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429581/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429581/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429581/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429581/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429581/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211   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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429369/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:22:16.148360', job_id='31429369', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783858936.15', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:22:16 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429436/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429436/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:22:22.229011', job_id='31429436', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783858942.23', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:22:22 PDT 2026

     1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
      1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
    1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429444/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429444/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:23:07.675768', job_id='31429444', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783858987.68', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:23:08 PDT 2026

1).

This is gtbin version HEAD
real 1.15
user 0.22
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429623/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429623/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429623/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 155.39
user 152.90
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429623/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429623/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429623/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429623/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429623/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429623/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429623/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429623/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429623/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211 **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429481/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
 **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429481/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:23:23.132331', job_id='31429481', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783859003.13', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:23:23 PDT 2026

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

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
).

This is gtbin version HEAD
real 1.01
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31429589/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31429589/Model_4FGL_J1338.0-4159_daily_bin2182.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/31429589/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits.....................!
real 153.12
user 150.91
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31429589/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits', '/lscratch/kocevski/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.fits', expMap='/lscratch/kocevski/31429589/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', expCube='/lscratch/kocevski/31429589/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31429589/Model_4FGL_J1338.0-4159_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31429589/ft1_filtered_4FGL_J1338.0-4159_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31429589/ft2_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31429589/expmap_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31429589/ltcube_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31429589/Model_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.918387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44074E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     3 'norm      '    6.2081       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6136       1.0000          .0000       .10000E+07
     5 'norm      '    29.146       1.0000          .0000       .10000E+07
     6 'norm      '    11.126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13799E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37545E-03   1.0000          .0000       .10000E+07
     9 'norm      '    59.391       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20048E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.877       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82869E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14629E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .89770       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63404E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98211 Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429476/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429476/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:24:01.754738', job_id='31429476', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783859041.75', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:24:02 PDT 2026

      1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.1848       -.72231E-06** at limit **
   2  Prefactor     4.9401        6.6971       -.30066E-06    .66520E-03
   3  norm          6.1974        6.7536        .19615E-06   -.90752E-03
   4  Prefactor     2.6187        3.7795       -.79158E-08   -.31705E-03
   5  norm          29.120        6.9393       -.62373E-08   -.11606E-02
   6  norm          11.129        5.2662        .13785E-06   -.21537E-02
   7  Prefactor      .0000        43.918        .13558E-06** at limit **
   8  Prefactor     .38858E-08    124.99        .36918E-05** at limit **
   9  norm          59.325        1.5081       -.14829E-07    .38172E-03
  10  Prefactor     .61062E-09    18.311       -.16162E-05** at limit **
  11  Prefactor     25.899        1.0243       -.26540E-08    .51236E-03
  12  Prefactor     .77716E-09    81.151       -.17476E-05** at limit **
  13  Prefactor     .16653E-09    36.288       -.85963E-06** at limit **
  14  norm          .89762        .15242       -.49323E-07    .54864E-01
  15  Prefactor     .38858E-09    55.575        .11685E-05** at limit **
  16  Normalizat    1.2035        .24502        .10428E-04   -.14282E-03
  17  Prefactor     .98223        .68819E-01   -.68529E-06   -.34738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 4.94011
  norm       = 6.19744
  Prefactor  = 2.61867
  norm       = 29.12
  norm       = 11.1292
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  norm       = 59.3253
  Prefactor  = 6.10623e-10
  Prefactor  = 25.8985
  Prefactor  = 7.77156e-10
  Prefactor  = 1.66533e-10
  norm       = 0.89762
  Prefactor  = 3.88578e-10
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
 **********
 **   18 **HESSE 
 **********

 FCN=   17774.91     FROM HESSE     STATUS=OK           257 CALLS     1469 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        6.7151        .45042E-03   -1.5664    
   3  norm          6.1974        6.7566        .40266E-03   -1.5658    
   4  Prefactor     2.6187        3.7973        .63067E-03   -1.5676    
   5  norm          29.120        6.9220        .18526E-03   -1.5600    
   6  norm          11.129        5.2483        .30010E-03   -1.5641    
   7  Prefactor      .0000        43.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-08    124.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          59.325        29.399        .12977E-03   -1.5554    
  10  Prefactor     .61062E-09    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.899        35.586        .19662E-03   -1.5606    
  12  Prefactor     .77716E-09    81.177        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    36.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89762        .15279        .45920E-03   -1.5689    
  15  Prefactor     .38858E-09    55.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2035        .21758        .11566       -.86495    
  17  Prefactor     .98223        .60212E-01    .46043E-01   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42644e-07
Minuit parameter uncertainties:
  1  4.01553e-05
  2  6.7151
  3  6.75656
  4  3.79733
  5  6.92201
  6  5.24828
  7  2.57868e-05
  8  0.00139614
  9  29.399
  10  0.000214222
  11  35.5868
  12  0.000496591
  13  0.000159216
  14  0.152794
  15  0.000291641
  16  0.217747
  17  0.0602159
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429568/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429617/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429568/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:25:34.133296', job_id='31429568', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783859134.13', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:25:34 PDT 2026

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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429617/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:25:35.452467', job_id='31429617', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783859135.45', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:25:35 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429581/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429581/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:25:41.972921', job_id='31429581', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783859141.97', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:25:42 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429623/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429623/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:26:56.329382', job_id='31429623', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783859216.33', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:26:56 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 3.67884348152e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275276349936 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31429589/likelihoodResults_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.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) = 17774.9230928
delta logL = -0.0108532839549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17774.9122432
delta logL = -3.6624223867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23332E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17774.91     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      198 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.983        .42118E-03** at limit **
   2  Index         1.9958        1.5162        .25073E-04     .0000    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.48585E-05
   4  Prefactor     .98223        1.3225        .13922E-05    .12992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99576
  Normalizat = 1.20349
  Prefactor  = 0.982234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17774.91     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42691        1.7934        .25073E-04   -.64456    
   3  Normalizat    1.2035        1.1049       -.49365E-05   -.86495    
   4  Prefactor     .98223        1.3225        .13922E-05   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.56567e-13
Minuit parameter uncertainties:
  1  7.80385e-06
  2  1.55518
  3  1.12757
  4  1.37036
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) = 17774.9122395
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  7.804e-06  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.996e+00  1.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  9.822e-01  1.370e+00  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.522 -41.995

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/31429589/cmap_HighResolution_804902401_805161601_4FGL_J1338.0-4159_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2026-07-12 05:27:36.521633', job_id='31429589', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1783859256.52', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2182' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:27:36 PDT 2026

