/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

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

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

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


Performing analysis on: 4FGL_J0222.6+4302_weekly_bin945
RA = 35.6696, Dec = 43.0357
tmin = 810518401, tmax = 811123201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='38279524', job_status='RUN', time_executed='2026-09-15 01:52:45.678205', time_epoch_executed='1789462365.68' WHERE source_name='4FGL J0222.6+4302' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38279524

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38279524/ft1_4FGL_J0222.6+4302_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38279524/ft1_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279524/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin945.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=810518401.0 tmax=811123201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.20
user 5.52
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/38279524/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38279524/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 3414

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38279524/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA"number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0222.6+4302_weekly_bin945
RA = 35.6696, Dec = 43.0357
tmin = 810518401, tmax = 811123201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='38279555', job_status='RUN', time_executed='2026-09-15 01:53:44.222328', time_epoch_executed='1789462424.22' WHERE source_name='4FGL J0222.6+4302' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38279555

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38279555/ft1_4FGL_J0222.6+4302_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38279555/ft1_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279555/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin945.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=810518401.0 tmax=811123201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.47
user 4.92
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/38279555/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38279555/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 3414

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38279555/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA"number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0222.6+4302_weekly_bin945
RA = 35.6696, Dec = 43.0357
tmin = 810518401, tmax = 811123201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='38279567', job_status='RUN', time_executed='2026-09-15 01:53:47.936278', time_epoch_executed='1789462427.94' WHERE source_name='4FGL J0222.6+4302' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38279567

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38279567/ft1_4FGL_J0222.6+4302_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38279567/ft1_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279567/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin945.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=810518401.0 tmax=811123201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.12
user 5.47
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/38279567/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38279567/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 3414

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38279567/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38279524/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits
.....................!
real 18.86
user 18.07
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38279524/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38279524/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279524/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/38279524/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
.....................!
real 71.85
user 66.97
sys 4.00

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

Setting source of interest to:
4FGL J0222.6+4302 @ 35.6696 43.0357

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38279524/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits scfile=/lscratch/kocevski/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279524/cmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=35.6696 yref=43.0357 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.63
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38279524/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits scfile=/lscratch/kocevski/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279524/cmap_HighResolution_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=35.6696 yref=43.0357 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.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38279524/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevsknumber of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0222.6+4302_weekly_bin945
RA = 35.6696, Dec = 43.0357
tmin = 810518401, tmax = 811123201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='38279589', job_status='RUN', time_executed='2026-09-15 01:54:42.723078', time_epoch_executed='1789462482.72' WHERE source_name='4FGL J0222.6+4302' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38279589

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38279589/ft1_4FGL_J0222.6+4302_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38279589/ft1_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279589/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin945.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=810518401.0 tmax=811123201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.09
user 5.62
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/38279589/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38279589/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 3414

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38279589/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38279555/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits
.....................!
real 16.55
user 15.94
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38279555/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38279555/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279555/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/38279555/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
.....................!
real 62.66
user 58.37
sys 3.63

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

Setting source of interest to:
4FGL J0222.6+4302 @ 35.6696 43.0357

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38279555/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits scfile=/lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279555/cmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=35.6696 yref=43.0357 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38279555/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits scfile=/lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279555/cmap_HighResolution_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=35.6696 yref=43.0357 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38279555/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevsk outfile=/lscratch/kocevski/38279567/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits
.....................!
real 19.04
user 18.43
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38279567/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38279567/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279567/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/38279567/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
.....................!
real 71.51
user 65.95
sys 4.21

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

Setting source of interest to:
4FGL J0222.6+4302 @ 35.6696 43.0357

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38279567/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits scfile=/lscratch/kocevski/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279567/cmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=35.6696 yref=43.0357 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.78
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38279567/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits scfile=/lscratch/kocevski/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279567/cmap_HighResolution_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=35.6696 yref=43.0357 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.68
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38279567/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevsk outfile=/lscratch/kocevski/38279589/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits
.....................!
real 19.34
user 18.77
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38279589/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38279589/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279589/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/38279589/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
.....................!
real 73.92
user 69.02
sys 4.22

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

