number of points = 7550
number of fields = 31
RA_SUN column already exists. File will not be modified.
/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
Done.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin2184
RA = 200.296, Dec = 22.2808
tmin = 805420801, tmax = 805680001
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='31654771', job_status='RUN', time_executed='2026-07-14 10:55:14.925591', time_epoch_executed='1784051714.93' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='2184'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31654771

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31654771/ft1_4FGL_J1321.1+2216_daily_bin2184.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31654771/ft1_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654771/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin2184.fits ra=200.296 dec=22.2808 rad=12.0 tmin=805420801.0 tmax=805680001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.45
user 1.89
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.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/31654771/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" outfile="/lscratch/kocevski/31654771/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 593

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31654771/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" ou
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)
number of points = 7550
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin2184
RA = 200.296, Dec = 22.2808
tmin = 805420801, tmax = 805680001
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='31654776', job_status='RUN', time_executed='2026-07-14 10:55:14.372730', time_epoch_executed='1784051714.37' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='2184'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31654776

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31654776/ft1_4FGL_J1321.1+2216_daily_bin2184.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31654776/ft1_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654776/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin2184.fits ra=200.296 dec=22.2808 rad=12.0 tmin=805420801.0 tmax=805680001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.28
user 1.71
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.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/31654776/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" outfile="/lscratch/kocevski/31654776/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 593

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31654776/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" ou
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin2184
RA = 200.296, Dec = 22.2808
tmin = 805420801, tmax = 805680001
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='31654787', job_status='RUN', time_executed='2026-07-14 10:55:30.539657', time_epoch_executed='1784051730.54' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='2184'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31654787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31654787/ft1_4FGL_J1321.1+2216_daily_bin2184.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31654787/ft1_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654787/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin2184.fits ra=200.296 dec=22.2808 rad=12.0 tmin=805420801.0 tmax=805680001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.44
user 1.94
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.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/31654787/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" outfile="/lscratch/kocevski/31654787/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 593

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31654787/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" ounumber of points = 7550
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin2184
RA = 200.296, Dec = 22.2808
tmin = 805420801, tmax = 805680001
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='31654799', job_status='RUN', time_executed='2026-07-14 10:56:17.220941', time_epoch_executed='1784051777.22' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='2184'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31654799

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31654799/ft1_4FGL_J1321.1+2216_daily_bin2184.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31654799/ft1_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654799/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin2184.fits ra=200.296 dec=22.2808 rad=12.0 tmin=805420801.0 tmax=805680001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.66
user 2.01
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.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/31654799/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" outfile="/lscratch/kocevski/31654799/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 593

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31654799/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31654776/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.fits
.....................!
real 7.44
user 6.86
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31654776/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" scfile=/lscratch/kocevski/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31654776/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654776/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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/31654776/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
.....................!
real 59.64
user 55.61
sys 3.41

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

Setting source of interest to:
4FGL J1321.1+2216 @ 200.296 22.2808

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31654776/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits scfile=/lscratch/kocevski/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654776/cmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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=200.296 yref=22.2808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.67
user 0.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31654776/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits scfile=/lscratch/kocevski/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654776/cmap_HighResolution_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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=200.296 yref=22.2808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.69
user 0.19
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31654776/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" scfile=/lscratch/kocevski/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31654776/Model_4FGL_J1321.1+2216_daily_bin2184.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 GALtfile=/lscratch/kocevski/31654771/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.fits
.....................!
real 8.03
user 7.37
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31654771/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" scfile=/lscratch/kocevski/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31654771/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654771/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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/31654771/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
.....................!
real 63.33
user 58.90
sys 3.77

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

Setting source of interest to:
4FGL J1321.1+2216 @ 200.296 22.2808

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31654771/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits scfile=/lscratch/kocevski/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654771/cmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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=200.296 yref=22.2808 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.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31654771/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits scfile=/lscratch/kocevski/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654771/cmap_HighResolution_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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=200.296 yref=22.2808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.67
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31654771/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" scfile=/lscratch/kocevski/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31654771/Model_4FGL_J1321.1+2216_daily_bin2184.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 GALtfile=/lscratch/kocevski/31654787/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.fits
.....................!
real 8.06
user 7.46
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31654787/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" scfile=/lscratch/kocevski/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31654787/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654787/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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/31654787/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
.....................!
real 66.15
user 61.76
sys 3.76

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

