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


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


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

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


Performing analysis on: 4FGL_J0022.5+0608_weekly_bin926
RA = 5.6376, Dec = 6.1343
tmin = 799027201, tmax = 799632001
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='26194680', job_status='RUN', time_executed='2026-05-05 00:07:40.137675', time_epoch_executed='1777964860.14' WHERE source_name='4FGL J0022.5+0608' and cadence='weekly' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26194680

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26194680/ft1_4FGL_J0022.5+0608_weekly_bin926.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26194680/ft1_4FGL_J0022.5+0608_weekly_bin926.fits outfile=/lscratch/kocevski/26194680/ft1_filteredMKT_4FGL_J0022.5+0608_weekly_bin926.fits ra=5.6376 dec=6.1343 rad=12.0 tmin=799027201.0 tmax=799632001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.68
user 3.40
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.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/26194680/ft1_filteredMKT_4FGL_J0022.5+0608_weekly_bin926.fits evtable="EVENTS" outfile="/lscratch/kocevski/26194680/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.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.08
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1237

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26194680/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.fits sctable="SC_DATA" outnumber of points = 17150
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0022.5+0608_weekly_bin926
RA = 5.6376, Dec = 6.1343
tmin = 799027201, tmax = 799632001
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='26194671', job_status='RUN', time_executed='2026-05-05 00:07:40.175944', time_epoch_executed='1777964860.18' WHERE source_name='4FGL J0022.5+0608' and cadence='weekly' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26194671

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26194671/ft1_4FGL_J0022.5+0608_weekly_bin926.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26194671/ft1_4FGL_J0022.5+0608_weekly_bin926.fits outfile=/lscratch/kocevski/26194671/ft1_filteredMKT_4FGL_J0022.5+0608_weekly_bin926.fits ra=5.6376 dec=6.1343 rad=12.0 tmin=799027201.0 tmax=799632001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.86
user 3.67
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.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/26194671/ft1_filteredMKT_4FGL_J0022.5+0608_weekly_bin926.fits evtable="EVENTS" outfile="/lscratch/kocevski/26194671/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.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.12
user 0.23
sys 0.14

Number of photons that the gtmktime cut: 1237

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26194671/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26194680/ltcube_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.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/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.fits
.....................!
real 30.19
user 28.77
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26194680/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26194680/ltcube_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits outfile=/lscratch/kocevski/26194680/expmap_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.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/26194680/ltcube_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits
.....................!
real 67.65
user 62.81
sys 3.52

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

Setting source of interest to:
4FGL J0022.5+0608 @ 5.6376 6.1343

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26194680/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits scfile=/lscratch/kocevski/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.fits outfile=/lscratch/kocevski/26194680/cmap_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.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=5.6376 yref=6.1343 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.02
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26194680/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits scfile=/lscratch/kocevski/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.fits outfile=/lscratch/kocevski/26194680/cmap_HighResolution_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.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=5.6376 yref=6.1343 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.07
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26194680/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26194680/Model_4FGL_J0022.5+0608_weekly_bin926.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
file=/lscratch/kocevski/26194671/ltcube_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.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/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.fits
.....................!
real 28.72
user 27.08
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26194671/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26194671/ltcube_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits outfile=/lscratch/kocevski/26194671/expmap_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.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/26194671/ltcube_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits
.....................!
real 66.79
user 61.99
sys 3.42

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

