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


Performing analysis on: 4FGL_J0138.0+2247_weekly_bin945
RA = 24.5063, Dec = 22.7962
tmin = 810518401, tmax = 811123201
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='38278004', job_status='RUN', time_executed='2026-09-15 01:20:41.633621', time_epoch_executed='1789460441.63' WHERE source_name='4FGL J0138.0+2247' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38278004

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38278004/ft1_4FGL_J0138.0+2247_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38278004/ft2_4FGL_J0138.0+2247_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38278004/ft1_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278004/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin945.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=810518401.0 tmax=811123201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.25
user 5.66
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38278004/ft2_4FGL_J0138.0+2247_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38278004/ft2_4FGL_J0138.0+2247_weekly_bin945.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/38278004/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38278004/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.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.66
user 0.23
sys 0.14

Number of photons that the gtmktime cut: 1562

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

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

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

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

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

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

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


Performing analysis on: 4FGL_J0138.0+2247_weekly_bin945
RA = 24.5063, Dec = 22.7962
tmin = 810518401, tmax = 811123201
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='38278011', job_status='RUN', time_executed='2026-09-15 01:21:38.926566', time_epoch_executed='1789460498.93' WHERE source_name='4FGL J0138.0+2247' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38278011

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38278011/ft1_4FGL_J0138.0+2247_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38278011/ft1_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278011/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin945.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=810518401.0 tmax=811123201.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.99
user 5.36
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.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/38278011/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38278011/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.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.63
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1562

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38278011/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38277946/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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/38277946/ft2_4FGL_J0138.0+2247_weekly_bin945.fits
.....................!
real 17.91
user 17.30
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38277946/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38277946/ft2_4FGL_J0138.0+2247_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38277946/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38277946/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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/38277946/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
.....................!
real 68.17
user 63.49
sys 3.90

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0138.0+2247 @ 24.5063 22.7962

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38277946/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits scfile=/lscratch/kocevski/38277946/ft2_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38277946/cmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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=24.5063 yref=22.7962 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.65
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38277946/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits scfile=/lscratch/kocevski/38277946/ft2_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38277946/cmap_HighResolution_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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=24.5063 yref=22.7962 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 2.97
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38277946/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38277946/ft2_4FGL_J0138.0+2247_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38277946/Model_4FGL_J0138.0+2247_weekly_bin945.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 = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0138.0+2247_weekly_bin945
RA = 24.5063, Dec = 22.7962
tmin = 810518401, tmax = 811123201
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='38278077', job_status='RUN', time_executed='2026-09-15 01:22:43.110170', time_epoch_executed='1789460563.11' WHERE source_name='4FGL J0138.0+2247' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38278077

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38278077/ft1_4FGL_J0138.0+2247_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38278077/ft1_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278077/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin945.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=810518401.0 tmax=811123201.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.12
user 4.58
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.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/38278077/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38278077/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.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.51
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 1562

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38278077/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38278004/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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/38278004/ft2_4FGL_J0138.0+2247_weekly_bin945.fits
.....................!
real 19.81
user 19.09
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38278004/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38278004/ft2_4FGL_J0138.0+2247_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38278004/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278004/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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/38278004/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
.....................!
real 74.61
user 69.06
sys 4.16

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0138.0+2247 @ 24.5063 22.7962

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38278004/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits scfile=/lscratch/kocevski/38278004/ft2_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278004/cmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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=24.5063 yref=22.7962 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38278004/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits scfile=/lscratch/kocevski/38278004/ft2_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278004/cmap_HighResolution_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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=24.5063 yref=22.7962 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.58
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38278004/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38278004/ft2_4FGL_J0138.0+2247_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38278004/Model_4FGL_J0138.0+2247_weekly_bin945.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/38278011/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.fits
.....................!
real 18.31
user 17.72
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38278011/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38278011/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278011/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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/38278011/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
.....................!
real 68.75
user 64.10
sys 3.92

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0138.0+2247 @ 24.5063 22.7962

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38278011/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits scfile=/lscratch/kocevski/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278011/cmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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=24.5063 yref=22.7962 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.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38278011/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits scfile=/lscratch/kocevski/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278011/cmap_HighResolution_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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=24.5063 yref=22.7962 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.65
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38278011/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38278011/Model_4FGL_J0138.0+2247_weekly_bin945.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/38277946/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits.....................!
real 67.28
user 64.67
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38277946/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits', '/lscratch/kocevski/38277946/ft2_4FGL_J0138.0+2247_weekly_bin945.fits', expMap='/lscratch/kocevski/38277946/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits', expCube='/lscratch/kocevski/38277946/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38277946/Model_4FGL_J0138.0+2247_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0138.0+2247'

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  5.231e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38277946/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38277946/ft2_4FGL_J0138.0+2247_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38277946/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38277946/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38277946/Model_4FGL_J0138.0+2247_weekly_bin945.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) = 17908.1571625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22793E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .43421       1.0000          .0000       .10000E+07
     3 'norm      '    .27781       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.6934       1.0000          .0000       .10000E+07
     5 'Prefactor '    .75466E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .64722       1.0000          .0000       .10000E+07
     7 'Prefactor '    .48036E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.759       1.0000          .0000       .10000E+07
     9 'norm      '    .62891       1.0000          .0000       .10000E+07
    10 'Prefactor '    .48522E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .42211E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .43343       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7990       1.0000          .0000       .10000E+07
    14 'Prefactor '    .65646E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1483       1.0000          .0000       .10000E+07
    16 'norm      '    .13060E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97072E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    24.483       1.0000          .0000       .10000E+07
    19 'Normalizat'    .84897       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1019       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17908.12     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1586 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.4185        .12376E-06** at limit **
   2  norm          .43405        .26891       -.79023E-08   -.10225E-01
   3  norm          .27807        .88452       -.31051E-07   -.18332E-02
   4  Prefactor     8.6789        7.9675        .80019E-08    .12558E-01
   5  Prefactor     .11215E-04    2.3971       -.52531E-07** at limit **
   6  Prefactor     .66076        2.5787       -.67155E-07   -.14496E-02
   7  Prefactor     .66169E-07    8.4994       -.66374E-07** at limit **
   8  Prefactor     41.852        2.7962        .10424E-07   -.24349    
   9  norm          .62898        .39867       -.18948E-07   -.13836E-01
  10  Prefactor     .11102E-09    2.0275        .12925E-06** at limit **
  11  Prefactor     .83267E-09    16.974        .32912E-06** at limit **
  12  norm          .43357        2.1221        .29163E-07   -.15411E-03
  13  Prefactor     3.7983        1.6982        .37450E-07    .12585E-01
  14  Prefactor     .21660E-05    5.1090       -.72099E-07** at limit **
  15  Prefactor     1.1458        2.6149       -.88142E-07   -.28947E-02
  16  norm          .28810E-07    9.5175       -.72406E-07** at limit **
  17  Prefactor     .11274E-05    13.098       -.93416E-07** at limit **
  18  Prefactor     24.505        1.0074        .39992E-09   -.57856E-02
  19  Normalizat    .84906        .13896        .12273E-05    .22949E-03
  20  Prefactor     1.1019        .85287E-01   -.22219E-06    .23292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.434055
  norm       = 0.278075
  Prefactor  = 8.67888
  Prefactor  = 1.1215e-05
  Prefactor  = 0.66076
  Prefactor  = 6.61693e-08
  Prefactor  = 41.8521
  norm       = 0.628985
  Prefactor  = 1.11022e-10
  Prefactor  = 8.32667e-10
  norm       = 0.433569
  Prefactor  = 3.79833
  Prefactor  = 2.16605e-06
  Prefactor  = 1.14584
  norm       = 2.88103e-08
  Prefactor  = 1.12738e-06
  Prefactor  = 24.5052
  Normalizat = 0.849063
  Prefactor  = 1.10188
 outfile=/lscratch/kocevski/38278077/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.fits
