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

utfile=/lscratch/kocevski/26884470/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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/26884470/ft2_4FGL_J2121.0+1901_weekly_bin928.fits
.....................!
real 16.09
user 15.49
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26884470/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26884470/ft2_4FGL_J2121.0+1901_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26884470/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884470/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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/26884470/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
.....................!
real 59.76
user 55.72
sys 3.42

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

Setting source of interest to:
4FGL J2121.0+1901 @ 320.26 19.0324

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26884470/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits scfile=/lscratch/kocevski/26884470/ft2_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884470/cmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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=320.26 yref=19.0324 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.61
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26884470/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits scfile=/lscratch/kocevski/26884470/ft2_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884470/cmap_HighResolution_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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=320.26 yref=19.0324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26884470/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26884470/ft2_4FGL_J2121.0+1901_weekly_bin928.futfile=/lscratch/kocevski/26884495/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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/26884495/ft2_4FGL_J2121.0+1901_weekly_bin928.fits
.....................!
real 19.19
user 18.36
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26884495/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26884495/ft2_4FGL_J2121.0+1901_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26884495/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884495/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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/26884495/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
.....................!
real 71.13
user 66.03
sys 4.17

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

Setting source of interest to:
4FGL J2121.0+1901 @ 320.26 19.0324

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26884495/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits scfile=/lscratch/kocevski/26884495/ft2_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884495/cmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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=320.26 yref=19.0324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.08
user 0.24
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26884495/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits scfile=/lscratch/kocevski/26884495/ft2_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884495/cmap_HighResolution_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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=320.26 yref=19.0324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.94
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26884495/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26884495/ft2_4FGL_J2121.0+1901_weekly_bin928.fnumber of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2121.0+1901_weekly_bin928
RA = 320.26, Dec = 19.0324
tmin = 800236801, tmax = 800841601
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='26884574', job_status='RUN', time_executed='2026-05-19 15:48:32.451595', time_epoch_executed='1779230912.45' WHERE source_name='4FGL J2121.0+1901' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26884574

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26884574/ft1_4FGL_J2121.0+1901_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26884574/ft1_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884574/ft1_filteredMKT_4FGL_J2121.0+1901_weekly_bin928.fits ra=320.26 dec=19.0324 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.95
user 4.37
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.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/26884574/ft1_filteredMKT_4FGL_J2121.0+1901_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26884574/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2748

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26884574/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.fits sctable="SC_DATA" onumber of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2121.0+1901_weekly_bin928
RA = 320.26, Dec = 19.0324
tmin = 800236801, tmax = 800841601
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='26884589', job_status='RUN', time_executed='2026-05-19 15:49:30.601408', time_epoch_executed='1779230970.6' WHERE source_name='4FGL J2121.0+1901' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26884589

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26884589/ft1_4FGL_J2121.0+1901_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26884589/ft1_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884589/ft1_filteredMKT_4FGL_J2121.0+1901_weekly_bin928.fits ra=320.26 dec=19.0324 rad=12.0 tmin=800236801.0 tmax=800841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.66
user 3.95
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.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/26884589/ft1_filteredMKT_4FGL_J2121.0+1901_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26884589/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2748

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26884589/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.fits sctable="SC_DATA" ouutfile=/lscratch/kocevski/26884574/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.fits
.....................!
real 17.75
user 17.09
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26884574/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26884574/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884574/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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/26884574/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
.....................!
real 65.38
user 61.27
sys 3.49

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

