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

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_J1331.2-1325_weekly_bin945
RA = 202.819, Dec = -13.4282
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='38307296', job_status='RUN', time_executed='2026-09-15 10:24:06.377248', time_epoch_executed='1789493046.38' WHERE source_name='4FGL J1331.2-1325' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38307296

Creating custom pfile directory:
/lscratch/kocevski/38307296/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/38307296/ft1_4FGL_J1331.2-1325_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/38307296/ft2_4FGL_J1331.2-1325_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38307296/ft1_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307296/ft1_filteredMKT_4FGL_J1331.2-1325_weekly_bin945.fits ra=202.819 dec=-13.4282 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.33
user 5.44
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38307296/ft2_4FGL_J1331.2-1325_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38307296/ft2_4FGL_J1331.2-1325_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/38307296/ft1_filteredMKT_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38307296/ft1_filtered_4FGL_J1331.2-1325_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.58
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1196

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38307296/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38307296/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DAT/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J1331.2-1325_weekly_bin945
RA = 202.819, Dec = -13.4282
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='38307312', job_status='RUN', time_executed='2026-09-15 10:24:35.813538', time_epoch_executed='1789493075.81' WHERE source_name='4FGL J1331.2-1325' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38307312

Creating custom pfile directory:
/lscratch/kocevski/38307312/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/38307312/ft1_4FGL_J1331.2-1325_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/38307312/ft2_4FGL_J1331.2-1325_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38307312/ft1_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307312/ft1_filteredMKT_4FGL_J1331.2-1325_weekly_bin945.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=810518401.0 tmax=811123201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.92
user 5.31
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38307312/ft2_4FGL_J1331.2-1325_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38307312/ft2_4FGL_J1331.2-1325_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/38307312/ft1_filteredMKT_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38307312/ft1_filtered_4FGL_J1331.2-1325_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.50
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 1196

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38307312/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38307312/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38307242/ltcube_810518401_811123201_4FGL_J1331.2-1325_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/38307242/ft2_4FGL_J1331.2-1325_weekly_bin945.fits
.....................!
real 19.92
user 19.27
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38307242/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307242/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38307242/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307242/expmap_810518401_811123201_4FGL_J1331.2-1325_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/38307242/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
.....................!
real 77.51
user 71.98
sys 4.47

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

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38307242/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits scfile=/lscratch/kocevski/38307242/ft2_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307242/cmap_810518401_811123201_4FGL_J1331.2-1325_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=202.819 yref=-13.4282 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.93
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38307242/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits scfile=/lscratch/kocevski/38307242/ft2_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307242/cmap_HighResolution_810518401_811123201_4FGL_J1331.2-1325_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=202.819 yref=-13.4282 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.90
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38307242/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307242/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38307242/Model_4FGL_J1331.2-1325_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 number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1331.2-1325_weekly_bin945
RA = 202.819, Dec = -13.4282
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='38307344', job_status='RUN', time_executed='2026-09-15 10:25:41.164368', time_epoch_executed='1789493141.16' WHERE source_name='4FGL J1331.2-1325' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38307344

Creating custom pfile directory:
/lscratch/kocevski/38307344/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/38307344/ft1_4FGL_J1331.2-1325_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/38307344/ft2_4FGL_J1331.2-1325_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38307344/ft1_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307344/ft1_filteredMKT_4FGL_J1331.2-1325_weekly_bin945.fits ra=202.819 dec=-13.4282 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.07
user 5.45
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38307344/ft2_4FGL_J1331.2-1325_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38307344/ft2_4FGL_J1331.2-1325_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/38307344/ft1_filteredMKT_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38307344/ft1_filtered_4FGL_J1331.2-1325_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.77
user 0.25
sys 0.15

Number of photons that the gtmktime cut: 1196

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38307344/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38307344/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38307296/ltcube_810518401_811123201_4FGL_J1331.2-1325_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/38307296/ft2_4FGL_J1331.2-1325_weekly_bin945.fits
.....................!
real 19.07
user 18.07
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38307296/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307296/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38307296/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307296/expmap_810518401_811123201_4FGL_J1331.2-1325_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/38307296/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
.....................!
real 72.23
user 67.04
sys 4.27

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

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

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

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

This is gtbin version HEAD
real 0.58
user 0.24
sys 0.13

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

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

This is gtbin version HEAD
real 0.64
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38307296/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307296/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38307296/Model_4FGL_J1331.2-1325_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 A" outfile=/lscratch/kocevski/38307312/ltcube_810518401_811123201_4FGL_J1331.2-1325_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/38307312/ft2_4FGL_J1331.2-1325_weekly_bin945.fits
.....................!
real 17.99
user 17.41
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38307312/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307312/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38307312/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307312/expmap_810518401_811123201_4FGL_J1331.2-1325_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/38307312/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
.....................!
real 71.26
user 66.46
sys 4.19

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

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

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

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