.....................!
real 15.76
user 15.30
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38278077/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38278077/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278077/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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/38278077/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
.....................!
real 59.62
user 55.53
sys 3.47

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0138.0+2247 @ 24.5063 22.7962

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38278077/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits scfile=/lscratch/kocevski/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278077/cmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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=24.5063 yref=22.7962 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.58
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38278077/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits scfile=/lscratch/kocevski/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.fits outfile=/lscratch/kocevski/38278077/cmap_HighResolution_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.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=24.5063 yref=22.7962 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.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38278077/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38278077/Model_4FGL_J0138.0+2247_weekly_bin945.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=   17908.12     FROM HESSE     STATUS=OK           349 CALLS     1935 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .43405        .25948        .85626E-03   -1.5695    
   3  norm          .27807        .66828        .29201E-02   -1.5697    
   4  Prefactor     8.6789        7.9697        .33973E-03   -1.5649    
   5  Prefactor     .11215E-04    15.181        .14642E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66076        2.8970        .65101E-03   -1.5692    
   7  Prefactor     .66169E-07    8.5945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.852        24.716        .15476E-03   -1.5579    
   9  norm          .62898        .40662        .66677E-03   -1.5692    
  10  Prefactor     .11102E-09    2.0328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83267E-09    5.0902        .11905E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .43357        2.1203        .85711E-03   -1.5695    
  13  Prefactor     3.7983        1.6994        .51764E-03   -1.5669    
  14  Prefactor     .21660E-05    20.432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1458        2.6480        .10806E-02   -1.5687    
  16  norm          .28810E-07    9.5847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11274E-05    16.997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.505        19.137        .20214E-03   -1.5609    
  19  Normalizat    .84906        .12318        .75162E-01   -.98274    
  20  Prefactor     1.1019        .74653E-01    .37516E-01   -.89407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40464e-05