Setting source of interest to:
4FGL J2121.0+1901 @ 320.26 19.0324

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26884574/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits scfile=/lscratch/kocevski/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884574/cmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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=320.26 yref=19.0324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.75
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26884574/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits scfile=/lscratch/kocevski/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884574/cmap_HighResolution_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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=320.26 yref=19.0324 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.70
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26884574/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.ftfile=/lscratch/kocevski/26884589/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.fits
.....................!
real 16.71
user 16.01
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26884589/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26884589/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884589/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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/26884589/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
.....................!
real 59.55
user 55.41
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
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 193 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2121.0+1901 @ 320.26 19.0324

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26884589/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits scfile=/lscratch/kocevski/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884589/cmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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=320.26 yref=19.0324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.72
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26884589/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits scfile=/lscratch/kocevski/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.fits outfile=/lscratch/kocevski/26884589/cmap_HighResolution_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.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=320.26 yref=19.0324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.75
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26884589/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.fiits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26884470/Model_4FGL_J2121.0+1901_weekly_bin928.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/26884470/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits.....................!
real 131.15
user 129.28
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26884470/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits', '/lscratch/kocevski/26884470/ft2_4FGL_J2121.0+1901_weekly_bin928.fits', expMap='/lscratch/kocevski/26884470/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits', expCube='/lscratch/kocevski/26884470/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26884470/Model_4FGL_J2121.0+1901_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2121.0+1901'

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.670e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26884470/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26884470/ft2_4FGL_J2121.0+1901_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26884470/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26884470/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26884470/Model_4FGL_J2121.0+1901_weekly_bin928.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) = 28514.9658664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1358       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17656E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20043E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .75697E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.6521       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3938       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12003E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .98921E-07   1.0000          .0000       .10000E+07
     9 'norm      '    2.0485       1.0000          .0000       .10000E+07
    10 'norm      '    2.1313       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13000E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    32.516       1.0000          .0000       .10000E+07
    13 'norm      '    12.740       1.0000          .0000       .10000E+07
    14 'norm      '    .14655E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .57061E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .16594E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .19328E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28514.96     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1545 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1339        4.0695       -.45763E-07    .11631E-03
   2  Prefactor      .0000        2.6009       -.11231E-06** at limit **
   3  Prefactor     .10253E-06    54.978       -.91034E-06** at limit **
   4  Prefactor     .47740E-08    21.646       -.15112E-06** at limit **
   5  Prefactor     7.6572        4.5127        .87042E-07    .13556E-01
   6  Prefactor     4.3909        7.0927        .19687E-06   -.13298E-01
   7  Prefactor      .0000        5.2741        .27729E-07** at limit **
   8  Prefactor      .0000        .67295       -.15902E-07** at limit **
   9  norm          2.0474        2.2292       -.15683E-06    .21839E-02
  10  norm          2.1317        1.6380        .57704E-07   -.71957E-03
  11  Prefactor      .0000        2.8107       -.29243E-07** at limit **
  12  Prefactor     32.364        2.0245       -.12034E-07    .17312    
  13  norm          12.741        1.8422        .40295E-07   -.42088E-02
  14  norm           .0000        1.5602        .61922E-07** at limit **
  15  Prefactor      .0000        8.8155        .88138E-07** at limit **
  16  Prefactor      .0000        23.142        .10532E-06** at limit **
  17  norm          .19670E-01    1.5568       -.14616E-06** at limit **
  18  Normalizat    1.2580        .14806        .19127E-05    .14222E-04
  19  Prefactor     .84467        .54224E-01   -.85396E-06    .12593E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.13386
  Prefactor  = 0
  Prefactor  = 1.02529e-07
  Prefactor  = 4.77396e-09
  Prefactor  = 7.65718
  Prefactor  = 4.39086
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.04742
  norm       = 2.13172
  Prefactor  = 0
  Prefactor  = 32.3639
  norm       = 12.7407
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.01967
  Normalizat = 1.25803
  Prefactor  = 0.844671
 **********
 **   18 **HESSE 
 **********

 FCN=   28514.96     FROM HESSE     STATUS=OK           316 CALLS     1861 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1339        4.0811        .44339E-03   -1.5663    
   2  Prefactor      .0000        2.6202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10253E-06    55.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47740E-08    21.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6572        16.032        .36228E-03   -1.5653    
   6  Prefactor     4.3909        11.765        .48023E-03   -1.5666    
   7  Prefactor      .0000        5.2423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .67747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0474        2.2507        .72204E-03   -1.5679    
  10  norm          2.1317        1.6403        .70592E-03   -1.5679    
  11  Prefactor      .0000        2.7610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.364        48.659        .17539E-03   -1.5594    
  13  norm          12.741        1.8391        .28038E-03   -1.5637    
  14  norm           .0000        .32751        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        8.8973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        22.985        .17272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .19670E-01    .16658        .24749E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2580        .12524        .81549E-01   -.84828    
  19  Prefactor     .84467        .45498E-01    .44296E-01   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22166e-06