This is gtbin version HEAD
real 0.58
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38307312/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits scfile=/lscratch/kocevski/38307312/ft2_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307312/cmap_HighResolution_810518401_811123201_4FGL_J1331.2-1325_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=202.819 yref=-13.4282 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.54
user 0.27
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38307312/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307312/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38307312/Model_4FGL_J1331.2-1325_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/38307242/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits.....................!
real 43.57
user 41.62
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38307242/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits', '/lscratch/kocevski/38307242/ft2_4FGL_J1331.2-1325_weekly_bin945.fits', expMap='/lscratch/kocevski/38307242/expmap_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits', expCube='/lscratch/kocevski/38307242/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38307242/Model_4FGL_J1331.2-1325_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38307242/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38307242/ft2_4FGL_J1331.2-1325_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38307242/expmap_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38307242/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38307242/Model_4FGL_J1331.2-1325_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 13427.5943021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58962       1.0000          .0000       .10000E+07
     2 'norm      '    .16003E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .29583       1.0000          .0000       .10000E+07
     4 'Prefactor '    .18281E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .52911       1.0000          .0000       .10000E+07
     6 'norm      '    5.9118       1.0000          .0000       .10000E+07
     7 'norm      '    6.8545       1.0000          .0000       .10000E+07
     8 'Prefactor '    .63940E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .67184E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .31953E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.2356       1.0000          .0000       .10000E+07
    12 'norm      '    .11974E-06   1.0000          .0000       .10000E+07
    13 'norm      '    16.890       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.2369       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33396E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .13362E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .95478E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .17819E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .47552E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .28366E-07   1.0000          .0000       .10000E+07
    21 'norm      '    11.468       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4088       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13427.40     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1538 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58950        .19321       -.16168E-08   -.53065E-03
   2  norm          .17997E-06    37.492        .84679E-06** at limit **
   3  norm          .28521        20.538       -.54103E-06   -.95933E-02
   4  Prefactor     .68556E-07    9.8058       -.29296E-06** at limit **
   5  norm          .52932        1.3609        .22696E-07    .38043E-04
   6  norm          5.9324        5.7422        .24101E-07   -.73631E-04
   7  norm          6.8465        7.6393       -.67971E-07   -.34986E-02
   8  Prefactor      .0000        1.9551        .72031E-07** at limit **
   9  Prefactor     .84505E-06    19.399        .74126E-06** at limit **
  10  Prefactor     .90311E-06    10.178       -.34397E-07** at limit **
  11  norm          1.2350        .96244        .19228E-07   -.53965E-03
  12  norm           .0000        1.6885        .66390E-07** at limit **
  13  norm          16.887        6.1726       -.31159E-07   -.22923E-02
  14  Prefactor     3.1858        7.3085       -.38251E-07   -.13026E-02
  15  Prefactor     .15543E-08    7.2320       -.74870E-07** at limit **
  16  norm          .51847E-06    9.4189       -.33261E-06** at limit **
  17  Prefactor     .19873E-07    3.5810       -.26336E-07** at limit **
  18  norm           .0000        .97459       -.98188E-07** at limit **
  19  Prefactor     .55511E-10    4.1730       -.32489E-06** at limit **
  20  norm          .20262E-07    2.8496        .68703E-07** at limit **
  21  norm          11.470        2.6920        .95462E-08   -.49995E-03
  22  Normalizat    1.4088        .20195        .16152E-05   -.55130E-04
  23  Prefactor     .91552        .10383       -.30348E-05   -.11121E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.589501
  norm       = 1.79967e-07
  norm       = 0.285211
  Prefactor  = 6.85563e-08
  norm       = 0.529324
  norm       = 5.9324
  norm       = 6.84647
  Prefactor  = 0
  Prefactor  = 8.45046e-07
  Prefactor  = 9.03111e-07
  norm       = 1.23495
  norm       = 0
  norm       = 16.8871
  Prefactor  = 3.18584
  Prefactor  = 1.55431e-09
  norm       = 5.18474e-07
  Prefactor  = 1.9873e-08
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 2.02616e-08
  norm       = 11.4702
  Normalizat = 1.40878
  Prefactor  = 0.915522
 **********
 **   18 **HESSE 
 **********

 FCN=   13427.40     FROM HESSE     STATUS=OK           426 CALLS     1964 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58950        .19530        .63369E-03   -1.5693    
   2  norm          .17997E-06    3.9105        .66670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .28521        3.1727        .72046E-02   -1.5697    
   4  Prefactor     .68556E-07    10.466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .52932        1.3838        .75833E-03   -1.5693    
   6  norm          5.9324        5.7452        .41277E-03   -1.5659    
   7  norm          6.8465        7.6508        .38298E-03   -1.5656    
   8  Prefactor      .0000        1.9620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .84505E-06    24.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .90311E-06    16.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2350        .97675        .10098E-02   -1.5686    
  12  norm           .0000        1.6818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.887        6.1802        .24343E-03   -1.5626    
  14  Prefactor     3.1858        7.3412        .56274E-03   -1.5672    
  15  Prefactor     .15543E-08    7.2601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .51847E-06    13.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19873E-07    5.5967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .97230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    4.1526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .20262E-07    5.9344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.470        2.6888        .29558E-03   -1.5640    
  22  Normalizat    1.4088        .17171        .72949E-01   -.80375    
  23  Prefactor     .91552        .87839E-01    .45201E-01   -.95601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24269e-07