Minuit parameter uncertainties:
  1  4.56932e-06
  2  0.259477
  3  0.668276
  4  7.96973
  5  0.0260966
  6  2.76711
  7  0.00150851
  8  24.7157
  9  0.40662
  10  2.80782e-05
  11  0.000131695
  12  1.91758
  13  1.69941
  14  0.0133051
  15  2.64804
  16  0.00105113
  17  0.00875488
  18  19.1373
  19  0.123225
  20  0.0746596
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  4.185e+01  2.472e+01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.102e+00  7.466e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.491e-01  1.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 24.506 22.796
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.30e-05

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) = 17907.75549
delta logL = 0.365964400597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17907.7455619
delta logL = 0.375892469994

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   17907.75     FROM MIGRAD    STATUS=FAILED        92 CALLS      300 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.716        30.440        .77394E-05   -.93424E-03
   2  Index         2.3668        .53310        .59489E-02    .18342E-02
   3  Normalizat    .83295        .13961        .33551E-03    .19667E-03
   4  Prefactor     1.1056        .84825E-01    .18042E-03   -.12718E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   17907.75     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      373 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.716        30.440        .15159E-04   -1.5605    
   2  Index         2.3668        .53310        .51514E-03   -.55465    
   3  Normalizat    .83295        .13961        .27849E-03   -.98858    
   4  Prefactor     1.1056        .84825E-01    .12344E-03   -.89286    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17907.75     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      401 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.716        25.390        .30958E-06   -.18579E-03
   2  Index         2.3668        .44460        .11898E-02    .82176E-05
   3  Normalizat    .83295        .13892        .13420E-04   -.20331E-05
   4  Prefactor     1.1056        .84637E-01    .36084E-04   -.35287E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.716
  Index      = 2.36679
  Normalizat = 0.832947
  Prefactor  = 1.10565
 **********
 **   18 **HESSE 
 **********

 FCN=   17907.75     FROM HESSE     STATUS=OK            23 CALLS      424 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.716        24.568        .37204E-06   -1.5605    
   2  Index         2.3668        .43018        .47591E-04   -.55465    
   3  Normalizat    .83295        .13881        .26841E-05   -.98858    
   4  Prefactor     1.1056        .84599E-01    .72169E-05   -.89286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89483e-12
