number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

Done.


Performing analysis on: 4FGL_J1332.2+4722_weekly_bin945
RA = 203.059, Dec = 47.3728
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='38307393', job_status='RUN', time_executed='2026-09-15 10:27:08.752551', time_epoch_executed='1789493228.75' WHERE source_name='4FGL J1332.2+4722' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38307393

Creating custom pfile directory:
/lscratch/kocevski/38307393/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/38307393/ft1_4FGL_J1332.2+4722_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/38307393/ft2_4FGL_J1332.2+4722_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38307393/ft1_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307393/ft1_filteredMKT_4FGL_J1332.2+4722_weekly_bin945.fits ra=203.059 dec=47.3728 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.02
user 5.47
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38307393/ft2_4FGL_J1332.2+4722_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38307393/ft2_4FGL_J1332.2+4722_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/38307393/ft1_filteredMKT_4FGL_J1332.2+4722_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38307393/ft1_filtered_4FGL_J1332.2+4722_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.24
sys 0.13

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38307393/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38307393/ft2_4FGL_J1332.2+4722_weekly_bin945.fits sctable="SC_DATA"/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).

 outfile=/lscratch/kocevski/38307345/ltcube_810518401_811123201_4FGL_J1332.2+4722_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/38307345/ft2_4FGL_J1332.2+4722_weekly_bin945.fits
.....................!
real 19.82
user 18.88
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38307345/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307345/ft2_4FGL_J1332.2+4722_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38307345/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307345/expmap_810518401_811123201_4FGL_J1332.2+4722_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/38307345/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
.....................!
real 73.78
user 68.26
sys 4.56

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

Setting source of interest to:
4FGL J1332.2+4722 @ 203.059 47.3728

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38307345/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits scfile=/lscratch/kocevski/38307345/ft2_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307345/cmap_810518401_811123201_4FGL_J1332.2+4722_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=203.059 yref=47.3728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38307345/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits scfile=/lscratch/kocevski/38307345/ft2_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307345/cmap_HighResolution_810518401_811123201_4FGL_J1332.2+4722_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=203.059 yref=47.3728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38307345/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307345/ft2_4FGL_J1332.2+4722_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38307345/Model_4FGL_J1332.2+4722_weekly_bin945.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/38307348/ltcube_810518401_811123201_4FGL_J1332.2+4722_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/38307348/ft2_4FGL_J1332.2+4722_weekly_bin945.fits
.....................!
real 18.63
user 18.08
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38307348/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307348/ft2_4FGL_J1332.2+4722_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38307348/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307348/expmap_810518401_811123201_4FGL_J1332.2+4722_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/38307348/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
.....................!
real 71.19
user 66.11
sys 4.30

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

Setting source of interest to:
4FGL J1332.2+4722 @ 203.059 47.3728

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38307348/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits scfile=/lscratch/kocevski/38307348/ft2_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307348/cmap_810518401_811123201_4FGL_J1332.2+4722_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=203.059 yref=47.3728 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.87
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38307348/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits scfile=/lscratch/kocevski/38307348/ft2_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307348/cmap_HighResolution_810518401_811123201_4FGL_J1332.2+4722_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=203.059 yref=47.3728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.51
user 0.26
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38307348/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307348/ft2_4FGL_J1332.2+4722_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38307348/Model_4FGL_J1332.2+4722_weekly_bin945.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J1332.2+4722_weekly_bin945
RA = 203.059, Dec = 47.3728
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='38307485', job_status='RUN', time_executed='2026-09-15 10:28:27.409184', time_epoch_executed='1789493307.41' WHERE source_name='4FGL J1332.2+4722' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38307485

Creating custom pfile directory:
/lscratch/kocevski/38307485/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/38307485/ft1_4FGL_J1332.2+4722_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/38307485/ft2_4FGL_J1332.2+4722_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38307485/ft1_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307485/ft1_filteredMKT_4FGL_J1332.2+4722_weekly_bin945.fits ra=203.059 dec=47.3728 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.05
user 5.51
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38307485/ft2_4FGL_J1332.2+4722_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38307485/ft2_4FGL_J1332.2+4722_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/38307485/ft1_filteredMKT_4FGL_J1332.2+4722_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38307485/ft1_filtered_4FGL_J1332.2+4722_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.65
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1416

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38307485/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38307485/ft2_4FGL_J1332.2+4722_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38307393/ltcube_810518401_811123201_4FGL_J1332.2+4722_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/38307393/ft2_4FGL_J1332.2+4722_weekly_bin945.fits
.....................!
real 18.66
user 18.03
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38307393/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307393/ft2_4FGL_J1332.2+4722_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38307393/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307393/expmap_810518401_811123201_4FGL_J1332.2+4722_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/38307393/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
.....................!
real 71.38
user 66.63
sys 4.08

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