Minuit parameter uncertainties:
  1  0.195303
  2  0.00167774
  3  1.90251
  4  0.00169409
  5  1.38381
  6  5.74523
  7  7.65081
  8  4.29911e-06
  9  0.00905679
  10  0.00768907
  11  0.976749
  12  1.67272e-06
  13  6.18022
  14  7.34121
  15  0.000213552
  16  0.005234
  17  0.000667291
  18  2.18948e-06
  19  3.21794e-05
  20  0.000693382
  21  2.68885
  22  0.171782
  23  0.0878525
A" outfile=/lscratch/kocevski/38307344/ltcube_810518401_811123201_4FGL_J1331.2-1325_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/38307344/ft2_4FGL_J1331.2-1325_weekly_bin945.fits
.....................!
real 19.16
user 18.19
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38307344/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307344/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38307344/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307344/expmap_810518401_811123201_4FGL_J1331.2-1325_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/38307344/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
.....................!
real 71.19
user 66.33
sys 4.06

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

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38307344/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits scfile=/lscratch/kocevski/38307344/ft2_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307344/cmap_810518401_811123201_4FGL_J1331.2-1325_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=202.819 yref=-13.4282 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.52
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38307344/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits scfile=/lscratch/kocevski/38307344/ft2_4FGL_J1331.2-1325_weekly_bin945.fits outfile=/lscratch/kocevski/38307344/cmap_HighResolution_810518401_811123201_4FGL_J1331.2-1325_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=202.819 yref=-13.4282 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.62
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38307344/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38307344/ft2_4FGL_J1331.2-1325_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38307344/Model_4FGL_J1331.2-1325_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/38307312/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits.....................!
real 40.43
user 38.69
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38307312/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits', '/lscratch/kocevski/38307312/ft2_4FGL_J1331.2-1325_weekly_bin945.fits', expMap='/lscratch/kocevski/38307312/expmap_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits', expCube='/lscratch/kocevski/38307312/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38307312/Model_4FGL_J1331.2-1325_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38307312/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38307312/ft2_4FGL_J1331.2-1325_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38307312/expmap_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38307312/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38307312/Model_4FGL_J1331.2-1325_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 13427.5943021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58962       1.0000          .0000       .10000E+07
     2 'norm      '    .16003E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .29583       1.0000          .0000       .10000E+07
     4 'Prefactor '    .18281E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .52911       1.0000          .0000       .10000E+07
     6 'norm      '    5.9118       1.0000          .0000       .10000E+07
     7 'norm      '    6.8545       1.0000          .0000       .10000E+07
     8 'Prefactor '    .63940E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .67184E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .31953E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.2356       1.0000          .0000       .10000E+07
    12 'norm      '    .11974E-06   1.0000          .0000       .10000E+07
    13 'norm      '    16.890       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.2369       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33396E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .13362E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .95478E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .17819E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .47552E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .28366E-07   1.0000          .0000       .10000E+07
    21 'norm      '    11.468       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4088       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13427.40     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1538 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58950        .19321       -.16168E-08   -.53065E-03
   2  norm          .17997E-06    37.492        .84679E-06** at limit **
   3  norm          .28521        20.538       -.54103E-06   -.95933E-02
   4  Prefactor     .68556E-07    9.8058       -.29296E-06** at limit **
   5  norm          .52932        1.3609        .22696E-07    .38043E-04
   6  norm          5.9324        5.7422        .24101E-07   -.73631E-04
   7  norm          6.8465        7.6393       -.67971E-07   -.34986E-02
   8  Prefactor      .0000        1.9551        .72031E-07** at limit **
   9  Prefactor     .84505E-06    19.399        .74126E-06** at limit **
  10  Prefactor     .90311E-06    10.178       -.34397E-07** at limit **
  11  norm          1.2350        .96244        .19228E-07   -.53965E-03
  12  norm           .0000        1.6885        .66390E-07** at limit **
  13  norm          16.887        6.1726       -.31159E-07   -.22923E-02
  14  Prefactor     3.1858        7.3085       -.38251E-07   -.13026E-02
  15  Prefactor     .15543E-08    7.2320       -.74870E-07** at limit **
  16  norm          .51847E-06    9.4189       -.33261E-06** at limit **
  17  Prefactor     .19873E-07    3.5810       -.26336E-07** at limit **
  18  norm           .0000        .97459       -.98188E-07** at limit **
  19  Prefactor     .55511E-10    4.1730       -.32489E-06** at limit **
  20  norm          .20262E-07    2.8496        .68703E-07** at limit **
  21  norm          11.470        2.6920        .95462E-08   -.49995E-03
  22  Normalizat    1.4088        .20195        .16152E-05   -.55130E-04
  23  Prefactor     .91552        .10383       -.30348E-05   -.11121E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.589501
  norm       = 1.79967e-07
  norm       = 0.285211
  Prefactor  = 6.85563e-08
  norm       = 0.529324
  norm       = 5.9324
  norm       = 6.84647
  Prefactor  = 0
  Prefactor  = 8.45046e-07
  Prefactor  = 9.03111e-07
  norm       = 1.23495
  norm       = 0
  norm       = 16.8871
  Prefactor  = 3.18584
  Prefactor  = 1.55431e-09
  norm       = 5.18474e-07
  Prefactor  = 1.9873e-08
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 2.02616e-08
  norm       = 11.4702
  Normalizat = 1.40878
  Prefactor  = 0.915522