Minuit parameter uncertainties:
  1  24.568
  2  0.430919
  3  0.138869
  4  0.084609
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) = 17907.7455619
delta logL = 0.375892507596

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  2.672e+01  2.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.367e+00  4.309e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.106e+00  8.461e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.329e-01  1.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.30
Ra Dec: 24.506 22.796
Photon Index (Free Index): 2.37 +/- 0.43
Photon Flux (Free Index): 5.05e-08 +/- 3.22e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.00e-05

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/38277946/cmap_HighResolution_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='1.73e-05', photon_flux_error='1.91e-08', dlogl='3.76e-01', energy_flux='2.21e-05', photon_flux2='5.05e-08', job_status='DONE', time_completed='2026-09-15 01:27:06.286534', photon_index_error2='0.43', photon_index2='2.37', ts='4.56', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='0.85', time_epoch_completed='1789460826.29', return_code='0', job_id='38277946', GAL2='1.11', EG2='0.83', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='3.22e-08', ts2='5.30', photon_index='2.01' WHERE bin_id='945' AND source_name='4FGL J0138.0+2247' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 01:27:06 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/38278004/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits.....................!
real 69.54
user 68.01
sys 0.71

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38278004/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits', '/lscratch/kocevski/38278004/ft2_4FGL_J0138.0+2247_weekly_bin945.fits', expMap='/lscratch/kocevski/38278004/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits', expCube='/lscratch/kocevski/38278004/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38278004/Model_4FGL_J0138.0+2247_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0138.0+2247'

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  5.231e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38278004/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38278004/ft2_4FGL_J0138.0+2247_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38278004/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38278004/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38278004/Model_4FGL_J0138.0+2247_weekly_bin945.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) = 17908.1571625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22793E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .43421       1.0000          .0000       .10000E+07
     3 'norm      '    .27781       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.6934       1.0000          .0000       .10000E+07
     5 'Prefactor '    .75466E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .64722       1.0000          .0000       .10000E+07
     7 'Prefactor '    .48036E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.759       1.0000          .0000       .10000E+07
     9 'norm      '    .62891       1.0000          .0000       .10000E+07
    10 'Prefactor '    .48522E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .42211E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .43343       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7990       1.0000          .0000       .10000E+07
    14 'Prefactor '    .65646E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1483       1.0000          .0000       .10000E+07
    16 'norm      '    .13060E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97072E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    24.483       1.0000          .0000       .10000E+07
    19 'Normalizat'    .84897       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1019       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17908.12     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1586 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.4185        .12376E-06** at limit **
   2  norm          .43405        .26891       -.79023E-08   -.10225E-01
   3  norm          .27807        .88452       -.31051E-07   -.18332E-02
   4  Prefactor     8.6789        7.9675        .80019E-08    .12558E-01
   5  Prefactor     .11215E-04    2.3971       -.52531E-07** at limit **
   6  Prefactor     .66076        2.5787       -.67155E-07   -.14496E-02
   7  Prefactor     .66169E-07    8.4994       -.66374E-07** at limit **
   8  Prefactor     41.852        2.7962        .10424E-07   -.24349    
   9  norm          .62898        .39867       -.18948E-07   -.13836E-01
  10  Prefactor     .11102E-09    2.0275        .12925E-06** at limit **
  11  Prefactor     .83267E-09    16.974        .32912E-06** at limit **
  12  norm          .43357        2.1221        .29163E-07   -.15411E-03
  13  Prefactor     3.7983        1.6982        .37450E-07    .12585E-01
  14  Prefactor     .21660E-05    5.1090       -.72099E-07** at limit **
  15  Prefactor     1.1458        2.6149       -.88142E-07   -.28947E-02
  16  norm          .28810E-07    9.5175       -.72406E-07** at limit **
  17  Prefactor     .11274E-05    13.098       -.93416E-07** at limit **
  18  Prefactor     24.505        1.0074        .39992E-09   -.57856E-02
  19  Normalizat    .84906        .13896        .12273E-05    .22949E-03
  20  Prefactor     1.1019        .85287E-01   -.22219E-06    .23292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.434055
  norm       = 0.278075
  Prefactor  = 8.67888
  Prefactor  = 1.1215e-05
  Prefactor  = 0.66076
  Prefactor  = 6.61693e-08
  Prefactor  = 41.8521
  norm       = 0.628985
  Prefactor  = 1.11022e-10
  Prefactor  = 8.32667e-10
  norm       = 0.433569
  Prefactor  = 3.79833
  Prefactor  = 2.16605e-06
  Prefactor  = 1.14584
  norm       = 2.88103e-08
  Prefactor  = 1.12738e-06
  Prefactor  = 24.5052
  Normalizat = 0.849063
  Prefactor  = 1.10188