Setting source of interest to:
4FGL J1332.2+4722 @ 203.059 47.3728

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38307393/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits scfile=/lscratch/kocevski/38307393/ft2_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307393/cmap_810518401_811123201_4FGL_J1332.2+4722_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=203.059 yref=47.3728 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.16
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38307393/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits scfile=/lscratch/kocevski/38307393/ft2_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307393/cmap_HighResolution_810518401_811123201_4FGL_J1332.2+4722_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=203.059 yref=47.3728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38307393/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307393/ft2_4FGL_J1332.2+4722_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38307393/Model_4FGL_J1332.2+4722_weekly_bin945.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/38307485/ltcube_810518401_811123201_4FGL_J1332.2+4722_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/38307485/ft2_4FGL_J1332.2+4722_weekly_bin945.fits
.....................!
real 19.31
user 18.33
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38307485/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307485/ft2_4FGL_J1332.2+4722_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38307485/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307485/expmap_810518401_811123201_4FGL_J1332.2+4722_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/38307485/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
.....................!
real 72.33
user 67.18
sys 4.31

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

Setting source of interest to:
4FGL J1332.2+4722 @ 203.059 47.3728

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38307485/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits scfile=/lscratch/kocevski/38307485/ft2_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307485/cmap_810518401_811123201_4FGL_J1332.2+4722_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=203.059 yref=47.3728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38307485/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits scfile=/lscratch/kocevski/38307485/ft2_4FGL_J1332.2+4722_weekly_bin945.fits outfile=/lscratch/kocevski/38307485/cmap_HighResolution_810518401_811123201_4FGL_J1332.2+4722_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=203.059 yref=47.3728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.66
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38307485/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307485/ft2_4FGL_J1332.2+4722_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38307485/Model_4FGL_J1332.2+4722_weekly_bin945.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/38307348/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits.....................!
real 44.36
user 42.48
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38307348/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits', '/lscratch/kocevski/38307348/ft2_4FGL_J1332.2+4722_weekly_bin945.fits', expMap='/lscratch/kocevski/38307348/expmap_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits', expCube='/lscratch/kocevski/38307348/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38307348/Model_4FGL_J1332.2+4722_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.2+4722'

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  8.063e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38307348/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38307348/ft2_4FGL_J1332.2+4722_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38307348/expmap_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38307348/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38307348/Model_4FGL_J1332.2+4722_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) = 15030.5192331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3346       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.6386       1.0000          .0000       .10000E+07
     3 'Prefactor '    .45648E-03   1.0000          .0000       .10000E+07
     4 'norm      '    3.9688       1.0000          .0000       .10000E+07
     5 'Prefactor '    .73797E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0633       1.0000          .0000       .10000E+07
     7 'norm      '    14.331       1.0000          .0000       .10000E+07
     8 'norm      '    .93989       1.0000          .0000       .10000E+07
     9 'Prefactor '    171.45       1.0000          .0000       .10000E+07
    10 'Prefactor '    .24603E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .57222E-02   1.0000          .0000       .10000E+07
    13 'norm      '    2.3284       1.0000          .0000       .10000E+07
    14 'norm      '    .59582       1.0000          .0000       .10000E+07
    15 'norm      '    .84569E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .45423E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .42242E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .72164E-09   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13166E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.3447       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.8672       1.0000          .0000       .10000E+07
    22 'Prefactor '    .23210E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.8280       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1379       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