Minuit parameter uncertainties:
  1  4.08106
  2  2.10729e-06
  3  0.00475749
  4  0.000636773
  5  16.0317
  6  11.7652
  7  1.63677e-05
  8  5.25522e-07
  9  2.25074
  10  1.64028
  11  1.14023e-06
  12  48.6592
  13  1.83905
  14  1.44456e-06
  15  2.96029e-05
  16  1.36338e-05
  17  0.114484
  18  0.125268
  19  0.0455001
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.132e+00  1.640e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  8.447e-01  4.550e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.258e+00  1.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.89
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 1.34e-08
Energy Flux (Fixed Index): 7.97e-06 +/- 6.13e-06

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) = 28514.2163873
delta logL = 0.740356561902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28514.1743364
delta logL = 0.782407481704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7859       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   28514.17     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7872        1.4264        .78258E-03    .55216E-02
   2  alpha         1.4868        .34033        .46537       -.18796E-03
   3  Normalizat    1.2683        .12164        .81265E-01    .76865E-04
   4  Prefactor     .84314        .45166E-01    .44274E-01   -.43940E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78722
  alpha      = 1.48678
  Normalizat = 1.26831
  Prefactor  = 0.843144
 **********
 **   18 **HESSE 
 **********

 FCN=   28514.17     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7872        1.6800        .17275E-04   -1.5681    
   2  alpha         1.4868        .49232        .24206E-01   -.41729    
   3  Normalizat    1.2683        .14461        .35975E-03   -.84517    
   4  Prefactor     .84314        .53812E-01    .15938E-03   -.98157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46286e-10
Minuit parameter uncertainties:
  1  1.68
  2  0.496207
  3  0.144653
  4  0.0538157
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) = 28514.1743307
delta logL = 0.782413197841

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.787e+00  1.680e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  1.487e+00  4.962e-01  0.000e+00  5.000e+00 ( 1.000e+00)
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  8.431e-01  5.382e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.268e+00  1.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.45
Ra Dec: 320.260 19.032
Photon Index (Free Index): 1.49 +/- 0.50
Photon Flux (Free Index): 7.84e-09 +/- 8.48e-09
Energy Flux (Free Index): 1.68e-05 +/- 1.75e-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/26884470/cmap_HighResolution_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='1.68e-05', photon_flux_error='1.34e-08', dlogl='7.82e-01', energy_flux='7.97e-06', photon_flux2='7.84e-09', job_status='DONE', time_completed='2026-05-19 15:57:33.235235', photon_index_error2='0.50', photon_index2='1.49', ts='5.89', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.26', time_epoch_completed='1779231453.24', return_code='0', job_id='26884470', GAL2='0.84', EG2='1.27', return_code2='0', energy_flux_error='6.13e-06', photon_flux_error2='8.48e-09', ts2='7.45', photon_index='2.16' WHERE bin_id='928' AND source_name='4FGL J2121.0+1901' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 15:57:33 PDT 2026

