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


Performing analysis on: 4FGL_J1238.5-1201_weekly_bin945
RA = 189.625, Dec = -12.028
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='38304516', job_status='RUN', time_executed='2026-09-15 09:38:13.769065', time_epoch_executed='1789490293.77' WHERE source_name='4FGL J1238.5-1201' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38304516

Creating custom pfile directory:
/lscratch/kocevski/38304516/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/38304516/ft1_4FGL_J1238.5-1201_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/38304516/ft2_4FGL_J1238.5-1201_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38304516/ft1_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304516/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits ra=189.625 dec=-12.028 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.79
user 5.29
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38304516/ft2_4FGL_J1238.5-1201_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38304516/ft2_4FGL_J1238.5-1201_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/38304516/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38304516/ft1_filtered_4FGL_J1238.5-1201_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.22
sys 0.13

Number of photons that the gtmktime cut: 1261

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38304516/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38304516/ft2_4FGL_J1238.5-1201_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.
number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1238.5-1201_weekly_bin945
RA = 189.625, Dec = -12.028
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='38304552', job_status='RUN', time_executed='2026-09-15 09:38:56.499532', time_epoch_executed='1789490336.5' WHERE source_name='4FGL J1238.5-1201' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38304552

Creating custom pfile directory:
/lscratch/kocevski/38304552/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/38304552/ft1_4FGL_J1238.5-1201_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/38304552/ft2_4FGL_J1238.5-1201_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38304552/ft1_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304552/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits ra=189.625 dec=-12.028 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.04
user 4.55
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38304552/ft2_4FGL_J1238.5-1201_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38304552/ft2_4FGL_J1238.5-1201_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/38304552/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38304552/ft1_filtered_4FGL_J1238.5-1201_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.21
sys 0.13

Number of photons that the gtmktime cut: 1261

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38304552/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38304552/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" Done.


Performing analysis on: 4FGL_J1238.5-1201_weekly_bin945
RA = 189.625, Dec = -12.028
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='38304551', job_status='RUN', time_executed='2026-09-15 09:38:56.499528', time_epoch_executed='1789490336.5' WHERE source_name='4FGL J1238.5-1201' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38304551

Creating custom pfile directory:
/lscratch/kocevski/38304551/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/38304551/ft1_4FGL_J1238.5-1201_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/38304551/ft2_4FGL_J1238.5-1201_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38304551/ft1_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304551/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits ra=189.625 dec=-12.028 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.02
user 4.53
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38304551/ft2_4FGL_J1238.5-1201_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38304551/ft2_4FGL_J1238.5-1201_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/38304551/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38304551/ft1_filtered_4FGL_J1238.5-1201_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.19
sys 0.14

Number of photons that the gtmktime cut: 1261

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38304551/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38304551/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA"  outfile=/lscratch/kocevski/38304465/ltcube_810518401_811123201_4FGL_J1238.5-1201_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/38304465/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 17.37
user 16.83
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38304465/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304465/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38304465/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304465/expmap_810518401_811123201_4FGL_J1238.5-1201_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/38304465/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 67.71
user 63.28
sys 3.89

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38304465/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304465/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304465/cmap_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.56
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38304465/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304465/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304465/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.51
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38304465/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304465/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38304465/Model_4FGL_J1238.5-1201_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_J1238.5-1201_weekly_bin945
RA = 189.625, Dec = -12.028
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='38304528', job_status='RUN', time_executed='2026-09-15 09:38:43.639365', time_epoch_executed='1789490323.64' WHERE source_name='4FGL J1238.5-1201' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38304528

Creating custom pfile directory:
/lscratch/kocevski/38304528/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/38304528/ft1_4FGL_J1238.5-1201_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/38304528/ft2_4FGL_J1238.5-1201_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38304528/ft1_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304528/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits ra=189.625 dec=-12.028 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.87
user 5.29
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38304528/ft2_4FGL_J1238.5-1201_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38304528/ft2_4FGL_J1238.5-1201_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/38304528/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38304528/ft1_filtered_4FGL_J1238.5-1201_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.72
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1261

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38304528/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38304528/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38304470/ltcube_810518401_811123201_4FGL_J1238.5-1201_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/38304470/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 17.68
user 17.17
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38304470/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304470/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38304470/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304470/expmap_810518401_811123201_4FGL_J1238.5-1201_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/38304470/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 68.20
user 63.70
sys 3.95

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38304470/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304470/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304470/cmap_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38304470/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304470/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304470/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.59
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38304470/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304470/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38304470/Model_4FGL_J1238.5-1201_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_J1238.5-1201_weekly_bin945
RA = 189.625, Dec = -12.028
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='38304559', job_status='RUN', time_executed='2026-09-15 09:39:14.641862', time_epoch_executed='1789490354.64' WHERE source_name='4FGL J1238.5-1201' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38304559

Creating custom pfile directory:
/lscratch/kocevski/38304559/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/38304559/ft1_4FGL_J1238.5-1201_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/38304559/ft2_4FGL_J1238.5-1201_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38304559/ft1_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304559/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits ra=189.625 dec=-12.028 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.21
user 4.73
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38304559/ft2_4FGL_J1238.5-1201_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38304559/ft2_4FGL_J1238.5-1201_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/38304559/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38304559/ft1_filtered_4FGL_J1238.5-1201_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.52
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 1261

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38304559/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38304559/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38304468/ltcube_810518401_811123201_4FGL_J1238.5-1201_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/38304468/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 18.37
user 17.75
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38304468/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304468/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38304468/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304468/expmap_810518401_811123201_4FGL_J1238.5-1201_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/38304468/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 69.39
user 64.65
sys 4.08

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38304468/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304468/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304468/cmap_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.59
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38304468/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304468/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304468/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38304468/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304468/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38304468/Model_4FGL_J1238.5-1201_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/38304506/ltcube_810518401_811123201_4FGL_J1238.5-1201_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/38304506/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 18.35
user 17.81
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38304506/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304506/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38304506/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304506/expmap_810518401_811123201_4FGL_J1238.5-1201_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/38304506/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 69.51
user 64.92
sys 4.06

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38304506/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304506/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304506/cmap_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.64
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38304506/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304506/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304506/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.62
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38304506/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304506/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38304506/Model_4FGL_J1238.5-1201_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_J1238.5-1201_weekly_bin945
RA = 189.625, Dec = -12.028
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='38304583', job_status='RUN', time_executed='2026-09-15 09:39:50.563527', time_epoch_executed='1789490390.56' WHERE source_name='4FGL J1238.5-1201' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38304583

Creating custom pfile directory:
/lscratch/kocevski/38304583/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/38304583/ft1_4FGL_J1238.5-1201_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/38304583/ft2_4FGL_J1238.5-1201_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38304583/ft1_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304583/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits ra=189.625 dec=-12.028 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.88
user 5.33
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38304583/ft2_4FGL_J1238.5-1201_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38304583/ft2_4FGL_J1238.5-1201_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/38304583/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38304583/ft1_filtered_4FGL_J1238.5-1201_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.86
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1261

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38304583/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38304583/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38304516/ltcube_810518401_811123201_4FGL_J1238.5-1201_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/38304516/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 18.59
user 17.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38304516/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304516/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38304516/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304516/expmap_810518401_811123201_4FGL_J1238.5-1201_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/38304516/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 70.01
user 65.05
sys 4.13

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38304516/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304516/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304516/cmap_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.54
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38304516/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304516/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304516/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.54
user 0.22
sys 0.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38304516/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304516/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38304516/Model_4FGL_J1238.5-1201_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 sourcoutfile=/lscratch/kocevski/38304552/ltcube_810518401_811123201_4FGL_J1238.5-1201_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/38304552/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 16.80
user 16.29
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38304552/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304552/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38304552/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304552/expmap_810518401_811123201_4FGL_J1238.5-1201_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/38304552/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 60.90
user 56.93
sys 3.36

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38304552/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304552/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304552/cmap_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.62
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38304552/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304552/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304552/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.53
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38304552/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304552/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38304552/Model_4FGL_J1238.5-1201_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 sourceoutfile=/lscratch/kocevski/38304551/ltcube_810518401_811123201_4FGL_J1238.5-1201_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/38304551/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 16.70
user 16.22
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38304551/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304551/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38304551/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304551/expmap_810518401_811123201_4FGL_J1238.5-1201_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/38304551/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 61.11
user 56.90
sys 3.55

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38304551/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304551/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304551/cmap_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.52
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38304551/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304551/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304551/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.49
user 0.21
sys 0.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38304551/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304551/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38304551/Model_4FGL_J1238.5-1201_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 outfile=/lscratch/kocevski/38304559/ltcube_810518401_811123201_4FGL_J1238.5-1201_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/38304559/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 16.05
user 15.50
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38304559/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304559/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38304559/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304559/expmap_810518401_811123201_4FGL_J1238.5-1201_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/38304559/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 61.47
user 57.31
sys 3.64

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38304559/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304559/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304559/cmap_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38304559/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304559/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304559/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.52
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38304559/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304559/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38304559/Model_4FGL_J1238.5-1201_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/38304528/ltcube_810518401_811123201_4FGL_J1238.5-1201_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/38304528/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 18.53
user 17.58
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38304528/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304528/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38304528/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304528/expmap_810518401_811123201_4FGL_J1238.5-1201_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/38304528/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 69.24
user 64.39
sys 4.00

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38304528/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304528/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304528/cmap_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.56
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38304528/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304528/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304528/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38304528/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304528/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38304528/Model_4FGL_J1238.5-1201_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/38304465/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits.....................!
real 42.80
user 41.42
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38304465/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits', '/lscratch/kocevski/38304465/ft2_4FGL_J1238.5-1201_weekly_bin945.fits', expMap='/lscratch/kocevski/38304465/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', expCube='/lscratch/kocevski/38304465/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38304465/Model_4FGL_J1238.5-1201_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38304465/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38304465/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38304465/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38304465/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38304465/Model_4FGL_J1238.5-1201_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) = 14044.1946661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6434       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30639E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16033E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .23339E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9864       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5036       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.632       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9202       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83817E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5846       1.0000          .0000       .10000E+07
    13 'norm      '    .88252E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.503       1.0000          .0000       .10000E+07
    15 'norm      '    .44469       1.0000          .0000       .10000E+07
    16 'norm      '    .12293E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20948E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3827       1.0000          .0000       .10000E+07
    20 'norm      '    6.4675       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19952E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .56632E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    2.0167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14044.13     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1951 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6385        2.5702       -.97532E-08   -.28234E-03
   2  Prefactor     25.731        1.3084       -.89475E-08    .10713E-02
   3  Prefactor     .79381E-08    5.2598        .28978E-06** at limit **
   4  Prefactor     .30975E-07    4.1856        .70979E-07** at limit **
   5  norm           .0000        .99237       -.84496E-07** at limit **
   6  Prefactor     1.9832        3.4036       -.65959E-07   -.16871E-02
   7  Prefactor     6.5871        1.7956       -.88925E-08   -.13351E-03
   8  Prefactor     4.5270        4.2352       -.19750E-07   -.31055E-03
   9  Prefactor     17.662        3.9393        .32764E-07   -.12864    
  10  Prefactor     7.8403        7.7900        .18870E-07    .46019E-01
  11  Prefactor      .0000        1.3895        .17149E-07** at limit **
  12  Prefactor     6.5555        1.3288       -.86881E-08   -.93547E-02
  13  norm          .57093E-06    6.3258       -.58745E-07** at limit **
  14  Prefactor     29.132        46.674       -.87399E-06   -.18983E-02
  15  norm          .44426        .15452        .51827E-08    .13049E-01
  16  norm          .17042E-07    3.5352        .10078E-06** at limit **
  17  norm          .11102E-08    5.8404        .90649E-08** at limit **
  18  Prefactor     .71609E-08    8.7531       -.15321E-07** at limit **
  19  norm          5.3773        5.6309        .53903E-07    .11687E-02
  20  norm          6.4576        7.3529       -.76097E-07    .11988E-02
  21  Prefactor     .55511E-10    1.5877        .60860E-07** at limit **
  22  Prefactor     .89434E-06    5.7514       -.14254E-07** at limit **
  23  Normalizat    2.0159        .20511        .68118E-06    .10023E-03
  24  Prefactor     .66369        .11202        .20470E-06    .75318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63848
  Prefactor  = 25.7307
  Prefactor  = 7.93809e-09
  Prefactor  = 3.09752e-08
  norm       = 0
  Prefactor  = 1.98316
  Prefactor  = 6.58713
  Prefactor  = 4.52699
  Prefactor  = 17.6624
  Prefactor  = 7.84033
  Prefactor  = 0
  Prefactor  = 6.55554
  norm       = 5.70932e-07
  Prefactor  = 29.1322
  norm       = 0.444263
  norm       = 1.70419e-08
  norm       = 1.11022e-09
  Prefactor  = 7.16094e-09
  norm       = 5.37731
  norm       = 6.45756
  Prefactor  = 5.55112e-11
  Prefactor  = 8.9434e-07
  Normalizat = 2.01589
  Prefactor  = 0.663689