Setting source of interest to:
4FGL J0222.6+4302 @ 35.6696 43.0357

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38279589/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits scfile=/lscratch/kocevski/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279589/cmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=35.6696 yref=43.0357 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.77
user 0.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38279589/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits scfile=/lscratch/kocevski/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits outfile=/lscratch/kocevski/38279589/cmap_HighResolution_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=35.6696 yref=43.0357 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.64
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38279589/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38279555/Model_4FGL_J0222.6+4302_weekly_bin945.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/lscratch/kocevski/38279555/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits.....................!
real 140.06
user 137.93
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38279555/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits', '/lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits', expMap='/lscratch/kocevski/38279555/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits', expCube='/lscratch/kocevski/38279555/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38279555/Model_4FGL_J0222.6+4302_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0222.6+4302'

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.032e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38279555/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38279555/ft2_4FGL_J0222.6+4302_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38279555/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38279555/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38279555/Model_4FGL_J0222.6+4302_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78182E-06   1.0000          .0000       .10000E+07
     2 'norm      '    2.1049       1.0000          .0000       .10000E+07
     3 'norm      '    .27955       1.0000          .0000       .10000E+07
     4 'Prefactor '    .84710E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .97219E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21745E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.969       1.0000          .0000       .10000E+07
     8 'Prefactor '    .51767E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .11358E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .34949       1.0000          .0000       .10000E+07
    11 'norm      '    .30959       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.4491       1.0000          .0000       .10000E+07
    13 'norm      '    17.184       1.0000          .0000       .10000E+07
    14 'norm      '    9.4952       1.0000          .0000       .10000E+07
    15 'Prefactor '    .62127       1.0000          .0000       .10000E+07
    16 'norm      '    3.7298       1.0000          .0000       .10000E+07
    17 'Prefactor '    .38634E-03   1.0000          .0000       .10000E+07
    18 'norm      '    14.835       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2312       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0335       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35231.19     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1236 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    12.455        .30691E-06** at limit **
   2  norm          2.1042        .77524        .14261E-07   -.10628E-02
   3  norm          .27892        .51352       -.44339E-07   -.47880E-03
   4  Prefactor     .55511E-10    2.4380       -.42515E-06** at limit **
   5  Prefactor     .11210        7.4686       -.71387E-06** at limit **
   6  Prefactor      .0000        6.5527        .50421E-08** at limit **
   7  Prefactor     19.015        1.0421        .35200E-08   -.43712E-01
   8  Prefactor     .55511E-10    3.6361       -.89065E-07** at limit **
   9  norm           .0000        .57448        .12602E-06** at limit **
  10  norm          .34947        .28643        .39765E-07   -.59362E-02
  11  norm          .30947        .16000        .49497E-07   -.10564E-01
  12  Prefactor     8.4427        5.1100       -.79570E-07   -.31689E-02
  13  norm          17.183        5.6340       -.16996E-07    .71698E-02
  14  norm          9.3791        1.3487       -.85549E-08    .44960E-01
  15  Prefactor     .63363        1.4705       -.13405E-06   -.22806E-02
  16  norm          3.7310        2.2108        .12823E-06   -.21592E-02
  17  Prefactor     .16653E-09    3.9066       -.37190E-06** at limit **
  18  norm          14.835        .79273        .46049E-09   -.23621E-02
  19  Normalizat    1.2310        .14832       -.70836E-05   -.21903E-04
  20  Prefactor     1.0336        .49558E-01    .18869E-05   -.25760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 2.10423
  norm       = 0.278919
  Prefactor  = 5.55112e-11
  Prefactor  = 0.112099
  Prefactor  = 0
  Prefactor  = 19.015
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 0.349471
  norm       = 0.30947
  Prefactor  = 8.44266
  norm       = 17.1833
  norm       = 9.37909
  Prefactor  = 0.633627
  norm       = 3.73097
  Prefactor  = 1.66533e-10
  norm       = 14.8353
  Normalizat = 1.23105
  Prefactor  = 1.03356