e GAL_V02
Working on...
/lscratch/kocevski/38307345/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits.....................!
real 45.43
user 43.19
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38307345/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits', '/lscratch/kocevski/38307345/ft2_4FGL_J1332.2+4722_weekly_bin945.fits', expMap='/lscratch/kocevski/38307345/expmap_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits', expCube='/lscratch/kocevski/38307345/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38307345/Model_4FGL_J1332.2+4722_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.2+4722'

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  8.063e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38307345/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38307345/ft2_4FGL_J1332.2+4722_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38307345/expmap_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38307345/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38307345/Model_4FGL_J1332.2+4722_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) = 15030.5192331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3346       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.6386       1.0000          .0000       .10000E+07
     3 'Prefactor '    .45648E-03   1.0000          .0000       .10000E+07
     4 'norm      '    3.9688       1.0000          .0000       .10000E+07
     5 'Prefactor '    .73797E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0633       1.0000          .0000       .10000E+07
     7 'norm      '    14.331       1.0000          .0000       .10000E+07
     8 'norm      '    .93989       1.0000          .0000       .10000E+07
     9 'Prefactor '    171.45       1.0000          .0000       .10000E+07
    10 'Prefactor '    .24603E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .57222E-02   1.0000          .0000       .10000E+07
    13 'norm      '    2.3284       1.0000          .0000       .10000E+07
    14 'norm      '    .59582       1.0000          .0000       .10000E+07
    15 'norm      '    .84569E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .45423E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .42242E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .72164E-09   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13166E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.3447       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.8672       1.0000          .0000       .10000E+07
    22 'Prefactor '    .23210E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.8280       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1379       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15030.31     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1701 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3346        2.3549        .15916E-06    .22421E-02
   2  Prefactor     6.6338        8.2672        .85569E-07    .31883E-01
   3  Prefactor     .16653E-09    3.8732       -.44941E-07** at limit **
   4  norm          3.9674        1.5383        .14461E-07    .16856E-02
   5  Prefactor     .28705E-06    12.560       -.36077E-06** at limit **
   6  Prefactor     5.9385        5.8960       -.19563E-07    .11042E-02
   7  norm          14.340        7.4217        .28429E-07    .88732E-02
   8  norm          .94627        1.5512        .11279E-06    .34316E-02
   9  Prefactor     170.62        4.2263        .26920E-07   -.10138    
  10  Prefactor     .13056E-06    14.700        .24612E-06** at limit **
  11  norm           .0000        .99429        .80163E-07** at limit **
  12  Prefactor     .13284E-04    21.398        .77067E-06** at limit **
  13  norm          2.3292        .88604        .22754E-07    .39275E-02
  14  norm          .59345        1.6317       -.44327E-07   -.47194E-03
  15  norm           .0000        5.1986       -.11287E-06** at limit **
  16  Prefactor     .19706E-07    2.8869       -.30443E-07** at limit **
  17  Prefactor     .55511E-10    6.8626       -.38032E-06** at limit **
  18  Prefactor      .0000        .92582        .80655E-08** at limit **
  19  Prefactor     .88818E-08    6.6385       -.24122E-06** at limit **
  20  Prefactor     3.3442        1.5150        .61454E-07    .46061E-02
  21  Prefactor     2.8653        1.9456        .92681E-08    .94205E-03
  22  Prefactor     .15203E-04    23.724        .52491E-06** at limit **
  23  Prefactor     5.8330        4.7797        .14055E-08    .91372E-01
  24  Normalizat    1.1386        .11981       -.99963E-06   -.17387E-03
  25  Prefactor     .87080        .14830       -.20746E-06   -.11869E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33463
  Prefactor  = 6.63378
  Prefactor  = 1.66533e-10
  norm       = 3.96735
  Prefactor  = 2.87048e-07
  Prefactor  = 5.93853
  norm       = 14.34
  norm       = 0.946265
  Prefactor  = 170.624
  Prefactor  = 1.30562e-07
  norm       = 0
  Prefactor  = 1.32837e-05
  norm       = 2.32919
  norm       = 0.593449
  norm       = 0
  Prefactor  = 1.97065e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 8.88178e-09
  Prefactor  = 3.3442
  Prefactor  = 2.86531
  Prefactor  = 1.52031e-05
  Prefactor  = 5.83305
  Normalizat = 1.13859
  Prefactor  = 0.870795
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15030.31     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1701 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3346        2.3549        .15916E-06    .22421E-02
   2  Prefactor     6.6338        8.2672        .85569E-07    .31883E-01
   3  Prefactor     .16653E-09    3.8732       -.44941E-07** at limit **
   4  norm          3.9674        1.5383        .14461E-07    .16856E-02
   5  Prefactor     .28705E-06    12.560       -.36077E-06** at limit **
   6  Prefactor     5.9385        5.8960       -.19563E-07    .11042E-02
   7  norm          14.340        7.4217        .28429E-07    .88732E-02
   8  norm          .94627        1.5512        .11279E-06    .34316E-02
   9  Prefactor     170.62        4.2263        .26920E-07   -.10138    
  10  Prefactor     .13056E-06    14.700        .24612E-06** at limit **
  11  norm           .0000        .99429        .80163E-07** at limit **
  12  Prefactor     .13284E-04    21.398        .77067E-06** at limit **
  13  norm          2.3292        .88604        .22754E-07    .39275E-02
  14  norm          .59345        1.6317       -.44327E-07   -.47194E-03
  15  norm           .0000        5.1986       -.11287E-06** at limit **
  16  Prefactor     .19706E-07    2.8869       -.30443E-07** at limit **
  17  Prefactor     .55511E-10    6.8626       -.38032E-06** at limit **
  18  Prefactor      .0000        .92582        .80655E-08** at limit **
  19  Prefactor     .88818E-08    6.6385       -.24122E-06** at limit **
  20  Prefactor     3.3442        1.5150        .61454E-07    .46061E-02
  21  Prefactor     2.8653        1.9456        .92681E-08    .94205E-03
  22  Prefactor     .15203E-04    23.724        .52491E-06** at limit **
  23  Prefactor     5.8330        4.7797        .14055E-08    .91372E-01
  24  Normalizat    1.1386        .11981       -.99963E-06   -.17387E-03
  25  Prefactor     .87080        .14830       -.20746E-06   -.11869E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33463
  Prefactor  = 6.63378
  Prefactor  = 1.66533e-10
  norm       = 3.96735
  Prefactor  = 2.87048e-07
  Prefactor  = 5.93853
  norm       = 14.34
  norm       = 0.946265
  Prefactor  = 170.624
  Prefactor  = 1.30562e-07
  norm       = 0
  Prefactor  = 1.32837e-05
  norm       = 2.32919
  norm       = 0.593449
  norm       = 0
  Prefactor  = 1.97065e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 8.88178e-09
  Prefactor  = 3.3442
  Prefactor  = 2.86531
  Prefactor  = 1.52031e-05
  Prefactor  = 5.83305
  Normalizat = 1.13859
  Prefactor  = 0.870795
 **********
 **   18 **HESSE 
 **********

 FCN=   15030.31     FROM HESSE     STATUS=OK           481 CALLS     2182 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3346        2.4105        .94952E-03   -1.5685    
   2  Prefactor     6.6338        8.6981        .38923E-03   -1.5656    
   3  Prefactor     .16653E-09    3.8756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9674        1.5396        .50606E-03   -1.5668    
   5  Prefactor     .28705E-06    13.392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9385        5.9025        .40751E-03   -1.5659    
   7  norm          14.340        7.4346        .26432E-03   -1.5632    
   8  norm          .94627        1.5724        .43040E-03   -1.5689    
   9  Prefactor     170.62        29.953        .76378E-04   -1.5447    
  10  Prefactor     .13056E-06    14.973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .98969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13284E-04    40.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3292        .88874        .67182E-03   -1.5677    
  14  norm          .59345        1.6396        .69603E-03   -1.5693    
  15  norm           .0000        5.1907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .19706E-07    14.606        .15728E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    7.4681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        .92093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .88818E-08    7.9697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3442        1.6882        .55316E-03   -1.5671    
  21  Prefactor     2.8653        16.788        .60007E-03   -1.5674    
  22  Prefactor     .15203E-04    42.400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.8330        8.4158        .41577E-03   -1.5660    
  24  Normalizat    1.1386        .10399        .36633E-01   -.88522    
  25  Prefactor     .87080        .12774        .67881E-01   -.97169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83542e-07