e GAL_V02
Working on...
/lscratch/kocevski/38304470/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits.....................!
real 42.73
user 41.31
sys 0.92

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38304470/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits', '/lscratch/kocevski/38304470/ft2_4FGL_J1238.5-1201_weekly_bin945.fits', expMap='/lscratch/kocevski/38304470/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', expCube='/lscratch/kocevski/38304470/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38304470/Model_4FGL_J1238.5-1201_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38304470/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38304470/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38304470/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38304470/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38304470/Model_4FGL_J1238.5-1201_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) = 14044.1946661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6434       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30639E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16033E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .23339E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9864       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5036       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.632       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9202       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83817E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5846       1.0000          .0000       .10000E+07
    13 'norm      '    .88252E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.503       1.0000          .0000       .10000E+07
    15 'norm      '    .44469       1.0000          .0000       .10000E+07
    16 'norm      '    .12293E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20948E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3827       1.0000          .0000       .10000E+07
    20 'norm      '    6.4675       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19952E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .56632E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    2.0167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14044.13     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1951 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6385        2.5702       -.97532E-08   -.28234E-03
   2  Prefactor     25.731        1.3084       -.89475E-08    .10713E-02
   3  Prefactor     .79381E-08    5.2598        .28978E-06** at limit **
   4  Prefactor     .30975E-07    4.1856        .70979E-07** at limit **
   5  norm           .0000        .99237       -.84496E-07** at limit **
   6  Prefactor     1.9832        3.4036       -.65959E-07   -.16871E-02
   7  Prefactor     6.5871        1.7956       -.88925E-08   -.13351E-03
   8  Prefactor     4.5270        4.2352       -.19750E-07   -.31055E-03
   9  Prefactor     17.662        3.9393        .32764E-07   -.12864    
  10  Prefactor     7.8403        7.7900        .18870E-07    .46019E-01
  11  Prefactor      .0000        1.3895        .17149E-07** at limit **
  12  Prefactor     6.5555        1.3288       -.86881E-08   -.93547E-02
  13  norm          .57093E-06    6.3258       -.58745E-07** at limit **
  14  Prefactor     29.132        46.674       -.87399E-06   -.18983E-02
  15  norm          .44426        .15452        .51827E-08    .13049E-01
  16  norm          .17042E-07    3.5352        .10078E-06** at limit **
  17  norm          .11102E-08    5.8404        .90649E-08** at limit **
  18  Prefactor     .71609E-08    8.7531       -.15321E-07** at limit **
  19  norm          5.3773        5.6309        .53903E-07    .11687E-02
  20  norm          6.4576        7.3529       -.76097E-07    .11988E-02
  21  Prefactor     .55511E-10    1.5877        .60860E-07** at limit **
  22  Prefactor     .89434E-06    5.7514       -.14254E-07** at limit **
  23  Normalizat    2.0159        .20511        .68118E-06    .10023E-03
  24  Prefactor     .66369        .11202        .20470E-06    .75318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63848
  Prefactor  = 25.7307
  Prefactor  = 7.93809e-09
  Prefactor  = 3.09752e-08
  norm       = 0
  Prefactor  = 1.98316
  Prefactor  = 6.58713
  Prefactor  = 4.52699
  Prefactor  = 17.6624
  Prefactor  = 7.84033
  Prefactor  = 0
  Prefactor  = 6.55554
  norm       = 5.70932e-07
  Prefactor  = 29.1322
  norm       = 0.444263
  norm       = 1.70419e-08
  norm       = 1.11022e-09
  Prefactor  = 7.16094e-09
  norm       = 5.37731
  norm       = 6.45756
  Prefactor  = 5.55112e-11
  Prefactor  = 8.9434e-07
  Normalizat = 2.01589
  Prefactor  = 0.663689
e GAL_V02
Working on...
/lscratch/kocevski/38304468/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits.....................!
real 42.99
user 41.36
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38304468/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits', '/lscratch/kocevski/38304468/ft2_4FGL_J1238.5-1201_weekly_bin945.fits', expMap='/lscratch/kocevski/38304468/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', expCube='/lscratch/kocevski/38304468/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38304468/Model_4FGL_J1238.5-1201_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38304468/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38304468/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38304468/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38304468/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38304468/Model_4FGL_J1238.5-1201_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) = 14044.1946661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6434       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30639E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16033E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .23339E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9864       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5036       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.632       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9202       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83817E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5846       1.0000          .0000       .10000E+07
    13 'norm      '    .88252E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.503       1.0000          .0000       .10000E+07
    15 'norm      '    .44469       1.0000          .0000       .10000E+07
    16 'norm      '    .12293E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20948E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3827       1.0000          .0000       .10000E+07
    20 'norm      '    6.4675       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19952E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .56632E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    2.0167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14044.13     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1951 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6385        2.5702       -.97532E-08   -.28234E-03
   2  Prefactor     25.731        1.3084       -.89475E-08    .10713E-02
   3  Prefactor     .79381E-08    5.2598        .28978E-06** at limit **
   4  Prefactor     .30975E-07    4.1856        .70979E-07** at limit **
   5  norm           .0000        .99237       -.84496E-07** at limit **
   6  Prefactor     1.9832        3.4036       -.65959E-07   -.16871E-02
   7  Prefactor     6.5871        1.7956       -.88925E-08   -.13351E-03
   8  Prefactor     4.5270        4.2352       -.19750E-07   -.31055E-03
   9  Prefactor     17.662        3.9393        .32764E-07   -.12864    
  10  Prefactor     7.8403        7.7900        .18870E-07    .46019E-01
  11  Prefactor      .0000        1.3895        .17149E-07** at limit **
  12  Prefactor     6.5555        1.3288       -.86881E-08   -.93547E-02
  13  norm          .57093E-06    6.3258       -.58745E-07** at limit **
  14  Prefactor     29.132        46.674       -.87399E-06   -.18983E-02
  15  norm          .44426        .15452        .51827E-08    .13049E-01
  16  norm          .17042E-07    3.5352        .10078E-06** at limit **
  17  norm          .11102E-08    5.8404        .90649E-08** at limit **
  18  Prefactor     .71609E-08    8.7531       -.15321E-07** at limit **
  19  norm          5.3773        5.6309        .53903E-07    .11687E-02
  20  norm          6.4576        7.3529       -.76097E-07    .11988E-02
  21  Prefactor     .55511E-10    1.5877        .60860E-07** at limit **
  22  Prefactor     .89434E-06    5.7514       -.14254E-07** at limit **
  23  Normalizat    2.0159        .20511        .68118E-06    .10023E-03
  24  Prefactor     .66369        .11202        .20470E-06    .75318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63848
  Prefactor  = 25.7307
  Prefactor  = 7.93809e-09
  Prefactor  = 3.09752e-08
  norm       = 0
  Prefactor  = 1.98316
  Prefactor  = 6.58713
  Prefactor  = 4.52699
  Prefactor  = 17.6624
  Prefactor  = 7.84033
  Prefactor  = 0
  Prefactor  = 6.55554
  norm       = 5.70932e-07
  Prefactor  = 29.1322
  norm       = 0.444263
  norm       = 1.70419e-08
  norm       = 1.11022e-09
  Prefactor  = 7.16094e-09
  norm       = 5.37731
  norm       = 6.45756
  Prefactor  = 5.55112e-11
  Prefactor  = 8.9434e-07
  Normalizat = 2.01589
  Prefactor  = 0.663689
 outfile=/lscratch/kocevski/38304583/ltcube_810518401_811123201_4FGL_J1238.5-1201_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/38304583/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 18.45