i/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38279524/Model_4FGL_J0222.6+4302_weekly_bin945.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/lscratch/kocevski/38279524/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits.....................!
real 158.44
user 156.00
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38279524/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits', '/lscratch/kocevski/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits', expMap='/lscratch/kocevski/38279524/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits', expCube='/lscratch/kocevski/38279524/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38279524/Model_4FGL_J0222.6+4302_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0222.6+4302'

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.032e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38279524/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38279524/ft2_4FGL_J0222.6+4302_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38279524/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38279524/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38279524/Model_4FGL_J0222.6+4302_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78182E-06   1.0000          .0000       .10000E+07
     2 'norm      '    2.1049       1.0000          .0000       .10000E+07
     3 'norm      '    .27955       1.0000          .0000       .10000E+07
     4 'Prefactor '    .84710E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .97219E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21745E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.969       1.0000          .0000       .10000E+07
     8 'Prefactor '    .51767E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .11358E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .34949       1.0000          .0000       .10000E+07
    11 'norm      '    .30959       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.4491       1.0000          .0000       .10000E+07
    13 'norm      '    17.184       1.0000          .0000       .10000E+07
    14 'norm      '    9.4952       1.0000          .0000       .10000E+07
    15 'Prefactor '    .62127       1.0000          .0000       .10000E+07
    16 'norm      '    3.7298       1.0000          .0000       .10000E+07
    17 'Prefactor '    .38634E-03   1.0000          .0000       .10000E+07
    18 'norm      '    14.835       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2312       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0335       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35231.19     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1236 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    12.455        .30691E-06** at limit **
   2  norm          2.1042        .77524        .14261E-07   -.10628E-02
   3  norm          .27892        .51352       -.44339E-07   -.47880E-03
   4  Prefactor     .55511E-10    2.4380       -.42515E-06** at limit **
   5  Prefactor     .11210        7.4686       -.71387E-06** at limit **
   6  Prefactor      .0000        6.5527        .50421E-08** at limit **
   7  Prefactor     19.015        1.0421        .35200E-08   -.43712E-01
   8  Prefactor     .55511E-10    3.6361       -.89065E-07** at limit **
   9  norm           .0000        .57448        .12602E-06** at limit **
  10  norm          .34947        .28643        .39765E-07   -.59362E-02
  11  norm          .30947        .16000        .49497E-07   -.10564E-01
  12  Prefactor     8.4427        5.1100       -.79570E-07   -.31689E-02
  13  norm          17.183        5.6340       -.16996E-07    .71698E-02
  14  norm          9.3791        1.3487       -.85549E-08    .44960E-01
  15  Prefactor     .63363        1.4705       -.13405E-06   -.22806E-02
  16  norm          3.7310        2.2108        .12823E-06   -.21592E-02
  17  Prefactor     .16653E-09    3.9066       -.37190E-06** at limit **
  18  norm          14.835        .79273        .46049E-09   -.23621E-02
  19  Normalizat    1.2310        .14832       -.70836E-05   -.21903E-04
  20  Prefactor     1.0336        .49558E-01    .18869E-05   -.25760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 2.10423
  norm       = 0.278919
  Prefactor  = 5.55112e-11
  Prefactor  = 0.112099
  Prefactor  = 0
  Prefactor  = 19.015
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 0.349471
  norm       = 0.30947
  Prefactor  = 8.44266
  norm       = 17.1833
  norm       = 9.37909
  Prefactor  = 0.633627
  norm       = 3.73097
  Prefactor  = 1.66533e-10
  norm       = 14.8353
  Normalizat = 1.23105
  Prefactor  = 1.03356
i/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38279567/Model_4FGL_J0222.6+4302_weekly_bin945.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/lscratch/kocevski/38279567/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits.....................!
real 158.38
user 155.76
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38279567/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits', '/lscratch/kocevski/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits', expMap='/lscratch/kocevski/38279567/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits', expCube='/lscratch/kocevski/38279567/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38279567/Model_4FGL_J0222.6+4302_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0222.6+4302'

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.032e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38279567/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38279567/ft2_4FGL_J0222.6+4302_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38279567/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38279567/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38279567/Model_4FGL_J0222.6+4302_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78182E-06   1.0000          .0000       .10000E+07
     2 'norm      '    2.1049       1.0000          .0000       .10000E+07
     3 'norm      '    .27955       1.0000          .0000       .10000E+07
     4 'Prefactor '    .84710E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .97219E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21745E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.969       1.0000          .0000       .10000E+07
     8 'Prefactor '    .51767E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .11358E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .34949       1.0000          .0000       .10000E+07
    11 'norm      '    .30959       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.4491       1.0000          .0000       .10000E+07
    13 'norm      '    17.184       1.0000          .0000       .10000E+07
    14 'norm      '    9.4952       1.0000          .0000       .10000E+07
    15 'Prefactor '    .62127       1.0000          .0000       .10000E+07
    16 'norm      '    3.7298       1.0000          .0000       .10000E+07
    17 'Prefactor '    .38634E-03   1.0000          .0000       .10000E+07
    18 'norm      '    14.835       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2312       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0335       1.0000          .0000     **********
 **   18 **HESSE 
 **********

 FCN=   35231.19     FROM HESSE     STATUS=OK           349 CALLS     1585 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    12.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1042        .77269        .71094E-03   -1.5679    
   3  norm          .27892        .41848        .27233E-02   -1.5697    
   4  Prefactor     .55511E-10    2.4365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11210        .47696        .80408E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        6.5712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.015        33.231        .22969E-03   -1.5621    
   8  Prefactor     .55511E-10    3.6384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .57474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .34947        .33803        .20478E-02   -1.5696    
  11  norm          .30947        .17242        .10081E-02   -1.5697    
  12  Prefactor     8.4427        5.1652        .34464E-03   -1.5650    
  13  norm          17.183        5.6897        .24134E-03   -1.5625    
  14  norm          9.3791        7.2601        .32498E-03   -1.5647    
  15  Prefactor     .63363        1.4909        .67344E-03   -1.5692    
  16  norm          3.7310        2.2043        .52260E-03   -1.5669    
  17  Prefactor     .16653E-09    3.9122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.835        .79292        .25978E-03   -1.5631    
  19  Normalizat    1.2310        .13916        .10606       -.85649    
  20  Prefactor     1.0336        .45472E-01    .40989E-01   -.91619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20353e-06