source GAL_V02
Working on...
/lscratch/kocevski/38307296/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits.....................!
real 40.82
user 38.73
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38307296/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits', '/lscratch/kocevski/38307296/ft2_4FGL_J1331.2-1325_weekly_bin945.fits', expMap='/lscratch/kocevski/38307296/expmap_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits', expCube='/lscratch/kocevski/38307296/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38307296/Model_4FGL_J1331.2-1325_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38307296/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38307296/ft2_4FGL_J1331.2-1325_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38307296/expmap_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38307296/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38307296/Model_4FGL_J1331.2-1325_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 13427.5943021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58962       1.0000          .0000       .10000E+07
     2 'norm      '    .16003E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .29583       1.0000          .0000       .10000E+07
     4 'Prefactor '    .18281E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .52911       1.0000          .0000       .10000E+07
     6 'norm      '    5.9118       1.0000          .0000       .10000E+07
     7 'norm      '    6.8545       1.0000          .0000       .10000E+07
     8 'Prefactor '    .63940E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .67184E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .31953E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.2356       1.0000          .0000       .10000E+07
    12 'norm      '    .11974E-06   1.0000          .0000       .10000E+07
    13 'norm      '    16.890       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.2369       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33396E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .13362E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .95478E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .17819E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .47552E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .28366E-07   1.0000          .0000       .10000E+07
    21 'norm      '    11.468       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4088       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13427.40     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1538 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58950        .19321       -.16168E-08   -.53065E-03
   2  norm          .17997E-06    37.492        .84679E-06** at limit **
   3  norm          .28521        20.538       -.54103E-06   -.95933E-02
   4  Prefactor     .68556E-07    9.8058       -.29296E-06** at limit **
   5  norm          .52932        1.3609        .22696E-07    .38043E-04
   6  norm          5.9324        5.7422        .24101E-07   -.73631E-04
   7  norm          6.8465        7.6393       -.67971E-07   -.34986E-02
   8  Prefactor      .0000        1.9551        .72031E-07** at limit **
   9  Prefactor     .84505E-06    19.399        .74126E-06** at limit **
  10  Prefactor     .90311E-06    10.178       -.34397E-07** at limit **
  11  norm          1.2350        .96244        .19228E-07   -.53965E-03
  12  norm           .0000        1.6885        .66390E-07** at limit **
  13  norm          16.887        6.1726       -.31159E-07   -.22923E-02
  14  Prefactor     3.1858        7.3085       -.38251E-07   -.13026E-02
  15  Prefactor     .15543E-08    7.2320       -.74870E-07** at limit **
  16  norm          .51847E-06    9.4189       -.33261E-06** at limit **
  17  Prefactor     .19873E-07    3.5810       -.26336E-07** at limit **
  18  norm           .0000        .97459       -.98188E-07** at limit **
  19  Prefactor     .55511E-10    4.1730       -.32489E-06** at limit **
  20  norm          .20262E-07    2.8496        .68703E-07** at limit **
  21  norm          11.470        2.6920        .95462E-08   -.49995E-03
  22  Normalizat    1.4088        .20195        .16152E-05   -.55130E-04
  23  Prefactor     .91552        .10383       -.30348E-05   -.11121E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.589501
  norm       = 1.79967e-07
  norm       = 0.285211
  Prefactor  = 6.85563e-08
  norm       = 0.529324
  norm       = 5.9324
  norm       = 6.84647
  Prefactor  = 0
  Prefactor  = 8.45046e-07
  Prefactor  = 9.03111e-07
  norm       = 1.23495
  norm       = 0
  norm       = 16.8871
  Prefactor  = 3.18584
  Prefactor  = 1.55431e-09
  norm       = 5.18474e-07
  Prefactor  = 1.9873e-08
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 2.02616e-08
  norm       = 11.4702
  Normalizat = 1.40878
  Prefactor  = 0.915522
 **********
 **   18 **HESSE 
 **********

 FCN=   13427.40     FROM HESSE     STATUS=OK           426 CALLS     1964 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58950        .19530        .63369E-03   -1.5693    
   2  norm          .17997E-06    3.9105        .66670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .28521        3.1727        .72046E-02   -1.5697    
   4  Prefactor     .68556E-07    10.466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .52932        1.3838        .75833E-03   -1.5693    
   6  norm          5.9324        5.7452        .41277E-03   -1.5659    
   7  norm          6.8465        7.6508        .38298E-03   -1.5656    
   8  Prefactor      .0000        1.9620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .84505E-06    24.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .90311E-06    16.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2350        .97675        .10098E-02   -1.5686    
  12  norm           .0000        1.6818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.887        6.1802        .24343E-03   -1.5626    
  14  Prefactor     3.1858        7.3412        .56274E-03   -1.5672    
  15  Prefactor     .15543E-08    7.2601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .51847E-06    13.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19873E-07    5.5967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .97230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    4.1526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .20262E-07    5.9344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.470        2.6888        .29558E-03   -1.5640    
  22  Normalizat    1.4088        .17171        .72949E-01   -.80375    
  23  Prefactor     .91552        .87839E-01    .45201E-01   -.95601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24269e-07