user 17.88
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38304583/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304583/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38304583/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304583/expmap_810518401_811123201_4FGL_J1238.5-1201_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/38304583/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
.....................!
real 69.16
user 64.53
sys 3.94

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38304583/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304583/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304583/cmap_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.56
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38304583/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits scfile=/lscratch/kocevski/38304583/ft2_4FGL_J1238.5-1201_weekly_bin945.fits outfile=/lscratch/kocevski/38304583/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_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=189.625 yref=-12.028 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.59
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38304583/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38304583/ft2_4FGL_J1238.5-1201_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38304583/Model_4FGL_J1238.5-1201_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=   14044.13     FROM HESSE     STATUS=OK           447 CALLS     2398 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6385        2.5905        .62682E-03   -1.5675    
   2  Prefactor     25.731        13.923        .19718E-03   -1.5607    
   3  Prefactor     .79381E-08    5.3375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30975E-07    7.4922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9832        3.4357        .73495E-03   -1.5680    
   7  Prefactor     6.5871        1.8045        .39081E-02   -1.5195    
   8  Prefactor     4.5270        4.2327        .47419E-03   -1.5665    
   9  Prefactor     17.662        9.9489        .23825E-03   -1.5624    
  10  Prefactor     7.8403        8.2192        .35605E-03   -1.5652    
  11  Prefactor      .0000        1.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5555        16.708        .39084E-03   -1.5657    
  13  norm          .57093E-06    11.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.132        46.784        .16553E-03   -1.5600    
  15  norm          .44426        .15856        .59396E-03   -1.5695    
  16  norm          .17042E-07    8.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71609E-08    9.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3773        5.6387        .43291E-03   -1.5662    
  20  norm          6.4576        7.3492        .39441E-03   -1.5657    
  21  Prefactor     .55511E-10    1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89434E-06    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0159        .17594        .65430E-01   -.64153    
  24  Prefactor     .66369        .96413E-01    .41891E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46862e-07
Minuit parameter uncertainties:
  1  2.59048
  2  13.9234
  3  0.00041203
  4  0.00096322
  5  8.58979e-06
  6  3.43568
  7  1.80447
  8  4.23274
  9  9.9489
  10  8.21924
  11  7.28133e-06
  12  16.7085
  13  0.00506688
  14  46.7845
  15  0.158562
  16  0.000738616
  17  0.000161842
  18  0.000510977
  19  5.63867
  20  7.34926
  21  1.6883e-05
  22  0.00655615
  23  0.175995
  24  0.0964374
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.13     FROM HESSE     STATUS=OK           447 CALLS     2398 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6385        2.5905        .62682E-03   -1.5675    
   2  Prefactor     25.731        13.923        .19718E-03   -1.5607    
   3  Prefactor     .79381E-08    5.3375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30975E-07    7.4922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9832        3.4357        .73495E-03   -1.5680    
   7  Prefactor     6.5871        1.8045        .39081E-02   -1.5195    
   8  Prefactor     4.5270        4.2327        .47419E-03   -1.5665    
   9  Prefactor     17.662        9.9489        .23825E-03   -1.5624    
  10  Prefactor     7.8403        8.2192        .35605E-03   -1.5652    
  11  Prefactor      .0000        1.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5555        16.708        .39084E-03   -1.5657    
  13  norm          .57093E-06    11.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.132        46.784        .16553E-03   -1.5600    
  15  norm          .44426        .15856        .59396E-03   -1.5695    
  16  norm          .17042E-07    8.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71609E-08    9.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3773        5.6387        .43291E-03   -1.5662    
  20  norm          6.4576        7.3492        .39441E-03   -1.5657    
  21  Prefactor     .55511E-10    1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89434E-06    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0159        .17594        .65430E-01   -.64153    
  24  Prefactor     .66369        .96413E-01    .41891E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46862e-07
Minuit parameter uncertainties:
  1  2.59048
  2  13.9234
  3  0.00041203
  4  0.00096322
  5  8.58979e-06
  6  3.43568
  7  1.80447
  8  4.23274
  9  9.9489
  10  8.21924
  11  7.28133e-06
  12  16.7085
  13  0.00506688
  14  46.7845
  15  0.158562
  16  0.000738616
  17  0.000161842
  18  0.000510977
  19  5.63867
  20  7.34926
  21  1.6883e-05
  22  0.00655615
  23  0.175995
  24  0.0964374
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.13     FROM HESSE     STATUS=OK           447 CALLS     2398 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6385        2.5905        .62682E-03   -1.5675    
   2  Prefactor     25.731        13.923        .19718E-03   -1.5607    
   3  Prefactor     .79381E-08    5.3375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30975E-07    7.4922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9832        3.4357        .73495E-03   -1.5680    
   7  Prefactor     6.5871        1.8045        .39081E-02   -1.5195    
   8  Prefactor     4.5270        4.2327        .47419E-03   -1.5665    
   9  Prefactor     17.662        9.9489        .23825E-03   -1.5624    
  10  Prefactor     7.8403        8.2192        .35605E-03   -1.5652    
  11  Prefactor      .0000        1.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5555        16.708        .39084E-03   -1.5657    
  13  norm          .57093E-06    11.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.132        46.784        .16553E-03   -1.5600    
  15  norm          .44426        .15856        .59396E-03   -1.5695    
  16  norm          .17042E-07    8.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71609E-08    9.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3773        5.6387        .43291E-03   -1.5662    
  20  norm          6.4576        7.3492        .39441E-03   -1.5657    
  21  Prefactor     .55511E-10    1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89434E-06    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0159        .17594        .65430E-01   -.64153    
  24  Prefactor     .66369        .96413E-01    .41891E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46862e-07
Minuit parameter uncertainties:
  1  2.59048
  2  13.9234
  3  0.00041203
  4  0.00096322
  5  8.58979e-06
  6  3.43568
  7  1.80447
  8  4.23274
  9  9.9489
  10  8.21924
  11  7.28133e-06
  12  16.7085
  13  0.00506688
  14  46.7845
  15  0.158562
  16  0.000738616
  17  0.000161842
  18  0.000510977
  19  5.63867
  20  7.34926
  21  1.6883e-05
  22  0.00655615
  23  0.175995
  24  0.0964374
e GAL_V02
Working on...
/lscratch/kocevski/38304506/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits.....................!
real 42.38
user 41.08
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38304506/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits', '/lscratch/kocevski/38304506/ft2_4FGL_J1238.5-1201_weekly_bin945.fits', expMap='/lscratch/kocevski/38304506/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', expCube='/lscratch/kocevski/38304506/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38304506/Model_4FGL_J1238.5-1201_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38304506/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38304506/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38304506/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38304506/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38304506/Model_4FGL_J1238.5-1201_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) = 14044.1946661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6434       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30639E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16033E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .23339E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9864       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5036       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.632       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9202       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83817E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5846       1.0000          .0000       .10000E+07
    13 'norm      '    .88252E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.503       1.0000          .0000       .10000E+07
    15 'norm      '    .44469       1.0000          .0000       .10000E+07
    16 'norm      '    .12293E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20948E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3827       1.0000          .0000       .10000E+07
    20 'norm      '    6.4675       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19952E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .56632E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    2.0167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14044.13     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1951 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6385        2.5702       -.97532E-08   -.28234E-03
   2  Prefactor     25.731        1.3084       -.89475E-08    .10713E-02
   3  Prefactor     .79381E-08    5.2598        .28978E-06** at limit **
   4  Prefactor     .30975E-07    4.1856        .70979E-07** at limit **
   5  norm           .0000        .99237       -.84496E-07** at limit **
   6  Prefactor     1.9832        3.4036       -.65959E-07   -.16871E-02
   7  Prefactor     6.5871        1.7956       -.88925E-08   -.13351E-03
   8  Prefactor     4.5270        4.2352       -.19750E-07   -.31055E-03
   9  Prefactor     17.662        3.9393        .32764E-07   -.12864    
  10  Prefactor     7.8403        7.7900        .18870E-07    .46019E-01
  11  Prefactor      .0000        1.3895        .17149E-07** at limit **
  12  Prefactor     6.5555        1.3288       -.86881E-08   -.93547E-02
  13  norm          .57093E-06    6.3258       -.58745E-07** at limit **
  14  Prefactor     29.132        46.674       -.87399E-06   -.18983E-02
  15  norm          .44426        .15452        .51827E-08    .13049E-01
  16  norm          .17042E-07    3.5352        .10078E-06** at limit **
  17  norm          .11102E-08    5.8404        .90649E-08** at limit **
  18  Prefactor     .71609E-08    8.7531       -.15321E-07** at limit **
  19  norm          5.3773        5.6309        .53903E-07    .11687E-02
  20  norm          6.4576        7.3529       -.76097E-07    .11988E-02
  21  Prefactor     .55511E-10    1.5877        .60860E-07** at limit **
  22  Prefactor     .89434E-06    5.7514       -.14254E-07** at limit **
  23  Normalizat    2.0159        .20511        .68118E-06    .10023E-03
  24  Prefactor     .66369        .11202        .20470E-06    .75318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63848
  Prefactor  = 25.7307
  Prefactor  = 7.93809e-09
  Prefactor  = 3.09752e-08
  norm       = 0
  Prefactor  = 1.98316
  Prefactor  = 6.58713
  Prefactor  = 4.52699
  Prefactor  = 17.6624
  Prefactor  = 7.84033
  Prefactor  = 0
  Prefactor  = 6.55554
  norm       = 5.70932e-07
  Prefactor  = 29.1322
  norm       = 0.444263
  norm       = 1.70419e-08
  norm       = 1.11022e-09
  Prefactor  = 7.16094e-09
  norm       = 5.37731
  norm       = 6.45756
  Prefactor  = 5.55112e-11
  Prefactor  = 8.9434e-07
  Normalizat = 2.01589
  Prefactor  = 0.663689