e GAL_V02
Working on...
/lscratch/kocevski/38278011/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits.....................!
real 65.88
user 64.19
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38278011/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits', '/lscratch/kocevski/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.fits', expMap='/lscratch/kocevski/38278011/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits', expCube='/lscratch/kocevski/38278011/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38278011/Model_4FGL_J0138.0+2247_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0138.0+2247'

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  5.231e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38278011/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38278011/ft2_4FGL_J0138.0+2247_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38278011/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38278011/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38278011/Model_4FGL_J0138.0+2247_weekly_bin945.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) = 17908.1571625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22793E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .43421       1.0000          .0000       .10000E+07
     3 'norm      '    .27781       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.6934       1.0000          .0000       .10000E+07
     5 'Prefactor '    .75466E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .64722       1.0000          .0000       .10000E+07
     7 'Prefactor '    .48036E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.759       1.0000          .0000       .10000E+07
     9 'norm      '    .62891       1.0000          .0000       .10000E+07
    10 'Prefactor '    .48522E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .42211E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .43343       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7990       1.0000          .0000       .10000E+07
    14 'Prefactor '    .65646E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1483       1.0000          .0000       .10000E+07
    16 'norm      '    .13060E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97072E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    24.483       1.0000          .0000       .10000E+07
    19 'Normalizat'    .84897       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1019       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17908.12     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1586 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.4185        .12376E-06** at limit **
   2  norm          .43405        .26891       -.79023E-08   -.10225E-01
   3  norm          .27807        .88452       -.31051E-07   -.18332E-02
   4  Prefactor     8.6789        7.9675        .80019E-08    .12558E-01
   5  Prefactor     .11215E-04    2.3971       -.52531E-07** at limit **
   6  Prefactor     .66076        2.5787       -.67155E-07   -.14496E-02
   7  Prefactor     .66169E-07    8.4994       -.66374E-07** at limit **
   8  Prefactor     41.852        2.7962        .10424E-07   -.24349    
   9  norm          .62898        .39867       -.18948E-07   -.13836E-01
  10  Prefactor     .11102E-09    2.0275        .12925E-06** at limit **
  11  Prefactor     .83267E-09    16.974        .32912E-06** at limit **
  12  norm          .43357        2.1221        .29163E-07   -.15411E-03
  13  Prefactor     3.7983        1.6982        .37450E-07    .12585E-01
  14  Prefactor     .21660E-05    5.1090       -.72099E-07** at limit **
  15  Prefactor     1.1458        2.6149       -.88142E-07   -.28947E-02
  16  norm          .28810E-07    9.5175       -.72406E-07** at limit **
  17  Prefactor     .11274E-05    13.098       -.93416E-07** at limit **
  18  Prefactor     24.505        1.0074        .39992E-09   -.57856E-02
  19  Normalizat    .84906        .13896        .12273E-05    .22949E-03
  20  Prefactor     1.1019        .85287E-01   -.22219E-06    .23292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.434055
  norm       = 0.278075
  Prefactor  = 8.67888
  Prefactor  = 1.1215e-05
  Prefactor  = 0.66076
  Prefactor  = 6.61693e-08
  Prefactor  = 41.8521
  norm       = 0.628985
  Prefactor  = 1.11022e-10
  Prefactor  = 8.32667e-10
  norm       = 0.433569
  Prefactor  = 3.79833
  Prefactor  = 2.16605e-06
  Prefactor  = 1.14584
  norm       = 2.88103e-08
  Prefactor  = 1.12738e-06
  Prefactor  = 24.5052
  Normalizat = 0.849063
  Prefactor  = 1.10188
 **********
 **   18 **HESSE 
 **********

 FCN=   17908.12     FROM HESSE     STATUS=OK           349 CALLS     1935 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .43405        .25948        .85626E-03   -1.5695    
   3  norm          .27807        .66828        .29201E-02   -1.5697    
   4  Prefactor     8.6789        7.9697        .33973E-03   -1.5649    
   5  Prefactor     .11215E-04    15.181        .14642E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66076        2.8970        .65101E-03   -1.5692    
   7  Prefactor     .66169E-07    8.5945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.852        24.716        .15476E-03   -1.5579    
   9  norm          .62898        .40662        .66677E-03   -1.5692    
  10  Prefactor     .11102E-09    2.0328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83267E-09    5.0902        .11905E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .43357        2.1203        .85711E-03   -1.5695    
  13  Prefactor     3.7983        1.6994        .51764E-03   -1.5669    
  14  Prefactor     .21660E-05    20.432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1458        2.6480        .10806E-02   -1.5687    
  16  norm          .28810E-07    9.5847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11274E-05    16.997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.505        19.137        .20214E-03   -1.5609    
  19  Normalizat    .84906        .12318        .75162E-01   -.98274    
  20  Prefactor     1.1019        .74653E-01    .37516E-01   -.89407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40464e-05
Minuit parameter uncertainties:
  1  4.56932e-06
  2  0.259477
  3  0.668276
  4  7.96973
  5  0.0260966
  6  2.76711
  7  0.00150851
  8  24.7157
  9  0.40662
  10  2.80782e-05
  11  0.000131695
  12  1.91758
  13  1.69941
  14  0.0133051
  15  2.64804
  16  0.00105113
  17  0.00875488
  18  19.1373
  19  0.123225
  20  0.0746596