Setting source of interest to:
4FGL J1321.1+2216 @ 200.296 22.2808

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31654787/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits scfile=/lscratch/kocevski/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654787/cmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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=200.296 yref=22.2808 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.66
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31654787/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits scfile=/lscratch/kocevski/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654787/cmap_HighResolution_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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=200.296 yref=22.2808 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.66
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31654787/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" scfile=/lscratch/kocevski/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31654787/Model_4FGL_J1321.1+2216_daily_bin2184.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 GALnumber of points = 7550
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin2184
RA = 200.296, Dec = 22.2808
tmin = 805420801, tmax = 805680001
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='31654825', job_status='RUN', time_executed='2026-07-14 10:57:16.453616', time_epoch_executed='1784051836.45' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='2184'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31654825

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31654825/ft1_4FGL_J1321.1+2216_daily_bin2184.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31654825/ft1_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654825/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin2184.fits ra=200.296 dec=22.2808 rad=12.0 tmin=805420801.0 tmax=805680001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.57
user 1.99
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.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/31654825/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" outfile="/lscratch/kocevski/31654825/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.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.65
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 593

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31654825/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" ou_V02
Working on...
/lscratch/kocevski/31654776/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits.....................!
real 19.72
user 18.45
sys 0.70

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31654776/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits', '/lscratch/kocevski/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.fits', expMap='/lscratch/kocevski/31654776/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits', expCube='/lscratch/kocevski/31654776/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31654776/Model_4FGL_J1321.1+2216_daily_bin2184.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1321.1+2216'

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31654776/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits
Spacecraft file(s): /lscratch/kocevski/31654776/ft2_4FGL_J1321.1+2216_daily_bin2184.fits
Exposure map: /lscratch/kocevski/31654776/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
Exposure cube: /lscratch/kocevski/31654776/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31654776/Model_4FGL_J1321.1+2216_daily_bin2184.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) = 6636.56118595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38605E-05   1.0000          .0000       .10000E+07
     2 'norm      '    14.521       1.0000          .0000       .10000E+07
     3 'Prefactor '    .21685E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .18480E-06   1.0000          .0000       .10000E+07
     5 'norm      '    9.0574       1.0000          .0000       .10000E+07
     6 'norm      '    16.303       1.0000          .0000       .10000E+07
     7 'norm      '    36.907       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33940E-01   1.0000          .0000       .10000E+07
     9 'norm      '    7.6326       1.0000          .0000       .10000E+07
    10 'Prefactor '    .61198E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.3532       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10736E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.3426       1.0000          .0000       .10000E+07
    14 'Prefactor '    44.852       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.7965       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.4411       1.0000          .0000       .10000E+07
    17 'Prefactor '    .64067E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2714       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6636.558     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1389 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1332       -.27676E-07** at limit **
   2  norm          14.512        7.3131        .22267E-07    .64847E-03
   3  Prefactor     .16653E-09    6.6632       -.48778E-07** at limit **
   4  norm           .0000        1.4392        .67802E-08** at limit **
   5  norm          9.1475        4.6336        .55682E-07    .52772E-02
   6  norm          16.312        2.9557        .33777E-07    .31456E-02
   7  norm          36.978        5.6350       -.41012E-07    .15868    
   8  Prefactor     .49960E-09    23.309        .21207E-06** at limit **
   9  norm          7.6018        7.6792        .71075E-07    .10166E-01
  10  Prefactor     .22204E-08    10.562        .26091E-08** at limit **
  11  norm          6.3056        8.3047       -.31629E-07   -.16595E-01
  12  Prefactor     .79992E-07    15.251        .33569E-06** at limit **
  13  Prefactor     3.3603        5.2551       -.91004E-07    .75240E-02
  14  Prefactor     45.683        56.518       -.30029E-06   -.13910E-01
  15  Prefactor     5.7575        4.8711        .79510E-07    .41338E-02
  16  Prefactor     9.4631        3.3907        .27834E-07   -.78341E-01
  17  Prefactor     .12468E-06    15.246       -.23550E-08** at limit **
  18  Normalizat    1.0620        .22913        .34866E-06    .15213E-03
  19  Prefactor     1.2712        .22073        .77677E-07    .12016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 14.5122
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 9.14745
  norm       = 16.3121
  norm       = 36.9784
  Prefactor  = 4.996e-10
  norm       = 7.60183
  Prefactor  = 2.22045e-09
  norm       = 6.30563
  Prefactor  = 7.99916e-08
  Prefactor  = 3.3603
  Prefactor  = 45.6834
  Prefactor  = 5.7575
  Prefactor  = 9.46307
  Prefactor  = 1.24678e-07
  Normalizat = 1.06198
  Prefactor  = 1.27121
tfile=/lscratch/kocevski/31654799/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.fits
.....................!
real 8.50
user 7.89
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31654799/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" scfile=/lscratch/kocevski/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31654799/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654799/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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/31654799/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
.....................!
real 69.88
user 65.11
sys 4.05

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