Minuit parameter uncertainties:
  1  2.41047
  2  8.6981
  3  4.72636e-05
  4  1.53965
  5  0.00392106
  6  5.90249
  7  7.43465
  8  1.57238
  9  29.9526
  10  0.00279613
  11  6.50871e-06
  12  0.0465444
  13  0.888742
  14  1.63963
  15  1.2984e-05
  16  0.00107232
  17  3.89901e-05
  18  1.37585e-06
  19  0.000531487
  20  1.6882
  21  13.8713
  22  0.0507786
  23  8.4158
  24  0.104013
  25  0.127779
 **********
 **   18 **HESSE 
 **********

 FCN=   15030.31     FROM HESSE     STATUS=OK           481 CALLS     2182 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3346        2.4105        .94952E-03   -1.5685    
   2  Prefactor     6.6338        8.6981        .38923E-03   -1.5656    
   3  Prefactor     .16653E-09    3.8756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9674        1.5396        .50606E-03   -1.5668    
   5  Prefactor     .28705E-06    13.392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9385        5.9025        .40751E-03   -1.5659    
   7  norm          14.340        7.4346        .26432E-03   -1.5632    
   8  norm          .94627        1.5724        .43040E-03   -1.5689    
   9  Prefactor     170.62        29.953        .76378E-04   -1.5447    
  10  Prefactor     .13056E-06    14.973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .98969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13284E-04    40.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3292        .88874        .67182E-03   -1.5677    
  14  norm          .59345        1.6396        .69603E-03   -1.5693    
  15  norm           .0000        5.1907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .19706E-07    14.606        .15728E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    7.4681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        .92093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .88818E-08    7.9697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3442        1.6882        .55316E-03   -1.5671    
  21  Prefactor     2.8653        16.788        .60007E-03   -1.5674    
  22  Prefactor     .15203E-04    42.400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.8330        8.4158        .41577E-03   -1.5660    
  24  Normalizat    1.1386        .10399        .36633E-01   -.88522    
  25  Prefactor     .87080        .12774        .67881E-01   -.97169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83542e-07
Minuit parameter uncertainties:
  1  2.41047
  2  8.6981
  3  4.72636e-05
  4  1.53965
  5  0.00392106
  6  5.90249
  7  7.43465
  8  1.57238
  9  29.9526
  10  0.00279613
  11  6.50871e-06
  12  0.0465444
  13  0.888742
  14  1.63963
  15  1.2984e-05
  16  0.00107232
  17  3.89901e-05
  18  1.37585e-06
  19  0.000531487
  20  1.6882
  21  13.8713
  22  0.0507786
  23  8.4158
  24  0.104013
  25  0.127779
