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


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin938
RA = 264.584, Dec = 32.4823
tmin = 806284801, tmax = 806889601
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='33460167', job_status='RUN', time_executed='2026-07-28 14:38:21.175707', time_epoch_executed='1785274701.18' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33460167

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33460167/ft1_4FGL_J1738.3+3228_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33460167/ft1_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460167/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits ra=264.584 dec=32.4823 rad=12.0 tmin=806284801.0 tmax=806889601.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.96
user 4.94
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.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/33460167/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33460167/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2222

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33460167/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA"
Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

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

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

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

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

 outfile=/lscratch/kocevski/33460065/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460065/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 18.13
user 17.03
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460065/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460065/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460065/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460065/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460065/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 64.33
user 59.30
sys 3.94

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460065/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460065/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460065/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 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.89
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460065/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460065/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460065/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.02
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460065/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460065/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460065/Model_4FGL_J1738.3+3228_weekly_bin938.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin938
RA = 264.584, Dec = 32.4823
tmin = 806284801, tmax = 806889601
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='33460113', job_status='RUN', time_executed='2026-07-28 14:37:19.384887', time_epoch_executed='1785274639.38' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33460113

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33460113/ft1_4FGL_J1738.3+3228_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33460113/ft1_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460113/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits ra=264.584 dec=32.4823 rad=12.0 tmin=806284801.0 tmax=806889601.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.56
user 5.27
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.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/33460113/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33460113/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2222

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33460113/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin938
RA = 264.584, Dec = 32.4823
tmin = 806284801, tmax = 806889601
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='33460463', job_status='RUN', time_executed='2026-07-28 14:39:22.687287', time_epoch_executed='1785274762.69' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33460463

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33460463/ft1_4FGL_J1738.3+3228_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33460463/ft1_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460463/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits ra=264.584 dec=32.4823 rad=12.0 tmin=806284801.0 tmax=806889601.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.71
user 4.78
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.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/33460463/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33460463/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2222

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33460463/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin938
RA = 264.584, Dec = 32.4823
tmin = 806284801, tmax = 806889601
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='33460508', job_status='RUN', time_executed='2026-07-28 14:39:39.576373', time_epoch_executed='1785274779.58' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33460508

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33460508/ft1_4FGL_J1738.3+3228_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33460508/ft1_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460508/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits ra=264.584 dec=32.4823 rad=12.0 tmin=806284801.0 tmax=806889601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.47
user 4.35
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.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/33460508/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33460508/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2222

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33460508/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin938
RA = 264.584, Dec = 32.4823
tmin = 806284801, tmax = 806889601
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='33460531', job_status='RUN', time_executed='2026-07-28 14:40:23.011805', time_epoch_executed='1785274823.01' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33460531

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33460531/ft1_4FGL_J1738.3+3228_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33460531/ft1_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460531/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits ra=264.584 dec=32.4823 rad=12.0 tmin=806284801.0 tmax=806889601.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.97
user 5.00
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.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/33460531/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33460531/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.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.95
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 2222

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33460531/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" outfile=/lscratch/kocevski/33460167/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 19.16
user 18.23
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460167/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460167/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460167/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460167/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 70.16
user 65.12
sys 3.87

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460167/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460167/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 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.89
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460167/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460167/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 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.89
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460167/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460167/Model_4FGL_J1738.3+3228_weekly_bin938.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin938
RA = 264.584, Dec = 32.4823
tmin = 806284801, tmax = 806889601
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='33460569', job_status='RUN', time_executed='2026-07-28 14:40:27.563510', time_epoch_executed='1785274827.56' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33460569

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33460569/ft1_4FGL_J1738.3+3228_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33460569/ft1_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460569/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits ra=264.584 dec=32.4823 rad=12.0 tmin=806284801.0 tmax=806889601.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.70
user 4.76
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.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/33460569/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33460569/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2222

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33460569/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin938
RA = 264.584, Dec = 32.4823
tmin = 806284801, tmax = 806889601
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='33460616', job_status='RUN', time_executed='2026-07-28 14:41:24.231088', time_epoch_executed='1785274884.23' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33460616

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33460616/ft1_4FGL_J1738.3+3228_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33460616/ft1_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460616/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits ra=264.584 dec=32.4823 rad=12.0 tmin=806284801.0 tmax=806889601.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.73
user 4.87
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.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/33460616/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33460616/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2222

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33460616/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" outfile=/lscratch/kocevski/33460463/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 18.78
user 17.78
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460463/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460463/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460463/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460463/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 67.85
user 62.94
sys 3.99

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460463/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460463/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 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.92
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460463/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460463/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 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.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460463/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460463/Model_4FGL_J1738.3+3228_weekly_bin938.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/33460113/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 22.13
user 20.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460113/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460113/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460113/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460113/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 79.73
user 73.36
sys 4.64

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460113/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460113/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.18
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460113/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460113/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.17
user 0.27
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460113/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460113/Model_4FGL_J1738.3+3228_weekly_bin938.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/33460508/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 16.20
user 15.11
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460508/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460508/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460508/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460508/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 60.03
user 55.50
sys 3.53

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460508/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460508/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.09
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460508/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460508/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.02
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460508/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460508/Model_4FGL_J1738.3+3228_weekly_bin938.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/33460065/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 61.37
user 58.68
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460065/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460065/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460065/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460065/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460065/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460065/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460065/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460065/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460065/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460065/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
 outfile=/lscratch/kocevski/33460531/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 19.25