Setting source of interest to:
4FGL J1321.1+2216 @ 200.296 22.2808

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31654799/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits scfile=/lscratch/kocevski/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654799/cmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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=200.296 yref=22.2808 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.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31654799/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits scfile=/lscratch/kocevski/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654799/cmap_HighResolution_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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=200.296 yref=22.2808 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.66
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31654799/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" scfile=/lscratch/kocevski/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31654799/Model_4FGL_J1321.1+2216_daily_bin2184.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/31654771/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits.....................!
real 21.04
user 19.51
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31654771/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits', '/lscratch/kocevski/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.fits', expMap='/lscratch/kocevski/31654771/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits', expCube='/lscratch/kocevski/31654771/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31654771/Model_4FGL_J1321.1+2216_daily_bin2184.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1321.1+2216'

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31654771/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits
Spacecraft file(s): /lscratch/kocevski/31654771/ft2_4FGL_J1321.1+2216_daily_bin2184.fits
Exposure map: /lscratch/kocevski/31654771/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
Exposure cube: /lscratch/kocevski/31654771/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31654771/Model_4FGL_J1321.1+2216_daily_bin2184.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) = 6636.56118595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38605E-05   1.0000          .0000       .10000E+07
     2 'norm      '    14.521       1.0000          .0000       .10000E+07
     3 'Prefactor '    .21685E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .18480E-06   1.0000          .0000       .10000E+07
     5 'norm      '    9.0574       1.0000          .0000       .10000E+07
     6 'norm      '    16.303       1.0000          .0000       .10000E+07
     7 'norm      '    36.907       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33940E-01   1.0000          .0000       .10000E+07
     9 'norm      '    7.6326       1.0000          .0000       .10000E+07
    10 'Prefactor '    .61198E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.3532       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10736E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.3426       1.0000          .0000       .10000E+07
    14 'Prefactor '    44.852       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.7965       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.4411       1.0000          .0000       .10000E+07
    17 'Prefactor '    .64067E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2714       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6636.558     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1389 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1332       -.27676E-07** at limit **
   2  norm          14.512        7.3131        .22267E-07    .64847E-03
   3  Prefactor     .16653E-09    6.6632       -.48778E-07** at limit **
   4  norm           .0000        1.4392        .67802E-08** at limit **
   5  norm          9.1475        4.6336        .55682E-07    .52772E-02
   6  norm          16.312        2.9557        .33777E-07    .31456E-02
   7  norm          36.978        5.6350       -.41012E-07    .15868    
   8  Prefactor     .49960E-09    23.309        .21207E-06** at limit **
   9  norm          7.6018        7.6792        .71075E-07    .10166E-01
  10  Prefactor     .22204E-08    10.562        .26091E-08** at limit **
  11  norm          6.3056        8.3047       -.31629E-07   -.16595E-01
  12  Prefactor     .79992E-07    15.251        .33569E-06** at limit **
  13  Prefactor     3.3603        5.2551       -.91004E-07    .75240E-02
  14  Prefactor     45.683        56.518       -.30029E-06   -.13910E-01
  15  Prefactor     5.7575        4.8711        .79510E-07    .41338E-02
  16  Prefactor     9.4631        3.3907        .27834E-07   -.78341E-01
  17  Prefactor     .12468E-06    15.246       -.23550E-08** at limit **
  18  Normalizat    1.0620        .22913        .34866E-06    .15213E-03
  19  Prefactor     1.2712        .22073        .77677E-07    .12016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 14.5122
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 9.14745
  norm       = 16.3121
  norm       = 36.9784
  Prefactor  = 4.996e-10
  norm       = 7.60183
  Prefactor  = 2.22045e-09
  norm       = 6.30563
  Prefactor  = 7.99916e-08
  Prefactor  = 3.3603
  Prefactor  = 45.6834
  Prefactor  = 5.7575
  Prefactor  = 9.46307
  Prefactor  = 1.24678e-07
  Normalizat = 1.06198
  Prefactor  = 1.27121
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.558     FROM HESSE     STATUS=OK           312 CALLS     1701 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.512        7.4019        .26258E-03   -1.5632    
   3  Prefactor     .16653E-09    6.6625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.4365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1475        9.8928        .33279E-03   -1.5647    
   6  norm          16.312        16.306        .24779E-03   -1.5627    
   7  norm          36.978        27.886        .16462E-03   -1.5586    
   8  Prefactor     .49960E-09    22.602        .16249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.6018        8.0849        .36275E-03   -1.5653    
  10  Prefactor     .22204E-08    10.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3056        8.7211        .39798E-03   -1.5658    
  12  Prefactor     .79992E-07    15.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3603        30.210        .55333E-03   -1.5671    
  14  Prefactor     45.683        56.916        .14933E-03   -1.5573    
  15  Prefactor     5.7575        4.8551        .41692E-03   -1.5660    
  16  Prefactor     9.4631        9.5585        .32591E-03   -1.5646    
  17  Prefactor     .12468E-06    15.993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0620        .19333        .63466E-01   -.90982    
  19  Prefactor     1.2712        .18449        .58161E-01   -.84167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11012e-07
Minuit parameter uncertainties:
  1  8.97915e-06
  2  7.40189
  3  6.33179e-05
  4  1.6029e-06
  5  9.89286
  6  16.3064
  7  27.8865
  8  0.000210754
  9  8.08493
  10  0.000307788
  11  8.72113
  12  0.00223993
  13  20.151
  14  56.9172
  15  4.85514
  16  9.55848
  17  0.00282403
  18  0.193462
  19  0.184589
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.558     FROM HESSE     STATUS=OK           312 CALLS     1701 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.512        7.4019        .26258E-03   -1.5632    
   3  Prefactor     .16653E-09    6.6625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.4365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1475        9.8928        .33279E-03   -1.5647    
   6  norm          16.312        16.306        .24779E-03   -1.5627    
   7  norm          36.978        27.886        .16462E-03   -1.5586    
   8  Prefactor     .49960E-09    22.602        .16249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.6018        8.0849        .36275E-03   -1.5653    
  10  Prefactor     .22204E-08    10.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3056        8.7211        .39798E-03   -1.5658    
  12  Prefactor     .79992E-07    15.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3603        30.210        .55333E-03   -1.5671    
  14  Prefactor     45.683        56.916        .14933E-03   -1.5573    
  15  Prefactor     5.7575        4.8551        .41692E-03   -1.5660    
  16  Prefactor     9.4631        9.5585        .32591E-03   -1.5646    
  17  Prefactor     .12468E-06    15.993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0620        .19333        .63466E-01   -.90982    
  19  Prefactor     1.2712        .18449        .58161E-01   -.84167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11012e-07