e GAL_V02
Working on...
/lscratch/kocevski/38307393/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits.....................!
real 45.48
user 43.49
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38307393/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits', '/lscratch/kocevski/38307393/ft2_4FGL_J1332.2+4722_weekly_bin945.fits', expMap='/lscratch/kocevski/38307393/expmap_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits', expCube='/lscratch/kocevski/38307393/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38307393/Model_4FGL_J1332.2+4722_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.2+4722'

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  8.063e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38307393/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38307393/ft2_4FGL_J1332.2+4722_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38307393/expmap_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38307393/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38307393/Model_4FGL_J1332.2+4722_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) = 15030.5192331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3346       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.6386       1.0000          .0000       .10000E+07
     3 'Prefactor '    .45648E-03   1.0000          .0000       .10000E+07
     4 'norm      '    3.9688       1.0000          .0000       .10000E+07
     5 'Prefactor '    .73797E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0633       1.0000          .0000       .10000E+07
     7 'norm      '    14.331       1.0000          .0000       .10000E+07
     8 'norm      '    .93989       1.0000          .0000       .10000E+07
     9 'Prefactor '    171.45       1.0000          .0000       .10000E+07
    10 'Prefactor '    .24603E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .57222E-02   1.0000          .0000       .10000E+07
    13 'norm      '    2.3284       1.0000          .0000       .10000E+07
    14 'norm      '    .59582       1.0000          .0000       .10000E+07
    15 'norm      '    .84569E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .45423E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .42242E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .72164E-09   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13166E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.3447       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.8672       1.0000          .0000       .10000E+07
    22 'Prefactor '    .23210E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.8280       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1379       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15030.31     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1701 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3346        2.3549        .15916E-06    .22421E-02
   2  Prefactor     6.6338        8.2672        .85569E-07    .31883E-01
   3  Prefactor     .16653E-09    3.8732       -.44941E-07** at limit **
   4  norm          3.9674        1.5383        .14461E-07    .16856E-02
   5  Prefactor     .28705E-06    12.560       -.36077E-06** at limit **
   6  Prefactor     5.9385        5.8960       -.19563E-07    .11042E-02
   7  norm          14.340        7.4217        .28429E-07    .88732E-02
   8  norm          .94627        1.5512        .11279E-06    .34316E-02
   9  Prefactor     170.62        4.2263        .26920E-07   -.10138    
  10  Prefactor     .13056E-06    14.700        .24612E-06** at limit **
  11  norm           .0000        .99429        .80163E-07** at limit **
  12  Prefactor     .13284E-04    21.398        .77067E-06** at limit **
  13  norm          2.3292        .88604        .22754E-07    .39275E-02
  14  norm          .59345        1.6317       -.44327E-07   -.47194E-03
  15  norm           .0000        5.1986       -.11287E-06** at limit **
  16  Prefactor     .19706E-07    2.8869       -.30443E-07** at limit **
  17  Prefactor     .55511E-10    6.8626       -.38032E-06** at limit **
  18  Prefactor      .0000        .92582        .80655E-08** at limit **
  19  Prefactor     .88818E-08    6.6385       -.24122E-06** at limit **
  20  Prefactor     3.3442        1.5150        .61454E-07    .46061E-02
  21  Prefactor     2.8653        1.9456        .92681E-08    .94205E-03
  22  Prefactor     .15203E-04    23.724        .52491E-06** at limit **
  23  Prefactor     5.8330        4.7797        .14055E-08    .91372E-01
  24  Normalizat    1.1386        .11981       -.99963E-06   -.17387E-03
  25  Prefactor     .87080        .14830       -.20746E-06   -.11869E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33463
  Prefactor  = 6.63378
  Prefactor  = 1.66533e-10
  norm       = 3.96735
  Prefactor  = 2.87048e-07
  Prefactor  = 5.93853
  norm       = 14.34
  norm       = 0.946265
  Prefactor  = 170.624
  Prefactor  = 1.30562e-07
  norm       = 0
  Prefactor  = 1.32837e-05
  norm       = 2.32919
  norm       = 0.593449
  norm       = 0
  Prefactor  = 1.97065e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 8.88178e-09
  Prefactor  = 3.3442
  Prefactor  = 2.86531
  Prefactor  = 1.52031e-05
  Prefactor  = 5.83305
  Normalizat = 1.13859
  Prefactor  = 0.870795
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.306e-07  2.796e-03  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  8.708e-01  1.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.139e+00  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 4.47275118049e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00350917206366 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38307348/likelihoodResults_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15030.3462261
delta logL = -0.0324774781075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15030.3137535
delta logL = -4.93307379656e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15030.31     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      201 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    13.839       -.43174E-05** at limit **
   2  Index         2.7924        3.6171        .17301E-03    .36714E-10
   3  Normalizat    1.1386        .11789       -.82221E-05   -.22524E-03
   4  Prefactor     .87079        .14773        .16635E-04   -.28032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 2.7924
  Normalizat = 1.13859
  Prefactor  = 0.870794
 **********
 **   18 **HESSE 
 **********

 FCN=   15030.31     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      238 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .12343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7924        8.1881        .50000       -.45729    
   3  Normalizat    1.1386        .23823E-03    .36604E-01   -.88522    
   4  Prefactor     .87079        .29861E-03    .67881E-01   -.97169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04112e-13