user 18.26
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460531/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460531/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460531/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460531/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 69.95
user 64.76
sys 4.22

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460531/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460531/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.87
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460531/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460531/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.05
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460531/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460531/Model_4FGL_J1738.3+3228_weekly_bin938.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin938
RA = 264.584, Dec = 32.4823
tmin = 806284801, tmax = 806889601
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='33460822', job_status='RUN', time_executed='2026-07-28 14:42:40.682694', time_epoch_executed='1785274960.68' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33460822

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33460822/ft1_4FGL_J1738.3+3228_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33460822/ft1_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460822/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits ra=264.584 dec=32.4823 rad=12.0 tmin=806284801.0 tmax=806889601.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.99
user 4.94
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.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/33460822/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33460822/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2222

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33460822/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" **********
 **   18 **HESSE 
 **********

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
 outfile=/lscratch/kocevski/33460569/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 18.80
user 17.87
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460569/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460569/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460569/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460569/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 69.15
user 64.05
sys 4.15

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460569/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460569/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.06
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460569/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460569/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.14
user 0.28
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460569/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460569/Model_4FGL_J1738.3+3228_weekly_bin938.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 sourcDone.


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin938
RA = 264.584, Dec = 32.4823
tmin = 806284801, tmax = 806889601
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='33460880', job_status='RUN', time_executed='2026-07-28 14:43:41.479383', time_epoch_executed='1785275021.48' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33460880

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33460880/ft1_4FGL_J1738.3+3228_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33460880/ft1_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460880/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits ra=264.584 dec=32.4823 rad=12.0 tmin=806284801.0 tmax=806889601.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.90
user 4.79
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.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/33460880/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33460880/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.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.89
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2222

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33460880/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin938
RA = 264.584, Dec = 32.4823
tmin = 806284801, tmax = 806889601
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='33460940', job_status='RUN', time_executed='2026-07-28 14:45:27.417456', time_epoch_executed='1785275127.42' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33460940

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33460940/ft1_4FGL_J1738.3+3228_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33460940/ft1_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460940/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits ra=264.584 dec=32.4823 rad=12.0 tmin=806284801.0 tmax=806889601.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.75
user 4.80
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.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/33460940/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33460940/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.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.86
user 0.22
sys 0.15

Number of photons that the gtmktime cut: 2222

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33460940/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" outfile=/lscratch/kocevski/33460616/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 18.56
user 17.58
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460616/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460616/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460616/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460616/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 67.39
user 62.53
sys 3.87

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460616/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460616/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 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.99
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460616/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460616/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 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.97
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460616/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460616/Model_4FGL_J1738.3+3228_weekly_bin938.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/33460167/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 67.06
user 65.04
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460167/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460167/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460167/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460167/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460167/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460167/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460167/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460167/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460167/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460065/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460065/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 14:52:42.126106', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785275562.13', return_code='0', job_id='33460065', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:52:42 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/33460463/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 64.97
user 62.35
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460463/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460463/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460463/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460463/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460463/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460463/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460463/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460463/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460463/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
e GAL_V02
Working on...
/lscratch/kocevski/33460508/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 56.66
user 54.90
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460508/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460508/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460508/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460508/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460508/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460508/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460508/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460508/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460508/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
 outfile=/lscratch/kocevski/33460822/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 22.27