Minuit parameter uncertainties:
  1  8.97915e-06
  2  7.40189
  3  6.33179e-05
  4  1.6029e-06
  5  9.89286
  6  16.3064
  7  27.8865
  8  0.000210754
  9  8.08493
  10  0.000307788
  11  8.72113
  12  0.00223993
  13  20.151
  14  56.9172
  15  4.85514
  16  9.55848
  17  0.00282403
  18  0.193462
  19  0.184589
_V02
Working on...
/lscratch/kocevski/31654787/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits.....................!
real 21.85
user 20.49
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31654787/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits', '/lscratch/kocevski/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.fits', expMap='/lscratch/kocevski/31654787/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits', expCube='/lscratch/kocevski/31654787/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31654787/Model_4FGL_J1321.1+2216_daily_bin2184.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1321.1+2216'

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31654787/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits
Spacecraft file(s): /lscratch/kocevski/31654787/ft2_4FGL_J1321.1+2216_daily_bin2184.fits
Exposure map: /lscratch/kocevski/31654787/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
Exposure cube: /lscratch/kocevski/31654787/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31654787/Model_4FGL_J1321.1+2216_daily_bin2184.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) = 6636.56118595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38605E-05   1.0000          .0000       .10000E+07
     2 'norm      '    14.521       1.0000          .0000       .10000E+07
     3 'Prefactor '    .21685E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .18480E-06   1.0000          .0000       .10000E+07
     5 'norm      '    9.0574       1.0000          .0000       .10000E+07
     6 'norm      '    16.303       1.0000          .0000       .10000E+07
     7 'norm      '    36.907       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33940E-01   1.0000          .0000       .10000E+07
     9 'norm      '    7.6326       1.0000          .0000       .10000E+07
    10 'Prefactor '    .61198E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.3532       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10736E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.3426       1.0000          .0000       .10000E+07
    14 'Prefactor '    44.852       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.7965       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.4411       1.0000          .0000       .10000E+07
    17 'Prefactor '    .64067E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2714       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6636.558     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1389 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1332       -.27676E-07** at limit **
   2  norm          14.512        7.3131        .22267E-07    .64847E-03
   3  Prefactor     .16653E-09    6.6632       -.48778E-07** at limit **
   4  norm           .0000        1.4392        .67802E-08** at limit **
   5  norm          9.1475        4.6336        .55682E-07    .52772E-02
   6  norm          16.312        2.9557        .33777E-07    .31456E-02
   7  norm          36.978        5.6350       -.41012E-07    .15868    
   8  Prefactor     .49960E-09    23.309        .21207E-06** at limit **
   9  norm          7.6018        7.6792        .71075E-07    .10166E-01
  10  Prefactor     .22204E-08    10.562        .26091E-08** at limit **
  11  norm          6.3056        8.3047       -.31629E-07   -.16595E-01
  12  Prefactor     .79992E-07    15.251        .33569E-06** at limit **
  13  Prefactor     3.3603        5.2551       -.91004E-07    .75240E-02
  14  Prefactor     45.683        56.518       -.30029E-06   -.13910E-01
  15  Prefactor     5.7575        4.8711        .79510E-07    .41338E-02
  16  Prefactor     9.4631        3.3907        .27834E-07   -.78341E-01
  17  Prefactor     .12468E-06    15.246       -.23550E-08** at limit **
  18  Normalizat    1.0620        .22913        .34866E-06    .15213E-03
  19  Prefactor     1.2712        .22073        .77677E-07    .12016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 14.5122
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 9.14745
  norm       = 16.3121
  norm       = 36.9784
  Prefactor  = 4.996e-10
  norm       = 7.60183
  Prefactor  = 2.22045e-09
  norm       = 6.30563
  Prefactor  = 7.99916e-08
  Prefactor  = 3.3603
  Prefactor  = 45.6834
  Prefactor  = 5.7575
  Prefactor  = 9.46307
  Prefactor  = 1.24678e-07
  Normalizat = 1.06198
  Prefactor  = 1.27121
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.602e+00  8.085e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.271e+00  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.062e+00  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.44e-05

TS (Fixed Index): 1.62
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 1.20629947319e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.34262947219e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31654776/likelihoodResults_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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) = 6636.49922175
delta logL = 0.0588444976811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6636.49522771
delta logL = 0.0628385407454

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6636.495     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0687        195.62        .37700E-03    .18070E-02
   2  alpha         2.5718        2.9994        .41173        .25342E-04
   3  Normalizat    1.0481        .87588E-01    .63835E-01    .14128E-04
   4  Prefactor     1.2797        .73268E-01    .57996E-01    .39365E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.06867
  alpha      = 2.57177
  Normalizat = 1.04806
  Prefactor  = 1.27973
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.558     FROM HESSE     STATUS=OK           312 CALLS     1701 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.512        7.4019        .26258E-03   -1.5632    
   3  Prefactor     .16653E-09    6.6625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.4365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1475        9.8928        .33279E-03   -1.5647    
   6  norm          16.312        16.306        .24779E-03   -1.5627    
   7  norm          36.978        27.886        .16462E-03   -1.5586    
   8  Prefactor     .49960E-09    22.602        .16249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.6018        8.0849        .36275E-03   -1.5653    
  10  Prefactor     .22204E-08    10.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3056        8.7211        .39798E-03   -1.5658    
  12  Prefactor     .79992E-07    15.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3603        30.210        .55333E-03   -1.5671    
  14  Prefactor     45.683        56.916        .14933E-03   -1.5573    
  15  Prefactor     5.7575        4.8551        .41692E-03   -1.5660    
  16  Prefactor     9.4631        9.5585        .32591E-03   -1.5646    
  17  Prefactor     .12468E-06    15.993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0620        .19333        .63466E-01   -.90982    
  19  Prefactor     1.2712        .18449        .58161E-01   -.84167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11012e-07