its sctable="SC_DATA" srcmdl=/lscratch/kocevski/26884495/Model_4FGL_J2121.0+1901_weekly_bin928.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/26884495/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits.....................!
real 154.71
user 152.13
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26884495/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits', '/lscratch/kocevski/26884495/ft2_4FGL_J2121.0+1901_weekly_bin928.fits', expMap='/lscratch/kocevski/26884495/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits', expCube='/lscratch/kocevski/26884495/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26884495/Model_4FGL_J2121.0+1901_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2121.0+1901'

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.670e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26884495/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26884495/ft2_4FGL_J2121.0+1901_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26884495/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26884495/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26884495/Model_4FGL_J2121.0+1901_weekly_bin928.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) = 28514.9658664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1358       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17656E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20043E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .75697E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.6521       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3938       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12003E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .98921E-07   1.0000          .0000       .10000E+07
     9 'norm      '    2.0485       1.0000          .0000       .10000E+07
    10 'norm      '    2.1313       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13000E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    32.516       1.0000          .0000       .10000E+07
    13 'norm      '    12.740       1.0000          .0000       .10000E+07
    14 'norm      '    .14655E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .57061E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .16594E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .19328E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28514.96     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1545 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1339        4.0695       -.45763E-07    .11631E-03
   2  Prefactor      .0000        2.6009       -.11231E-06** at limit **
   3  Prefactor     .10253E-06    54.978       -.91034E-06** at limit **
   4  Prefactor     .47740E-08    21.646       -.15112E-06** at limit **
   5  Prefactor     7.6572        4.5127        .87042E-07    .13556E-01
   6  Prefactor     4.3909        7.0927        .19687E-06   -.13298E-01
   7  Prefactor      .0000        5.2741        .27729E-07** at limit **
   8  Prefactor      .0000        .67295       -.15902E-07** at limit **
   9  norm          2.0474        2.2292       -.15683E-06    .21839E-02
  10  norm          2.1317        1.6380        .57704E-07   -.71957E-03
  11  Prefactor      .0000        2.8107       -.29243E-07** at limit **
  12  Prefactor     32.364        2.0245       -.12034E-07    .17312    
  13  norm          12.741        1.8422        .40295E-07   -.42088E-02
  14  norm           .0000        1.5602        .61922E-07** at limit **
  15  Prefactor      .0000        8.8155        .88138E-07** at limit **
  16  Prefactor      .0000        23.142        .10532E-06** at limit **
  17  norm          .19670E-01    1.5568       -.14616E-06** at limit **
  18  Normalizat    1.2580        .14806        .19127E-05    .14222E-04
  19  Prefactor     .84467        .54224E-01   -.85396E-06    .12593E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.13386
  Prefactor  = 0
  Prefactor  = 1.02529e-07
  Prefactor  = 4.77396e-09
  Prefactor  = 7.65718
  Prefactor  = 4.39086
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.04742
  norm       = 2.13172
  Prefactor  = 0
  Prefactor  = 32.3639
  norm       = 12.7407
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.01967
  Normalizat = 1.25803
  Prefactor  = 0.844671
 **********
 **   18 **HESSE 
 **********

 FCN=   28514.96     FROM HESSE     STATUS=OK           316 CALLS     1861 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1339        4.0811        .44339E-03   -1.5663    
   2  Prefactor      .0000        2.6202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10253E-06    55.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47740E-08    21.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6572        16.032        .36228E-03   -1.5653    
   6  Prefactor     4.3909        11.765        .48023E-03   -1.5666    
   7  Prefactor      .0000        5.2423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .67747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0474        2.2507        .72204E-03   -1.5679    
  10  norm          2.1317        1.6403        .70592E-03   -1.5679    
  11  Prefactor      .0000        2.7610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.364        48.659        .17539E-03   -1.5594    
  13  norm          12.741        1.8391        .28038E-03   -1.5637    
  14  norm           .0000        .32751        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        8.8973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        22.985        .17272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .19670E-01    .16658        .24749E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2580        .12524        .81549E-01   -.84828    
  19  Prefactor     .84467        .45498E-01    .44296E-01   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22166e-06
Minuit parameter uncertainties:
  1  4.08106
  2  2.10729e-06
  3  0.00475749
  4  0.000636773
  5  16.0317
  6  11.7652
  7  1.63677e-05
  8  5.25522e-07
  9  2.25074
  10  1.64028
  11  1.14023e-06
  12  48.6592
  13  1.83905
  14  1.44456e-06
  15  2.96029e-05
  16  1.36338e-05
  17  0.114484
  18  0.125268
  19  0.0455001