e GAL_V02
Working on...
/lscratch/kocevski/38278077/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits.....................!
real 57.23
user 55.73
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38278077/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits', '/lscratch/kocevski/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.fits', expMap='/lscratch/kocevski/38278077/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits', expCube='/lscratch/kocevski/38278077/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38278077/Model_4FGL_J0138.0+2247_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0138.0+2247'

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  5.231e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38278077/ft1_filtered_4FGL_J0138.0+2247_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38278077/ft2_4FGL_J0138.0+2247_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38278077/expmap_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38278077/ltcube_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38278077/Model_4FGL_J0138.0+2247_weekly_bin945.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) = 17908.1571625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22793E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .43421       1.0000          .0000       .10000E+07
     3 'norm      '    .27781       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.6934       1.0000          .0000       .10000E+07
     5 'Prefactor '    .75466E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .64722       1.0000          .0000       .10000E+07
     7 'Prefactor '    .48036E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.759       1.0000          .0000       .10000E+07
     9 'norm      '    .62891       1.0000          .0000       .10000E+07
    10 'Prefactor '    .48522E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .42211E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .43343       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7990       1.0000          .0000       .10000E+07
    14 'Prefactor '    .65646E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1483       1.0000          .0000       .10000E+07
    16 'norm      '    .13060E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97072E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    24.483       1.0000          .0000       .10000E+07
    19 'Normalizat'    .84897       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1019       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17908.12     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1586 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.4185        .12376E-06** at limit **
   2  norm          .43405        .26891       -.79023E-08   -.10225E-01
   3  norm          .27807        .88452       -.31051E-07   -.18332E-02
   4  Prefactor     8.6789        7.9675        .80019E-08    .12558E-01
   5  Prefactor     .11215E-04    2.3971       -.52531E-07** at limit **
   6  Prefactor     .66076        2.5787       -.67155E-07   -.14496E-02
   7  Prefactor     .66169E-07    8.4994       -.66374E-07** at limit **
   8  Prefactor     41.852        2.7962        .10424E-07   -.24349    
   9  norm          .62898        .39867       -.18948E-07   -.13836E-01
  10  Prefactor     .11102E-09    2.0275        .12925E-06** at limit **
  11  Prefactor     .83267E-09    16.974        .32912E-06** at limit **
  12  norm          .43357        2.1221        .29163E-07   -.15411E-03
  13  Prefactor     3.7983        1.6982        .37450E-07    .12585E-01
  14  Prefactor     .21660E-05    5.1090       -.72099E-07** at limit **
  15  Prefactor     1.1458        2.6149       -.88142E-07   -.28947E-02
  16  norm          .28810E-07    9.5175       -.72406E-07** at limit **
  17  Prefactor     .11274E-05    13.098       -.93416E-07** at limit **
  18  Prefactor     24.505        1.0074        .39992E-09   -.57856E-02
  19  Normalizat    .84906        .13896        .12273E-05    .22949E-03
  20  Prefactor     1.1019        .85287E-01   -.22219E-06    .23292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.434055
  norm       = 0.278075
  Prefactor  = 8.67888
  Prefactor  = 1.1215e-05
  Prefactor  = 0.66076
  Prefactor  = 6.61693e-08
  Prefactor  = 41.8521
  norm       = 0.628985
  Prefactor  = 1.11022e-10
  Prefactor  = 8.32667e-10
  norm       = 0.433569
  Prefactor  = 3.79833
  Prefactor  = 2.16605e-06
  Prefactor  = 1.14584
  norm       = 2.88103e-08
  Prefactor  = 1.12738e-06
  Prefactor  = 24.5052
  Normalizat = 0.849063
  Prefactor  = 1.10188
 **********
 **   18 **HESSE 
 **********

 FCN=   17908.12     FROM HESSE     STATUS=OK           349 CALLS     1935 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .43405        .25948        .85626E-03   -1.5695    
   3  norm          .27807        .66828        .29201E-02   -1.5697    
   4  Prefactor     8.6789        7.9697        .33973E-03   -1.5649    
   5  Prefactor     .11215E-04    15.181        .14642E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66076        2.8970        .65101E-03   -1.5692    
   7  Prefactor     .66169E-07    8.5945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.852        24.716        .15476E-03   -1.5579    
   9  norm          .62898        .40662        .66677E-03   -1.5692    
  10  Prefactor     .11102E-09    2.0328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83267E-09    5.0902        .11905E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .43357        2.1203        .85711E-03   -1.5695    
  13  Prefactor     3.7983        1.6994        .51764E-03   -1.5669    
  14  Prefactor     .21660E-05    20.432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1458        2.6480        .10806E-02   -1.5687    
  16  norm          .28810E-07    9.5847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11274E-05    16.997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.505        19.137        .20214E-03   -1.5609    
  19  Normalizat    .84906        .12318        .75162E-01   -.98274    
  20  Prefactor     1.1019        .74653E-01    .37516E-01   -.89407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40464e-05
Minuit parameter uncertainties:
  1  4.56932e-06
  2  0.259477
  3  0.668276
  4  7.96973
  5  0.0260966
  6  2.76711
  7  0.00150851
  8  24.7157
  9  0.40662
  10  2.80782e-05
  11  0.000131695
  12  1.91758
  13  1.69941
  14  0.0133051
  15  2.64804
  16  0.00105113
  17  0.00875488
  18  19.1373
  19  0.123225
  20  0.0746596
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  4.185e+01  2.472e+01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.102e+00  7.466e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.491e-01  1.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 24.506 22.796
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.30e-05

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) = 17907.75549
delta logL = 0.365964400597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17907.7455619
delta logL = 0.375892469994

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   17907.75     FROM MIGRAD    STATUS=FAILED        92 CALLS      300 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.716        30.440        .77394E-05   -.93424E-03
   2  Index         2.3668        .53310        .59489E-02    .18342E-02
   3  Normalizat    .83295        .13961        .33551E-03    .19667E-03
   4  Prefactor     1.1056        .84825E-01    .18042E-03   -.12718E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   17907.75     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      373 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.716        30.440        .15159E-04   -1.5605    
   2  Index         2.3668        .53310        .51514E-03   -.55465    
   3  Normalizat    .83295        .13961        .27849E-03   -.98858    
   4  Prefactor     1.1056        .84825E-01    .12344E-03   -.89286    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17907.75     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      401 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.716        25.390        .30958E-06   -.18579E-03
   2  Index         2.3668        .44460        .11898E-02    .82176E-05
   3  Normalizat    .83295        .13892        .13420E-04   -.20331E-05
   4  Prefactor     1.1056        .84637E-01    .36084E-04   -.35287E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.716
  Index      = 2.36679
  Normalizat = 0.832947
  Prefactor  = 1.10565
 **********
 **   18 **HESSE 
 **********

 FCN=   17907.75     FROM HESSE     STATUS=OK            23 CALLS      424 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.716        24.568        .37204E-06   -1.5605    
   2  Index         2.3668        .43018        .47591E-04   -.55465    
   3  Normalizat    .83295        .13881        .26841E-05   -.98858    
   4  Prefactor     1.1056        .84599E-01    .72169E-05   -.89286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89483e-12