Minuit parameter uncertainties:
  1  8.97915e-06
  2  7.40189
  3  6.33179e-05
  4  1.6029e-06
  5  9.89286
  6  16.3064
  7  27.8865
  8  0.000210754
  9  8.08493
  10  0.000307788
  11  8.72113
  12  0.00223993
  13  20.151
  14  56.9172
  15  4.85514
  16  9.55848
  17  0.00282403
  18  0.193462
  19  0.184589
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.495     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0687        7.4148        .15080E-04   -1.5655    
   2  alpha         2.5718        .85508        .18793E-01    .28712E-01
   3  Normalizat    1.0481        .22582        .28236E-03   -.91437    
   4  Prefactor     1.2797        .22075        .25646E-03   -.83912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98072e-12
Minuit parameter uncertainties:
  1  7.41484
  2  0.87271
  3  0.226024
  4  0.220908
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) = 6636.49522762
delta logL = 0.0628386283406

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.069e+00  7.415e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.572e+00  8.727e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.280e+00  2.209e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.048e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.57 +/- 0.87
Photon Flux (Free Index): 4.87e-08 +/- 5.21e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31654776/cmap_HighResolution_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='1.32e-05', photon_flux_error='4.00e-08', dlogl='6.28e-02', energy_flux='1.36e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2026-07-14 11:00:20.977615', photon_index_error2='0.87', photon_index2='2.57', ts='1.62', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.23e-05', EG='1.06', time_epoch_completed='1784052020.98', return_code='0', job_id='31654776', GAL2='1.28', EG2='1.05', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.21e-08', ts2='1.76', photon_index='2.28' WHERE bin_id='2184' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 11:00:21 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.602e+00  8.085e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.271e+00  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.062e+00  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.44e-05

TS (Fixed Index): 1.62
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 1.20629947319e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.34262947219e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31654771/likelihoodResults_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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) = 6636.49922175
delta logL = 0.0588444976811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6636.49522771
delta logL = 0.0628385407454

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6636.495     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0687        195.62        .37700E-03    .18070E-02
   2  alpha         2.5718        2.9994        .41173        .25342E-04
   3  Normalizat    1.0481        .87588E-01    .63835E-01    .14128E-04
   4  Prefactor     1.2797        .73268E-01    .57996E-01    .39365E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.06867
  alpha      = 2.57177
  Normalizat = 1.04806
  Prefactor  = 1.27973
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.495     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0687        7.4148        .15080E-04   -1.5655    
   2  alpha         2.5718        .85508        .18793E-01    .28712E-01
   3  Normalizat    1.0481        .22582        .28236E-03   -.91437    
   4  Prefactor     1.2797        .22075        .25646E-03   -.83912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98072e-12
Minuit parameter uncertainties:
  1  7.41484
  2  0.87271
  3  0.226024
  4  0.220908
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) = 6636.49522762
delta logL = 0.0628386283406

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.069e+00  7.415e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.572e+00  8.727e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.280e+00  2.209e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.048e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.57 +/- 0.87
Photon Flux (Free Index): 4.87e-08 +/- 5.21e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31654771/cmap_HighResolution_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='1.32e-05', photon_flux_error='4.00e-08', dlogl='6.28e-02', energy_flux='1.36e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2026-07-14 11:00:32.203503', photon_index_error2='0.87', photon_index2='2.57', ts='1.62', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.23e-05', EG='1.06', time_epoch_completed='1784052032.2', return_code='0', job_id='31654771', GAL2='1.28', EG2='1.05', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.21e-08', ts2='1.76', photon_index='2.28' WHERE bin_id='2184' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 11:00:32 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.602e+00  8.085e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.271e+00  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.062e+00  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.44e-05

TS (Fixed Index): 1.62
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 1.20629947319e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.34262947219e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31654787/likelihoodResults_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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) = 6636.49922175
delta logL = 0.0588444976811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6636.49522771
delta logL = 0.0628385407454

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6636.495     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0687        195.62        .37700E-03    .18070E-02
   2  alpha         2.5718        2.9994        .41173        .25342E-04
   3  Normalizat    1.0481        .87588E-01    .63835E-01    .14128E-04
   4  Prefactor     1.2797        .73268E-01    .57996E-01    .39365E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.06867
  alpha      = 2.57177
  Normalizat = 1.04806
  Prefactor  = 1.27973
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.495     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0687        7.4148        .15080E-04   -1.5655    
   2  alpha         2.5718        .85508        .18793E-01    .28712E-01
   3  Normalizat    1.0481        .22582        .28236E-03   -.91437    
   4  Prefactor     1.2797        .22075        .25646E-03   -.83912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98072e-12