Minuit parameter uncertainties:
  1  4.0506e-05
  2  0.772695
  3  0.418482
  4  2.73865e-05
  5  0.462458
  6  1.85727e-05
  7  33.2312
  8  2.36328e-05
  9  6.20298e-07
  10  0.338028
  11  0.172418
  12  5.16518
  13  5.68965
  14  7.26007
  15  1.49087
  16  2.2043
  17  5.38158e-05
  18  0.792923
  19  0.139205
  20  0.0454735
   10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35231.19     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1236 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    12.455        .30691E-06** at limit **
   2  norm          2.1042        .77524        .14261E-07   -.10628E-02
   3  norm          .27892        .51352       -.44339E-07   -.47880E-03
   4  Prefactor     .55511E-10    2.4380       -.42515E-06** at limit **
   5  Prefactor     .11210        7.4686       -.71387E-06** at limit **
   6  Prefactor      .0000        6.5527        .50421E-08** at limit **
   7  Prefactor     19.015        1.0421        .35200E-08   -.43712E-01
   8  Prefactor     .55511E-10    3.6361       -.89065E-07** at limit **
   9  norm           .0000        .57448        .12602E-06** at limit **
  10  norm          .34947        .28643        .39765E-07   -.59362E-02
  11  norm          .30947        .16000        .49497E-07   -.10564E-01
  12  Prefactor     8.4427        5.1100       -.79570E-07   -.31689E-02
  13  norm          17.183        5.6340       -.16996E-07    .71698E-02
  14  norm          9.3791        1.3487       -.85549E-08    .44960E-01
  15  Prefactor     .63363        1.4705       -.13405E-06   -.22806E-02
  16  norm          3.7310        2.2108        .12823E-06   -.21592E-02
  17  Prefactor     .16653E-09    3.9066       -.37190E-06** at limit **
  18  norm          14.835        .79273        .46049E-09   -.23621E-02
  19  Normalizat    1.2310        .14832       -.70836E-05   -.21903E-04
  20  Prefactor     1.0336        .49558E-01    .18869E-05   -.25760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 2.10423
  norm       = 0.278919
  Prefactor  = 5.55112e-11
  Prefactor  = 0.112099
  Prefactor  = 0
  Prefactor  = 19.015
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 0.349471
  norm       = 0.30947
  Prefactor  = 8.44266
  norm       = 17.1833
  norm       = 9.37909
  Prefactor  = 0.633627
  norm       = 3.73097
  Prefactor  = 1.66533e-10
  norm       = 14.8353
  Normalizat = 1.23105
  Prefactor  = 1.03356
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  3.095e-01  1.724e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.034e+00  4.547e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.231e+00  1.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.05
Ra Dec: 35.670 43.036
Photon Index (Fixed Index): 1.89 +/- 0.00
Photon Flux (Fixed Index): 3.35e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.54e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35230.0216516
delta logL = 1.17233672914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35230.0153945
delta logL = 1.17859380254

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   35230.02     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27788        .95845        .85982E-03    .81445E-01
   2  alpha         2.5047        1.6473        .28784        .22150E-03
   3  Normalizat    1.1872        .36595E-01    .10759        .20890E-03
   4  Prefactor     1.0401        .11964E-01    .40525E-01   -.42990E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.27788
  alpha      = 2.50473
  Normalizat = 1.18717
  Prefactor  = 1.04014
 **********
 **   18 **HESSE 
 **********

 FCN=   35231.19     FROM HESSE     STATUS=OK           349 CALLS     1585 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    12.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1042        .77269        .71094E-03   -1.5679    
   3  norm          .27892        .41848        .27233E-02   -1.5697    
   4  Prefactor     .55511E-10    2.4365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11210        .47696        .80408E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        6.5712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.015        33.231        .22969E-03   -1.5621    
   8  Prefactor     .55511E-10    3.6384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .57474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .34947        .33803        .20478E-02   -1.5696    
  11  norm          .30947        .17242        .10081E-02   -1.5697    
  12  Prefactor     8.4427        5.1652        .34464E-03   -1.5650    
  13  norm          17.183        5.6897        .24134E-03   -1.5625    
  14  norm          9.3791        7.2601        .32498E-03   -1.5647    
  15  Prefactor     .63363        1.4909        .67344E-03   -1.5692    
  16  norm          3.7310        2.2043        .52260E-03   -1.5669    
  17  Prefactor     .16653E-09    3.9122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.835        .79292        .25978E-03   -1.5631    
  19  Normalizat    1.2310        .13916        .10606       -.85649    
  20  Prefactor     1.0336        .45472E-01    .40989E-01   -.91619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20353e-06