Minuit parameter uncertainties:
  1  1.30003e-05
  2  7998.92
  3  0.000238225
  4  0.000298613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15030.3137486
delta logL = 4.31464286521e-09

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  3.331e-10  1.300e-05  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.792e+00  7.999e+03  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  8.708e-01  2.986e-04  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.139e+00  2.382e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.059 47.373

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/38307348/cmap_HighResolution_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2026-09-15 10:34:47.142251', job_id='38307348', GAL2='0.87', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1789493687.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.31e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='945' AND source_name='4FGL J1332.2+4722' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 10:34:47 PDT 2026

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

 FCN=   15030.31     FROM HESSE     STATUS=OK           481 CALLS     2182 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3346        2.4105        .94952E-03   -1.5685    
   2  Prefactor     6.6338        8.6981        .38923E-03   -1.5656    
   3  Prefactor     .16653E-09    3.8756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9674        1.5396        .50606E-03   -1.5668    
   5  Prefactor     .28705E-06    13.392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9385        5.9025        .40751E-03   -1.5659    
   7  norm          14.340        7.4346        .26432E-03   -1.5632    
   8  norm          .94627        1.5724        .43040E-03   -1.5689    
   9  Prefactor     170.62        29.953        .76378E-04   -1.5447    
  10  Prefactor     .13056E-06    14.973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .98969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13284E-04    40.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3292        .88874        .67182E-03   -1.5677    
  14  norm          .59345        1.6396        .69603E-03   -1.5693    
  15  norm           .0000        5.1907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .19706E-07    14.606        .15728E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    7.4681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        .92093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .88818E-08    7.9697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3442        1.6882        .55316E-03   -1.5671    
  21  Prefactor     2.8653        16.788        .60007E-03   -1.5674    
  22  Prefactor     .15203E-04    42.400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.8330        8.4158        .41577E-03   -1.5660    
  24  Normalizat    1.1386        .10399        .36633E-01   -.88522    
  25  Prefactor     .87080        .12774        .67881E-01   -.97169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83542e-07
Minuit parameter uncertainties:
  1  2.41047
  2  8.6981
  3  4.72636e-05
  4  1.53965
  5  0.00392106
  6  5.90249
  7  7.43465
  8  1.57238
  9  29.9526
  10  0.00279613
  11  6.50871e-06
  12  0.0465444
  13  0.888742
  14  1.63963
  15  1.2984e-05
  16  0.00107232
  17  3.89901e-05
  18  1.37585e-06
  19  0.000531487
  20  1.6882
  21  13.8713
  22  0.0507786
  23  8.4158
  24  0.104013
  25  0.127779
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.306e-07  2.796e-03  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  8.708e-01  1.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.139e+00  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 4.47275118049e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00350917206366 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38307345/likelihoodResults_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15030.3462261
delta logL = -0.0324774781075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15030.3137535
delta logL = -4.93307379656e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15030.31     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      201 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    13.839       -.43174E-05** at limit **
   2  Index         2.7924        3.6171        .17301E-03    .36714E-10
   3  Normalizat    1.1386        .11789       -.82221E-05   -.22524E-03
   4  Prefactor     .87079        .14773        .16635E-04   -.28032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 2.7924
  Normalizat = 1.13859
  Prefactor  = 0.870794
 **********
 **   18 **HESSE 
 **********

 FCN=   15030.31     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      238 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .12343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7924        8.1881        .50000       -.45729    
   3  Normalizat    1.1386        .23823E-03    .36604E-01   -.88522    
   4  Prefactor     .87079        .29861E-03    .67881E-01   -.97169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04112e-13
Minuit parameter uncertainties:
  1  1.30003e-05
  2  7998.92
  3  0.000238225
  4  0.000298613