Minuit parameter uncertainties:
  1  7.41484
  2  0.87271
  3  0.226024
  4  0.220908
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) = 6636.49522762
delta logL = 0.0628386283406

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.069e+00  7.415e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.572e+00  8.727e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.280e+00  2.209e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.048e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.57 +/- 0.87
Photon Flux (Free Index): 4.87e-08 +/- 5.21e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31654787/cmap_HighResolution_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='1.32e-05', photon_flux_error='4.00e-08', dlogl='6.28e-02', energy_flux='1.36e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2026-07-14 11:00:47.169855', photon_index_error2='0.87', photon_index2='2.57', ts='1.62', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.23e-05', EG='1.06', time_epoch_completed='1784052047.17', return_code='0', job_id='31654787', GAL2='1.28', EG2='1.05', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.21e-08', ts2='1.76', photon_index='2.28' WHERE bin_id='2184' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 11:00:47 PDT 2026

tfile=/lscratch/kocevski/31654825/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.fits
.....................!
real 8.28
user 7.70
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31654825/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" scfile=/lscratch/kocevski/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31654825/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654825/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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/31654825/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
.....................!
real 66.03
user 61.65
sys 3.82

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

Setting source of interest to:
4FGL J1321.1+2216 @ 200.296 22.2808

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31654825/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits scfile=/lscratch/kocevski/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654825/cmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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=200.296 yref=22.2808 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.85
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31654825/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits scfile=/lscratch/kocevski/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.fits outfile=/lscratch/kocevski/31654825/cmap_HighResolution_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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=200.296 yref=22.2808 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/31654825/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits evtable="EVENTS" scfile=/lscratch/kocevski/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31654825/Model_4FGL_J1321.1+2216_daily_bin2184.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/31654799/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits.....................!
real 23.01
user 21.58
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31654799/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits', '/lscratch/kocevski/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.fits', expMap='/lscratch/kocevski/31654799/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits', expCube='/lscratch/kocevski/31654799/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31654799/Model_4FGL_J1321.1+2216_daily_bin2184.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1321.1+2216'

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31654799/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits
Spacecraft file(s): /lscratch/kocevski/31654799/ft2_4FGL_J1321.1+2216_daily_bin2184.fits
Exposure map: /lscratch/kocevski/31654799/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
Exposure cube: /lscratch/kocevski/31654799/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31654799/Model_4FGL_J1321.1+2216_daily_bin2184.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) = 6636.56118595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38605E-05   1.0000          .0000       .10000E+07
     2 'norm      '    14.521       1.0000          .0000       .10000E+07
     3 'Prefactor '    .21685E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .18480E-06   1.0000          .0000       .10000E+07
     5 'norm      '    9.0574       1.0000          .0000       .10000E+07
     6 'norm      '    16.303       1.0000          .0000       .10000E+07
     7 'norm      '    36.907       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33940E-01   1.0000          .0000       .10000E+07
     9 'norm      '    7.6326       1.0000          .0000       .10000E+07
    10 'Prefactor '    .61198E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.3532       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10736E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.3426       1.0000          .0000       .10000E+07
    14 'Prefactor '    44.852       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.7965       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.4411       1.0000          .0000       .10000E+07
    17 'Prefactor '    .64067E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2714       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6636.558     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1389 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1332       -.27676E-07** at limit **
   2  norm          14.512        7.3131        .22267E-07    .64847E-03
   3  Prefactor     .16653E-09    6.6632       -.48778E-07** at limit **
   4  norm           .0000        1.4392        .67802E-08** at limit **
   5  norm          9.1475        4.6336        .55682E-07    .52772E-02
   6  norm          16.312        2.9557        .33777E-07    .31456E-02
   7  norm          36.978        5.6350       -.41012E-07    .15868    
   8  Prefactor     .49960E-09    23.309        .21207E-06** at limit **
   9  norm          7.6018        7.6792        .71075E-07    .10166E-01
  10  Prefactor     .22204E-08    10.562        .26091E-08** at limit **
  11  norm          6.3056        8.3047       -.31629E-07   -.16595E-01
  12  Prefactor     .79992E-07    15.251        .33569E-06** at limit **
  13  Prefactor     3.3603        5.2551       -.91004E-07    .75240E-02
  14  Prefactor     45.683        56.518       -.30029E-06   -.13910E-01
  15  Prefactor     5.7575        4.8711        .79510E-07    .41338E-02
  16  Prefactor     9.4631        3.3907        .27834E-07   -.78341E-01
  17  Prefactor     .12468E-06    15.246       -.23550E-08** at limit **
  18  Normalizat    1.0620        .22913        .34866E-06    .15213E-03
  19  Prefactor     1.2712        .22073        .77677E-07    .12016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 14.5122
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 9.14745
  norm       = 16.3121
  norm       = 36.9784
  Prefactor  = 4.996e-10
  norm       = 7.60183
  Prefactor  = 2.22045e-09
  norm       = 6.30563
  Prefactor  = 7.99916e-08
  Prefactor  = 3.3603
  Prefactor  = 45.6834
  Prefactor  = 5.7575
  Prefactor  = 9.46307
  Prefactor  = 1.24678e-07
  Normalizat = 1.06198
  Prefactor  = 1.27121
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.558     FROM HESSE     STATUS=OK           312 CALLS     1701 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.512        7.4019        .26258E-03   -1.5632    
   3  Prefactor     .16653E-09    6.6625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.4365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1475        9.8928        .33279E-03   -1.5647    
   6  norm          16.312        16.306        .24779E-03   -1.5627    
   7  norm          36.978        27.886        .16462E-03   -1.5586    
   8  Prefactor     .49960E-09    22.602        .16249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.6018        8.0849        .36275E-03   -1.5653    
  10  Prefactor     .22204E-08    10.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3056        8.7211        .39798E-03   -1.5658    
  12  Prefactor     .79992E-07    15.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3603        30.210        .55333E-03   -1.5671    
  14  Prefactor     45.683        56.916        .14933E-03   -1.5573    
  15  Prefactor     5.7575        4.8551        .41692E-03   -1.5660    
  16  Prefactor     9.4631        9.5585        .32591E-03   -1.5646    
  17  Prefactor     .12468E-06    15.993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0620        .19333        .63466E-01   -.90982    
  19  Prefactor     1.2712        .18449        .58161E-01   -.84167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11012e-07