Minuit parameter uncertainties:
  1  0.195303
  2  0.00167774
  3  1.90251
  4  0.00169409
  5  1.38381
  6  5.74523
  7  7.65081
  8  4.29911e-06
  9  0.00905679
  10  0.00768907
  11  0.976749
  12  1.67272e-06
  13  6.18022
  14  7.34121
  15  0.000213552
  16  0.005234
  17  0.000667291
  18  2.18948e-06
  19  3.21794e-05
  20  0.000693382
  21  2.68885
  22  0.171782
  23  0.0878525
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  9.031e-07  7.689e-03  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.155e-01  8.785e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.409e+00  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 9.39041439802e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00734883799719 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38307242/likelihoodResults_810518401_811123201_4FGL_J1331.2-1325_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) = 13427.4325362
delta logL = -0.0308885072536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13426.6353224
delta logL = 0.76632525503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17611E-05   1.0000          .0000       .10000E+07
     2 'Index     '    9.9996       1.0000          .0000       10.000    
     3 'Normalizat'    1.3474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13426.64     FROM MIGRAD    STATUS=FAILED       442 CALLS      906 TOTAL
                     EDM=   .30E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .13601E-05    .41121E-03** at limit **
   2  Index        10.0000        1.6158        .35535    ** at limit **
   3  Normalizat    1.3476        .64128E-02    .32294E-03   -.23728E-03
   4  Prefactor     .93681        .33700E-02    .20355E-03   -.83714E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13426.64     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS     1030 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .13601E-05    .10232E-08** at limit **
   2  Index        10.0000        1.6158        .18510E-01** at limit **
   3  Normalizat    1.3476        .64128E-02    .52924E-07   -.23728E-03
   4  Prefactor     .93681        .33700E-02    .23345E-07   -.83714E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13426.64     FROM MIGRAD    STATUS=FAILED        42 CALLS     1072 TOTAL
                     EDM=   .31E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .19751E-05     .0000    ** at limit **
   2  Index        10.0000        6.3808         .0000    ** at limit **
   3  Normalizat    1.3476        .92583E-02     .0000       -.23764E-03
   4  Prefactor     .93681        .48639E-02     .0000       -.84364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75826e-06
  Index      = 10
  Normalizat = 1.34758
  Prefactor  = 0.936813
 **********
 **   18 **HESSE 
 **********

 FCN=   13426.64     FROM HESSE     STATUS=NOT POSDEF    29 CALLS     1101 TOTAL
                     EDM=   .63E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17583E-05    .19751E-05    .20560E-03   -862.37    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.3808        .50000       -74523.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3476        .92583E-02    .48490E-04   -203.38    
   4  Prefactor     .93681        .48639E-02    .50410E-04    211.44    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 62.7019
Minuit parameter uncertainties:
  1  1.97516e-06
  2  2.8003e-05
  3  0.00925832
  4  0.00486388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 **********
 **   18 **HESSE 
 **********

 FCN=   13427.40     FROM HESSE     STATUS=OK           426 CALLS     1964 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58950        .19530        .63369E-03   -1.5693    
   2  norm          .17997E-06    3.9105        .66670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .28521        3.1727        .72046E-02   -1.5697    
   4  Prefactor     .68556E-07    10.466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .52932        1.3838        .75833E-03   -1.5693    
   6  norm          5.9324        5.7452        .41277E-03   -1.5659    
   7  norm          6.8465        7.6508        .38298E-03   -1.5656    
   8  Prefactor      .0000        1.9620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .84505E-06    24.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .90311E-06    16.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2350        .97675        .10098E-02   -1.5686    
  12  norm           .0000        1.6818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.887        6.1802        .24343E-03   -1.5626    
  14  Prefactor     3.1858        7.3412        .56274E-03   -1.5672    
  15  Prefactor     .15543E-08    7.2601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .51847E-06    13.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19873E-07    5.5967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .97230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    4.1526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .20262E-07    5.9344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.470        2.6888        .29558E-03   -1.5640    
  22  Normalizat    1.4088        .17171        .72949E-01   -.80375    
  23  Prefactor     .91552        .87839E-01    .45201E-01   -.95601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24269e-07
Minuit parameter uncertainties:
  1  0.195303
  2  0.00167774
  3  1.90251
  4  0.00169409
  5  1.38381
  6  5.74523
  7  7.65081
  8  4.29911e-06
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 13426.6353147
delta logL = 0.7663330542

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.758e-06  1.975e-06  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  1.000e+01  2.800e-05  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.368e-01  4.864e-03  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.348e+00  9.258e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.08e-08 +/- 6.62e-08
Energy Flux (Free Index): 6.80e-06 +/- 7.45e-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/38307242/cmap_HighResolution_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', comment='SUCCESS', energy_flux2='6.80e-06', dlogl='7.66e-01', photon_flux2='6.08e-08', job_status='DONE', time_completed='2026-09-15 10:30:35.680789', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.39e-08', energy_flux_error2='7.45e-06', EG='1.41', time_epoch_completed='1789493435.68', return_code='0', job_id='38307242', GAL2='0.94', EG2='1.35', return_code2='1', photon_flux_error2='6.62e-08', ts2='1.61', photon_index='2.60' WHERE bin_id='945' AND source_name='4FGL J1331.2-1325' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 10:30:35 PDT 2026

  9  0.00905679
  10  0.00768907
  11  0.976749
  12  1.67272e-06
  13  6.18022
  14  7.34121
  15  0.000213552
  16  0.005234
  17  0.000667291
  18  2.18948e-06
  19  3.21794e-05
  20  0.000693382
  21  2.68885
  22  0.171782
  23  0.0878525