e GAL_V02
Working on...
/lscratch/kocevski/38304516/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits.....................!
real 43.06
user 41.28
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38304516/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits', '/lscratch/kocevski/38304516/ft2_4FGL_J1238.5-1201_weekly_bin945.fits', expMap='/lscratch/kocevski/38304516/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', expCube='/lscratch/kocevski/38304516/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38304516/Model_4FGL_J1238.5-1201_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38304516/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38304516/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38304516/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38304516/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38304516/Model_4FGL_J1238.5-1201_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) = 14044.1946661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6434       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30639E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16033E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .23339E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9864       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5036       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.632       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9202       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83817E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5846       1.0000          .0000       .10000E+07
    13 'norm      '    .88252E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.503       1.0000          .0000       .10000E+07
    15 'norm      '    .44469       1.0000          .0000       .10000E+07
    16 'norm      '    .12293E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20948E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3827       1.0000          .0000       .10000E+07
    20 'norm      '    6.4675       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19952E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .56632E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    2.0167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14044.13     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1951 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6385        2.5702       -.97532E-08   -.28234E-03
   2  Prefactor     25.731        1.3084       -.89475E-08    .10713E-02
   3  Prefactor     .79381E-08    5.2598        .28978E-06** at limit **
   4  Prefactor     .30975E-07    4.1856        .70979E-07** at limit **
   5  norm           .0000        .99237       -.84496E-07** at limit **
   6  Prefactor     1.9832        3.4036       -.65959E-07   -.16871E-02
   7  Prefactor     6.5871        1.7956       -.88925E-08   -.13351E-03
   8  Prefactor     4.5270        4.2352       -.19750E-07   -.31055E-03
   9  Prefactor     17.662        3.9393        .32764E-07   -.12864    
  10  Prefactor     7.8403        7.7900        .18870E-07    .46019E-01
  11  Prefactor      .0000        1.3895        .17149E-07** at limit **
  12  Prefactor     6.5555        1.3288       -.86881E-08   -.93547E-02
  13  norm          .57093E-06    6.3258       -.58745E-07** at limit **
  14  Prefactor     29.132        46.674       -.87399E-06   -.18983E-02
  15  norm          .44426        .15452        .51827E-08    .13049E-01
  16  norm          .17042E-07    3.5352        .10078E-06** at limit **
  17  norm          .11102E-08    5.8404        .90649E-08** at limit **
  18  Prefactor     .71609E-08    8.7531       -.15321E-07** at limit **
  19  norm          5.3773        5.6309        .53903E-07    .11687E-02
  20  norm          6.4576        7.3529       -.76097E-07    .11988E-02
  21  Prefactor     .55511E-10    1.5877        .60860E-07** at limit **
  22  Prefactor     .89434E-06    5.7514       -.14254E-07** at limit **
  23  Normalizat    2.0159        .20511        .68118E-06    .10023E-03
  24  Prefactor     .66369        .11202        .20470E-06    .75318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63848
  Prefactor  = 25.7307
  Prefactor  = 7.93809e-09
  Prefactor  = 3.09752e-08
  norm       = 0
  Prefactor  = 1.98316
  Prefactor  = 6.58713
  Prefactor  = 4.52699
  Prefactor  = 17.6624
  Prefactor  = 7.84033
  Prefactor  = 0
  Prefactor  = 6.55554
  norm       = 5.70932e-07
  Prefactor  = 29.1322
  norm       = 0.444263
  norm       = 1.70419e-08
  norm       = 1.11022e-09
  Prefactor  = 7.16094e-09
  norm       = 5.37731
  norm       = 6.45756
  Prefactor  = 5.55112e-11
  Prefactor  = 8.9434e-07
  Normalizat = 2.01589
  Prefactor  = 0.663689
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.840e+00  8.219e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.637e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.016e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 9.57e-06 +/- 1.00e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22686222254e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00963604015452 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38304465/likelihoodResults_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0452447
delta logL = 0.0803925762411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0425339
delta logL = 0.0831033846662

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.04     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1476        386.86        .37438E-03    .90645E-03
   2  Index         2.2311        5.9278        .38249       -.48962E-04
   3  Normalizat    2.0325        .88084E-01    .65230E-01    .18010E-04
   4  Prefactor     .65846        .55510E-01    .41845E-01    .68081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14763
  Index      = 2.23106
  Normalizat = 2.03255
  Prefactor  = 0.658461
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.04     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1476        10.008        .14975E-04   -1.5654    
   2  Index         2.2311        1.0809        .11967E-01   -.58691    
   3  Normalizat    2.0325        .20423        .28846E-03   -.63737    
   4  Prefactor     .65846        .11089        .25858E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00048e-09
Minuit parameter uncertainties:
  1  10.0076
  2  1.0934
  3  0.204315
  4  0.110926
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.13     FROM HESSE     STATUS=OK           447 CALLS     2398 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6385        2.5905        .62682E-03   -1.5675    
   2  Prefactor     25.731        13.923        .19718E-03   -1.5607    
   3  Prefactor     .79381E-08    5.3375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30975E-07    7.4922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9832        3.4357        .73495E-03   -1.5680    
   7  Prefactor     6.5871        1.8045        .39081E-02   -1.5195    
   8  Prefactor     4.5270        4.2327        .47419E-03   -1.5665    
   9  Prefactor     17.662        9.9489        .23825E-03   -1.5624    
  10  Prefactor     7.8403        8.2192        .35605E-03   -1.5652    
  11  Prefactor      .0000        1.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5555        16.708        .39084E-03   -1.5657    
  13  norm          .57093E-06    11.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.132        46.784        .16553E-03   -1.5600    
  15  norm          .44426        .15856        .59396E-03   -1.5695    
  16  norm          .17042E-07    8.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71609E-08    9.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3773        5.6387        .43291E-03   -1.5662    
  20  norm          6.4576        7.3492        .39441E-03   -1.5657    
  21  Prefactor     .55511E-10    1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89434E-06    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0159        .17594        .65430E-01   -.64153    
  24  Prefactor     .66369        .96413E-01    .41891E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46862e-07
Minuit parameter uncertainties:
  1  2.59048
  2  13.9234
  3  0.00041203
  4  0.00096322
  5  8.58979e-06
  6  3.43568
  7  1.80447
  8  4.23274
  9  9.9489
  10  8.21924
  11  7.28133e-06
  12  16.7085
  13  0.00506688
  14  46.7845
  15  0.158562
  16  0.000738616
  17  0.000161842
  18  0.000510977
  19  5.63867
  20  7.34926
  21  1.6883e-05
  22  0.00655615
  23  0.175995
  24  0.0964374
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) = 14044.0425288
delta logL = 0.0831084236706

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.148e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.231e+00  1.093e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.585e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.033e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 1.09
Photon Flux (Free Index): 2.33e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.88e-06 +/- 1.12e-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/38304465/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.88e-06', photon_flux_error='4.03e-08', dlogl='8.31e-02', energy_flux='9.57e-06', photon_flux2='2.33e-08', job_status='DONE', time_completed='2026-09-15 09:44:50.919778', photon_index_error2='1.09', photon_index2='2.23', ts='1.21', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.12e-05', EG='2.02', time_epoch_completed='1789490690.92', return_code='0', job_id='38304465', GAL2='0.66', EG2='2.03', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.85e-08', ts2='1.37', photon_index='2.66' WHERE bin_id='945' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 09:44:51 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.840e+00  8.219e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.637e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.016e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 9.57e-06 +/- 1.00e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22686222254e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00963604015452 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38304470/likelihoodResults_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0452447
delta logL = 0.0803925762411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0425339
delta logL = 0.0831033846662

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.04     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1476        386.86        .37438E-03    .90645E-03
   2  Index         2.2311        5.9278        .38249       -.48962E-04
   3  Normalizat    2.0325        .88084E-01    .65230E-01    .18010E-04
   4  Prefactor     .65846        .55510E-01    .41845E-01    .68081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14763
  Index      = 2.23106
  Normalizat = 2.03255
  Prefactor  = 0.658461
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.04     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1476        10.008        .14975E-04   -1.5654    
   2  Index         2.2311        1.0809        .11967E-01   -.58691    
   3  Normalizat    2.0325        .20423        .28846E-03   -.63737    
   4  Prefactor     .65846        .11089        .25858E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00048e-09
Minuit parameter uncertainties:
  1  10.0076
  2  1.0934
  3  0.204315
  4  0.110926
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) = 14044.0425288
delta logL = 0.0831084236706

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.148e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.231e+00  1.093e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.585e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.033e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 1.09
Photon Flux (Free Index): 2.33e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.88e-06 +/- 1.12e-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/38304470/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.88e-06', photon_flux_error='4.03e-08', dlogl='8.31e-02', energy_flux='9.57e-06', photon_flux2='2.33e-08', job_status='DONE', time_completed='2026-09-15 09:44:56.845417', photon_index_error2='1.09', photon_index2='2.23', ts='1.21', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.12e-05', EG='2.02', time_epoch_completed='1789490696.85', return_code='0', job_id='38304470', GAL2='0.66', EG2='2.03', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.85e-08', ts2='1.37', photon_index='2.66' WHERE bin_id='945' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 09:44:56 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/38304551/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits.....................!
real 38.19
user 36.80
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38304551/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits', '/lscratch/kocevski/38304551/ft2_4FGL_J1238.5-1201_weekly_bin945.fits', expMap='/lscratch/kocevski/38304551/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', expCube='/lscratch/kocevski/38304551/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38304551/Model_4FGL_J1238.5-1201_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38304551/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38304551/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38304551/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38304551/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38304551/Model_4FGL_J1238.5-1201_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) = 14044.1946661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6434       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30639E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16033E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .23339E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9864       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5036       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.632       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9202       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83817E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5846       1.0000          .0000       .10000E+07
    13 'norm      '    .88252E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.503       1.0000          .0000       .10000E+07
    15 'norm      '    .44469       1.0000          .0000       .10000E+07
    16 'norm      '    .12293E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20948E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3827       1.0000          .0000       .10000E+07
    20 'norm      '    6.4675       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19952E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .56632E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    2.0167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14044.13     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1951 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6385        2.5702       -.97532E-08   -.28234E-03
   2  Prefactor     25.731        1.3084       -.89475E-08    .10713E-02
   3  Prefactor     .79381E-08    5.2598        .28978E-06** at limit **
   4  Prefactor     .30975E-07    4.1856        .70979E-07** at limit **
   5  norm           .0000        .99237       -.84496E-07** at limit **
   6  Prefactor     1.9832        3.4036       -.65959E-07   -.16871E-02
   7  Prefactor     6.5871        1.7956       -.88925E-08   -.13351E-03
   8  Prefactor     4.5270        4.2352       -.19750E-07   -.31055E-03
   9  Prefactor     17.662        3.9393        .32764E-07   -.12864    
  10  Prefactor     7.8403        7.7900        .18870E-07    .46019E-01
  11  Prefactor      .0000        1.3895        .17149E-07** at limit **
  12  Prefactor     6.5555        1.3288       -.86881E-08   -.93547E-02
  13  norm          .57093E-06    6.3258       -.58745E-07** at limit **
  14  Prefactor     29.132        46.674       -.87399E-06   -.18983E-02
  15  norm          .44426        .15452        .51827E-08    .13049E-01
  16  norm          .17042E-07    3.5352        .10078E-06** at limit **
  17  norm          .11102E-08    5.8404        .90649E-08** at limit **
  18  Prefactor     .71609E-08    8.7531       -.15321E-07** at limit **
  19  norm          5.3773        5.6309        .53903E-07    .11687E-02
  20  norm          6.4576        7.3529       -.76097E-07    .11988E-02
  21  Prefactor     .55511E-10    1.5877        .60860E-07** at limit **
  22  Prefactor     .89434E-06    5.7514       -.14254E-07** at limit **
  23  Normalizat    2.0159        .20511        .68118E-06    .10023E-03
  24  Prefactor     .66369        .11202        .20470E-06    .75318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63848
  Prefactor  = 25.7307
  Prefactor  = 7.93809e-09
  Prefactor  = 3.09752e-08
  norm       = 0
  Prefactor  = 1.98316
  Prefactor  = 6.58713
  Prefactor  = 4.52699
  Prefactor  = 17.6624
  Prefactor  = 7.84033
  Prefactor  = 0
  Prefactor  = 6.55554
  norm       = 5.70932e-07
  Prefactor  = 29.1322
  norm       = 0.444263
  norm       = 1.70419e-08
  norm       = 1.11022e-09
  Prefactor  = 7.16094e-09
  norm       = 5.37731
  norm       = 6.45756
  Prefactor  = 5.55112e-11
  Prefactor  = 8.9434e-07
  Normalizat = 2.01589
  Prefactor  = 0.663689
 GAL_V02