Setting source of interest to:
4FGL J0022.5+0608 @ 5.6376 6.1343

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26194671/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits scfile=/lscratch/kocevski/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.fits outfile=/lscratch/kocevski/26194671/cmap_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.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=5.6376 yref=6.1343 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.25
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26194671/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits scfile=/lscratch/kocevski/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.fits outfile=/lscratch/kocevski/26194671/cmap_HighResolution_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.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=5.6376 yref=6.1343 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.32
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26194671/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26194671/Model_4FGL_J0022.5+0608_weekly_bin926.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/26194680/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits.....................!
real 52.75
user 50.38
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26194680/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits', '/lscratch/kocevski/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.fits', expMap='/lscratch/kocevski/26194680/expmap_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits', expCube='/lscratch/kocevski/26194680/ltcube_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26194680/Model_4FGL_J0022.5+0608_weekly_bin926.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0022.5+0608'

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  3.416e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26194680/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits
Spacecraft file(s): /lscratch/kocevski/26194680/ft2_4FGL_J0022.5+0608_weekly_bin926.fits
Exposure map: /lscratch/kocevski/26194680/expmap_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits
Exposure cube: /lscratch/kocevski/26194680/ltcube_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26194680/Model_4FGL_J0022.5+0608_weekly_bin926.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) = 14045.6336081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13224       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.4659       1.0000          .0000       .10000E+07
     3 'norm      '    .21311E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .13251E-02   1.0000          .0000       .10000E+07
     5 'norm      '    2.8301       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49171E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .67470       1.0000          .0000       .10000E+07
     8 'norm      '    3.3810       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10197E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.4465       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10786E-05   1.0000          .0000       .10000E+07
    12 'norm      '    14.339       1.0000          .0000       .10000E+07
    13 'Prefactor '    26.652       1.0000          .0000       .10000E+07
    14 'Prefactor '    23.482       1.0000          .0000       .10000E+07
    15 'Prefactor '    16.648       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1889       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88974       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14045.59     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1000 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15804        34.772        .33075E-05** at limit **
   2  Prefactor     2.4656        2.5550       -.22839E-06    .77875E-03
   3  norm           .0000        1.4796        .52138E-07** at limit **
   4  norm          .49960E-09    4.8708       -.10401E-05** at limit **
   5  norm          2.8312        2.2731       -.13033E-07    .18401E-03
   6  Prefactor     .10547E-08    4.5142        .59671E-06** at limit **
   7  norm          .74246        1.3180        .30944E-06    .82630E-03
   8  norm          3.3911        3.5982       -.40326E-07    .28285E-03
   9  Prefactor     .33307E-09    5.6550       -.11547E-06** at limit **
  10  Prefactor     1.4450        2.3877       -.30745E-07    .11134E-03
  11  Prefactor      .0000        .90856       -.24057E-07** at limit **
  12  norm          14.493        1.2919       -.31768E-07   -.42847E-02
  13  Prefactor     25.408        28.617        .61330E-06    .26257E-02
  14  Prefactor     23.575        2.1599       -.11554E-06    .89262E-01
  15  Prefactor     16.418        13.656       -.97988E-06    .29179E-02
  16  Normalizat    1.1890        .14775        .15241E-06    .46918E-04
  17  Prefactor     .88971        .10549       -.98760E-06    .77990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.158038
  Prefactor  = 2.46557
  norm       = 0
  norm       = 4.996e-10
  norm       = 2.83117
  Prefactor  = 1.05471e-09
  norm       = 0.742461
  norm       = 3.39107
  Prefactor  = 3.33067e-10
  Prefactor  = 1.44505
  Prefactor  = 0
  norm       = 14.4927
  Prefactor  = 25.4083
  Prefactor  = 23.5751
  Prefactor  = 16.4181
  Normalizat = 1.18901
  Prefactor  = 0.88971