source GAL_V02
Working on...
/lscratch/kocevski/38307344/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits.....................!
real 40.05
user 38.61
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38307344/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits', '/lscratch/kocevski/38307344/ft2_4FGL_J1331.2-1325_weekly_bin945.fits', expMap='/lscratch/kocevski/38307344/expmap_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits', expCube='/lscratch/kocevski/38307344/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38307344/Model_4FGL_J1331.2-1325_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38307344/ft1_filtered_4FGL_J1331.2-1325_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38307344/ft2_4FGL_J1331.2-1325_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38307344/expmap_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38307344/ltcube_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38307344/Model_4FGL_J1331.2-1325_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 13427.5943021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58962       1.0000          .0000       .10000E+07
     2 'norm      '    .16003E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .29583       1.0000          .0000       .10000E+07
     4 'Prefactor '    .18281E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .52911       1.0000          .0000       .10000E+07
     6 'norm      '    5.9118       1.0000          .0000       .10000E+07
     7 'norm      '    6.8545       1.0000          .0000       .10000E+07
     8 'Prefactor '    .63940E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .67184E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .31953E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.2356       1.0000          .0000       .10000E+07
    12 'norm      '    .11974E-06   1.0000          .0000       .10000E+07
    13 'norm      '    16.890       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.2369       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33396E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .13362E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .95478E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .17819E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .47552E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .28366E-07   1.0000          .0000       .10000E+07
    21 'norm      '    11.468       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4088       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13427.40     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1538 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58950        .19321       -.16168E-08   -.53065E-03
   2  norm          .17997E-06    37.492        .84679E-06** at limit **
   3  norm          .28521        20.538       -.54103E-06   -.95933E-02
   4  Prefactor     .68556E-07    9.8058       -.29296E-06** at limit **
   5  norm          .52932        1.3609        .22696E-07    .38043E-04
   6  norm          5.9324        5.7422        .24101E-07   -.73631E-04
   7  norm          6.8465        7.6393       -.67971E-07   -.34986E-02
   8  Prefactor      .0000        1.9551        .72031E-07** at limit **
   9  Prefactor     .84505E-06    19.399        .74126E-06** at limit **
  10  Prefactor     .90311E-06    10.178       -.34397E-07** at limit **
  11  norm          1.2350        .96244        .19228E-07   -.53965E-03
  12  norm           .0000        1.6885        .66390E-07** at limit **
  13  norm          16.887        6.1726       -.31159E-07   -.22923E-02
  14  Prefactor     3.1858        7.3085       -.38251E-07   -.13026E-02
  15  Prefactor     .15543E-08    7.2320       -.74870E-07** at limit **
  16  norm          .51847E-06    9.4189       -.33261E-06** at limit **
  17  Prefactor     .19873E-07    3.5810       -.26336E-07** at limit **
  18  norm           .0000        .97459       -.98188E-07** at limit **
  19  Prefactor     .55511E-10    4.1730       -.32489E-06** at limit **
  20  norm          .20262E-07    2.8496        .68703E-07** at limit **
  21  norm          11.470        2.6920        .95462E-08   -.49995E-03
  22  Normalizat    1.4088        .20195        .16152E-05   -.55130E-04
  23  Prefactor     .91552        .10383       -.30348E-05   -.11121E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.589501
  norm       = 1.79967e-07
  norm       = 0.285211
  Prefactor  = 6.85563e-08
  norm       = 0.529324
  norm       = 5.9324
  norm       = 6.84647
  Prefactor  = 0
  Prefactor  = 8.45046e-07
  Prefactor  = 9.03111e-07
  norm       = 1.23495
  norm       = 0
  norm       = 16.8871
  Prefactor  = 3.18584
  Prefactor  = 1.55431e-09
  norm       = 5.18474e-07
  Prefactor  = 1.9873e-08
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 2.02616e-08
  norm       = 11.4702
  Normalizat = 1.40878
  Prefactor  = 0.915522
 **********
 **   18 **HESSE 
 **********

 FCN=   13427.40     FROM HESSE     STATUS=OK           426 CALLS     1964 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58950        .19530        .63369E-03   -1.5693    
   2  norm          .17997E-06    3.9105        .66670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .28521        3.1727        .72046E-02   -1.5697    
   4  Prefactor     .68556E-07    10.466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .52932        1.3838        .75833E-03   -1.5693    
   6  norm          5.9324        5.7452        .41277E-03   -1.5659    
   7  norm          6.8465        7.6508        .38298E-03   -1.5656    
   8  Prefactor      .0000        1.9620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .84505E-06    24.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .90311E-06    16.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2350        .97675        .10098E-02   -1.5686    
  12  norm           .0000        1.6818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.887        6.1802        .24343E-03   -1.5626    
  14  Prefactor     3.1858        7.3412        .56274E-03   -1.5672    
  15  Prefactor     .15543E-08    7.2601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .51847E-06    13.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19873E-07    5.5967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .97230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    4.1526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .20262E-07    5.9344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.470        2.6888        .29558E-03   -1.5640    
  22  Normalizat    1.4088        .17171        .72949E-01   -.80375    
  23  Prefactor     .91552        .87839E-01    .45201E-01   -.95601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24269e-07