Working on...
/lscratch/kocevski/38304552/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits.....................!
real 38.25
user 36.80
sys 0.92

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38304552/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits', '/lscratch/kocevski/38304552/ft2_4FGL_J1238.5-1201_weekly_bin945.fits', expMap='/lscratch/kocevski/38304552/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', expCube='/lscratch/kocevski/38304552/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38304552/Model_4FGL_J1238.5-1201_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38304552/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38304552/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38304552/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38304552/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38304552/Model_4FGL_J1238.5-1201_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) = 14044.1946661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6434       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30639E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16033E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .23339E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9864       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5036       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.632       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9202       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83817E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5846       1.0000          .0000       .10000E+07
    13 'norm      '    .88252E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.503       1.0000          .0000       .10000E+07
    15 'norm      '    .44469       1.0000          .0000       .10000E+07
    16 'norm      '    .12293E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20948E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3827       1.0000          .0000       .10000E+07
    20 'norm      '    6.4675       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19952E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .56632E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    2.0167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14044.13     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1951 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6385        2.5702       -.97532E-08   -.28234E-03
   2  Prefactor     25.731        1.3084       -.89475E-08    .10713E-02
   3  Prefactor     .79381E-08    5.2598        .28978E-06** at limit **
   4  Prefactor     .30975E-07    4.1856        .70979E-07** at limit **
   5  norm           .0000        .99237       -.84496E-07** at limit **
   6  Prefactor     1.9832        3.4036       -.65959E-07   -.16871E-02
   7  Prefactor     6.5871        1.7956       -.88925E-08   -.13351E-03
   8  Prefactor     4.5270        4.2352       -.19750E-07   -.31055E-03
   9  Prefactor     17.662        3.9393        .32764E-07   -.12864    
  10  Prefactor     7.8403        7.7900        .18870E-07    .46019E-01
  11  Prefactor      .0000        1.3895        .17149E-07** at limit **
  12  Prefactor     6.5555        1.3288       -.86881E-08   -.93547E-02
  13  norm          .57093E-06    6.3258       -.58745E-07** at limit **
  14  Prefactor     29.132        46.674       -.87399E-06   -.18983E-02
  15  norm          .44426        .15452        .51827E-08    .13049E-01
  16  norm          .17042E-07    3.5352        .10078E-06** at limit **
  17  norm          .11102E-08    5.8404        .90649E-08** at limit **
  18  Prefactor     .71609E-08    8.7531       -.15321E-07** at limit **
  19  norm          5.3773        5.6309        .53903E-07    .11687E-02
  20  norm          6.4576        7.3529       -.76097E-07    .11988E-02
  21  Prefactor     .55511E-10    1.5877        .60860E-07** at limit **
  22  Prefactor     .89434E-06    5.7514       -.14254E-07** at limit **
  23  Normalizat    2.0159        .20511        .68118E-06    .10023E-03
  24  Prefactor     .66369        .11202        .20470E-06    .75318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63848
  Prefactor  = 25.7307
  Prefactor  = 7.93809e-09
  Prefactor  = 3.09752e-08
  norm       = 0
  Prefactor  = 1.98316
  Prefactor  = 6.58713
  Prefactor  = 4.52699
  Prefactor  = 17.6624
  Prefactor  = 7.84033
  Prefactor  = 0
  Prefactor  = 6.55554
  norm       = 5.70932e-07
  Prefactor  = 29.1322
  norm       = 0.444263
  norm       = 1.70419e-08
  norm       = 1.11022e-09
  Prefactor  = 7.16094e-09
  norm       = 5.37731
  norm       = 6.45756
  Prefactor  = 5.55112e-11
  Prefactor  = 8.9434e-07
  Normalizat = 2.01589
  Prefactor  = 0.663689
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.840e+00  8.219e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.637e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.016e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 9.57e-06 +/- 1.00e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22686222254e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00963604015452 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38304468/likelihoodResults_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0452447
delta logL = 0.0803925762411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0425339
delta logL = 0.0831033846662

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.04     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1476        386.86        .37438E-03    .90645E-03
   2  Index         2.2311        5.9278        .38249       -.48962E-04
   3  Normalizat    2.0325        .88084E-01    .65230E-01    .18010E-04
   4  Prefactor     .65846        .55510E-01    .41845E-01    .68081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14763
  Index      = 2.23106
  Normalizat = 2.03255
  Prefactor  = 0.658461
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.04     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1476        10.008        .14975E-04   -1.5654    
   2  Index         2.2311        1.0809        .11967E-01   -.58691    
   3  Normalizat    2.0325        .20423        .28846E-03   -.63737    
   4  Prefactor     .65846        .11089        .25858E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00048e-09
Minuit parameter uncertainties:
  1  10.0076
  2  1.0934
  3  0.204315
  4  0.110926
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) = 14044.0425288
delta logL = 0.0831084236706

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.148e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.231e+00  1.093e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.585e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.033e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 1.09
Photon Flux (Free Index): 2.33e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.88e-06 +/- 1.12e-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/38304468/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.88e-06', photon_flux_error='4.03e-08', dlogl='8.31e-02', energy_flux='9.57e-06', photon_flux2='2.33e-08', job_status='DONE', time_completed='2026-09-15 09:45:14.196660', photon_index_error2='1.09', photon_index2='2.23', ts='1.21', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.12e-05', EG='2.02', time_epoch_completed='1789490714.2', return_code='0', job_id='38304468', GAL2='0.66', EG2='2.03', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.85e-08', ts2='1.37', photon_index='2.66' WHERE bin_id='945' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 09:45:14 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/38304559/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits.....................!
real 38.39
user 37.16
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38304559/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits', '/lscratch/kocevski/38304559/ft2_4FGL_J1238.5-1201_weekly_bin945.fits', expMap='/lscratch/kocevski/38304559/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', expCube='/lscratch/kocevski/38304559/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38304559/Model_4FGL_J1238.5-1201_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38304559/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38304559/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38304559/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38304559/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38304559/Model_4FGL_J1238.5-1201_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) = 14044.1946661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6434       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30639E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16033E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .23339E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9864       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5036       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.632       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9202       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83817E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5846       1.0000          .0000       .10000E+07
    13 'norm      '    .88252E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.503       1.0000          .0000       .10000E+07
    15 'norm      '    .44469       1.0000          .0000       .10000E+07
    16 'norm      '    .12293E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20948E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3827       1.0000          .0000       .10000E+07
    20 'norm      '    6.4675       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19952E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .56632E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    2.0167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14044.13     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1951 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6385        2.5702       -.97532E-08   -.28234E-03
   2  Prefactor     25.731        1.3084       -.89475E-08    .10713E-02
   3  Prefactor     .79381E-08    5.2598        .28978E-06** at limit **
   4  Prefactor     .30975E-07    4.1856        .70979E-07** at limit **
   5  norm           .0000        .99237       -.84496E-07** at limit **
   6  Prefactor     1.9832        3.4036       -.65959E-07   -.16871E-02
   7  Prefactor     6.5871        1.7956       -.88925E-08   -.13351E-03
   8  Prefactor     4.5270        4.2352       -.19750E-07   -.31055E-03
   9  Prefactor     17.662        3.9393        .32764E-07   -.12864    
  10  Prefactor     7.8403        7.7900        .18870E-07    .46019E-01
  11  Prefactor      .0000        1.3895        .17149E-07** at limit **
  12  Prefactor     6.5555        1.3288       -.86881E-08   -.93547E-02
  13  norm          .57093E-06    6.3258       -.58745E-07** at limit **
  14  Prefactor     29.132        46.674       -.87399E-06   -.18983E-02
  15  norm          .44426        .15452        .51827E-08    .13049E-01
  16  norm          .17042E-07    3.5352        .10078E-06** at limit **
  17  norm          .11102E-08    5.8404        .90649E-08** at limit **
  18  Prefactor     .71609E-08    8.7531       -.15321E-07** at limit **
  19  norm          5.3773        5.6309        .53903E-07    .11687E-02
  20  norm          6.4576        7.3529       -.76097E-07    .11988E-02
  21  Prefactor     .55511E-10    1.5877        .60860E-07** at limit **
  22  Prefactor     .89434E-06    5.7514       -.14254E-07** at limit **
  23  Normalizat    2.0159        .20511        .68118E-06    .10023E-03
  24  Prefactor     .66369        .11202        .20470E-06    .75318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63848
  Prefactor  = 25.7307
  Prefactor  = 7.93809e-09
  Prefactor  = 3.09752e-08
  norm       = 0
  Prefactor  = 1.98316
  Prefactor  = 6.58713
  Prefactor  = 4.52699
  Prefactor  = 17.6624
  Prefactor  = 7.84033
  Prefactor  = 0
  Prefactor  = 6.55554
  norm       = 5.70932e-07
  Prefactor  = 29.1322
  norm       = 0.444263
  norm       = 1.70419e-08
  norm       = 1.11022e-09
  Prefactor  = 7.16094e-09
  norm       = 5.37731
  norm       = 6.45756
  Prefactor  = 5.55112e-11
  Prefactor  = 8.9434e-07
  Normalizat = 2.01589
  Prefactor  = 0.663689
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.13     FROM HESSE     STATUS=OK           447 CALLS     2398 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6385        2.5905        .62682E-03   -1.5675    
   2  Prefactor     25.731        13.923        .19718E-03   -1.5607    
   3  Prefactor     .79381E-08    5.3375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30975E-07    7.4922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9832        3.4357        .73495E-03   -1.5680    
   7  Prefactor     6.5871        1.8045        .39081E-02   -1.5195    
   8  Prefactor     4.5270        4.2327        .47419E-03   -1.5665    
   9  Prefactor     17.662        9.9489        .23825E-03   -1.5624    
  10  Prefactor     7.8403        8.2192        .35605E-03   -1.5652    
  11  Prefactor      .0000        1.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5555        16.708        .39084E-03   -1.5657    
  13  norm          .57093E-06    11.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.132        46.784        .16553E-03   -1.5600    
  15  norm          .44426        .15856        .59396E-03   -1.5695    
  16  norm          .17042E-07    8.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71609E-08    9.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3773        5.6387        .43291E-03   -1.5662    
  20  norm          6.4576        7.3492        .39441E-03   -1.5657    
  21  Prefactor     .55511E-10    1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89434E-06    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0159        .17594        .65430E-01   -.64153    
  24  Prefactor     .66369        .96413E-01    .41891E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46862e-07