e GAL_V02
Working on...
/lscratch/kocevski/38307485/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits.....................!
real 45.24
user 43.30
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38307485/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits', '/lscratch/kocevski/38307485/ft2_4FGL_J1332.2+4722_weekly_bin945.fits', expMap='/lscratch/kocevski/38307485/expmap_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits', expCube='/lscratch/kocevski/38307485/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38307485/Model_4FGL_J1332.2+4722_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.2+4722'

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  8.063e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38307485/ft1_filtered_4FGL_J1332.2+4722_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38307485/ft2_4FGL_J1332.2+4722_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38307485/expmap_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38307485/ltcube_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38307485/Model_4FGL_J1332.2+4722_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) = 15030.5192331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3346       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.6386       1.0000          .0000       .10000E+07
     3 'Prefactor '    .45648E-03   1.0000          .0000       .10000E+07
     4 'norm      '    3.9688       1.0000          .0000       .10000E+07
     5 'Prefactor '    .73797E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0633       1.0000          .0000       .10000E+07
     7 'norm      '    14.331       1.0000          .0000       .10000E+07
     8 'norm      '    .93989       1.0000          .0000       .10000E+07
     9 'Prefactor '    171.45       1.0000          .0000       .10000E+07
    10 'Prefactor '    .24603E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .57222E-02   1.0000          .0000       .10000E+07
    13 'norm      '    2.3284       1.0000          .0000       .10000E+07
    14 'norm      '    .59582       1.0000          .0000       .10000E+07
    15 'norm      '    .84569E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .45423E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .42242E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .72164E-09   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13166E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.3447       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.8672       1.0000          .0000       .10000E+07
    22 'Prefactor '    .23210E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.8280       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1379       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15030.3137486
delta logL = 4.31464286521e-09

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  3.331e-10  1.300e-05  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.792e+00  7.999e+03  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  8.708e-01  2.986e-04  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.139e+00  2.382e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.059 47.373

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/38307345/cmap_HighResolution_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2026-09-15 10:35:04.179981', job_id='38307345', GAL2='0.87', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1789493704.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.31e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='945' AND source_name='4FGL J1332.2+4722' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 10:35:04 PDT 2026

 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15030.31     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1701 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3346        2.3549        .15916E-06    .22421E-02
   2  Prefactor     6.6338        8.2672        .85569E-07    .31883E-01
   3  Prefactor     .16653E-09    3.8732       -.44941E-07** at limit **
   4  norm          3.9674        1.5383        .14461E-07    .16856E-02
   5  Prefactor     .28705E-06    12.560       -.36077E-06** at limit **
   6  Prefactor     5.9385        5.8960       -.19563E-07    .11042E-02
   7  norm          14.340        7.4217        .28429E-07    .88732E-02
   8  norm          .94627        1.5512        .11279E-06    .34316E-02
   9  Prefactor     170.62        4.2263        .26920E-07   -.10138    
  10  Prefactor     .13056E-06    14.700        .24612E-06** at limit **
  11  norm           .0000        .99429        .80163E-07** at limit **
  12  Prefactor     .13284E-04    21.398        .77067E-06** at limit **
  13  norm          2.3292        .88604        .22754E-07    .39275E-02
  14  norm          .59345        1.6317       -.44327E-07   -.47194E-03
  15  norm           .0000        5.1986       -.11287E-06** at limit **
  16  Prefactor     .19706E-07    2.8869       -.30443E-07** at limit **
  17  Prefactor     .55511E-10    6.8626       -.38032E-06** at limit **
  18  Prefactor      .0000        .92582        .80655E-08** at limit **
  19  Prefactor     .88818E-08    6.6385       -.24122E-06** at limit **
  20  Prefactor     3.3442        1.5150        .61454E-07    .46061E-02
  21  Prefactor     2.8653        1.9456        .92681E-08    .94205E-03
  22  Prefactor     .15203E-04    23.724        .52491E-06** at limit **
  23  Prefactor     5.8330        4.7797        .14055E-08    .91372E-01
  24  Normalizat    1.1386        .11981       -.99963E-06   -.17387E-03
  25  Prefactor     .87080        .14830       -.20746E-06   -.11869E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33463
  Prefactor  = 6.63378
  Prefactor  = 1.66533e-10
  norm       = 3.96735
  Prefactor  = 2.87048e-07
  Prefactor  = 5.93853
  norm       = 14.34
  norm       = 0.946265
  Prefactor  = 170.624
  Prefactor  = 1.30562e-07
  norm       = 0
  Prefactor  = 1.32837e-05
  norm       = 2.32919
  norm       = 0.593449
  norm       = 0
  Prefactor  = 1.97065e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 8.88178e-09
  Prefactor  = 3.3442
  Prefactor  = 2.86531
  Prefactor  = 1.52031e-05
  Prefactor  = 5.83305
  Normalizat = 1.13859
  Prefactor  = 0.870795
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.306e-07  2.796e-03  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  8.708e-01  1.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.139e+00  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 4.47275118049e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00350917206366 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38307393/likelihoodResults_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15030.3462261
delta logL = -0.0324774781075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15030.3137535
delta logL = -4.93307379656e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15030.31     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      201 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    13.839       -.43174E-05** at limit **
   2  Index         2.7924        3.6171        .17301E-03    .36714E-10
   3  Normalizat    1.1386        .11789       -.82221E-05   -.22524E-03
   4  Prefactor     .87079        .14773        .16635E-04   -.28032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 2.7924
  Normalizat = 1.13859
  Prefactor  = 0.870794
 **********
 **   18 **HESSE 
 **********

 FCN=   15030.31     FROM HESSE     STATUS=OK           481 CALLS     2182 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3346        2.4105        .94952E-03   -1.5685    
   2  Prefactor     6.6338        8.6981        .38923E-03   -1.5656    
   3  Prefactor     .16653E-09    3.8756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9674        1.5396        .50606E-03   -1.5668    
   5  Prefactor     .28705E-06    13.392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9385        5.9025        .40751E-03   -1.5659    
   7  norm          14.340        7.4346        .26432E-03   -1.5632    
   8  norm          .94627        1.5724        .43040E-03   -1.5689    
   9  Prefactor     170.62        29.953        .76378E-04   -1.5447    
  10  Prefactor     .13056E-06    14.973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .98969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13284E-04    40.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3292        .88874        .67182E-03   -1.5677    
  14  norm          .59345        1.6396        .69603E-03   -1.5693    
  15  norm           .0000        5.1907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .19706E-07    14.606        .15728E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    7.4681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        .92093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .88818E-08    7.9697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3442        1.6882        .55316E-03   -1.5671    
  21  Prefactor     2.8653        16.788        .60007E-03   -1.5674    
  22  Prefactor     .15203E-04    42.400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.8330        8.4158        .41577E-03   -1.5660    
  24  Normalizat    1.1386        .10399        .36633E-01   -.88522    
  25  Prefactor     .87080        .12774        .67881E-01   -.97169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83542e-07