Minuit parameter uncertainties:
  1  4.0506e-05
  2  0.772695
  3  0.418482
  4  2.73865e-05
  5  0.462458
  6  1.85727e-05
  7  33.2312
  8  2.36328e-05
  9  6.20298e-07
  10  0.338028
  11  0.172418
  12  5.16518
  13  5.68965
  14  7.26007
  15  1.49087
  16  2.2043
  17  5.38158e-05
  18  0.792923
  19  0.139205
  20  0.0454735
 **********
 **   18 **HESSE 
 **********

 FCN=   35230.02     FROM HESSE     STATUS=OK            35 CALLS      268 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27788        .18197        .39828E-04   -1.5697    
   2  alpha         2.5047        .48006        .15742E-01    .18926E-02
   3  Normalizat    1.1872        .14009        .47697E-03   -.87000    
   4  Prefactor     1.0401        .47514E-01    .17560E-03   -.91403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89038e-08
Minuit parameter uncertainties:
  1  0.181974
  2  0.483057
  3  0.140129
  4  0.0475161
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) = 35230.0153945
delta logL = 1.17859381554

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  2.779e-01  1.820e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  2.505e+00  4.831e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.040e+00  4.752e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.187e+00  1.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.55
Ra Dec: 35.670 43.036
Photon Index (Free Index): 2.50 +/- 0.48
Photon Flux (Free Index): 7.89e-08 +/- 4.16e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/38279555/cmap_HighResolution_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.35e-08', energy_flux2='2.38e-05', photon_flux_error='1.86e-08', dlogl='1.18e+00', energy_flux='2.77e-05', photon_flux2='7.89e-08', job_status='DONE', time_completed='2026-09-15 02:04:57.052913', photon_index_error2='0.48', photon_index2='2.50', ts='7.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.23', time_epoch_completed='1789463097.05', return_code='0', job_id='38279555', GAL2='1.04', EG2='1.19', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='4.16e-08', ts2='9.55', photon_index='1.89' WHERE bin_id='945' AND source_name='4FGL J0222.6+4302' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 02:04:57 PDT 2026

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

 FCN=   35231.19     FROM HESSE     STATUS=OK           349 CALLS     1585 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    12.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1042        .77269        .71094E-03   -1.5679    
   3  norm          .27892        .41848        .27233E-02   -1.5697    
   4  Prefactor     .55511E-10    2.4365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11210        .47696        .80408E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        6.5712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.015        33.231        .22969E-03   -1.5621    
   8  Prefactor     .55511E-10    3.6384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .57474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .34947        .33803        .20478E-02   -1.5696    
  11  norm          .30947        .17242        .10081E-02   -1.5697    
  12  Prefactor     8.4427        5.1652        .34464E-03   -1.5650    
  13  norm          17.183        5.6897        .24134E-03   -1.5625    
  14  norm          9.3791        7.2601        .32498E-03   -1.5647    
  15  Prefactor     .63363        1.4909        .67344E-03   -1.5692    
  16  norm          3.7310        2.2043        .52260E-03   -1.5669    
  17  Prefactor     .16653E-09    3.9122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.835        .79292        .25978E-03   -1.5631    
  19  Normalizat    1.2310        .13916        .10606       -.85649    
  20  Prefactor     1.0336        .45472E-01    .40989E-01   -.91619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20353e-06