Minuit parameter uncertainties:
  1  0.195303
  2  0.00167774
  3  1.90251
  4  0.00169409
  5  1.38381
  6  5.74523
  7  7.65081
  8  4.29911e-06
  9  0.00905679
  10  0.00768907
  11  0.976749
  12  1.67272e-06
  13  6.18022
  14  7.34121
  15  0.000213552
  16  0.005234
  17  0.000667291
  18  2.18948e-06
  19  3.21794e-05
  20  0.000693382
  21  2.68885
  22  0.171782
  23  0.0878525
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  9.031e-07  7.689e-03  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.155e-01  8.785e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.409e+00  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 9.39041439802e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00734883799719 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38307312/likelihoodResults_810518401_811123201_4FGL_J1331.2-1325_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) = 13427.4325362
delta logL = -0.0308885072536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13426.6353224
delta logL = 0.76632525503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17611E-05   1.0000          .0000       .10000E+07
     2 'Index     '    9.9996       1.0000          .0000       10.000    
     3 'Normalizat'    1.3474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13426.64     FROM MIGRAD    STATUS=FAILED       442 CALLS      906 TOTAL
                     EDM=   .30E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .13601E-05    .41121E-03** at limit **
   2  Index        10.0000        1.6158        .35535    ** at limit **
   3  Normalizat    1.3476        .64128E-02    .32294E-03   -.23728E-03
   4  Prefactor     .93681        .33700E-02    .20355E-03   -.83714E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13426.64     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS     1030 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .13601E-05    .10232E-08** at limit **
   2  Index        10.0000        1.6158        .18510E-01** at limit **
   3  Normalizat    1.3476        .64128E-02    .52924E-07   -.23728E-03
   4  Prefactor     .93681        .33700E-02    .23345E-07   -.83714E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13426.64     FROM MIGRAD    STATUS=FAILED        42 CALLS     1072 TOTAL
                     EDM=   .31E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .19751E-05     .0000    ** at limit **
   2  Index        10.0000        6.3808         .0000    ** at limit **
   3  Normalizat    1.3476        .92583E-02     .0000       -.23764E-03
   4  Prefactor     .93681        .48639E-02     .0000       -.84364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75826e-06
  Index      = 10
  Normalizat = 1.34758
  Prefactor  = 0.936813
 **********
 **   18 **HESSE 
 **********

 FCN=   13426.64     FROM HESSE     STATUS=NOT POSDEF    29 CALLS     1101 TOTAL
                     EDM=   .63E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17583E-05    .19751E-05    .20560E-03   -862.37    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.3808        .50000       -74523.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3476        .92583E-02    .48490E-04   -203.38    
   4  Prefactor     .93681        .48639E-02    .50410E-04    211.44    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 62.7019
Minuit parameter uncertainties:
  1  1.97516e-06
  2  2.8003e-05
  3  0.00925832
  4  0.00486388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 13426.6353147
delta logL = 0.7663330542

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.758e-06  1.975e-06  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  1.000e+01  2.800e-05  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.368e-01  4.864e-03  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.348e+00  9.258e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.08e-08 +/- 6.62e-08
Energy Flux (Free Index): 6.80e-06 +/- 7.45e-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/38307312/cmap_HighResolution_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', comment='SUCCESS', energy_flux2='6.80e-06', dlogl='7.66e-01', photon_flux2='6.08e-08', job_status='DONE', time_completed='2026-09-15 10:32:09.516133', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.39e-08', energy_flux_error2='7.45e-06', EG='1.41', time_epoch_completed='1789493529.52', return_code='0', job_id='38307312', GAL2='0.94', EG2='1.35', return_code2='1', photon_flux_error2='6.62e-08', ts2='1.61', photon_index='2.60' WHERE bin_id='945' AND source_name='4FGL J1331.2-1325' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 10:32:09 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  9.031e-07  7.689e-03  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.155e-01  8.785e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.409e+00  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 9.39041439802e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00734883799719 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38307296/likelihoodResults_810518401_811123201_4FGL_J1331.2-1325_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) = 13427.4325362
delta logL = -0.0308885072536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13426.6353224
delta logL = 0.76632525503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17611E-05   1.0000          .0000       .10000E+07
     2 'Index     '    9.9996       1.0000          .0000       10.000    
     3 'Normalizat'    1.3474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13426.64     FROM MIGRAD    STATUS=FAILED       442 CALLS      906 TOTAL
                     EDM=   .30E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .13601E-05    .41121E-03** at limit **
   2  Index        10.0000        1.6158        .35535    ** at limit **
   3  Normalizat    1.3476        .64128E-02    .32294E-03   -.23728E-03
   4  Prefactor     .93681        .33700E-02    .20355E-03   -.83714E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13426.64     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS     1030 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .13601E-05    .10232E-08** at limit **
   2  Index        10.0000        1.6158        .18510E-01** at limit **
   3  Normalizat    1.3476        .64128E-02    .52924E-07   -.23728E-03
   4  Prefactor     .93681        .33700E-02    .23345E-07   -.83714E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13426.64     FROM MIGRAD    STATUS=FAILED        42 CALLS     1072 TOTAL
                     EDM=   .31E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .19751E-05     .0000    ** at limit **
   2  Index        10.0000        6.3808         .0000    ** at limit **
   3  Normalizat    1.3476        .92583E-02     .0000       -.23764E-03
   4  Prefactor     .93681        .48639E-02     .0000       -.84364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75826e-06
  Index      = 10
  Normalizat = 1.34758
  Prefactor  = 0.936813
 **********
 **   18 **HESSE 
 **********

 FCN=   13426.64     FROM HESSE     STATUS=NOT POSDEF    29 CALLS     1101 TOTAL
                     EDM=   .63E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17583E-05    .19751E-05    .20560E-03   -862.37    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.3808        .50000       -74523.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3476        .92583E-02    .48490E-04   -203.38    
   4  Prefactor     .93681        .48639E-02    .50410E-04    211.44    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 62.7019