user 21.14
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460822/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460822/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460822/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460822/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 78.08
user 72.36
sys 4.65

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460822/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460822/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 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.79
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460822/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460822/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 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.83
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460822/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460822/Model_4FGL_J1738.3+3228_weekly_bin938.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/33460940/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 18.18
user 17.27
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460940/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460940/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460940/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460940/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 68.73
user 63.81
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 205 point sources and 0 extended sources

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460940/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460940/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 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.82
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460940/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460940/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.08
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460940/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460940/Model_4FGL_J1738.3+3228_weekly_bin938.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc outfile=/lscratch/kocevski/33460880/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 20.83
user 19.89
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33460880/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33460880/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460880/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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/33460880/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
.....................!
real 75.73
user 69.69
sys 4.81

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33460880/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460880/cmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.08
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33460880/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits scfile=/lscratch/kocevski/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.fits outfile=/lscratch/kocevski/33460880/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.87
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33460880/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33460880/Model_4FGL_J1738.3+3228_weekly_bin938.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourc **********
 **   18 **HESSE 
 **********

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
e GAL_V02
Working on...
/lscratch/kocevski/33460113/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 73.45
user 70.74
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460113/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460113/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460113/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460113/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460113/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460113/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460113/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460113/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460113/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
e GAL_V02
Working on...
/lscratch/kocevski/33460531/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 66.19
user 64.13
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460531/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460531/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460531/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460531/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460531/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460531/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460531/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460531/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460531/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460167/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
e GAL_V02
Working on...
/lscratch/kocevski/33460616/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 63.36
user 61.52
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460616/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460616/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460616/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460616/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460616/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460616/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460616/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460616/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460616/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
e GAL_V02
Working on...
/lscratch/kocevski/33460569/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 68.01
user 65.71
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460569/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460569/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460569/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460569/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460569/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460569/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460569/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460569/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460569/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460167/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 14:55:16.591819', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785275716.59', return_code='0', job_id='33460167', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:55:16 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460463/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460463/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 14:55:27.945588', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785275727.95', return_code='0', job_id='33460463', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:55:28 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460508/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460508/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 14:55:38.191284', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785275738.19', return_code='0', job_id='33460508', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:55:38 PDT 2026

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

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460113/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460113/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 14:57:12.215166', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785275832.22', return_code='0', job_id='33460113', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:57:12 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460531/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460616/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460531/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 14:57:36.542448', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785275856.54', return_code='0', job_id='33460531', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:57:36 PDT 2026

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460616/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 14:57:37.832289', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785275857.83', return_code='0', job_id='33460616', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:57:37 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460569/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
e GAL_V02
Working on...
/lscratch/kocevski/33460940/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 64.93
user 62.64
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460940/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460940/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460940/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460940/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460940/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460940/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460940/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460940/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460940/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460569/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 14:57:52.448302', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785275872.45', return_code='0', job_id='33460569', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:57:52 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/33460880/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 68.90
user 66.96
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460880/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460880/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460880/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460880/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460880/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460880/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460880/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460880/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460880/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
e GAL_V02
Working on...
/lscratch/kocevski/33460822/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits.....................!
real 73.69
user 71.20
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33460822/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits', '/lscratch/kocevski/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.fits', expMap='/lscratch/kocevski/33460822/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', expCube='/lscratch/kocevski/33460822/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33460822/Model_4FGL_J1738.3+3228_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33460822/ft1_filtered_4FGL_J1738.3+3228_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33460822/ft2_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33460822/expmap_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33460822/ltcube_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33460822/Model_4FGL_J1738.3+3228_weekly_bin938.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24992       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'norm      '    5.8627       1.0000          .0000       .10000E+07
     5 'norm      '    .14436E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28397E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.429       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21283E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9084       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64487E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .15296       1.0000          .0000       .10000E+07
    14 'norm      '    .24681E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9497       1.0000          .0000       .10000E+07
    16 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6991       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7118       1.0000          .0000       .10000E+07
    19 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23421.95     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1523 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5422        .94160       -.15220E-06   -.34905E-01
   2  Prefactor     .32144E-04    234.11       -.91454E-04** at limit **
   3  norm          .55511E-10    1.0296        .30382E-07** at limit **
   4  norm          5.8630        2.6887        .22213E-07   -.13096E-01
   5  norm          .16653E-09    30.843        .10312E-04** at limit **
   6  Prefactor     .33140E-07    25.803       -.32086E-05** at limit **
   7  Prefactor     48.178        20.686       -.92873E-05    .11184    
   8  Prefactor      .0000        2.0036       -.18778E-06** at limit **
   9  Prefactor     2.9084        2.8517       -.93936E-07   -.16343E-02
  10  Prefactor     16.403        1.6569        .10882E-06    .16500    
  11  Prefactor     10.701        14.123        .13492E-04    .22996E-01
  12  Prefactor     .16653E-09    2.2441        .13639E-06** at limit **
  13  norm          .15293        .31955        .11141E-06** at limit **
  14  norm           .0000        9.7581       -.10978E-05** at limit **
  15  Prefactor     2.9491        2.1536        .42599E-07    .54681E-02
  16  norm          .55511E-10    .82319        .28888E-06** at limit **
  17  Prefactor     5.6946        2.6508       -.40569E-07   -.37562E-03
  18  Prefactor     1.7598        9.9334        .51497E-06    .13487E-03
  19  Normalizat    .82812        .13134        .18555E-04    .72002E-03
  20  Prefactor     1.0342        .70310E-01   -.62751E-05    .14310E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54217
  Prefactor  = 3.21438e-05
  norm       = 5.55112e-11
  norm       = 5.86298
  norm       = 1.66533e-10
  Prefactor  = 3.31402e-08
  Prefactor  = 48.1781
  Prefactor  = 0
  Prefactor  = 2.90838
  Prefactor  = 16.4027
  Prefactor  = 10.7007
  Prefactor  = 1.66533e-10
  norm       = 0.152934
  norm       = 0
  Prefactor  = 2.94913
  norm       = 5.55112e-11
  Prefactor  = 5.69455
  Prefactor  = 1.75977
  Normalizat = 0.828119
  Prefactor  = 1.03418
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.95     FROM HESSE     STATUS=OK           343 CALLS     1866 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5422        .94037        .53679E-03   -1.5670    
   2  Prefactor     .32144E-04    8.6766        .15418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.0320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8630        2.6843        .41452E-03   -1.5660    
   5  norm          .16653E-09    31.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33140E-07    25.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.178        44.566        .14371E-03   -1.5569    
   8  Prefactor      .0000        2.0052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9084        2.8459        .59552E-03   -1.5674    
  10  Prefactor     16.403        20.993        .24684E-03   -1.5627    
  11  Prefactor     10.701        41.174        .30866E-03   -1.5643    
  12  Prefactor     .16653E-09    2.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15293        .34938        .34319E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        9.7601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9491        2.1539        .59107E-03   -1.5674    
  16  norm          .55511E-10    .82255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6946        2.6787        .42052E-03   -1.5660    
  18  Prefactor     1.7598        10.070        .80307E-03   -1.5681    
  19  Normalizat    .82812        .11368        .77960E-01   -.99034    
  20  Prefactor     1.0342        .60047E-01    .40940E-01   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85332e-07