Minuit parameter uncertainties:
  1  4.0506e-05
  2  0.772695
  3  0.418482
  4  2.73865e-05
  5  0.462458
  6  1.85727e-05
  7  33.2312
  8  2.36328e-05
  9  6.20298e-07
  10  0.338028
  11  0.172418
  12  5.16518
  13  5.68965
  14  7.26007
  15  1.49087
  16  2.2043
  17  5.38158e-05
  18  0.792923
  19  0.139205
  20  0.0454735
i/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38279589/Model_4FGL_J0222.6+4302_weekly_bin945.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/lscratch/kocevski/38279589/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits.....................!
real 169.81
user 167.64
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38279589/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits', '/lscratch/kocevski/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits', expMap='/lscratch/kocevski/38279589/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits', expCube='/lscratch/kocevski/38279589/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38279589/Model_4FGL_J0222.6+4302_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0222.6+4302'

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.032e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38279589/ft1_filtered_4FGL_J0222.6+4302_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38279589/ft2_4FGL_J0222.6+4302_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38279589/expmap_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38279589/ltcube_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38279589/Model_4FGL_J0222.6+4302_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78182E-06   1.0000          .0000       .10000E+07
     2 'norm      '    2.1049       1.0000          .0000       .10000E+07
     3 'norm      '    .27955       1.0000          .0000       .10000E+07
     4 'Prefactor '    .84710E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .97219E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21745E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.969       1.0000          .0000       .10000E+07
     8 'Prefactor '    .51767E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .11358E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .34949       1.0000          .0000       .10000E+07
    11 'norm      '    .30959       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.4491       1.0000          .0000       .10000E+07
    13 'norm      '    17.184       1.0000          .0000       .10000E+07
    14 'norm      '    9.4952       1.0000          .0000       .10000E+07
    15 'Prefactor '    .62127       1.0000          .0000       .10000E+07
    16 'norm      '    3.7298       1.0000          .0000       .10000E+07
    17 'Prefactor '    .38634E-03   1.0000          .0000       .10000E+07
    18 'norm      '    14.835       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2312       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0335       1.0000          .0000    Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  3.095e-01  1.724e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.034e+00  4.547e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.231e+00  1.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.05
Ra Dec: 35.670 43.036
Photon Index (Fixed Index): 1.89 +/- 0.00
Photon Flux (Fixed Index): 3.35e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.54e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35230.0216516
delta logL = 1.17233672914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35230.0153945
delta logL = 1.17859380254

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   35230.02     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27788        .95845        .85982E-03    .81445E-01
   2  alpha         2.5047        1.6473        .28784        .22150E-03
   3  Normalizat    1.1872        .36595E-01    .10759        .20890E-03
   4  Prefactor     1.0401        .11964E-01    .40525E-01   -.42990E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.27788
  alpha      = 2.50473
  Normalizat = 1.18717
  Prefactor  = 1.04014
 **********
 **   18 **HESSE 
 **********

 FCN=   35230.02     FROM HESSE     STATUS=OK            35 CALLS      268 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27788        .18197        .39828E-04   -1.5697    
   2  alpha         2.5047        .48006        .15742E-01    .18926E-02
   3  Normalizat    1.1872        .14009        .47697E-03   -.87000    
   4  Prefactor     1.0401        .47514E-01    .17560E-03   -.91403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89038e-08