its sctable="SC_DATA" srcmdl=/lscratch/kocevski/26884574/Model_4FGL_J2121.0+1901_weekly_bin928.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/26884574/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits.....................!
real 143.09
user 141.15
sys 0.79

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26884574/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits', '/lscratch/kocevski/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.fits', expMap='/lscratch/kocevski/26884574/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits', expCube='/lscratch/kocevski/26884574/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26884574/Model_4FGL_J2121.0+1901_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2121.0+1901'

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.670e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26884574/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26884574/ft2_4FGL_J2121.0+1901_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26884574/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26884574/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26884574/Model_4FGL_J2121.0+1901_weekly_bin928.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) = 28514.9658664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1358       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17656E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20043E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .75697E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.6521       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3938       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12003E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .98921E-07   1.0000          .0000       .10000E+07
     9 'norm      '    2.0485       1.0000          .0000       .10000E+07
    10 'norm      '    2.1313       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13000E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    32.516       1.0000          .0000       .10000E+07
    13 'norm      '    12.740       1.0000          .0000       .10000E+07
    14 'norm      '    .14655E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .57061E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .16594E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .19328E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 ******Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.132e+00  1.640e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  8.447e-01  4.550e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.258e+00  1.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.89
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 1.34e-08
Energy Flux (Fixed Index): 7.97e-06 +/- 6.13e-06

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) = 28514.2163873
delta logL = 0.740356561902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28514.1743364
delta logL = 0.782407481704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7859       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   28514.17     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7872        1.4264        .78258E-03    .55216E-02
   2  alpha         1.4868        .34033        .46537       -.18796E-03
   3  Normalizat    1.2683        .12164        .81265E-01    .76865E-04
   4  Prefactor     .84314        .45166E-01    .44274E-01   -.43940E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78722
  alpha      = 1.48678
  Normalizat = 1.26831
  Prefactor  = 0.843144
 **********
 **   18 **HESSE 
 **********

 FCN=   28514.17     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7872        1.6800        .17275E-04   -1.5681    
   2  alpha         1.4868        .49232        .24206E-01   -.41729    
   3  Normalizat    1.2683        .14461        .35975E-03   -.84517    
   4  Prefactor     .84314        .53812E-01    .15938E-03   -.98157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46286e-10
