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


Performing analysis on: 4FGL_J1338.0+6534_weekly_bin946
RA = 204.516, Dec = 65.5696
tmin = 811123201, tmax = 811728001
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='38801614', job_status='RUN', time_executed='2026-09-22 10:47:01.107951', time_epoch_executed='1790099221.11' WHERE source_name='4FGL J1338.0+6534' and cadence='weekly' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38801614

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38801614/ft1_4FGL_J1338.0+6534_weekly_bin946.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38801614/ft1_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801614/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin946.fits ra=204.516 dec=65.5696 rad=12.0 tmin=811123201.0 tmax=811728001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.63
user 4.02
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.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/38801614/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" outfile="/lscratch/kocevski/38801614/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.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.75
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1689

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38801614/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA"/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

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

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

 outfile=/lscratch/kocevski/38801547/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801547/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 19.08
user 18.35
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38801547/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801547/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38801547/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801547/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801547/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 70.55
user 65.73
sys 4.07

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38801547/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801547/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801547/cmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.67
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38801547/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801547/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801547/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38801547/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801547/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38801547/Model_4FGL_J1338.0+6534_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcnumber of points = 17371
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.0+6534_weekly_bin946
RA = 204.516, Dec = 65.5696
tmin = 811123201, tmax = 811728001
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='38801623', job_status='RUN', time_executed='2026-09-22 10:47:20.682797', time_epoch_executed='1790099240.68' WHERE source_name='4FGL J1338.0+6534' and cadence='weekly' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38801623

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38801623/ft1_4FGL_J1338.0+6534_weekly_bin946.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38801623/ft1_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801623/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin946.fits ra=204.516 dec=65.5696 rad=12.0 tmin=811123201.0 tmax=811728001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.53
user 4.69
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.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/38801623/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" outfile="/lscratch/kocevski/38801623/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.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.73
user 0.24
sys 0.14

Number of photons that the gtmktime cut: 1689

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38801623/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA"number of points = 17371
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.0+6534_weekly_bin946
RA = 204.516, Dec = 65.5696
tmin = 811123201, tmax = 811728001
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='38801633', job_status='RUN', time_executed='2026-09-22 10:47:38.796690', time_epoch_executed='1790099258.8' WHERE source_name='4FGL J1338.0+6534' and cadence='weekly' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38801633

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38801633/ft1_4FGL_J1338.0+6534_weekly_bin946.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38801633/ft1_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801633/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin946.fits ra=204.516 dec=65.5696 rad=12.0 tmin=811123201.0 tmax=811728001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.82
user 4.11
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.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/38801633/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" outfile="/lscratch/kocevski/38801633/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.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.76
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1689

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38801633/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA"  outfile=/lscratch/kocevski/38801564/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801564/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 19.28
user 18.63
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38801564/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801564/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38801564/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801564/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801564/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 70.38
user 65.53
sys 4.17

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38801564/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801564/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801564/cmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.67
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38801564/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801564/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801564/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38801564/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801564/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38801564/Model_4FGL_J1338.0+6534_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/38801583/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801583/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 19.32
user 18.61
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38801583/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801583/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38801583/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801583/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801583/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 70.27
user 65.49
sys 3.98

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

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

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

This is gtbin version HEAD
real 0.72
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38801583/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801583/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801583/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38801583/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801583/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38801583/Model_4FGL_J1338.0+6534_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcnumber of points = 17371
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.0+6534_weekly_bin946
RA = 204.516, Dec = 65.5696
tmin = 811123201, tmax = 811728001
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='38801678', job_status='RUN', time_executed='2026-09-22 10:48:26.829682', time_epoch_executed='1790099306.83' WHERE source_name='4FGL J1338.0+6534' and cadence='weekly' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38801678

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38801678/ft1_4FGL_J1338.0+6534_weekly_bin946.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38801678/ft1_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801678/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin946.fits ra=204.516 dec=65.5696 rad=12.0 tmin=811123201.0 tmax=811728001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.02
user 4.39
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.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/38801678/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" outfile="/lscratch/kocevski/38801678/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.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.62
user 0.24
sys 0.12