Minuit parameter uncertainties:
  1  24.568
  2  0.430919
  3  0.138869
  4  0.084609
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) = 17907.7455619
delta logL = 0.375892507596

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  2.672e+01  2.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.367e+00  4.309e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.106e+00  8.461e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.329e-01  1.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.30
Ra Dec: 24.506 22.796
Photon Index (Free Index): 2.37 +/- 0.43
Photon Flux (Free Index): 5.05e-08 +/- 3.22e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.00e-05

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/38278004/cmap_HighResolution_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='1.73e-05', photon_flux_error='1.91e-08', dlogl='3.76e-01', energy_flux='2.21e-05', photon_flux2='5.05e-08', job_status='DONE', time_completed='2026-09-15 01:29:08.261455', photon_index_error2='0.43', photon_index2='2.37', ts='4.56', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='0.85', time_epoch_completed='1789460948.26', return_code='0', job_id='38278004', GAL2='1.11', EG2='0.83', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='3.22e-08', ts2='5.30', photon_index='2.01' WHERE bin_id='945' AND source_name='4FGL J0138.0+2247' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 01:29:08 PDT 2026

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

 FCN=   17908.12     FROM HESSE     STATUS=OK           349 CALLS     1935 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .43405        .25948        .85626E-03   -1.5695    
   3  norm          .27807        .66828        .29201E-02   -1.5697    
   4  Prefactor     8.6789        7.9697        .33973E-03   -1.5649    
   5  Prefactor     .11215E-04    15.181        .14642E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66076        2.8970        .65101E-03   -1.5692    
   7  Prefactor     .66169E-07    8.5945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.852        24.716        .15476E-03   -1.5579    
   9  norm          .62898        .40662        .66677E-03   -1.5692    
  10  Prefactor     .11102E-09    2.0328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83267E-09    5.0902        .11905E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .43357        2.1203        .85711E-03   -1.5695    
  13  Prefactor     3.7983        1.6994        .51764E-03   -1.5669    
  14  Prefactor     .21660E-05    20.432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1458        2.6480        .10806E-02   -1.5687    
  16  norm          .28810E-07    9.5847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11274E-05    16.997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.505        19.137        .20214E-03   -1.5609    
  19  Normalizat    .84906        .12318        .75162E-01   -.98274    
  20  Prefactor     1.1019        .74653E-01    .37516E-01   -.89407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40464e-05
Minuit parameter uncertainties:
  1  4.56932e-06
  2  0.259477
  3  0.668276
  4  7.96973
  5  0.0260966
  6  2.76711
  7  0.00150851
  8  24.7157
  9  0.40662
  10  2.80782e-05
  11  0.000131695
  12  1.91758
  13  1.69941
  14  0.0133051
  15  2.64804
  16  0.00105113
  17  0.00875488
  18  19.1373
  19  0.123225
  20  0.0746596
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  4.185e+01  2.472e+01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.102e+00  7.466e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.491e-01  1.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 24.506 22.796
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.30e-05

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) = 17907.75549
delta logL = 0.365964400597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17907.7455619
delta logL = 0.375892469994

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   17907.75     FROM MIGRAD    STATUS=FAILED        92 CALLS      300 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.716        30.440        .77394E-05   -.93424E-03
   2  Index         2.3668        .53310        .59489E-02    .18342E-02
   3  Normalizat    .83295        .13961        .33551E-03    .19667E-03
   4  Prefactor     1.1056        .84825E-01    .18042E-03   -.12718E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   17907.75     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      373 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.716        30.440        .15159E-04   -1.5605    
   2  Index         2.3668        .53310        .51514E-03   -.55465    
   3  Normalizat    .83295        .13961        .27849E-03   -.98858    
   4  Prefactor     1.1056        .84825E-01    .12344E-03   -.89286    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17907.75     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      401 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.716        25.390        .30958E-06   -.18579E-03
   2  Index         2.3668        .44460        .11898E-02    .82176E-05
   3  Normalizat    .83295        .13892        .13420E-04   -.20331E-05
   4  Prefactor     1.1056        .84637E-01    .36084E-04   -.35287E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.716
  Index      = 2.36679
  Normalizat = 0.832947
  Prefactor  = 1.10565
 **********
 **   18 **HESSE 
 **********

 FCN=   17907.75     FROM HESSE     STATUS=OK            23 CALLS      424 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.716        24.568        .37204E-06   -1.5605    
   2  Index         2.3668        .43018        .47591E-04   -.55465    
   3  Normalizat    .83295        .13881        .26841E-05   -.98858    
   4  Prefactor     1.1056        .84599E-01    .72169E-05   -.89286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89483e-12