Minuit parameter uncertainties:
  1  1.68
  2  0.496207
  3  0.144653
  4  0.0538157
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) = 28514.1743307
delta logL = 0.782413197841

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.787e+00  1.680e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  1.487e+00  4.962e-01  0.000e+00  5.000e+00 ( 1.000e+00)
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  8.431e-01  5.382e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.268e+00  1.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.45
Ra Dec: 320.260 19.032
Photon Index (Free Index): 1.49 +/- 0.50
Photon Flux (Free Index): 7.84e-09 +/- 8.48e-09
Energy Flux (Free Index): 1.68e-05 +/- 1.75e-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/26884495/cmap_HighResolution_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='1.68e-05', photon_flux_error='1.34e-08', dlogl='7.82e-01', energy_flux='7.97e-06', photon_flux2='7.84e-09', job_status='DONE', time_completed='2026-05-19 16:00:10.478816', photon_index_error2='0.50', photon_index2='1.49', ts='5.89', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.26', time_epoch_completed='1779231610.48', return_code='0', job_id='26884495', GAL2='0.84', EG2='1.27', return_code2='0', energy_flux_error='6.13e-06', photon_flux_error2='8.48e-09', ts2='7.45', photon_index='2.16' WHERE bin_id='928' AND source_name='4FGL J2121.0+1901' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 16:00:11 PDT 2026

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/26884589/Model_4FGL_J2121.0+1901_weekly_bin928.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/26884589/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits.....................!
real 132.23
user 130.22
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26884589/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits', '/lscratch/kocevski/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.fits', expMap='/lscratch/kocevski/26884589/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits', expCube='/lscratch/kocevski/26884589/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26884589/Model_4FGL_J2121.0+1901_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2121.0+1901'

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.670e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26884589/ft1_filtered_4FGL_J2121.0+1901_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26884589/ft2_4FGL_J2121.0+1901_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26884589/expmap_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26884589/ltcube_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26884589/Model_4FGL_J2121.0+1901_weekly_bin928.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) = 28514.9658664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1358       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17656E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20043E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .75697E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.6521       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3938       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12003E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .98921E-07   1.0000          .0000       .10000E+07
     9 'norm      '    2.0485       1.0000          .0000       .10000E+07
    10 'norm      '    2.1313       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13000E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    32.516       1.0000          .0000       .10000E+07
    13 'norm      '    12.740       1.0000          .0000       .10000E+07
    14 'norm      '    .14655E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .57061E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .16594E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .19328E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 ***********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28514.96     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1545 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1339        4.0695       -.45763E-07    .11631E-03
   2  Prefactor      .0000        2.6009       -.11231E-06** at limit **
   3  Prefactor     .10253E-06    54.978       -.91034E-06** at limit **
   4  Prefactor     .47740E-08    21.646       -.15112E-06** at limit **
   5  Prefactor     7.6572        4.5127        .87042E-07    .13556E-01
   6  Prefactor     4.3909        7.0927        .19687E-06   -.13298E-01
   7  Prefactor      .0000        5.2741        .27729E-07** at limit **
   8  Prefactor      .0000        .67295       -.15902E-07** at limit **
   9  norm          2.0474        2.2292       -.15683E-06    .21839E-02
  10  norm          2.1317        1.6380        .57704E-07   -.71957E-03
  11  Prefactor      .0000        2.8107       -.29243E-07** at limit **
  12  Prefactor     32.364        2.0245       -.12034E-07    .17312    
  13  norm          12.741        1.8422        .40295E-07   -.42088E-02
  14  norm           .0000        1.5602        .61922E-07** at limit **
  15  Prefactor      .0000        8.8155        .88138E-07** at limit **
  16  Prefactor      .0000        23.142        .10532E-06** at limit **
  17  norm          .19670E-01    1.5568       -.14616E-06** at limit **
  18  Normalizat    1.2580        .14806        .19127E-05    .14222E-04
  19  Prefactor     .84467        .54224E-01   -.85396E-06    .12593E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.13386
  Prefactor  = 0
  Prefactor  = 1.02529e-07
  Prefactor  = 4.77396e-09
  Prefactor  = 7.65718
  Prefactor  = 4.39086
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.04742
  norm       = 2.13172
  Prefactor  = 0
  Prefactor  = 32.3639
  norm       = 12.7407
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.01967
  Normalizat = 1.25803
  Prefactor  = 0.844671
***
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28514.96     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1545 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1339        4.0695       -.45763E-07    .11631E-03
   2  Prefactor      .0000        2.6009       -.11231E-06** at limit **
   3  Prefactor     .10253E-06    54.978       -.91034E-06** at limit **
   4  Prefactor     .47740E-08    21.646       -.15112E-06** at limit **
   5  Prefactor     7.6572        4.5127        .87042E-07    .13556E-01
   6  Prefactor     4.3909        7.0927        .19687E-06   -.13298E-01
   7  Prefactor      .0000        5.2741        .27729E-07** at limit **
   8  Prefactor      .0000        .67295       -.15902E-07** at limit **
   9  norm          2.0474        2.2292       -.15683E-06    .21839E-02
  10  norm          2.1317        1.6380        .57704E-07   -.71957E-03
  11  Prefactor      .0000        2.8107       -.29243E-07** at limit **
  12  Prefactor     32.364        2.0245       -.12034E-07    .17312    
  13  norm          12.741        1.8422        .40295E-07   -.42088E-02
  14  norm           .0000        1.5602        .61922E-07** at limit **
  15  Prefactor      .0000        8.8155        .88138E-07** at limit **
  16  Prefactor      .0000        23.142        .10532E-06** at limit **
  17  norm          .19670E-01    1.5568       -.14616E-06** at limit **
  18  Normalizat    1.2580        .14806        .19127E-05    .14222E-04
  19  Prefactor     .84467        .54224E-01   -.85396E-06    .12593E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.13386
  Prefactor  = 0
  Prefactor  = 1.02529e-07
  Prefactor  = 4.77396e-09
  Prefactor  = 7.65718
  Prefactor  = 4.39086
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.04742
  norm       = 2.13172
  Prefactor  = 0
  Prefactor  = 32.3639
  norm       = 12.7407
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.01967
  Normalizat = 1.25803
  Prefactor  = 0.844671
 **********
 **   18 **HESSE 
 **********

 FCN=   28514.96     FROM HESSE     STATUS=OK           316 CALLS     1861 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1339        4.0811        .44339E-03   -1.5663    
   2  Prefactor      .0000        2.6202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10253E-06    55.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47740E-08    21.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6572        16.032        .36228E-03   -1.5653    
   6  Prefactor     4.3909        11.765        .48023E-03   -1.5666    
   7  Prefactor      .0000        5.2423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .67747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0474        2.2507        .72204E-03   -1.5679    
  10  norm          2.1317        1.6403        .70592E-03   -1.5679    
  11  Prefactor      .0000        2.7610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.364        48.659        .17539E-03   -1.5594    
  13  norm          12.741        1.8391        .28038E-03   -1.5637    
  14  norm           .0000        .32751        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        8.8973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        22.985        .17272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .19670E-01    .16658        .24749E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2580        .12524        .81549E-01   -.84828    
  19  Prefactor     .84467        .45498E-01    .44296E-01   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22166e-06