Number of photons that the gtmktime cut: 1689

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38801678/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38801576/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801576/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 19.91
user 19.24
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38801576/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801576/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38801576/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801576/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801576/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 71.10
user 66.17
sys 4.12

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38801576/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801576/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801576/cmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.57
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38801576/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801576/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801576/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.63
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38801576/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801576/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38801576/Model_4FGL_J1338.0+6534_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcnumber of points = 17371
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.0+6534_weekly_bin946
RA = 204.516, Dec = 65.5696
tmin = 811123201, tmax = 811728001
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='38801702', job_status='RUN', time_executed='2026-09-22 10:49:07.503454', time_epoch_executed='1790099347.5' WHERE source_name='4FGL J1338.0+6534' and cadence='weekly' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38801702

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38801702/ft1_4FGL_J1338.0+6534_weekly_bin946.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38801702/ft2_4FGL_J1338.0+6534_weekly_bin946.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38801702/ft1_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801702/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin946.fits ra=204.516 dec=65.5696 rad=12.0 tmin=811123201.0 tmax=811728001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.56
user 4.02
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38801702/ft2_4FGL_J1338.0+6534_weekly_bin946.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38801702/ft2_4FGL_J1338.0+6534_weekly_bin946.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/38801702/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" outfile="/lscratch/kocevski/38801702/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.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.60
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1689

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38801702/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38801702/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" e GAL_V02
Working on...
/lscratch/kocevski/38801508/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 61.68
user 59.57
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801508/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801508/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801508/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801508/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801508/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801508/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801508/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801508/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801508/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801508/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
 outfile=/lscratch/kocevski/38801614/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 19.48
user 18.89
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38801614/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38801614/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801614/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801614/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 71.13
user 66.28
sys 4.02

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38801614/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801614/cmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38801614/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801614/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.64
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38801614/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38801614/Model_4FGL_J1338.0+6534_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc **********
 **   18 **HESSE 
 **********

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
outfile=/lscratch/kocevski/38801633/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 19.85
user 19.08
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38801633/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38801633/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801633/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801633/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 71.30
user 66.44
sys 4.09

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38801633/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801633/cmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.63
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38801633/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801633/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38801633/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38801633/Model_4FGL_J1338.0+6534_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcee GAL_V02
Working on...
/lscratch/kocevski/38801529/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 63.32
user 61.56
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801529/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801529/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801529/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801529/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801529/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801529/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801529/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801529/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801529/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801529/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
 outfile=/lscratch/kocevski/38801623/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 22.43
user 21.77
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38801623/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38801623/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801623/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801623/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 81.91
user 76.09
sys 4.61

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38801623/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801623/cmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.27
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38801623/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801623/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.28
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38801623/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38801623/Model_4FGL_J1338.0+6534_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/38801547/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 60.86
user 59.13
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801547/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801547/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801547/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801547/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801547/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801547/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801547/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801547/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801547/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801547/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
 outfile=/lscratch/kocevski/38801678/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 21.16
user 20.26
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38801678/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38801678/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801678/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801678/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 77.36
user 71.73
sys 4.52

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38801678/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801678/cmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38801678/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801678/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.27
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38801678/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38801678/Model_4FGL_J1338.0+6534_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/38801564/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 60.55
user 58.69
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801564/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801564/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801564/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801564/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801564/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801564/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801564/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801564/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801564/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801564/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
outfile=/lscratch/kocevski/38801702/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801702/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 19.48
user 18.73
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38801702/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801702/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38801702/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801702/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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/38801702/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
.....................!
real 72.05
user 67.11
sys 4.08

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38801702/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits scfile=/lscratch/kocevski/38801702/ft2_4FGL_J1338.0+6534_weekly_bin946.fits outfile=/lscratch/kocevski/38801702/cmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.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.516 yref=65.5696 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.64
user 0.24
sys 0.14

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

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