Minuit parameter uncertainties:
  1  24.568
  2  0.430919
  3  0.138869
  4  0.084609
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) = 17907.7455619
delta logL = 0.375892507596

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  2.672e+01  2.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.367e+00  4.309e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.106e+00  8.461e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.329e-01  1.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.30
Ra Dec: 24.506 22.796
Photon Index (Free Index): 2.37 +/- 0.43
Photon Flux (Free Index): 5.05e-08 +/- 3.22e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.00e-05

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/38278011/cmap_HighResolution_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='1.73e-05', photon_flux_error='1.91e-08', dlogl='3.76e-01', energy_flux='2.21e-05', photon_flux2='5.05e-08', job_status='DONE', time_completed='2026-09-15 01:29:26.419106', photon_index_error2='0.43', photon_index2='2.37', ts='4.56', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='0.85', time_epoch_completed='1789460966.42', return_code='0', job_id='38278011', GAL2='1.11', EG2='0.83', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='3.22e-08', ts2='5.30', photon_index='2.01' WHERE bin_id='945' AND source_name='4FGL J0138.0+2247' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 01:29:26 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  4.185e+01  2.472e+01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.102e+00  7.466e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.491e-01  1.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 24.506 22.796
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.30e-05

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) = 17907.75549
delta logL = 0.365964400597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17907.7455619
delta logL = 0.375892469994

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   17907.75     FROM MIGRAD    STATUS=FAILED        92 CALLS      300 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.716        30.440        .77394E-05   -.93424E-03
   2  Index         2.3668        .53310        .59489E-02    .18342E-02
   3  Normalizat    .83295        .13961        .33551E-03    .19667E-03
   4  Prefactor     1.1056        .84825E-01    .18042E-03   -.12718E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   17907.75     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      373 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.716        30.440        .15159E-04   -1.5605    
   2  Index         2.3668        .53310        .51514E-03   -.55465    
   3  Normalizat    .83295        .13961        .27849E-03   -.98858    
   4  Prefactor     1.1056        .84825E-01    .12344E-03   -.89286    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17907.75     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      401 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.716        25.390        .30958E-06   -.18579E-03
   2  Index         2.3668        .44460        .11898E-02    .82176E-05
   3  Normalizat    .83295        .13892        .13420E-04   -.20331E-05
   4  Prefactor     1.1056        .84637E-01    .36084E-04   -.35287E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.716
  Index      = 2.36679
  Normalizat = 0.832947
  Prefactor  = 1.10565
 **********
 **   18 **HESSE 
 **********

 FCN=   17907.75     FROM HESSE     STATUS=OK            23 CALLS      424 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.716        24.568        .37204E-06   -1.5605    
   2  Index         2.3668        .43018        .47591E-04   -.55465    
   3  Normalizat    .83295        .13881        .26841E-05   -.98858    
   4  Prefactor     1.1056        .84599E-01    .72169E-05   -.89286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89483e-12
Minuit parameter uncertainties:
  1  24.568
  2  0.430919
  3  0.138869
  4  0.084609
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) = 17907.7455619
delta logL = 0.375892507596

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  2.672e+01  2.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.367e+00  4.309e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.106e+00  8.461e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.329e-01  1.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.30
Ra Dec: 24.506 22.796
Photon Index (Free Index): 2.37 +/- 0.43
Photon Flux (Free Index): 5.05e-08 +/- 3.22e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.00e-05

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/38278077/cmap_HighResolution_810518401_811123201_4FGL_J0138.0+2247_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='1.73e-05', photon_flux_error='1.91e-08', dlogl='3.76e-01', energy_flux='2.21e-05', photon_flux2='5.05e-08', job_status='DONE', time_completed='2026-09-15 01:29:46.919221', photon_index_error2='0.43', photon_index2='2.37', ts='4.56', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='0.85', time_epoch_completed='1789460986.92', return_code='0', job_id='38278077', GAL2='1.11', EG2='0.83', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='3.22e-08', ts2='5.30', photon_index='2.01' WHERE bin_id='945' AND source_name='4FGL J0138.0+2247' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 01:29:47 PDT 2026