Minuit parameter uncertainties:
  1  8.97915e-06
  2  7.40189
  3  6.33179e-05
  4  1.6029e-06
  5  9.89286
  6  16.3064
  7  27.8865
  8  0.000210754
  9  8.08493
  10  0.000307788
  11  8.72113
  12  0.00223993
  13  20.151
  14  56.9172
  15  4.85514
  16  9.55848
  17  0.00282403
  18  0.193462
  19  0.184589
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.602e+00  8.085e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.271e+00  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.062e+00  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.44e-05

TS (Fixed Index): 1.62
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 1.20629947319e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.34262947219e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31654799/likelihoodResults_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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) = 6636.49922175
delta logL = 0.0588444976811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6636.49522771
delta logL = 0.0628385407454

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6636.495     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0687        195.62        .37700E-03    .18070E-02
   2  alpha         2.5718        2.9994        .41173        .25342E-04
   3  Normalizat    1.0481        .87588E-01    .63835E-01    .14128E-04
   4  Prefactor     1.2797        .73268E-01    .57996E-01    .39365E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.06867
  alpha      = 2.57177
  Normalizat = 1.04806
  Prefactor  = 1.27973
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.495     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0687        7.4148        .15080E-04   -1.5655    
   2  alpha         2.5718        .85508        .18793E-01    .28712E-01
   3  Normalizat    1.0481        .22582        .28236E-03   -.91437    
   4  Prefactor     1.2797        .22075        .25646E-03   -.83912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98072e-12
Minuit parameter uncertainties:
  1  7.41484
  2  0.87271
  3  0.226024
  4  0.220908
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) = 6636.49522762
delta logL = 0.0628386283406

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.069e+00  7.415e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.572e+00  8.727e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.280e+00  2.209e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.048e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.57 +/- 0.87
Photon Flux (Free Index): 4.87e-08 +/- 5.21e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31654799/cmap_HighResolution_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='1.32e-05', photon_flux_error='4.00e-08', dlogl='6.28e-02', energy_flux='1.36e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2026-07-14 11:01:45.634531', photon_index_error2='0.87', photon_index2='2.57', ts='1.62', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.23e-05', EG='1.06', time_epoch_completed='1784052105.63', return_code='0', job_id='31654799', GAL2='1.28', EG2='1.05', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.21e-08', ts2='1.76', photon_index='2.28' WHERE bin_id='2184' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 11:01:45 PDT 2026