Minuit parameter uncertainties:
  1  0.940369
  2  0.0334005
  3  1.5524e-05
  4  2.68427
  5  0.000148513
  6  0.00185018
  7  44.5667
  8  5.23524e-06
  9  2.84593
  10  20.9935
  11  41.1753
  12  3.5878e-05
  13  0.349376
  14  1.43802e-05
  15  2.15389
  16  1.14569e-05
  17  2.67865
  18  8.41907
  19  0.113713
  20  0.0600514
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460940/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460940/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 15:00:32.937368', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785276032.94', return_code='0', job_id='33460940', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 15:00:33 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460880/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
 **********
 **   18 **HESSE 
 **********

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.818e+01  4.457e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.034e+00  6.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.281e-01  1.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 6.00e-06 +/- 5.55e-06

TS (Fixed Index): 1.46
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.63616979474e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0043707664441 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33460822/likelihoodResults_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.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) = 23421.9319803
delta logL = 0.0205644711932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130885
delta logL = 0.0394562673864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23421.91     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.468        72.254        .65366E-05    .73674E-02
   2  Index         2.6579        1.0169        .99386E-02    .64299E-03
   3  Normalizat    .82320        .13243        .34605E-03    .17094E-02
   4  Prefactor     1.0359        .70136E-01    .16619E-03    .34023E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4678
  Index      = 2.65794
  Normalizat = 0.8232
  Prefactor  = 1.03585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460880/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 15:01:19.494768', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785276079.49', return_code='0', job_id='33460880', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 15:01:19 PDT 2026

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

 FCN=   23421.91     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.468        53.960        .13073E-05   -1.5586    
   2  Index         2.6579        .76187        .39754E-03   -.48749    
   3  Normalizat    .82320        .13198        .13842E-04   -.99214    
   4  Prefactor     1.0359        .69956E-01    .33237E-04   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93506e-09
Minuit parameter uncertainties:
  1  53.9606
  2  0.765698
  3  0.132027
  4  0.0699621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23421.9130878
delta logL = 0.0394570526187

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.747e+01  5.396e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.658e+00  7.657e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.036e+00  6.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.232e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.66 +/- 0.77
Photon Flux (Free Index): 2.27e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.66e-06 +/- 5.24e-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/33460822/cmap_HighResolution_806284801_806889601_4FGL_J1738.3+3228_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='5.66e-06', photon_flux_error='1.81e-08', dlogl='3.95e-02', energy_flux='6.00e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2026-07-28 15:01:26.813617', photon_index_error2='0.77', photon_index2='2.66', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='5.24e-06', EG='0.83', time_epoch_completed='1785276086.81', return_code='0', job_id='33460822', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.55e-06', photon_flux_error2='2.22e-08', ts2='1.54', photon_index='2.45' WHERE bin_id='938' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 15:01:26 PDT 2026