Minuit parameter uncertainties:
  1  2.59048
  2  13.9234
  3  0.00041203
  4  0.00096322
  5  8.58979e-06
  6  3.43568
  7  1.80447
  8  4.23274
  9  9.9489
  10  8.21924
  11  7.28133e-06
  12  16.7085
  13  0.00506688
  14  46.7845
  15  0.158562
  16  0.000738616
  17  0.000161842
  18  0.000510977
  19  5.63867
  20  7.34926
  21  1.6883e-05
  22  0.00655615
  23  0.175995
  24  0.0964374
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.13     FROM HESSE     STATUS=OK           447 CALLS     2398 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6385        2.5905        .62682E-03   -1.5675    
   2  Prefactor     25.731        13.923        .19718E-03   -1.5607    
   3  Prefactor     .79381E-08    5.3375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30975E-07    7.4922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9832        3.4357        .73495E-03   -1.5680    
   7  Prefactor     6.5871        1.8045        .39081E-02   -1.5195    
   8  Prefactor     4.5270        4.2327        .47419E-03   -1.5665    
   9  Prefactor     17.662        9.9489        .23825E-03   -1.5624    
  10  Prefactor     7.8403        8.2192        .35605E-03   -1.5652    
  11  Prefactor      .0000        1.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5555        16.708        .39084E-03   -1.5657    
  13  norm          .57093E-06    11.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.132        46.784        .16553E-03   -1.5600    
  15  norm          .44426        .15856        .59396E-03   -1.5695    
  16  norm          .17042E-07    8.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71609E-08    9.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3773        5.6387        .43291E-03   -1.5662    
  20  norm          6.4576        7.3492        .39441E-03   -1.5657    
  21  Prefactor     .55511E-10    1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89434E-06    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0159        .17594        .65430E-01   -.64153    
  24  Prefactor     .66369        .96413E-01    .41891E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46862e-07
Minuit parameter uncertainties:
  1  2.59048
  2  13.9234
  3  0.00041203
  4  0.00096322
  5  8.58979e-06
  6  3.43568
  7  1.80447
  8  4.23274
  9  9.9489
  10  8.21924
  11  7.28133e-06
  12  16.7085
  13  0.00506688
  14  46.7845
  15  0.158562
  16  0.000738616
  17  0.000161842
  18  0.000510977
  19  5.63867
  20  7.34926
  21  1.6883e-05
  22  0.00655615
  23  0.175995
  24  0.0964374
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.13     FROM HESSE     STATUS=OK           447 CALLS     2398 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6385        2.5905        .62682E-03   -1.5675    
   2  Prefactor     25.731        13.923        .19718E-03   -1.5607    
   3  Prefactor     .79381E-08    5.3375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30975E-07    7.4922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9832        3.4357        .73495E-03   -1.5680    
   7  Prefactor     6.5871        1.8045        .39081E-02   -1.5195    
   8  Prefactor     4.5270        4.2327        .47419E-03   -1.5665    
   9  Prefactor     17.662        9.9489        .23825E-03   -1.5624    
  10  Prefactor     7.8403        8.2192        .35605E-03   -1.5652    
  11  Prefactor      .0000        1.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5555        16.708        .39084E-03   -1.5657    
  13  norm          .57093E-06    11.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.132        46.784        .16553E-03   -1.5600    
  15  norm          .44426        .15856        .59396E-03   -1.5695    
  16  norm          .17042E-07    8.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71609E-08    9.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3773        5.6387        .43291E-03   -1.5662    
  20  norm          6.4576        7.3492        .39441E-03   -1.5657    
  21  Prefactor     .55511E-10    1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89434E-06    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0159        .17594        .65430E-01   -.64153    
  24  Prefactor     .66369        .96413E-01    .41891E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46862e-07
Minuit parameter uncertainties:
  1  2.59048
  2  13.9234
  3  0.00041203
  4  0.00096322
  5  8.58979e-06
  6  3.43568
  7  1.80447
  8  4.23274
  9  9.9489
  10  8.21924
  11  7.28133e-06
  12  16.7085
  13  0.00506688
  14  46.7845
  15  0.158562
  16  0.000738616
  17  0.000161842
  18  0.000510977
  19  5.63867
  20  7.34926
  21  1.6883e-05
  22  0.00655615
  23  0.175995
  24  0.0964374
e GAL_V02
Working on...
/lscratch/kocevski/38304528/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits.....................!
real 42.89
user 41.22
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38304528/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits', '/lscratch/kocevski/38304528/ft2_4FGL_J1238.5-1201_weekly_bin945.fits', expMap='/lscratch/kocevski/38304528/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', expCube='/lscratch/kocevski/38304528/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38304528/Model_4FGL_J1238.5-1201_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38304528/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38304528/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38304528/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38304528/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38304528/Model_4FGL_J1238.5-1201_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) = 14044.1946661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6434       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30639E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16033E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .23339E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9864       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5036       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.632       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9202       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83817E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5846       1.0000          .0000       .10000E+07
    13 'norm      '    .88252E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.503       1.0000          .0000       .10000E+07
    15 'norm      '    .44469       1.0000          .0000       .10000E+07
    16 'norm      '    .12293E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20948E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3827       1.0000          .0000       .10000E+07
    20 'norm      '    6.4675       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19952E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .56632E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    2.0167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14044.13     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1951 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6385        2.5702       -.97532E-08   -.28234E-03
   2  Prefactor     25.731        1.3084       -.89475E-08    .10713E-02
   3  Prefactor     .79381E-08    5.2598        .28978E-06** at limit **
   4  Prefactor     .30975E-07    4.1856        .70979E-07** at limit **
   5  norm           .0000        .99237       -.84496E-07** at limit **
   6  Prefactor     1.9832        3.4036       -.65959E-07   -.16871E-02
   7  Prefactor     6.5871        1.7956       -.88925E-08   -.13351E-03
   8  Prefactor     4.5270        4.2352       -.19750E-07   -.31055E-03
   9  Prefactor     17.662        3.9393        .32764E-07   -.12864    
  10  Prefactor     7.8403        7.7900        .18870E-07    .46019E-01
  11  Prefactor      .0000        1.3895        .17149E-07** at limit **
  12  Prefactor     6.5555        1.3288       -.86881E-08   -.93547E-02
  13  norm          .57093E-06    6.3258       -.58745E-07** at limit **
  14  Prefactor     29.132        46.674       -.87399E-06   -.18983E-02
  15  norm          .44426        .15452        .51827E-08    .13049E-01
  16  norm          .17042E-07    3.5352        .10078E-06** at limit **
  17  norm          .11102E-08    5.8404        .90649E-08** at limit **
  18  Prefactor     .71609E-08    8.7531       -.15321E-07** at limit **
  19  norm          5.3773        5.6309        .53903E-07    .11687E-02
  20  norm          6.4576        7.3529       -.76097E-07    .11988E-02
  21  Prefactor     .55511E-10    1.5877        .60860E-07** at limit **
  22  Prefactor     .89434E-06    5.7514       -.14254E-07** at limit **
  23  Normalizat    2.0159        .20511        .68118E-06    .10023E-03
  24  Prefactor     .66369        .11202        .20470E-06    .75318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63848
  Prefactor  = 25.7307
  Prefactor  = 7.93809e-09
  Prefactor  = 3.09752e-08
  norm       = 0
  Prefactor  = 1.98316
  Prefactor  = 6.58713
  Prefactor  = 4.52699
  Prefactor  = 17.6624
  Prefactor  = 7.84033
  Prefactor  = 0
  Prefactor  = 6.55554
  norm       = 5.70932e-07
  Prefactor  = 29.1322
  norm       = 0.444263
  norm       = 1.70419e-08
  norm       = 1.11022e-09
  Prefactor  = 7.16094e-09
  norm       = 5.37731
  norm       = 6.45756
  Prefactor  = 5.55112e-11
  Prefactor  = 8.9434e-07
  Normalizat = 2.01589
  Prefactor  = 0.663689
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.13     FROM HESSE     STATUS=OK           447 CALLS     2398 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6385        2.5905        .62682E-03   -1.5675    
   2  Prefactor     25.731        13.923        .19718E-03   -1.5607    
   3  Prefactor     .79381E-08    5.3375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30975E-07    7.4922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9832        3.4357        .73495E-03   -1.5680    
   7  Prefactor     6.5871        1.8045        .39081E-02   -1.5195    
   8  Prefactor     4.5270        4.2327        .47419E-03   -1.5665    
   9  Prefactor     17.662        9.9489        .23825E-03   -1.5624    
  10  Prefactor     7.8403        8.2192        .35605E-03   -1.5652    
  11  Prefactor      .0000        1.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5555        16.708        .39084E-03   -1.5657    
  13  norm          .57093E-06    11.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.132        46.784        .16553E-03   -1.5600    
  15  norm          .44426        .15856        .59396E-03   -1.5695    
  16  norm          .17042E-07    8.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71609E-08    9.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3773        5.6387        .43291E-03   -1.5662    
  20  norm          6.4576        7.3492        .39441E-03   -1.5657    
  21  Prefactor     .55511E-10    1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89434E-06    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0159        .17594        .65430E-01   -.64153    
  24  Prefactor     .66369        .96413E-01    .41891E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46862e-07