This is gtbin version HEAD
real 0.78
user 0.24
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38801702/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38801702/ft2_4FGL_J1338.0+6534_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38801702/Model_4FGL_J1338.0+6534_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourceDone.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801508/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801508/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 10:53:54.175663', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790099634.18', return_code='0', job_id='38801508', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 10:53:54 PDT 2026

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

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
e GAL_V02
Working on...
/lscratch/kocevski/38801583/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 61.74
user 59.94
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801583/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801583/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801583/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801583/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801583/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801583/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801583/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801583/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801583/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801583/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
e GAL_V02
Working on...
/lscratch/kocevski/38801576/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 61.81
user 59.98
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801576/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801576/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801576/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801576/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801576/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801576/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801576/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801576/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801576/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801576/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801529/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801529/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 10:54:58.395105', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790099698.4', return_code='0', job_id='38801529', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 10:54:58 PDT 2026

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

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
e GAL_V02
Working on...
/lscratch/kocevski/38801614/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 63.02
user 60.97
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801614/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801614/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801614/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801614/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801614/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801614/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801614/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801614/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801614/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801547/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801547/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 10:55:38.721548', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790099738.72', return_code='0', job_id='38801547', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 10:55:38 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801564/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801564/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 10:56:03.491202', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790099763.49', return_code='0', job_id='38801564', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 10:56:03 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/38801633/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 62.22
user 60.29
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801633/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801633/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801633/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801633/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801633/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801633/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801633/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801633/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801633/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801583/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801583/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 10:56:47.241832', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790099807.24', return_code='0', job_id='38801583', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 10:56:47 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/38801623/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 70.75
user 68.64
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801623/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801623/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801623/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801623/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801623/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801623/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801623/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801623/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801623/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801576/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801576/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 10:57:12.491166', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790099832.49', return_code='0', job_id='38801576', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 10:57:12 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/38801678/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 66.48
user 64.63
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801678/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801678/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801678/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801678/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801678/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801678/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801678/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801678/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801678/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
 GAL_V02
Working on...
/lscratch/kocevski/38801702/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits.....................!
real 62.97
user 61.25
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38801702/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits', '/lscratch/kocevski/38801702/ft2_4FGL_J1338.0+6534_weekly_bin946.fits', expMap='/lscratch/kocevski/38801702/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', expCube='/lscratch/kocevski/38801702/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38801702/Model_4FGL_J1338.0+6534_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38801702/ft1_filtered_4FGL_J1338.0+6534_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38801702/ft2_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38801702/expmap_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38801702/ltcube_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38801702/Model_4FGL_J1338.0+6534_weekly_bin946.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) = 18237.9484217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26174E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1142       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.626       1.0000          .0000       .10000E+07
     4 'norm      '    8.7043       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30369E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.9146       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.648       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13965E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33386       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12334E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74382E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2171       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.4443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56816E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.403       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22827       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6070       1.0000          .0000       .10000E+07
    19 'Prefactor '    .76323E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    36.586       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.203       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18237.80     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1497 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.1198       -.13868E-06** at limit **
   2  Prefactor     9.1287        10.616        .15429E-05    .58116E-01
   3  Prefactor     22.236        9.8241       -.80324E-06    .35804E-01
   4  norm          8.7009        2.6056       -.39256E-07    .10458E-03
   5  Prefactor     .55511E-10    3.1057       -.29178E-06** at limit **
   6  norm          3.9179        2.3028       -.11508E-06   -.51116E-02
   7  Prefactor     54.036        30.870       -.88881E-06   -.13119    
   8  Prefactor     .98699E-07    21.135       -.41460E-06** at limit **
   9  Prefactor     .12345        45.402        .26294E-05** at limit **
  10  Prefactor      .0000        2.6886       -.19285E-06** at limit **
  11  Prefactor     .35154E-05    50.451        .89277E-06** at limit **
  12  Prefactor     3.2205        2.1201       -.43929E-07    .11192E-02
  13  Prefactor     7.3814        5.6536        .10871E-06    .16381E-02
  14  Prefactor     .44964E-08    17.667        .34441E-06** at limit **
  15  norm           .0000        2.6259        .24048E-06** at limit **
  16  Prefactor     16.365        2.5354        .39925E-06    .44057E-02
  17  Prefactor     .18264E-01    355.22       -.17461E-04** at limit **
  18  Prefactor     3.6195        8.3225       -.78932E-06   -.70352E-02
  19  Prefactor      .0000        1.7784       -.11194E-06** at limit **
  20  Prefactor     36.679        14.057       -.36332E-06    .27032E-01
  21  Prefactor     13.161        10.108        .14882E-05    .91229E-01
  22  Normalizat    1.1640        .10802        .50437E-05   -.10205E-03
  23  Prefactor     .75878        .11673       -.81501E-05   -.81622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.1287
  Prefactor  = 22.2363
  norm       = 8.70088
  Prefactor  = 5.55112e-11
  norm       = 3.91789
  Prefactor  = 54.0355
  Prefactor  = 9.86988e-08
  Prefactor  = 0.123445
  Prefactor  = 0
  Prefactor  = 3.51541e-06
  Prefactor  = 3.22046
  Prefactor  = 7.38135
  Prefactor  = 4.4964e-09
  norm       = 0
  Prefactor  = 16.3649
  Prefactor  = 0.0182636
  Prefactor  = 3.61949
  Prefactor  = 0
  Prefactor  = 36.6792
  Prefactor  = 13.1606
  Normalizat = 1.16401
  Prefactor  = 0.758781
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801614/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801614/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 10:58:01.574287', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790099881.57', return_code='0', job_id='38801614', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 10:58:01 PDT 2026

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

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.80     FROM HESSE     STATUS=OK           430 CALLS     1927 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1287        10.942        .33174E-03   -1.5648    
   3  Prefactor     22.236        16.386        .21028E-03   -1.5614    
   4  norm          8.7009        2.6074        .33951E-03   -1.5649    
   5  Prefactor     .55511E-10    3.1080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9179        2.3028        .50967E-03   -1.5668    
   7  Prefactor     54.036        36.155        .13287E-03   -1.5561    
   8  Prefactor     .98699E-07    20.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12345        8.0572        .14857E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35154E-05    55.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2205        2.1335        .56457E-03   -1.5672    
  13  Prefactor     7.3814        5.6615        .36735E-03   -1.5654    
  14  Prefactor     .44964E-08    17.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.365        13.756        .24703E-03   -1.5627    
  17  Prefactor     .18264E-01    11.576        .17011E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6195        8.3472        .53177E-03   -1.5670    
  19  Prefactor      .0000        1.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.679        15.511        .16535E-03   -1.5587    
  21  Prefactor     13.161        11.014        .27540E-03   -1.5635    
  22  Normalizat    1.1640        .93314E-01    .35866E-01   -.87722    
  23  Prefactor     .75878        .10028        .61961E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57393e-07