Working on...
/lscratch/kocevski/26194671/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits.....................!
real 52.85
user 50.35
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26194671/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits', '/lscratch/kocevski/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.fits', expMap='/lscratch/kocevski/26194671/expmap_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits', expCube='/lscratch/kocevski/26194671/ltcube_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26194671/Model_4FGL_J0022.5+0608_weekly_bin926.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0022.5+0608'

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  3.416e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26194671/ft1_filtered_4FGL_J0022.5+0608_weekly_bin926.fits
Spacecraft file(s): /lscratch/kocevski/26194671/ft2_4FGL_J0022.5+0608_weekly_bin926.fits
Exposure map: /lscratch/kocevski/26194671/expmap_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits
Exposure cube: /lscratch/kocevski/26194671/ltcube_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26194671/Model_4FGL_J0022.5+0608_weekly_bin926.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) = 14045.6336081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13224       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.4659       1.0000          .0000       .10000E+07
     3 'norm      '    .21311E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .13251E-02   1.0000          .0000       .10000E+07
     5 'norm      '    2.8301       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49171E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .67470       1.0000          .0000       .10000E+07
     8 'norm      '    3.3810       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10197E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.4465       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10786E-05   1.0000          .0000       .10000E+07
    12 'norm      '    14.339       1.0000          .0000       .10000E+07
    13 'Prefactor '    26.652       1.0000          .0000       .10000E+07
    14 'Prefactor '    23.482       1.0000          .0000       .10000E+07
    15 'Prefactor '    16.648       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1889       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88974       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14045.59     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1000 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15804        34.772        .33075E-05** at limit **
   2  Prefactor     2.4656        2.5550       -.22839E-06    .77875E-03
   3  norm           .0000        1.4796        .52138E-07** at limit **
   4  norm          .49960E-09    4.8708       -.10401E-05** at limit **
   5  norm          2.8312        2.2731       -.13033E-07    .18401E-03
   6  Prefactor     .10547E-08    4.5142        .59671E-06** at limit **
   7  norm          .74246        1.3180        .30944E-06    .82630E-03
   8  norm          3.3911        3.5982       -.40326E-07    .28285E-03
   9  Prefactor     .33307E-09    5.6550       -.11547E-06** at limit **
  10  Prefactor     1.4450        2.3877       -.30745E-07    .11134E-03
  11  Prefactor      .0000        .90856       -.24057E-07** at limit **
  12  norm          14.493        1.2919       -.31768E-07   -.42847E-02
  13  Prefactor     25.408        28.617        .61330E-06    .26257E-02
  14  Prefactor     23.575        2.1599       -.11554E-06    .89262E-01
  15  Prefactor     16.418        13.656       -.97988E-06    .29179E-02
  16  Normalizat    1.1890        .14775        .15241E-06    .46918E-04
  17  Prefactor     .88971        .10549       -.98760E-06    .77990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.158038
  Prefactor  = 2.46557
  norm       = 0
  norm       = 4.996e-10
  norm       = 2.83117
  Prefactor  = 1.05471e-09
  norm       = 0.742461
  norm       = 3.39107
  Prefactor  = 3.33067e-10
  Prefactor  = 1.44505
  Prefactor  = 0
  norm       = 14.4927
  Prefactor  = 25.4083
  Prefactor  = 23.5751
  Prefactor  = 16.4181
  Normalizat = 1.18901
  Prefactor  = 0.88971
 **********
 **   18 **HESSE 
 **********

 FCN=   14045.59     FROM HESSE     STATUS=OK           267 CALLS     1267 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15804        3.5829        .76334E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4656        2.7107        .65095E-03   -1.5677    
   3  norm           .0000        1.4486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .49960E-09    1.0689        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8312        2.2782        .60426E-03   -1.5674    
   6  Prefactor     .10547E-08    4.5069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .74246        8.4121        .62786E-03   -1.5691    
   8  norm          3.3911        3.5998        .55003E-03   -1.5671    
   9  Prefactor     .33307E-09    5.6677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4450        2.4249        .89593E-03   -1.5684    
  11  Prefactor      .0000        .90841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.493        11.797        .26424E-03   -1.5632    
  13  Prefactor     25.408        28.633        .19374E-03   -1.5607    
  14  Prefactor     23.575        22.148        .20641E-03   -1.5611    
  15  Prefactor     16.418        13.709        .24520E-03   -1.5627    
  16  Normalizat    1.1890        .12871        .60583E-01   -.86943    
  17  Prefactor     .88971        .90712E-01    .44874E-01   -.96502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91621e-07
Minuit parameter uncertainties:
  1  1.50498
  2  2.71075
  3  2.69073e-06
  4  4.52044e-05
  5  2.27824
  6  0.000137613
  7  4.99827
  8  3.59977
  9  8.86972e-05
  10  2.42494
  11  1.81449e-06
  12  11.7973
  13  28.6335
  14  22.1477
  15  13.709
  16  0.128741
  17  0.0907278
Done.

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

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  2.831e+00  2.278e+00  0.000e+00  1.000e+06 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  8.897e-01  9.073e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.189e+00  1.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 5.638 6.134
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 1.59e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 8.44e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.8437083
delta logL = 0.744310199254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.8275874
delta logL = 0.760431046203

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.83     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      260 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4208        3.4371        .85954E-05    .12883E-02
   2  alpha         3.1818        1.1044        .14475E-01    .36287E-04
   3  Normalizat    1.1138        .16462        .27543E-03    .70830E-04
   4  Prefactor     .91913        .11137        .21584E-03    .84382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42084
  alpha      = 3.1818
  Normalizat = 1.11381
  Prefactor  = 0.919131
 **********
 **   18 **HESSE 
 **********

 FCN=   14045.59     FROM HESSE     STATUS=OK           267 CALLS     1267 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15804        3.5829        .76334E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4656        2.7107        .65095E-03   -1.5677    
   3  norm           .0000        1.4486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .49960E-09    1.0689        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8312        2.2782        .60426E-03   -1.5674    
   6  Prefactor     .10547E-08    4.5069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .74246        8.4121        .62786E-03   -1.5691    
   8  norm          3.3911        3.5998        .55003E-03   -1.5671    
   9  Prefactor     .33307E-09    5.6677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4450        2.4249        .89593E-03   -1.5684    
  11  Prefactor      .0000        .90841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.493        11.797        .26424E-03   -1.5632    
  13  Prefactor     25.408        28.633        .19374E-03   -1.5607    
  14  Prefactor     23.575        22.148        .20641E-03   -1.5611    
  15  Prefactor     16.418        13.709        .24520E-03   -1.5627    
  16  Normalizat    1.1890        .12871        .60583E-01   -.86943    
  17  Prefactor     .88971        .90712E-01    .44874E-01   -.96502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91621e-07