Minuit parameter uncertainties:
  1  2.59048
  2  13.9234
  3  0.00041203
  4  0.00096322
  5  8.58979e-06
  6  3.43568
  7  1.80447
  8  4.23274
  9  9.9489
  10  8.21924
  11  7.28133e-06
  12  16.7085
  13  0.00506688
  14  46.7845
  15  0.158562
  16  0.000738616
  17  0.000161842
  18  0.000510977
  19  5.63867
  20  7.34926
  21  1.6883e-05
  22  0.00655615
  23  0.175995
  24  0.0964374
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.840e+00  8.219e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.637e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.016e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 9.57e-06 +/- 1.00e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22686222254e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00963604015452 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38304506/likelihoodResults_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0452447
delta logL = 0.0803925762411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0425339
delta logL = 0.0831033846662

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.04     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1476        386.86        .37438E-03    .90645E-03
   2  Index         2.2311        5.9278        .38249       -.48962E-04
   3  Normalizat    2.0325        .88084E-01    .65230E-01    .18010E-04
   4  Prefactor     .65846        .55510E-01    .41845E-01    .68081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14763
  Index      = 2.23106
  Normalizat = 2.03255
  Prefactor  = 0.658461
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.04     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1476        10.008        .14975E-04   -1.5654    
   2  Index         2.2311        1.0809        .11967E-01   -.58691    
   3  Normalizat    2.0325        .20423        .28846E-03   -.63737    
   4  Prefactor     .65846        .11089        .25858E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00048e-09
Minuit parameter uncertainties:
  1  10.0076
  2  1.0934
  3  0.204315
  4  0.110926
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) = 14044.0425288
delta logL = 0.0831084236706

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.148e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.231e+00  1.093e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.585e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.033e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 1.09
Photon Flux (Free Index): 2.33e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.88e-06 +/- 1.12e-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/38304506/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.88e-06', photon_flux_error='4.03e-08', dlogl='8.31e-02', energy_flux='9.57e-06', photon_flux2='2.33e-08', job_status='DONE', time_completed='2026-09-15 09:45:51.331220', photon_index_error2='1.09', photon_index2='2.23', ts='1.21', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.12e-05', EG='2.02', time_epoch_completed='1789490751.33', return_code='0', job_id='38304506', GAL2='0.66', EG2='2.03', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.85e-08', ts2='1.37', photon_index='2.66' WHERE bin_id='945' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 09:45:51 PDT 2026

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

 FCN=   14044.13     FROM HESSE     STATUS=OK           447 CALLS     2398 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6385        2.5905        .62682E-03   -1.5675    
   2  Prefactor     25.731        13.923        .19718E-03   -1.5607    
   3  Prefactor     .79381E-08    5.3375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30975E-07    7.4922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9832        3.4357        .73495E-03   -1.5680    
   7  Prefactor     6.5871        1.8045        .39081E-02   -1.5195    
   8  Prefactor     4.5270        4.2327        .47419E-03   -1.5665    
   9  Prefactor     17.662        9.9489        .23825E-03   -1.5624    
  10  Prefactor     7.8403        8.2192        .35605E-03   -1.5652    
  11  Prefactor      .0000        1.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5555        16.708        .39084E-03   -1.5657    
  13  norm          .57093E-06    11.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.132        46.784        .16553E-03   -1.5600    
  15  norm          .44426        .15856        .59396E-03   -1.5695    
  16  norm          .17042E-07    8.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71609E-08    9.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3773        5.6387        .43291E-03   -1.5662    
  20  norm          6.4576        7.3492        .39441E-03   -1.5657    
  21  Prefactor     .55511E-10    1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89434E-06    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0159        .17594        .65430E-01   -.64153    
  24  Prefactor     .66369        .96413E-01    .41891E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46862e-07
Minuit parameter uncertainties:
  1  2.59048
  2  13.9234
  3  0.00041203
  4  0.00096322
  5  8.58979e-06
  6  3.43568
  7  1.80447
  8  4.23274
  9  9.9489
  10  8.21924
  11  7.28133e-06
  12  16.7085
  13  0.00506688
  14  46.7845
  15  0.158562
  16  0.000738616
  17  0.000161842
  18  0.000510977
  19  5.63867
  20  7.34926
  21  1.6883e-05
  22  0.00655615
  23  0.175995
  24  0.0964374
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.840e+00  8.219e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.637e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.016e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 9.57e-06 +/- 1.00e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22686222254e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00963604015452 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38304516/likelihoodResults_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0452447
delta logL = 0.0803925762411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0425339
delta logL = 0.0831033846662

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.04     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1476        386.86        .37438E-03    .90645E-03
   2  Index         2.2311        5.9278        .38249       -.48962E-04
   3  Normalizat    2.0325        .88084E-01    .65230E-01    .18010E-04
   4  Prefactor     .65846        .55510E-01    .41845E-01    .68081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14763
  Index      = 2.23106
  Normalizat = 2.03255
  Prefactor  = 0.658461
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.04     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1476        10.008        .14975E-04   -1.5654    
   2  Index         2.2311        1.0809        .11967E-01   -.58691    
   3  Normalizat    2.0325        .20423        .28846E-03   -.63737    
   4  Prefactor     .65846        .11089        .25858E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00048e-09
Minuit parameter uncertainties:
  1  10.0076
  2  1.0934
  3  0.204315
  4  0.110926
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.840e+00  8.219e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.637e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.016e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 9.57e-06 +/- 1.00e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22686222254e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00963604015452 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38304551/likelihoodResults_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0452447
delta logL = 0.0803925762411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0425339
delta logL = 0.0831033846662

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.04     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1476        386.86        .37438E-03    .90645E-03
   2  Index         2.2311        5.9278        .38249       -.48962E-04
   3  Normalizat    2.0325        .88084E-01    .65230E-01    .18010E-04
   4  Prefactor     .65846        .55510E-01    .41845E-01    .68081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14763
  Index      = 2.23106
  Normalizat = 2.03255
  Prefactor  = 0.658461
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.04     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1476        10.008        .14975E-04   -1.5654    
   2  Index         2.2311        1.0809        .11967E-01   -.58691    
   3  Normalizat    2.0325        .20423        .28846E-03   -.63737    
   4  Prefactor     .65846        .11089        .25858E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00048e-09
Minuit parameter uncertainties:
  1  10.0076
  2  1.0934
  3  0.204315
  4  0.110926
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) = 14044.0425288
delta logL = 0.0831084236706

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.148e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.231e+00  1.093e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.585e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.033e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 1.09
Photon Flux (Free Index): 2.33e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.88e-06 +/- 1.12e-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/38304516/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.88e-06', photon_flux_error='4.03e-08', dlogl='8.31e-02', energy_flux='9.57e-06', photon_flux2='2.33e-08', job_status='DONE', time_completed='2026-09-15 09:46:19.135113', photon_index_error2='1.09', photon_index2='2.23', ts='1.21', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.12e-05', EG='2.02', time_epoch_completed='1789490779.14', return_code='0', job_id='38304516', GAL2='0.66', EG2='2.03', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.85e-08', ts2='1.37', photon_index='2.66' WHERE bin_id='945' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 09:46:19 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.840e+00  8.219e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.637e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.016e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 9.57e-06 +/- 1.00e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22686222254e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00963604015452 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38304552/likelihoodResults_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0452447
delta logL = 0.0803925762411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0425339
delta logL = 0.0831033846662

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.04     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1476        386.86        .37438E-03    .90645E-03
   2  Index         2.2311        5.9278        .38249       -.48962E-04
   3  Normalizat    2.0325        .88084E-01    .65230E-01    .18010E-04
   4  Prefactor     .65846        .55510E-01    .41845E-01    .68081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14763
  Index      = 2.23106
  Normalizat = 2.03255
  Prefactor  = 0.658461
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) = 14044.0425288
delta logL = 0.0831084236706

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.148e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.231e+00  1.093e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.585e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.033e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 1.09
Photon Flux (Free Index): 2.33e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.88e-06 +/- 1.12e-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/38304551/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.88e-06', photon_flux_error='4.03e-08', dlogl='8.31e-02', energy_flux='9.57e-06', photon_flux2='2.33e-08', job_status='DONE', time_completed='2026-09-15 09:46:20.878317', photon_index_error2='1.09', photon_index2='2.23', ts='1.21', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.12e-05', EG='2.02', time_epoch_completed='1789490780.88', return_code='0', job_id='38304551', GAL2='0.66', EG2='2.03', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.85e-08', ts2='1.37', photon_index='2.66' WHERE bin_id='945' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 09:46:21 PDT 2026

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

 FCN=   14044.04     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1476        10.008        .14975E-04   -1.5654    
   2  Index         2.2311        1.0809        .11967E-01   -.58691    
   3  Normalizat    2.0325        .20423        .28846E-03   -.63737    
   4  Prefactor     .65846        .11089        .25858E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00048e-09
Minuit parameter uncertainties:
  1  10.0076
  2  1.0934
  3  0.204315
  4  0.110926
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) = 14044.0425288
delta logL = 0.0831084236706

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.148e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.231e+00  1.093e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.585e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.033e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 1.09
Photon Flux (Free Index): 2.33e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.88e-06 +/- 1.12e-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/38304552/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.88e-06', photon_flux_error='4.03e-08', dlogl='8.31e-02', energy_flux='9.57e-06', photon_flux2='2.33e-08', job_status='DONE', time_completed='2026-09-15 09:46:24.048633', photon_index_error2='1.09', photon_index2='2.23', ts='1.21', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.12e-05', EG='2.02', time_epoch_completed='1789490784.05', return_code='0', job_id='38304552', GAL2='0.66', EG2='2.03', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.85e-08', ts2='1.37', photon_index='2.66' WHERE bin_id='945' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 09:46:24 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.840e+00  8.219e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.637e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.016e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 9.57e-06 +/- 1.00e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22686222254e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00963604015452 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38304559/likelihoodResults_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0452447
delta logL = 0.0803925762411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0425339
delta logL = 0.0831033846662

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.04     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1476        386.86        .37438E-03    .90645E-03
   2  Index         2.2311        5.9278        .38249       -.48962E-04
   3  Normalizat    2.0325        .88084E-01    .65230E-01    .18010E-04
   4  Prefactor     .65846        .55510E-01    .41845E-01    .68081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14763
  Index      = 2.23106
  Normalizat = 2.03255
  Prefactor  = 0.658461