Minuit parameter uncertainties:
  1  4.76546e-05
  2  10.9424
  3  16.3864
  4  2.60744
  5  2.65723e-05
  6  2.30285
  7  36.1554
  8  0.00287168
  9  1.99462
  10  1.61089e-05
  11  0.0279928
  12  2.13353
  13  5.66148
  14  0.000567128
  15  3.84534e-07
  16  13.7557
  17  0.919608
  18  8.34718
  19  6.90423e-06
  20  15.5107
  21  11.0139
  22  0.0933276
  23  0.100305
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801633/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801633/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 10:58:50.754250', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790099930.75', return_code='0', job_id='38801633', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 10:58:51 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801623/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801623/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 10:59:55.659151', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790099995.66', return_code='0', job_id='38801623', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 10:59:55 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801678/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.220e+00  2.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.588e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.164e+00  9.333e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 6.30e-06 +/- 4.18e-06

TS (Fixed Index): 3.08
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.07797332717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00479115861469 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38801702/likelihoodResults_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7456091
delta logL = 0.0515471890612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414228
delta logL = 0.0557335062913

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18237.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7511        47.774        .52103E-03    .13089E-01
   2  Index         2.5337        3.4619        .23420        .12218E-03
   3  Normalizat    1.1679        .32624E-01    .35730E-01    .82440E-05
   4  Prefactor     .75514        .34074E-01    .62090E-01    .56449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75109
  Index      = 2.53372
  Normalizat = 1.16794
  Prefactor  = 0.755143
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
 **********
 **   18 **HESSE 
 **********

 FCN=   18237.74     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7511        2.8837        .16312E-04   -1.5669    
   2  Index         2.5337        .56233        .10851E-01   -.51583    
   3  Normalizat    1.1679        .10700        .20608E-03   -.87599    
   4  Prefactor     .75514        .11660        .27464E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95021e-09
Minuit parameter uncertainties:
  1  2.88368
  2  0.563911
  3  0.107024
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801678/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 11:00:14.562751', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790100014.56', return_code='0', job_id='38801678', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 11:00:14 PDT 2026

Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18237.7414223
delta logL = 0.0557339924308

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.751e+00  2.884e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.534e+00  5.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.551e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.168e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.53 +/- 0.56
Photon Flux (Free Index): 2.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.92e-06 +/- 5.07e-06

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/38801702/cmap_HighResolution_811123201_811728001_4FGL_J1338.0+6534_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.92e-06', photon_flux_error='1.76e-08', dlogl='5.57e-02', energy_flux='6.30e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2026-09-22 11:00:14.738504', photon_index_error2='0.56', photon_index2='2.53', ts='3.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='5.07e-06', EG='1.16', time_epoch_completed='1790100014.74', return_code='0', job_id='38801702', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='4.18e-06', photon_flux_error2='1.72e-08', ts2='3.18', photon_index='2.72' WHERE bin_id='946' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 11:00:15 PDT 2026