Minuit parameter uncertainties:
  1  1.50498
  2  2.71075
  3  2.69073e-06
  4  4.52044e-05
  5  2.27824
  6  0.000137613
  7  4.99827
  8  3.59977
  9  8.86972e-05
  10  2.42494
  11  1.81449e-06
  12  11.7973
  13  28.6335
  14  22.1477
  15  13.709
  16  0.128741
  17  0.0907278
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.83     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4208        2.3563        .34382E-06   -1.5677    
   2  alpha         3.1818        .77017        .57900E-03    .27622    
   3  Normalizat    1.1138        .15850        .11017E-04   -.89310    
   4  Prefactor     .91913        .10895        .86334E-05   -.95476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03935e-12
Minuit parameter uncertainties:
  1  2.35627
  2  0.783979
  3  0.158572
  4  0.108972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.827584
delta logL = 0.760434491071

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  2.421e+00  2.356e+00  0.000e+00  1.000e+06 ( 1.000e-12)
104        alpha:  3.182e+00  7.840e-01  0.000e+00  5.000e+00 ( 1.000e+00)
105         beta:  5.138e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.191e-01  1.090e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.114e+00  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 5.638 6.134
Photon Index (Free Index): 3.18 +/- 0.78
Photon Flux (Free Index): 8.65e-08 +/- 5.90e-08
Energy Flux (Free Index): 1.65e-05 +/- 8.65e-06

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/26194680/cmap_HighResolution_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='1.65e-05', photon_flux_error='1.59e-08', dlogl='7.60e-01', energy_flux='1.05e-05', photon_flux2='8.65e-08', job_status='DONE', time_completed='2026-05-05 00:21:15.503923', photon_index_error2='0.78', photon_index2='3.18', ts='4.24', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='8.65e-06', EG='1.19', time_epoch_completed='1777965675.5', return_code='0', job_id='26194680', GAL2='0.92', EG2='1.11', return_code2='0', energy_flux_error='8.44e-06', photon_flux_error2='5.90e-08', ts2='5.96', photon_index='2.07' WHERE bin_id='926' AND source_name='4FGL J0022.5+0608' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  5 00:21:16 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  2.831e+00  2.278e+00  0.000e+00  1.000e+06 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  8.897e-01  9.073e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.189e+00  1.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 5.638 6.134
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 1.59e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 8.44e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.8437083
delta logL = 0.744310199254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.8275874
delta logL = 0.760431046203

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14044.83     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      260 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4208        3.4371        .85954E-05    .12883E-02
   2  alpha         3.1818        1.1044        .14475E-01    .36287E-04
   3  Normalizat    1.1138        .16462        .27543E-03    .70830E-04
   4  Prefactor     .91913        .11137        .21584E-03    .84382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42084
  alpha      = 3.1818
  Normalizat = 1.11381
  Prefactor  = 0.919131
 **********
 **   18 **HESSE 
 **********

 FCN=   14044.83     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4208        2.3563        .34382E-06   -1.5677    
   2  alpha         3.1818        .77017        .57900E-03    .27622    
   3  Normalizat    1.1138        .15850        .11017E-04   -.89310    
   4  Prefactor     .91913        .10895        .86334E-05   -.95476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03935e-12
Minuit parameter uncertainties:
  1  2.35627
  2  0.783979
  3  0.158572
  4  0.108972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14044.827584
delta logL = 0.760434491071

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  2.421e+00  2.356e+00  0.000e+00  1.000e+06 ( 1.000e-12)
104        alpha:  3.182e+00  7.840e-01  0.000e+00  5.000e+00 ( 1.000e+00)
105         beta:  5.138e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  9.191e-01  1.090e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.114e+00  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 5.638 6.134
Photon Index (Free Index): 3.18 +/- 0.78
Photon Flux (Free Index): 8.65e-08 +/- 5.90e-08
Energy Flux (Free Index): 1.65e-05 +/- 8.65e-06

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/26194671/cmap_HighResolution_799027201_799632001_4FGL_J0022.5+0608_weekly_bin926.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='1.65e-05', photon_flux_error='1.59e-08', dlogl='7.60e-01', energy_flux='1.05e-05', photon_flux2='8.65e-08', job_status='DONE', time_completed='2026-05-05 00:21:29.691873', photon_index_error2='0.78', photon_index2='3.18', ts='4.24', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='8.65e-06', EG='1.19', time_epoch_completed='1777965689.69', return_code='0', job_id='26194671', GAL2='0.92', EG2='1.11', return_code2='0', energy_flux_error='8.44e-06', photon_flux_error2='5.90e-08', ts2='5.96', photon_index='2.07' WHERE bin_id='926' AND source_name='4FGL J0022.5+0608' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  5 00:21:30 PDT 2026