Minuit parameter uncertainties:
  1  2.41047
  2  8.6981
  3  4.72636e-05
  4  1.53965
  5  0.00392106
  6  5.90249
  7  7.43465
  8  1.57238
  9  29.9526
  10  0.00279613
  11  6.50871e-06
  12  0.0465444
  13  0.888742
  14  1.63963
  15  1.2984e-05
  16  0.00107232
  17  3.89901e-05
  18  1.37585e-06
  19  0.000531487
  20  1.6882
  21  13.8713
  22  0.0507786
  23  8.4158
  24  0.104013
  25  0.127779
 **********
 **   18 **HESSE 
 **********

 FCN=   15030.31     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      238 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .12343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7924        8.1881        .50000       -.45729    
   3  Normalizat    1.1386        .23823E-03    .36604E-01   -.88522    
   4  Prefactor     .87079        .29861E-03    .67881E-01   -.97169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04112e-13
Minuit parameter uncertainties:
  1  1.30003e-05
  2  7998.92
  3  0.000238225
  4  0.000298613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15030.3137486
delta logL = 4.31464286521e-09

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  3.331e-10  1.300e-05  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.792e+00  7.999e+03  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  8.708e-01  2.986e-04  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.139e+00  2.382e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.059 47.373

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/38307393/cmap_HighResolution_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2026-09-15 10:36:12.378417', job_id='38307393', GAL2='0.87', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1789493772.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.31e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='945' AND source_name='4FGL J1332.2+4722' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 10:36:12 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.306e-07  2.796e-03  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  8.708e-01  1.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.139e+00  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 4.47275118049e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00350917206366 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38307485/likelihoodResults_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15030.3462261
delta logL = -0.0324774781075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15030.3137535
delta logL = -4.93307379656e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15030.31     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      201 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    13.839       -.43174E-05** at limit **
   2  Index         2.7924        3.6171        .17301E-03    .36714E-10
   3  Normalizat    1.1386        .11789       -.82221E-05   -.22524E-03
   4  Prefactor     .87079        .14773        .16635E-04   -.28032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 2.7924
  Normalizat = 1.13859
  Prefactor  = 0.870794
 **********
 **   18 **HESSE 
 **********

 FCN=   15030.31     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      238 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .12343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7924        8.1881        .50000       -.45729    
   3  Normalizat    1.1386        .23823E-03    .36604E-01   -.88522    
   4  Prefactor     .87079        .29861E-03    .67881E-01   -.97169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04112e-13
Minuit parameter uncertainties:
  1  1.30003e-05
  2  7998.92
  3  0.000238225
  4  0.000298613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15030.3137486
delta logL = 4.31464286521e-09

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  3.331e-10  1.300e-05  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.792e+00  7.999e+03  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  8.708e-01  2.986e-04  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.139e+00  2.382e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.059 47.373

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/38307485/cmap_HighResolution_810518401_811123201_4FGL_J1332.2+4722_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2026-09-15 10:37:33.672589', job_id='38307485', GAL2='0.87', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1789493853.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.31e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='945' AND source_name='4FGL J1332.2+4722' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 10:37:33 PDT 2026