Minuit parameter uncertainties:
  1  4.08106
  2  2.10729e-06
  3  0.00475749
  4  0.000636773
  5  16.0317
  6  11.7652
  7  1.63677e-05
  8  5.25522e-07
  9  2.25074
  10  1.64028
  11  1.14023e-06
  12  48.6592
  13  1.83905
  14  1.44456e-06
  15  2.96029e-05
  16  1.36338e-05
  17  0.114484
  18  0.125268
  19  0.0455001
 **********
 **   18 **HESSE 
 **********

 FCN=   28514.96     FROM HESSE     STATUS=OK           316 CALLS     1861 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1339        4.0811        .44339E-03   -1.5663    
   2  Prefactor      .0000        2.6202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10253E-06    55.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47740E-08    21.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6572        16.032        .36228E-03   -1.5653    
   6  Prefactor     4.3909        11.765        .48023E-03   -1.5666    
   7  Prefactor      .0000        5.2423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .67747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0474        2.2507        .72204E-03   -1.5679    
  10  norm          2.1317        1.6403        .70592E-03   -1.5679    
  11  Prefactor      .0000        2.7610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.364        48.659        .17539E-03   -1.5594    
  13  norm          12.741        1.8391        .28038E-03   -1.5637    
  14  norm           .0000        .32751        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        8.8973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        22.985        .17272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .19670E-01    .16658        .24749E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2580        .12524        .81549E-01   -.84828    
  19  Prefactor     .84467        .45498E-01    .44296E-01   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22166e-06
Minuit parameter uncertainties:
  1  4.08106
  2  2.10729e-06
  3  0.00475749
  4  0.000636773
  5  16.0317
  6  11.7652
  7  1.63677e-05
  8  5.25522e-07
  9  2.25074
  10  1.64028
  11  1.14023e-06
  12  48.6592
  13  1.83905
  14  1.44456e-06
  15  2.96029e-05
  16  1.36338e-05
  17  0.114484
  18  0.125268
  19  0.0455001
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.132e+00  1.640e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  8.447e-01  4.550e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.258e+00  1.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.89
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 1.34e-08
Energy Flux (Fixed Index): 7.97e-06 +/- 6.13e-06

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) = 28514.2163873
delta logL = 0.740356561902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28514.1743364
delta logL = 0.782407481704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7859       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   28514.17     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7872        1.4264        .78258E-03    .55216E-02
   2  alpha         1.4868        .34033        .46537       -.18796E-03
   3  Normalizat    1.2683        .12164        .81265E-01    .76865E-04
   4  Prefactor     .84314        .45166E-01    .44274E-01   -.43940E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78722
  alpha      = 1.48678
  Normalizat = 1.26831
  Prefactor  = 0.843144
 **********
 **   18 **HESSE 
 **********

 FCN=   28514.17     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7872        1.6800        .17275E-04   -1.5681    
   2  alpha         1.4868        .49232        .24206E-01   -.41729    
   3  Normalizat    1.2683        .14461        .35975E-03   -.84517    
   4  Prefactor     .84314        .53812E-01    .15938E-03   -.98157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46286e-10