_V02
Working on...
/lscratch/kocevski/31654825/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits.....................!
real 21.54
user 19.80
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31654825/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits', '/lscratch/kocevski/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.fits', expMap='/lscratch/kocevski/31654825/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits', expCube='/lscratch/kocevski/31654825/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31654825/Model_4FGL_J1321.1+2216_daily_bin2184.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1321.1+2216'

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31654825/ft1_filtered_4FGL_J1321.1+2216_daily_bin2184.fits
Spacecraft file(s): /lscratch/kocevski/31654825/ft2_4FGL_J1321.1+2216_daily_bin2184.fits
Exposure map: /lscratch/kocevski/31654825/expmap_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
Exposure cube: /lscratch/kocevski/31654825/ltcube_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31654825/Model_4FGL_J1321.1+2216_daily_bin2184.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) = 6636.56118595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38605E-05   1.0000          .0000       .10000E+07
     2 'norm      '    14.521       1.0000          .0000       .10000E+07
     3 'Prefactor '    .21685E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .18480E-06   1.0000          .0000       .10000E+07
     5 'norm      '    9.0574       1.0000          .0000       .10000E+07
     6 'norm      '    16.303       1.0000          .0000       .10000E+07
     7 'norm      '    36.907       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33940E-01   1.0000          .0000       .10000E+07
     9 'norm      '    7.6326       1.0000          .0000       .10000E+07
    10 'Prefactor '    .61198E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.3532       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10736E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.3426       1.0000          .0000       .10000E+07
    14 'Prefactor '    44.852       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.7965       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.4411       1.0000          .0000       .10000E+07
    17 'Prefactor '    .64067E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2714       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6636.558     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1389 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1332       -.27676E-07** at limit **
   2  norm          14.512        7.3131        .22267E-07    .64847E-03
   3  Prefactor     .16653E-09    6.6632       -.48778E-07** at limit **
   4  norm           .0000        1.4392        .67802E-08** at limit **
   5  norm          9.1475        4.6336        .55682E-07    .52772E-02
   6  norm          16.312        2.9557        .33777E-07    .31456E-02
   7  norm          36.978        5.6350       -.41012E-07    .15868    
   8  Prefactor     .49960E-09    23.309        .21207E-06** at limit **
   9  norm          7.6018        7.6792        .71075E-07    .10166E-01
  10  Prefactor     .22204E-08    10.562        .26091E-08** at limit **
  11  norm          6.3056        8.3047       -.31629E-07   -.16595E-01
  12  Prefactor     .79992E-07    15.251        .33569E-06** at limit **
  13  Prefactor     3.3603        5.2551       -.91004E-07    .75240E-02
  14  Prefactor     45.683        56.518       -.30029E-06   -.13910E-01
  15  Prefactor     5.7575        4.8711        .79510E-07    .41338E-02
  16  Prefactor     9.4631        3.3907        .27834E-07   -.78341E-01
  17  Prefactor     .12468E-06    15.246       -.23550E-08** at limit **
  18  Normalizat    1.0620        .22913        .34866E-06    .15213E-03
  19  Prefactor     1.2712        .22073        .77677E-07    .12016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 14.5122
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 9.14745
  norm       = 16.3121
  norm       = 36.9784
  Prefactor  = 4.996e-10
  norm       = 7.60183
  Prefactor  = 2.22045e-09
  norm       = 6.30563
  Prefactor  = 7.99916e-08
  Prefactor  = 3.3603
  Prefactor  = 45.6834
  Prefactor  = 5.7575
  Prefactor  = 9.46307
  Prefactor  = 1.24678e-07
  Normalizat = 1.06198
  Prefactor  = 1.27121
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.558     FROM HESSE     STATUS=OK           312 CALLS     1701 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.512        7.4019        .26258E-03   -1.5632    
   3  Prefactor     .16653E-09    6.6625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.4365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1475        9.8928        .33279E-03   -1.5647    
   6  norm          16.312        16.306        .24779E-03   -1.5627    
   7  norm          36.978        27.886        .16462E-03   -1.5586    
   8  Prefactor     .49960E-09    22.602        .16249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.6018        8.0849        .36275E-03   -1.5653    
  10  Prefactor     .22204E-08    10.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3056        8.7211        .39798E-03   -1.5658    
  12  Prefactor     .79992E-07    15.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3603        30.210        .55333E-03   -1.5671    
  14  Prefactor     45.683        56.916        .14933E-03   -1.5573    
  15  Prefactor     5.7575        4.8551        .41692E-03   -1.5660    
  16  Prefactor     9.4631        9.5585        .32591E-03   -1.5646    
  17  Prefactor     .12468E-06    15.993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0620        .19333        .63466E-01   -.90982    
  19  Prefactor     1.2712        .18449        .58161E-01   -.84167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11012e-07
Minuit parameter uncertainties:
  1  8.97915e-06
  2  7.40189
  3  6.33179e-05
  4  1.6029e-06
  5  9.89286
  6  16.3064
  7  27.8865
  8  0.000210754
  9  8.08493
  10  0.000307788
  11  8.72113
  12  0.00223993
  13  20.151
  14  56.9172
  15  4.85514
  16  9.55848
  17  0.00282403
  18  0.193462
  19  0.184589
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.602e+00  8.085e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.271e+00  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.062e+00  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.44e-05

TS (Fixed Index): 1.62
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 1.20629947319e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.34262947219e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31654825/likelihoodResults_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.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) = 6636.49922175
delta logL = 0.0588444976811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6636.49522771
delta logL = 0.0628385407454

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6636.495     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0687        195.62        .37700E-03    .18070E-02
   2  alpha         2.5718        2.9994        .41173        .25342E-04
   3  Normalizat    1.0481        .87588E-01    .63835E-01    .14128E-04
   4  Prefactor     1.2797        .73268E-01    .57996E-01    .39365E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.06867
  alpha      = 2.57177
  Normalizat = 1.04806
  Prefactor  = 1.27973
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.495     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0687        7.4148        .15080E-04   -1.5655    
   2  alpha         2.5718        .85508        .18793E-01    .28712E-01
   3  Normalizat    1.0481        .22582        .28236E-03   -.91437    
   4  Prefactor     1.2797        .22075        .25646E-03   -.83912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98072e-12
Minuit parameter uncertainties:
  1  7.41484
  2  0.87271
  3  0.226024
  4  0.220908
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) = 6636.49522762
delta logL = 0.0628386283406

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.069e+00  7.415e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.572e+00  8.727e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.280e+00  2.209e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.048e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.57 +/- 0.87
Photon Flux (Free Index): 4.87e-08 +/- 5.21e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31654825/cmap_HighResolution_805420801_805680001_4FGL_J1321.1+2216_daily_bin2184.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='1.32e-05', photon_flux_error='4.00e-08', dlogl='6.28e-02', energy_flux='1.36e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2026-07-14 11:02:42.208483', photon_index_error2='0.87', photon_index2='2.57', ts='1.62', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.23e-05', EG='1.06', time_epoch_completed='1784052162.21', return_code='0', job_id='31654825', GAL2='1.28', EG2='1.05', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.21e-08', ts2='1.76', photon_index='2.28' WHERE bin_id='2184' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 11:02:42 PDT 2026