Minuit parameter uncertainties:
  1  0.181974
  2  0.483057
  3  0.140129
  4  0.0475161
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) = 35230.0153945
delta logL = 1.17859381554

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  2.779e-01  1.820e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  2.505e+00  4.831e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.040e+00  4.752e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.187e+00  1.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.55
Ra Dec: 35.670 43.036
Photon Index (Free Index): 2.50 +/- 0.48
Photon Flux (Free Index): 7.89e-08 +/- 4.16e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/38279524/cmap_HighResolution_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.35e-08', energy_flux2='2.38e-05', photon_flux_error='1.86e-08', dlogl='1.18e+00', energy_flux='2.77e-05', photon_flux2='7.89e-08', job_status='DONE', time_completed='2026-09-15 02:05:45.026485', photon_index_error2='0.48', photon_index2='2.50', ts='7.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.23', time_epoch_completed='1789463145.03', return_code='0', job_id='38279524', GAL2='1.04', EG2='1.19', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='4.16e-08', ts2='9.55', photon_index='1.89' WHERE bin_id='945' AND source_name='4FGL J0222.6+4302' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 02:05:45 PDT 2026

   10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35231.19     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1236 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    12.455        .30691E-06** at limit **
   2  norm          2.1042        .77524        .14261E-07   -.10628E-02
   3  norm          .27892        .51352       -.44339E-07   -.47880E-03
   4  Prefactor     .55511E-10    2.4380       -.42515E-06** at limit **
   5  Prefactor     .11210        7.4686       -.71387E-06** at limit **
   6  Prefactor      .0000        6.5527        .50421E-08** at limit **
   7  Prefactor     19.015        1.0421        .35200E-08   -.43712E-01
   8  Prefactor     .55511E-10    3.6361       -.89065E-07** at limit **
   9  norm           .0000        .57448        .12602E-06** at limit **
  10  norm          .34947        .28643        .39765E-07   -.59362E-02
  11  norm          .30947        .16000        .49497E-07   -.10564E-01
  12  Prefactor     8.4427        5.1100       -.79570E-07   -.31689E-02
  13  norm          17.183        5.6340       -.16996E-07    .71698E-02
  14  norm          9.3791        1.3487       -.85549E-08    .44960E-01
  15  Prefactor     .63363        1.4705       -.13405E-06   -.22806E-02
  16  norm          3.7310        2.2108        .12823E-06   -.21592E-02
  17  Prefactor     .16653E-09    3.9066       -.37190E-06** at limit **
  18  norm          14.835        .79273        .46049E-09   -.23621E-02
  19  Normalizat    1.2310        .14832       -.70836E-05   -.21903E-04
  20  Prefactor     1.0336        .49558E-01    .18869E-05   -.25760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 2.10423
  norm       = 0.278919
  Prefactor  = 5.55112e-11
  Prefactor  = 0.112099
  Prefactor  = 0
  Prefactor  = 19.015
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 0.349471
  norm       = 0.30947
  Prefactor  = 8.44266
  norm       = 17.1833
  norm       = 9.37909
  Prefactor  = 0.633627
  norm       = 3.73097
  Prefactor  = 1.66533e-10
  norm       = 14.8353
  Normalizat = 1.23105
  Prefactor  = 1.03356
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  3.095e-01  1.724e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.034e+00  4.547e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.231e+00  1.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.05
Ra Dec: 35.670 43.036
Photon Index (Fixed Index): 1.89 +/- 0.00
Photon Flux (Fixed Index): 3.35e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.54e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35230.0216516
delta logL = 1.17233672914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35230.0153945
delta logL = 1.17859380254

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   35230.02     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27788        .95845        .85982E-03    .81445E-01
   2  alpha         2.5047        1.6473        .28784        .22150E-03
   3  Normalizat    1.1872        .36595E-01    .10759        .20890E-03
   4  Prefactor     1.0401        .11964E-01    .40525E-01   -.42990E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.27788
  alpha      = 2.50473
  Normalizat = 1.18717
  Prefactor  = 1.04014
 **********
 **   18 **HESSE 
 **********

 FCN=   35230.02     FROM HESSE     STATUS=OK            35 CALLS      268 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27788        .18197        .39828E-04   -1.5697    
   2  alpha         2.5047        .48006        .15742E-01    .18926E-02
   3  Normalizat    1.1872        .14009        .47697E-03   -.87000    
   4  Prefactor     1.0401        .47514E-01    .17560E-03   -.91403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89038e-08