Minuit parameter uncertainties:
  1  1.97516e-06
  2  2.8003e-05
  3  0.00925832
  4  0.00486388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 13426.6353147
delta logL = 0.7663330542

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.758e-06  1.975e-06  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  1.000e+01  2.800e-05  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.368e-01  4.864e-03  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.348e+00  9.258e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.08e-08 +/- 6.62e-08
Energy Flux (Free Index): 6.80e-06 +/- 7.45e-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/38307296/cmap_HighResolution_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', comment='SUCCESS', energy_flux2='6.80e-06', dlogl='7.66e-01', photon_flux2='6.08e-08', job_status='DONE', time_completed='2026-09-15 10:32:27.904372', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.39e-08', energy_flux_error2='7.45e-06', EG='1.41', time_epoch_completed='1789493547.9', return_code='0', job_id='38307296', GAL2='0.94', EG2='1.35', return_code2='1', photon_flux_error2='6.62e-08', ts2='1.61', photon_index='2.60' WHERE bin_id='945' AND source_name='4FGL J1331.2-1325' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 10:32:28 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  9.031e-07  7.689e-03  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.155e-01  8.785e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.409e+00  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 9.39041439802e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00734883799719 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38307344/likelihoodResults_810518401_811123201_4FGL_J1331.2-1325_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) = 13427.4325362
delta logL = -0.0308885072536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13426.6353224
delta logL = 0.76632525503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17611E-05   1.0000          .0000       .10000E+07
     2 'Index     '    9.9996       1.0000          .0000       10.000    
     3 'Normalizat'    1.3474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13426.64     FROM MIGRAD    STATUS=FAILED       442 CALLS      906 TOTAL
                     EDM=   .30E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .13601E-05    .41121E-03** at limit **
   2  Index        10.0000        1.6158        .35535    ** at limit **
   3  Normalizat    1.3476        .64128E-02    .32294E-03   -.23728E-03
   4  Prefactor     .93681        .33700E-02    .20355E-03   -.83714E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13426.64     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS     1030 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .13601E-05    .10232E-08** at limit **
   2  Index        10.0000        1.6158        .18510E-01** at limit **
   3  Normalizat    1.3476        .64128E-02    .52924E-07   -.23728E-03
   4  Prefactor     .93681        .33700E-02    .23345E-07   -.83714E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13426.64     FROM MIGRAD    STATUS=FAILED        42 CALLS     1072 TOTAL
                     EDM=   .31E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17583E-05    .19751E-05     .0000    ** at limit **
   2  Index        10.0000        6.3808         .0000    ** at limit **
   3  Normalizat    1.3476        .92583E-02     .0000       -.23764E-03
   4  Prefactor     .93681        .48639E-02     .0000       -.84364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75826e-06
  Index      = 10
  Normalizat = 1.34758
  Prefactor  = 0.936813
 **********
 **   18 **HESSE 
 **********

 FCN=   13426.64     FROM HESSE     STATUS=NOT POSDEF    29 CALLS     1101 TOTAL
                     EDM=   .63E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17583E-05    .19751E-05    .20560E-03   -862.37    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.3808        .50000       -74523.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3476        .92583E-02    .48490E-04   -203.38    
   4  Prefactor     .93681        .48639E-02    .50410E-04    211.44    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 62.7019
Minuit parameter uncertainties:
  1  1.97516e-06
  2  2.8003e-05
  3  0.00925832
  4  0.00486388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 13426.6353147
delta logL = 0.7663330542

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.758e-06  1.975e-06  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  1.000e+01  2.800e-05  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.368e-01  4.864e-03  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.348e+00  9.258e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.08e-08 +/- 6.62e-08
Energy Flux (Free Index): 6.80e-06 +/- 7.45e-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/38307344/cmap_HighResolution_810518401_811123201_4FGL_J1331.2-1325_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', comment='SUCCESS', energy_flux2='6.80e-06', dlogl='7.66e-01', photon_flux2='6.08e-08', job_status='DONE', time_completed='2026-09-15 10:33:21.097935', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.39e-08', energy_flux_error2='7.45e-06', EG='1.41', time_epoch_completed='1789493601.1', return_code='0', job_id='38307344', GAL2='0.94', EG2='1.35', return_code2='1', photon_flux_error2='6.62e-08', ts2='1.61', photon_index='2.60' WHERE bin_id='945' AND source_name='4FGL J1331.2-1325' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 10:33:21 PDT 2026