e GAL_V02
Working on...
/lscratch/kocevski/38304583/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits.....................!
real 42.27
user 40.72
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38304583/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits', '/lscratch/kocevski/38304583/ft2_4FGL_J1238.5-1201_weekly_bin945.fits', expMap='/lscratch/kocevski/38304583/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', expCube='/lscratch/kocevski/38304583/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38304583/Model_4FGL_J1238.5-1201_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38304583/ft1_filtered_4FGL_J1238.5-1201_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38304583/ft2_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38304583/expmap_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38304583/ltcube_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38304583/Model_4FGL_J1238.5-1201_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) = 14044.1946661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6434       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.729       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30639E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16033E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .23339E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9864       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5036       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.632       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9202       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83817E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5846       1.0000          .0000       .10000E+07
    13 'norm      '    .88252E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.503       1.0000          .0000       .10000E+07
    15 'norm      '    .44469       1.0000          .0000       .10000E+07
    16 'norm      '    .12293E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20948E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3827       1.0000          .0000       .10000E+07
    20 'norm      '    6.4675       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19952E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .56632E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    2.0167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14044.13     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1951 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6385        2.5702       -.97532E-08   -.28234E-03
   2  Prefactor     25.731        1.3084       -.89475E-08    .10713E-02
   3  Prefactor     .79381E-08    5.2598        .28978E-06** at limit **
   4  Prefactor     .30975E-07    4.1856        .70979E-07** at limit **
   5  norm           .0000        .99237       -.84496E-07** at limit **
   6  Prefactor     1.9832        3.4036       -.65959E-07   -.16871E-02
   7  Prefactor     6.5871        1.7956       -.88925E-08   -.13351E-03
   8  Prefactor     4.5270        4.2352       -.19750E-07   -.31055E-03
   9  Prefactor     17.662        3.9393        .32764E-07   -.12864    
  10  Prefactor     7.8403        7.7900        .18870E-07    .46019E-01
  11  Prefactor      .0000        1.3895        .17149E-07** at limit **
  12  Prefactor     6.5555        1.3288       -.86881E-08   -.93547E-02
  13  norm          .57093E-06    6.3258       -.58745E-07** at limit **
  14  Prefactor     29.132        46.674       -.87399E-06   -.18983E-02
  15  norm          .44426        .15452        .51827E-08    .13049E-01
  16  norm          .17042E-07    3.5352        .10078E-06** at limit **
  17  norm          .11102E-08    5.8404        .90649E-08** at limit **
  18  Prefactor     .71609E-08    8.7531       -.15321E-07** at limit **
  19  norm          5.3773        5.6309        .53903E-07    .11687E-02
  20  norm          6.4576        7.3529       -.76097E-07    .11988E-02
  21  Prefactor     .55511E-10    1.5877        .60860E-07** at limit **
  22  Prefactor     .89434E-06    5.7514       -.14254E-07** at limit **
  23  Normalizat    2.0159        .20511        .68118E-06    .10023E-03
  24  Prefactor     .66369        .11202        .20470E-06    .75318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63848
  Prefactor  = 25.7307
  Prefactor  = 7.93809e-09
  Prefactor  = 3.09752e-08
  norm       = 0
  Prefactor  = 1.98316
  Prefactor  = 6.58713
  Prefactor  = 4.52699
  Prefactor  = 17.6624
  Prefactor  = 7.84033
  Prefactor  = 0
  Prefactor  = 6.55554
  norm       = 5.70932e-07
  Prefactor  = 29.1322
  norm       = 0.444263
  norm       = 1.70419e-08
  norm       = 1.11022e-09
  Prefactor  = 7.16094e-09
  norm       = 5.37731
  norm       = 6.45756
  Prefactor  = 5.55112e-11
  Prefactor  = 8.9434e-07
  Normalizat = 2.01589
  Prefactor  = 0.663689
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.04     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1476        10.008        .14975E-04   -1.5654    
   2  Index         2.2311        1.0809        .11967E-01   -.58691    
   3  Normalizat    2.0325        .20423        .28846E-03   -.63737    
   4  Prefactor     .65846        .11089        .25858E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00048e-09
Minuit parameter uncertainties:
  1  10.0076
  2  1.0934
  3  0.204315
  4  0.110926
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) = 14044.0425288
delta logL = 0.0831084236706

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.148e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.231e+00  1.093e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.585e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.033e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 1.09
Photon Flux (Free Index): 2.33e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.88e-06 +/- 1.12e-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/38304559/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.88e-06', photon_flux_error='4.03e-08', dlogl='8.31e-02', energy_flux='9.57e-06', photon_flux2='2.33e-08', job_status='DONE', time_completed='2026-09-15 09:46:41.960701', photon_index_error2='1.09', photon_index2='2.23', ts='1.21', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.12e-05', EG='2.02', time_epoch_completed='1789490801.96', return_code='0', job_id='38304559', GAL2='0.66', EG2='2.03', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.85e-08', ts2='1.37', photon_index='2.66' WHERE bin_id='945' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 09:46:42 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.840e+00  8.219e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.637e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.016e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 9.57e-06 +/- 1.00e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22686222254e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00963604015452 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38304528/likelihoodResults_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0452447
delta logL = 0.0803925762411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0425339
delta logL = 0.0831033846662

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.04     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1476        386.86        .37438E-03    .90645E-03
   2  Index         2.2311        5.9278        .38249       -.48962E-04
   3  Normalizat    2.0325        .88084E-01    .65230E-01    .18010E-04
   4  Prefactor     .65846        .55510E-01    .41845E-01    .68081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14763
  Index      = 2.23106
  Normalizat = 2.03255
  Prefactor  = 0.658461
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.04     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1476        10.008        .14975E-04   -1.5654    
   2  Index         2.2311        1.0809        .11967E-01   -.58691    
   3  Normalizat    2.0325        .20423        .28846E-03   -.63737    
   4  Prefactor     .65846        .11089        .25858E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00048e-09
Minuit parameter uncertainties:
  1  10.0076
  2  1.0934
  3  0.204315
  4  0.110926
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) = 14044.0425288
delta logL = 0.0831084236706

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.148e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.231e+00  1.093e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.585e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.033e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 1.09
Photon Flux (Free Index): 2.33e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.88e-06 +/- 1.12e-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/38304528/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.88e-06', photon_flux_error='4.03e-08', dlogl='8.31e-02', energy_flux='9.57e-06', photon_flux2='2.33e-08', job_status='DONE', time_completed='2026-09-15 09:47:05.183483', photon_index_error2='1.09', photon_index2='2.23', ts='1.21', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.12e-05', EG='2.02', time_epoch_completed='1789490825.18', return_code='0', job_id='38304528', GAL2='0.66', EG2='2.03', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.85e-08', ts2='1.37', photon_index='2.66' WHERE bin_id='945' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 09:47:05 PDT 2026

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

 FCN=   14044.13     FROM HESSE     STATUS=OK           447 CALLS     2398 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6385        2.5905        .62682E-03   -1.5675    
   2  Prefactor     25.731        13.923        .19718E-03   -1.5607    
   3  Prefactor     .79381E-08    5.3375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30975E-07    7.4922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9832        3.4357        .73495E-03   -1.5680    
   7  Prefactor     6.5871        1.8045        .39081E-02   -1.5195    
   8  Prefactor     4.5270        4.2327        .47419E-03   -1.5665    
   9  Prefactor     17.662        9.9489        .23825E-03   -1.5624    
  10  Prefactor     7.8403        8.2192        .35605E-03   -1.5652    
  11  Prefactor      .0000        1.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5555        16.708        .39084E-03   -1.5657    
  13  norm          .57093E-06    11.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.132        46.784        .16553E-03   -1.5600    
  15  norm          .44426        .15856        .59396E-03   -1.5695    
  16  norm          .17042E-07    8.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-08    5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71609E-08    9.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3773        5.6387        .43291E-03   -1.5662    
  20  norm          6.4576        7.3492        .39441E-03   -1.5657    
  21  Prefactor     .55511E-10    1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89434E-06    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0159        .17594        .65430E-01   -.64153    
  24  Prefactor     .66369        .96413E-01    .41891E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46862e-07
Minuit parameter uncertainties:
  1  2.59048
  2  13.9234
  3  0.00041203
  4  0.00096322
  5  8.58979e-06
  6  3.43568
  7  1.80447
  8  4.23274
  9  9.9489
  10  8.21924
  11  7.28133e-06
  12  16.7085
  13  0.00506688
  14  46.7845
  15  0.158562
  16  0.000738616
  17  0.000161842
  18  0.000510977
  19  5.63867
  20  7.34926
  21  1.6883e-05
  22  0.00655615
  23  0.175995
  24  0.0964374
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.840e+00  8.219e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.637e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.016e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 9.57e-06 +/- 1.00e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22686222254e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00963604015452 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38304583/likelihoodResults_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0452447
delta logL = 0.0803925762411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.0425339
delta logL = 0.0831033846662

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.04     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1476        386.86        .37438E-03    .90645E-03
   2  Index         2.2311        5.9278        .38249       -.48962E-04
   3  Normalizat    2.0325        .88084E-01    .65230E-01    .18010E-04
   4  Prefactor     .65846        .55510E-01    .41845E-01    .68081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14763
  Index      = 2.23106
  Normalizat = 2.03255
  Prefactor  = 0.658461
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.04     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1476        10.008        .14975E-04   -1.5654    
   2  Index         2.2311        1.0809        .11967E-01   -.58691    
   3  Normalizat    2.0325        .20423        .28846E-03   -.63737    
   4  Prefactor     .65846        .11089        .25858E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00048e-09
Minuit parameter uncertainties:
  1  10.0076
  2  1.0934
  3  0.204315
  4  0.110926
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) = 14044.0425288
delta logL = 0.0831084236706

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.148e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.231e+00  1.093e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.585e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  2.033e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 1.09
Photon Flux (Free Index): 2.33e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.88e-06 +/- 1.12e-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/38304583/cmap_HighResolution_810518401_811123201_4FGL_J1238.5-1201_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.88e-06', photon_flux_error='4.03e-08', dlogl='8.31e-02', energy_flux='9.57e-06', photon_flux2='2.33e-08', job_status='DONE', time_completed='2026-09-15 09:48:15.274670', photon_index_error2='1.09', photon_index2='2.23', ts='1.21', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.12e-05', EG='2.02', time_epoch_completed='1789490895.27', return_code='0', job_id='38304583', GAL2='0.66', EG2='2.03', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.85e-08', ts2='1.37', photon_index='2.66' WHERE bin_id='945' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 09:48:15 PDT 2026