Minuit parameter uncertainties:
  1  1.68
  2  0.496207
  3  0.144653
  4  0.0538157
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) = 28514.1743307
delta logL = 0.782413197841

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.787e+00  1.680e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  1.487e+00  4.962e-01  0.000e+00  5.000e+00 ( 1.000e+00)
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  8.431e-01  5.382e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.268e+00  1.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.45
Ra Dec: 320.260 19.032
Photon Index (Free Index): 1.49 +/- 0.50
Photon Flux (Free Index): 7.84e-09 +/- 8.48e-09
Energy Flux (Free Index): 1.68e-05 +/- 1.75e-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/26884574/cmap_HighResolution_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='1.68e-05', photon_flux_error='1.34e-08', dlogl='7.82e-01', energy_flux='7.97e-06', photon_flux2='7.84e-09', job_status='DONE', time_completed='2026-05-19 16:01:50.234186', photon_index_error2='0.50', photon_index2='1.49', ts='5.89', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.26', time_epoch_completed='1779231710.23', return_code='0', job_id='26884574', GAL2='0.84', EG2='1.27', return_code2='0', energy_flux_error='6.13e-06', photon_flux_error2='8.48e-09', ts2='7.45', photon_index='2.16' WHERE bin_id='928' AND source_name='4FGL J2121.0+1901' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 16:01:50 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.132e+00  1.640e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  8.447e-01  4.550e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.258e+00  1.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.89
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 1.34e-08
Energy Flux (Fixed Index): 7.97e-06 +/- 6.13e-06

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) = 28514.2163873
delta logL = 0.740356561902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28514.1743364
delta logL = 0.782407481704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7859       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   28514.17     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7872        1.4264        .78258E-03    .55216E-02
   2  alpha         1.4868        .34033        .46537       -.18796E-03
   3  Normalizat    1.2683        .12164        .81265E-01    .76865E-04
   4  Prefactor     .84314        .45166E-01    .44274E-01   -.43940E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78722
  alpha      = 1.48678
  Normalizat = 1.26831
  Prefactor  = 0.843144
 **********
 **   18 **HESSE 
 **********

 FCN=   28514.17     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7872        1.6800        .17275E-04   -1.5681    
   2  alpha         1.4868        .49232        .24206E-01   -.41729    
   3  Normalizat    1.2683        .14461        .35975E-03   -.84517    
   4  Prefactor     .84314        .53812E-01    .15938E-03   -.98157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46286e-10
Minuit parameter uncertainties:
  1  1.68
  2  0.496207
  3  0.144653
  4  0.0538157
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) = 28514.1743307
delta logL = 0.782413197841

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.787e+00  1.680e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  1.487e+00  4.962e-01  0.000e+00  5.000e+00 ( 1.000e+00)
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  8.431e-01  5.382e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.268e+00  1.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.45
Ra Dec: 320.260 19.032
Photon Index (Free Index): 1.49 +/- 0.50
Photon Flux (Free Index): 7.84e-09 +/- 8.48e-09
Energy Flux (Free Index): 1.68e-05 +/- 1.75e-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/26884589/cmap_HighResolution_800236801_800841601_4FGL_J2121.0+1901_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='1.68e-05', photon_flux_error='1.34e-08', dlogl='7.82e-01', energy_flux='7.97e-06', photon_flux2='7.84e-09', job_status='DONE', time_completed='2026-05-19 16:02:10.451323', photon_index_error2='0.50', photon_index2='1.49', ts='5.89', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.26', time_epoch_completed='1779231730.45', return_code='0', job_id='26884589', GAL2='0.84', EG2='1.27', return_code2='0', energy_flux_error='6.13e-06', photon_flux_error2='8.48e-09', ts2='7.45', photon_index='2.16' WHERE bin_id='928' AND source_name='4FGL J2121.0+1901' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 16:02:10 PDT 2026