Minuit parameter uncertainties:
  1  0.181974
  2  0.483057
  3  0.140129
  4  0.0475161
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) = 35230.0153945
delta logL = 1.17859381554

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  2.779e-01  1.820e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  2.505e+00  4.831e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.040e+00  4.752e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.187e+00  1.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.55
Ra Dec: 35.670 43.036
Photon Index (Free Index): 2.50 +/- 0.48
Photon Flux (Free Index): 7.89e-08 +/- 4.16e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/38279567/cmap_HighResolution_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.35e-08', energy_flux2='2.38e-05', photon_flux_error='1.86e-08', dlogl='1.18e+00', energy_flux='2.77e-05', photon_flux2='7.89e-08', job_status='DONE', time_completed='2026-09-15 02:06:14.067179', photon_index_error2='0.48', photon_index2='2.50', ts='7.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.23', time_epoch_completed='1789463174.07', return_code='0', job_id='38279567', GAL2='1.04', EG2='1.19', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='4.16e-08', ts2='9.55', photon_index='1.89' WHERE bin_id='945' AND source_name='4FGL J0222.6+4302' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 02:06:14 PDT 2026

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

 FCN=   35231.19     FROM HESSE     STATUS=OK           349 CALLS     1585 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    12.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1042        .77269        .71094E-03   -1.5679    
   3  norm          .27892        .41848        .27233E-02   -1.5697    
   4  Prefactor     .55511E-10    2.4365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11210        .47696        .80408E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        6.5712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.015        33.231        .22969E-03   -1.5621    
   8  Prefactor     .55511E-10    3.6384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .57474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .34947        .33803        .20478E-02   -1.5696    
  11  norm          .30947        .17242        .10081E-02   -1.5697    
  12  Prefactor     8.4427        5.1652        .34464E-03   -1.5650    
  13  norm          17.183        5.6897        .24134E-03   -1.5625    
  14  norm          9.3791        7.2601        .32498E-03   -1.5647    
  15  Prefactor     .63363        1.4909        .67344E-03   -1.5692    
  16  norm          3.7310        2.2043        .52260E-03   -1.5669    
  17  Prefactor     .16653E-09    3.9122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.835        .79292        .25978E-03   -1.5631    
  19  Normalizat    1.2310        .13916        .10606       -.85649    
  20  Prefactor     1.0336        .45472E-01    .40989E-01   -.91619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20353e-06
Minuit parameter uncertainties:
  1  4.0506e-05
  2  0.772695
  3  0.418482
  4  2.73865e-05
  5  0.462458
  6  1.85727e-05
  7  33.2312
  8  2.36328e-05
  9  6.20298e-07
  10  0.338028
  11  0.172418
  12  5.16518
  13  5.68965
  14  7.26007
  15  1.49087
  16  2.2043
  17  5.38158e-05
  18  0.792923
  19  0.139205
  20  0.0454735
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  3.095e-01  1.724e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.034e+00  4.547e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.231e+00  1.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.05
Ra Dec: 35.670 43.036
Photon Index (Fixed Index): 1.89 +/- 0.00
Photon Flux (Fixed Index): 3.35e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.54e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35230.0216516
delta logL = 1.17233672914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35230.0153945
delta logL = 1.17859380254

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   35230.02     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27788        .95845        .85982E-03    .81445E-01
   2  alpha         2.5047        1.6473        .28784        .22150E-03
   3  Normalizat    1.1872        .36595E-01    .10759        .20890E-03
   4  Prefactor     1.0401        .11964E-01    .40525E-01   -.42990E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.27788
  alpha      = 2.50473
  Normalizat = 1.18717
  Prefactor  = 1.04014
 **********
 **   18 **HESSE 
 **********

 FCN=   35230.02     FROM HESSE     STATUS=OK            35 CALLS      268 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27788        .18197        .39828E-04   -1.5697    
   2  alpha         2.5047        .48006        .15742E-01    .18926E-02
   3  Normalizat    1.1872        .14009        .47697E-03   -.87000    
   4  Prefactor     1.0401        .47514E-01    .17560E-03   -.91403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89038e-08
Minuit parameter uncertainties:
  1  0.181974
  2  0.483057
  3  0.140129
  4  0.0475161
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) = 35230.0153945
delta logL = 1.17859381554

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  2.779e-01  1.820e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  2.505e+00  4.831e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.040e+00  4.752e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.187e+00  1.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.55
Ra Dec: 35.670 43.036
Photon Index (Free Index): 2.50 +/- 0.48
Photon Flux (Free Index): 7.89e-08 +/- 4.16e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/38279589/cmap_HighResolution_810518401_811123201_4FGL_J0222.6+4302_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.35e-08', energy_flux2='2.38e-05', photon_flux_error='1.86e-08', dlogl='1.18e+00', energy_flux='2.77e-05', photon_flux2='7.89e-08', job_status='DONE', time_completed='2026-09-15 02:08:03.319368', photon_index_error2='0.48', photon_index2='2.50', ts='7.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.23', time_epoch_completed='1789463283.32', return_code='0', job_id='38279589', GAL2='1.04', EG2='1.19', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='4.16e-08', ts2='9.55', photon_index='1.89' WHERE bin_id='945' AND source_name='4FGL J0222.6+4302' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 02:08:03 PDT 2026

