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

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

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

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

Done.


Performing analysis on: 4FGL_J1740.5+5211_weekly_bin928
RA = 265.136, Dec = 52.1927
tmin = 800236801, tmax = 800841601
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='26876463', job_status='RUN', time_executed='2026-05-19 13:27:14.902450', time_epoch_executed='1779222434.9' WHERE source_name='4FGL J1740.5+5211' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26876463

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26876463/ft1_4FGL_J1740.5+5211_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26876463/ft2_4FGL_J1740.5+5211_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26876463/ft1_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876463/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin928.fits ra=265.136 dec=52.1927 rad=12.0 tmin=800236801.0 tmax=800841601.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.53
user 4.92
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26876463/ft2_4FGL_J1740.5+5211_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26876463/ft2_4FGL_J1740.5+5211_weekly_bin928.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/26876463/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26876463/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.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.78
user 0.24
sys 0.12

Number of photons that the gtmktime cut: 3418

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

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

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


Performing analysis on: 4FGL_J1740.5+5211_weekly_bin928
RA = 265.136, Dec = 52.1927
tmin = 800236801, tmax = 800841601
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='26876473', job_status='RUN', time_executed='2026-05-19 13:28:17.889369', time_epoch_executed='1779222497.89' WHERE source_name='4FGL J1740.5+5211' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26876473

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26876473/ft1_4FGL_J1740.5+5211_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26876473/ft1_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876473/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin928.fits ra=265.136 dec=52.1927 rad=12.0 tmin=800236801.0 tmax=800841601.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.61
user 4.97
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.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/26876473/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26876473/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 3418

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26876473/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA"number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1740.5+5211_weekly_bin928
RA = 265.136, Dec = 52.1927
tmin = 800236801, tmax = 800841601
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='26876474', job_status='RUN', time_executed='2026-05-19 13:28:18.180756', time_epoch_executed='1779222498.18' WHERE source_name='4FGL J1740.5+5211' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26876474

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26876474/ft1_4FGL_J1740.5+5211_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26876474/ft1_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876474/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin928.fits ra=265.136 dec=52.1927 rad=12.0 tmin=800236801.0 tmax=800841601.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.36
user 4.70
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.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/26876474/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26876474/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.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.76
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 3418

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26876474/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA"number of points = 17567
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1740.5+5211_weekly_bin928
RA = 265.136, Dec = 52.1927
tmin = 800236801, tmax = 800841601
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='26876499', job_status='RUN', time_executed='2026-05-19 13:30:21.571679', time_epoch_executed='1779222621.57' WHERE source_name='4FGL J1740.5+5211' and cadence='weekly' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26876499

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26876499/ft1_4FGL_J1740.5+5211_weekly_bin928.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26876499/ft1_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876499/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin928.fits ra=265.136 dec=52.1927 rad=12.0 tmin=800236801.0 tmax=800841601.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.57
user 4.71
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.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/26876499/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" outfile="/lscratch/kocevski/26876499/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 3418

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26876499/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA"outfile=/lscratch/kocevski/26876463/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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/26876463/ft2_4FGL_J1740.5+5211_weekly_bin928.fits
.....................!
real 21.02
user 19.34
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26876463/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26876463/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26876463/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876463/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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/26876463/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
.....................!
real 76.41
user 69.16
sys 4.42

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

Setting source of interest to:
4FGL J1740.5+5211 @ 265.136 52.1927

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26876463/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits scfile=/lscratch/kocevski/26876463/ft2_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876463/cmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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=265.136 yref=52.1927 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.71
user 0.27
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26876463/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits scfile=/lscratch/kocevski/26876463/ft2_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876463/cmap_HighResolution_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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=265.136 yref=52.1927 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.70
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26876463/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26876463/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26876463/Model_4FGL_J1740.5+5211_weekly_bin928.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 outfile=/lscratch/kocevski/26876474/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.fits
.....................!
real 19.14
user 18.36
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26876474/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26876474/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876474/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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/26876474/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
.....................!
real 69.75
user 64.81
sys 4.14

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

Setting source of interest to:
4FGL J1740.5+5211 @ 265.136 52.1927

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26876474/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits scfile=/lscratch/kocevski/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876474/cmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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=265.136 yref=52.1927 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.81
user 0.25
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26876474/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits scfile=/lscratch/kocevski/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876474/cmap_HighResolution_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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=265.136 yref=52.1927 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.78
user 0.25
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26876474/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26876474/Model_4FGL_J1740.5+5211_weekly_bin928.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/26876473/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.fits
.....................!
real 19.89
user 19.19
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26876473/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26876473/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876473/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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/26876473/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
.....................!
real 74.12
user 68.92
sys 4.32

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

Setting source of interest to:
4FGL J1740.5+5211 @ 265.136 52.1927

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26876473/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits scfile=/lscratch/kocevski/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876473/cmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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=265.136 yref=52.1927 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.71
user 0.25
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26876473/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits scfile=/lscratch/kocevski/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876473/cmap_HighResolution_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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=265.136 yref=52.1927 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.73
user 0.26
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26876473/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26876473/Model_4FGL_J1740.5+5211_weekly_bin928.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/26876499/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.fits
.....................!
real 19.05
user 18.33
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26876499/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26876499/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876499/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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/26876499/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
.....................!
real 69.83
user 65.03
sys 3.96

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

Setting source of interest to:
4FGL J1740.5+5211 @ 265.136 52.1927

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26876499/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits scfile=/lscratch/kocevski/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876499/cmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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=265.136 yref=52.1927 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.84
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26876499/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits scfile=/lscratch/kocevski/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.fits outfile=/lscratch/kocevski/26876499/cmap_HighResolution_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.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=265.136 yref=52.1927 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.62
user 0.25
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26876499/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits evtable="EVENTS" scfile=/lscratch/kocevski/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26876499/Model_4FGL_J1740.5+5211_weekly_bin928.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 GAL_V02
Working on...
/lscratch/kocevski/26876463/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits.....................!
real 113.87
user 108.77
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26876463/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits', '/lscratch/kocevski/26876463/ft2_4FGL_J1740.5+5211_weekly_bin928.fits', expMap='/lscratch/kocevski/26876463/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits', expCube='/lscratch/kocevski/26876463/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26876463/Model_4FGL_J1740.5+5211_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.5+5211'

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.805e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26876463/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26876463/ft2_4FGL_J1740.5+5211_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26876463/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26876463/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26876463/Model_4FGL_J1740.5+5211_weekly_bin928.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) = 35193.5300369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9972       1.0000          .0000       .10000E+07
     2 'Prefactor '    .60568E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.1680       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.1214       1.0000          .0000       .10000E+07
     5 'Prefactor '    19.690       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4231       1.0000          .0000       .10000E+07
     7 'norm      '    .56087       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10880E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .33318E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17595E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .96441       1.0000          .0000       .10000E+07
    12 'norm      '    .50390       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.9773       1.0000          .0000       .10000E+07
    14 'Prefactor '    46.828       1.0000          .0000       .10000E+07
    15 'norm      '    .23355E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14948E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.4507       1.0000          .0000       .10000E+07
    18 'Prefactor '    23.601       1.0000          .0000       .10000E+07
    19 'Prefactor '    55.446       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.8589       1.0000          .0000       .10000E+07
    21 'norm      '    .79436E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    7.2017       1.0000          .0000       .10000E+07
    23 'norm      '    5.0615       1.0000          .0000       .10000E+07
    24 'norm      '    4.2637       1.0000          .0000       .10000E+07
    25 'norm      '    13.142       1.0000          .0000       .10000E+07
    26 'Prefactor '    2.1656       1.0000          .0000       .10000E+07
    27 'Normalizat'    .83600       1.0000       e GAL_V02
Working on...
/lscratch/kocevski/26876474/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits.....................!
real 104.93
user 102.15
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26876474/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits', '/lscratch/kocevski/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.fits', expMap='/lscratch/kocevski/26876474/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits', expCube='/lscratch/kocevski/26876474/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26876474/Model_4FGL_J1740.5+5211_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.5+5211'

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.805e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26876474/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26876474/ft2_4FGL_J1740.5+5211_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26876474/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26876474/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26876474/Model_4FGL_J1740.5+5211_weekly_bin928.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) = 35193.5300369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9972       1.0000          .0000       .10000E+07
     2 'Prefactor '    .60568E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.1680       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.1214       1.0000          .0000       .10000E+07
     5 'Prefactor '    19.690       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4231       1.0000          .0000       .10000E+07
     7 'norm      '    .56087       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10880E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .33318E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17595E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .96441       1.0000          .0000       .10000E+07
    12 'norm      '    .50390       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.9773       1.0000          .0000       .10000E+07
    14 'Prefactor '    46.828       1.0000          .0000       .10000E+07
    15 'norm      '    .23355E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14948E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.4507       1.0000          .0000       .10000E+07
    18 'Prefactor '    23.601       1.0000          .0000       .10000E+07
    19 'Prefactor '    55.446       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.8589       1.0000          .0000       .10000E+07
    21 'norm      '    .79436E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    7.2017       1.0000          .0000       .10000E+07
    23 'norm      '    5.0615       1.0000          .0000       .10000E+07
    24 'norm      '    4.2637       1.0000          .0000       .10000E+07
    25 'norm      '    13.142       1.0000          .0000       .10000E+07
    26 'Prefactor '    2.1656       1.0000          .0000       .10000E+07
    27 'Normalizat'    .83600       1.0000      e GAL_V02
Working on...
/lscratch/kocevski/26876473/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits.....................!
real 109.99
user 107.89
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26876473/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits', '/lscratch/kocevski/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.fits', expMap='/lscratch/kocevski/26876473/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits', expCube='/lscratch/kocevski/26876473/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26876473/Model_4FGL_J1740.5+5211_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.5+5211'

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.805e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26876473/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26876473/ft2_4FGL_J1740.5+5211_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26876473/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26876473/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26876473/Model_4FGL_J1740.5+5211_weekly_bin928.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) = 35193.5300369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9972       1.0000          .0000       .10000E+07
     2 'Prefactor '    .60568E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.1680       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.1214       1.0000          .0000       .10000E+07
     5 'Prefactor '    19.690       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4231       1.0000          .0000       .10000E+07
     7 'norm      '    .56087       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10880E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .33318E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17595E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .96441       1.0000          .0000       .10000E+07
    12 'norm      '    .50390       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.9773       1.0000          .0000       .10000E+07
    14 'Prefactor '    46.828       1.0000          .0000       .10000E+07
    15 'norm      '    .23355E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14948E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.4507       1.0000          .0000       .10000E+07
    18 'Prefactor '    23.601       1.0000          .0000       .10000E+07
    19 'Prefactor '    55.446       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.8589       1.0000          .0000       .10000E+07
    21 'norm      '    .79436E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    7.2017       1.0000          .0000       .10000E+07
    23 'norm      '    5.0615       1.0000          .0000       .10000E+07
    24 'norm      '    4.2637       1.0000          .0000       .10000E+07
    25 'norm      '    13.142       1.0000          .0000       .10000E+07
    26 'Prefactor '    2.1656       1.0000          .0000       .10000E+07
    27 'Normalizat'    .83600       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1392       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35193.51     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     2514 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0089        3.2649        .25732E-07   -.23039E-01
   2  Prefactor      .0000        .58970        .18058E-07** at limit **
   3  Prefactor     5.1708        2.7280        .66645E-07    .19969E-02
   4  Prefactor     4.1204        1.5778       -.27284E-08   -.17040E-02
   5  Prefactor     19.689        4.4487       -.17051E-07    .40180E-01
   6  Prefactor     1.4164        1.9209        .17093E-07   -.67834E-03
   7  norm          .56033        .36175       -.30701E-08   -.19049E-02
   8  Prefactor     .99920E-09    1.9872        .34186E-07** at limit **
   9  norm           .0000        .62047E-01   -.18575E-08** at limit **
  10  Prefactor     .61062E-09    2.1850        .60460E-07** at limit **
  11  Prefactor     .97427        .71980        .22732E-08    .14126E-01
  12  norm          .50404        .60643       -.36910E-08   -.85634E-03
  13  Prefactor     1.9762        1.4254       -.70976E-08   -.70023E-03
  14  Prefactor     46.606        4.3292        .40695E-08   -.10633    
  15  norm           .0000        1.0321       -.65015E-07** at limit **
  16  Prefactor     .11102E-09    7.5350        .29811E-06** at limit **
  17  Prefactor     2.4513        1.6289       -.21129E-07   -.14698E-02
  18  Prefactor     23.550        17.431        .54416E-07    .10459E-01
  19  Prefactor     55.027        34.720       -.57358E-07    .11015E-01
  20  Prefactor     4.8447        4.6629       -.92882E-08    .12112E-02
  21  norm          .38303E-08    1.8016        .83860E-07** at limit **
  22  Prefactor     7.2120        5.0827        .75520E-08   -.11656E-01
  23  norm          5.0548        2.7540        .14786E-07    .74526E-03
  24  norm          4.2634        3.2329       -.33520E-07   -.23531E-02
  25  norm          13.120        4.3460        .16270E-07    .34248E-01
  26  Prefactor     2.1635        1.1327        .67200E-08    .35765E-03
  27  Normalizat    .83623        .11323       -.12909E-05   -.11796E-03
  28  Prefactor     1.1392        .82090E-01    .43826E-06   -.12455E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.00893
  Prefactor  = 0
  Prefactor  = 5.17077
  Prefactor  = 4.12041
  Prefactor  = 19.6893
  Prefactor  = 1.41637
  norm       = 0.56033
  Prefactor  = 9.99201e-10
  norm       = 0
  Prefactor  = 6.10623e-10
  Prefactor  = 0.974269
  norm       = 0.50404
  Prefactor  = 1.97616
  Prefactor  = 46.6058
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 2.45134
  Prefactor  = 23.5499
  Prefactor  = 55.0272
  Prefactor  = 4.84468
  norm       = 3.83027e-09
  Prefactor  = 7.21195
  norm       = 5.05478
  norm       = 4.26336
  norm       = 13.12
  Prefactor  = 2.16347
  Normalizat = 0.836228
  Prefactor  = 1.13922
  .10000E-01   10.000    
    28 'Prefactor '    1.1392       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35193.51     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     2514 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0089        3.2649        .25732E-07   -.23039E-01
   2  Prefactor      .0000        .58970        .18058E-07** at limit **
   3  Prefactor     5.1708        2.7280        .66645E-07    .19969E-02
   4  Prefactor     4.1204        1.5778       -.27284E-08   -.17040E-02
   5  Prefactor     19.689        4.4487       -.17051E-07    .40180E-01
   6  Prefactor     1.4164        1.9209        .17093E-07   -.67834E-03
   7  norm          .56033        .36175       -.30701E-08   -.19049E-02
   8  Prefactor     .99920E-09    1.9872        .34186E-07** at limit **
   9  norm           .0000        .62047E-01   -.18575E-08** at limit **
  10  Prefactor     .61062E-09    2.1850        .60460E-07** at limit **
  11  Prefactor     .97427        .71980        .22732E-08    .14126E-01
  12  norm          .50404        .60643       -.36910E-08   -.85634E-03
  13  Prefactor     1.9762        1.4254       -.70976E-08   -.70023E-03
  14  Prefactor     46.606        4.3292        .40695E-08   -.10633    
  15  norm           .0000        1.0321       -.65015E-07** at limit **
  16  Prefactor     .11102E-09    7.5350        .29811E-06** at limit **
  17  Prefactor     2.4513        1.6289       -.21129E-07   -.14698E-02
  18  Prefactor     23.550        17.431        .54416E-07    .10459E-01
  19  Prefactor     55.027        34.720       -.57358E-07    .11015E-01
  20  Prefactor     4.8447        4.6629       -.92882E-08    .12112E-02
  21  norm          .38303E-08    1.8016        .83860E-07** at limit **
  22  Prefactor     7.2120        5.0827        .75520E-08   -.11656E-01
  23  norm          5.0548        2.7540        .14786E-07    .74526E-03
  24  norm          4.2634        3.2329       -.33520E-07   -.23531E-02
  25  norm          13.120        4.3460        .16270E-07    .34248E-01
  26  Prefactor     2.1635        1.1327        .67200E-08    .35765E-03
  27  Normalizat    .83623        .11323       -.12909E-05   -.11796E-03
  28  Prefactor     1.1392        .82090E-01    .43826E-06   -.12455E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.00893
  Prefactor  = 0
  Prefactor  = 5.17077
  Prefactor  = 4.12041
  Prefactor  = 19.6893
  Prefactor  = 1.41637
  norm       = 0.56033
  Prefactor  = 9.99201e-10
  norm       = 0
  Prefactor  = 6.10623e-10
  Prefactor  = 0.974269
  norm       = 0.50404
  Prefactor  = 1.97616
  Prefactor  = 46.6058
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 2.45134
  Prefactor  = 23.5499
  Prefactor  = 55.0272
  Prefactor  = 4.84468
  norm       = 3.83027e-09
  Prefactor  = 7.21195
  norm       = 5.05478
  norm       = 4.26336
  norm       = 13.12
  Prefactor  = 2.16347
  Normalizat = 0.836228
  Prefactor  = 1.13922
   .10000E-01   10.000    
    28 'Prefactor '    1.1392       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35193.51     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     2514 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0089        3.2649        .25732E-07   -.23039E-01
   2  Prefactor      .0000        .58970        .18058E-07** at limit **
   3  Prefactor     5.1708        2.7280        .66645E-07    .19969E-02
   4  Prefactor     4.1204        1.5778       -.27284E-08   -.17040E-02
   5  Prefactor     19.689        4.4487       -.17051E-07    .40180E-01
   6  Prefactor     1.4164        1.9209        .17093E-07   -.67834E-03
   7  norm          .56033        .36175       -.30701E-08   -.19049E-02
   8  Prefactor     .99920E-09    1.9872        .34186E-07** at limit **
   9  norm           .0000        .62047E-01   -.18575E-08** at limit **
  10  Prefactor     .61062E-09    2.1850        .60460E-07** at limit **
  11  Prefactor     .97427        .71980        .22732E-08    .14126E-01
  12  norm          .50404        .60643       -.36910E-08   -.85634E-03
  13  Prefactor     1.9762        1.4254       -.70976E-08   -.70023E-03
  14  Prefactor     46.606        4.3292        .40695E-08   -.10633    
  15  norm           .0000        1.0321       -.65015E-07** at limit **
  16  Prefactor     .11102E-09    7.5350        .29811E-06** at limit **
  17  Prefactor     2.4513        1.6289       -.21129E-07   -.14698E-02
  18  Prefactor     23.550        17.431        .54416E-07    .10459E-01
  19  Prefactor     55.027        34.720       -.57358E-07    .11015E-01
  20  Prefactor     4.8447        4.6629       -.92882E-08    .12112E-02
  21  norm          .38303E-08    1.8016        .83860E-07** at limit **
  22  Prefactor     7.2120        5.0827        .75520E-08   -.11656E-01
  23  norm          5.0548        2.7540        .14786E-07    .74526E-03
  24  norm          4.2634        3.2329       -.33520E-07   -.23531E-02
  25  norm          13.120        4.3460        .16270E-07    .34248E-01
  26  Prefactor     2.1635        1.1327        .67200E-08    .35765E-03
  27  Normalizat    .83623        .11323       -.12909E-05   -.11796E-03
  28  Prefactor     1.1392        .82090E-01    .43826E-06   -.12455E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.00893
  Prefactor  = 0
  Prefactor  = 5.17077
  Prefactor  = 4.12041
  Prefactor  = 19.6893
  Prefactor  = 1.41637
  norm       = 0.56033
  Prefactor  = 9.99201e-10
  norm       = 0
  Prefactor  = 6.10623e-10
  Prefactor  = 0.974269
  norm       = 0.50404
  Prefactor  = 1.97616
  Prefactor  = 46.6058
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 2.45134
  Prefactor  = 23.5499
  Prefactor  = 55.0272
  Prefactor  = 4.84468
  norm       = 3.83027e-09
  Prefactor  = 7.21195
  norm       = 5.05478
  norm       = 4.26336
  norm       = 13.12
  Prefactor  = 2.16347
  Normalizat = 0.836228
  Prefactor  = 1.13922
e GAL_V02
Working on...
/lscratch/kocevski/26876499/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits.....................!
real 103.83
user 101.62
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26876499/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits', '/lscratch/kocevski/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.fits', expMap='/lscratch/kocevski/26876499/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits', expCube='/lscratch/kocevski/26876499/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26876499/Model_4FGL_J1740.5+5211_weekly_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.5+5211'

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.805e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26876499/ft1_filtered_4FGL_J1740.5+5211_weekly_bin928.fits
Spacecraft file(s): /lscratch/kocevski/26876499/ft2_4FGL_J1740.5+5211_weekly_bin928.fits
Exposure map: /lscratch/kocevski/26876499/expmap_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
Exposure cube: /lscratch/kocevski/26876499/ltcube_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26876499/Model_4FGL_J1740.5+5211_weekly_bin928.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) = 35193.5300369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9972       1.0000          .0000       .10000E+07
     2 'Prefactor '    .60568E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.1680       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.1214       1.0000          .0000       .10000E+07
     5 'Prefactor '    19.690       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4231       1.0000          .0000       .10000E+07
     7 'norm      '    .56087       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10880E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .33318E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17595E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .96441       1.0000          .0000       .10000E+07
    12 'norm      '    .50390       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.9773       1.0000          .0000       .10000E+07
    14 'Prefactor '    46.828       1.0000          .0000       .10000E+07
    15 'norm      '    .23355E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14948E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.4507       1.0000          .0000       .10000E+07
    18 'Prefactor '    23.601       1.0000          .0000       .10000E+07
    19 'Prefactor '    55.446       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.8589       1.0000          .0000       .10000E+07
    21 'norm      '    .79436E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    7.2017       1.0000          .0000       .10000E+07
    23 'norm      '    5.0615       1.0000          .0000       .10000E+07
    24 'norm      '    4.2637       1.0000          .0000       .10000E+07
    25 'norm      '    13.142       1.0000          .0000       .10000E+07
    26 'Prefactor '    2.1656       1.0000          .0000       .10000E+07
    27 'Normalizat'    .83600       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1392       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35193.51     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     2514 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0089        3.2649        .25732E-07   -.23039E-01
   2  Prefactor      .0000        .58970        .18058E-07** at limit **
   3  Prefactor     5.1708        2.7280        .66645E-07    .19969E-02
   4  Prefactor     4.1204        1.5778       -.27284E-08   -.17040E-02
   5  Prefactor     19.689        4.4487       -.17051E-07    .40180E-01
   6  Prefactor     1.4164        1.9209        .17093E-07   -.67834E-03
   7  norm          .56033        .36175       -.30701E-08   -.19049E-02
   8  Prefactor     .99920E-09    1.9872        .34186E-07** at limit **
   9  norm           .0000        .62047E-01   -.18575E-08** at limit **
  10  Prefactor     .61062E-09    2.1850        .60460E-07** at limit **
  11  Prefactor     .97427        .71980        .22732E-08    .14126E-01
  12  norm          .50404        .60643       -.36910E-08   -.85634E-03
  13  Prefactor     1.9762        1.4254       -.70976E-08   -.70023E-03
  14  Prefactor     46.606        4.3292        .40695E-08   -.10633    
  15  norm           .0000        1.0321       -.65015E-07** at limit **
  16  Prefactor     .11102E-09    7.5350        .29811E-06** at limit **
  17  Prefactor     2.4513        1.6289       -.21129E-07   -.14698E-02
  18  Prefactor     23.550        17.431        .54416E-07    .10459E-01
  19  Prefactor     55.027        34.720       -.57358E-07    .11015E-01
  20  Prefactor     4.8447        4.6629       -.92882E-08    .12112E-02
  21  norm          .38303E-08    1.8016        .83860E-07** at limit **
  22  Prefactor     7.2120        5.0827        .75520E-08   -.11656E-01
  23  norm          5.0548        2.7540        .14786E-07    .74526E-03
  24  norm          4.2634        3.2329       -.33520E-07   -.23531E-02
  25  norm          13.120        4.3460        .16270E-07    .34248E-01
  26  Prefactor     2.1635        1.1327        .67200E-08    .35765E-03
  27  Normalizat    .83623        .11323       -.12909E-05   -.11796E-03
  28  Prefactor     1.1392        .82090E-01    .43826E-06   -.12455E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.00893
  Prefactor  = 0
  Prefactor  = 5.17077
  Prefactor  = 4.12041
  Prefactor  = 19.6893
  Prefactor  = 1.41637
  norm       = 0.56033
  Prefactor  = 9.99201e-10
  norm       = 0
  Prefactor  = 6.10623e-10
  Prefactor  = 0.974269
  norm       = 0.50404
  Prefactor  = 1.97616
  Prefactor  = 46.6058
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 2.45134
  Prefactor  = 23.5499
  Prefactor  = 55.0272
  Prefactor  = 4.84468
  norm       = 3.83027e-09
  Prefactor  = 7.21195
  norm       = 5.05478
  norm       = 4.26336
  norm       = 13.12
  Prefactor  = 2.16347
  Normalizat = 0.836228
  Prefactor  = 1.13922
 **********
 **   18 **HESSE 
 **********

 FCN=   35193.51     FROM HESSE     STATUS=OK           587 CALLS     3101 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0089        6.5043        .50420E-03   -1.5668    
   2  Prefactor      .0000        .58805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1708        2.7296        .44198E-03   -1.5662    
   4  Prefactor     4.1204        1.5916        .49630E-03   -1.5667    
   5  Prefactor     19.689        5.7966        .22543E-03   -1.5619    
   6  Prefactor     1.4164        8.4036        .90615E-03   -1.5684    
   7  norm          .56033        .36723        .72809E-03   -1.5693    
   8  Prefactor     .99920E-09    2.0725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .61245E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61062E-09    2.2466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .97427        2.2536        .42501E-03   -1.5688    
  12  norm          .50404        .61849        .78318E-03   -1.5694    
  13  Prefactor     1.9762        1.4376        .73690E-03   -1.5680    
  14  Prefactor     46.606        28.874        .14614E-03   -1.5571    
  15  norm           .0000        1.0292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    7.5453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4513        1.6361        .65315E-03   -1.5677    
  18  Prefactor     23.550        17.545        .20589E-03   -1.5611    
  19  Prefactor     55.027        35.114        .13431E-03   -1.5560    
  20  Prefactor     4.8447        4.6948        .45611E-03   -1.5664    
  21  norm          .38303E-08    2.1200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.2120        5.9856        .37354E-03   -1.5654    
  23  norm          5.0548        2.7586        .44670E-03   -1.5663    
  24  norm          4.2634        3.2491        .48770E-03   -1.5667    
  25  norm          13.120        5.4796        .27605E-03   -1.5636    
  26  Prefactor     2.1635        1.1365        .69958E-03   -1.5679    
  27  Normalizat    .83623        .99430E-01    .75762E-01   -.98739    
  28  Prefactor     1.1392        .70172E-01    .36258E-01   -.88223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65312e-06
Minuit parameter uncertainties:
  1  6.50434
  2  1.2742e-06
  3  2.72956
  4  1.59155
  5  5.79657
  6  6.90005
  7  0.36723
  8  9.14504e-05
  9  2.93271e-08
  10  7.2774e-05
  11  2.25356
  12  0.618493
  13  1.43758
  14  28.8744
  15  2.21544e-06
  16  5.91432e-05
  17  1.63612
  18  17.5453
  19  35.1137
  20  4.6948
  21  0.000179888
  22  5.98563
  23  2.75857
  24  3.2491
  25  5.47962
  26  1.13648
  27  0.0994515
  28  0.0701776
 **********
 **   18 **HESSE 
 **********

 FCN=   35193.51     FROM HESSE     STATUS=OK           587 CALLS     3101 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0089        6.5043        .50420E-03   -1.5668    
   2  Prefactor      .0000        .58805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1708        2.7296        .44198E-03   -1.5662    
   4  Prefactor     4.1204        1.5916        .49630E-03   -1.5667    
   5  Prefactor     19.689        5.7966        .22543E-03   -1.5619    
   6  Prefactor     1.4164        8.4036        .90615E-03   -1.5684    
   7  norm          .56033        .36723        .72809E-03   -1.5693    
   8  Prefactor     .99920E-09    2.0725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .61245E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61062E-09    2.2466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .97427        2.2536        .42501E-03   -1.5688    
  12  norm          .50404        .61849        .78318E-03   -1.5694    
  13  Prefactor     1.9762        1.4376        .73690E-03   -1.5680    
  14  Prefactor     46.606        28.874        .14614E-03   -1.5571    
  15  norm           .0000        1.0292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    7.5453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4513        1.6361        .65315E-03   -1.5677    
  18  Prefactor     23.550        17.545        .20589E-03   -1.5611    
  19  Prefactor     55.027        35.114        .13431E-03   -1.5560    
  20  Prefactor     4.8447        4.6948        .45611E-03   -1.5664    
  21  norm          .38303E-08    2.1200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.2120        5.9856        .37354E-03   -1.5654    
  23  norm          5.0548        2.7586        .44670E-03   -1.5663    
  24  norm          4.2634        3.2491        .48770E-03   -1.5667    
  25  norm          13.120        5.4796        .27605E-03   -1.5636    
  26  Prefactor     2.1635        1.1365        .69958E-03   -1.5679    
  27  Normalizat    .83623        .99430E-01    .75762E-01   -.98739    
  28  Prefactor     1.1392        .70172E-01    .36258E-01   -.88223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65312e-06
Minuit parameter uncertainties:
  1  6.50434
  2  1.2742e-06
  3  2.72956
  4  1.59155
  5  5.79657
  6  6.90005
  7  0.36723
  8  9.14504e-05
  9  2.93271e-08
  10  7.2774e-05
  11  2.25356
  12  0.618493
  13  1.43758
  14  28.8744
  15  2.21544e-06
  16  5.91432e-05
  17  1.63612
  18  17.5453
  19  35.1137
  20  4.6948
  21  0.000179888
  22  5.98563
  23  2.75857
  24  3.2491
  25  5.47962
  26  1.13648
  27  0.0994515
  28  0.0701776
Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  2.451e+00  1.636e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.139e+00  7.018e-02  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  8.362e-01  9.945e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.71
Ra Dec: 265.136 52.193
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 1.24e-08
Energy Flux (Fixed Index): 5.61e-06 +/- 3.74e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35192.532034
delta logL = 0.981269871132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35192.5253332
delta logL = 0.987970686678

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   35192.53     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2498        1.5998        .68474E-03   -.30158E-02
   2  Index         1.7568        .31331        .27408       -.26670E-03
   3  Normalizat    .84921        .92419E-01    .75226E-01    .12408E-03
   4  Prefactor     1.1343        .68856E-01    .36407E-01    .13847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.24982
  Index      = 1.75676
  Normalizat = 0.849209
  Prefactor  = 1.13433
 **********
 **   18 **HESSE 
 **********

 FCN=   35193.51     FROM HESSE     STATUS=OK           587 CALLS     3101 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0089        6.5043        .50420E-03   -1.5668    
   2  Prefactor      .0000        .58805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1708        2.7296        .44198E-03   -1.5662    
   4  Prefactor     4.1204        1.5916        .49630E-03   -1.5667    
   5  Prefactor     19.689        5.7966        .22543E-03   -1.5619    
   6  Prefactor     1.4164        8.4036        .90615E-03   -1.5684    
   7  norm          .56033        .36723        .72809E-03   -1.5693    
   8  Prefactor     .99920E-09    2.0725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .61245E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61062E-09    2.2466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .97427        2.2536        .42501E-03   -1.5688    
  12  norm          .50404        .61849        .78318E-03   -1.5694    
  13  Prefactor     1.9762        1.4376        .73690E-03   -1.5680    
  14  Prefactor     46.606        28.874        .14614E-03   -1.5571    
  15  norm           .0000        1.0292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    7.5453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4513        1.6361        .65315E-03   -1.5677    
  18  Prefactor     23.550        17.545        .20589E-03   -1.5611    
  19  Prefactor     55.027        35.114        .13431E-03   -1.5560    
  20  Prefactor     4.8447        4.6948        .45611E-03   -1.5664    
  21  norm          .38303E-08    2.1200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.2120        5.9856        .37354E-03   -1.5654    
  23  norm          5.0548        2.7586        .44670E-03   -1.5663    
  24  norm          4.2634        3.2491        .48770E-03   -1.5667    
  25  norm          13.120        5.4796        .27605E-03   -1.5636    
  26  Prefactor     2.1635        1.1365        .69958E-03   -1.5679    
  27  Normalizat    .83623        .99430E-01    .75762E-01   -.98739    
  28  Prefactor     1.1392        .70172E-01    .36258E-01   -.88223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65312e-06
Minuit parameter uncertainties:
  1  6.50434
  2  1.2742e-06
  3  2.72956
  4  1.59155
  5  5.79657
  6  6.90005
  7  0.36723
  8  9.14504e-05
  9  2.93271e-08
  10  7.2774e-05
  11  2.25356
  12  0.618493
  13  1.43758
  14  28.8744
  15  2.21544e-06
  16  5.91432e-05
  17  1.63612
  18  17.5453
  19  35.1137
  20  4.6948
  21  0.000179888
  22  5.98563
  23  2.75857
  24  3.2491
  25  5.47962
  26  1.13648
  27  0.0994515
  28  0.0701776
 **********
 **   18 **HESSE 
 **********

 FCN=   35192.53     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2498        1.7845        .18651E-04   -1.5678    
   2  Index         1.7568        .46072        .14407E-01   -.70581    
   3  Normalizat    .84921        .10729        .33295E-03   -.98269    
   4  Prefactor     1.1343        .80111E-01    .21700E-03   -.88377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61179e-11
Minuit parameter uncertainties:
  1  1.78453
  2  0.46185
  3  0.107316
  4  0.0801194
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) = 35192.5253332
delta logL = 0.98797069642

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  2.250e+00  1.785e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  1.757e+00  4.619e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.134e+00  8.012e-02  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  8.492e-01  1.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.69
Ra Dec: 265.136 52.193
Photon Index (Free Index): 1.76 +/- 0.46
Photon Flux (Free Index): 8.47e-09 +/- 8.24e-09
Energy Flux (Free Index): 1.16e-05 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26876474/cmap_HighResolution_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='1.16e-05', photon_flux_error='1.24e-08', dlogl='9.88e-01', energy_flux='5.61e-06', photon_flux2='8.47e-09', job_status='DONE', time_completed='2026-05-19 13:48:08.958070', photon_index_error2='0.46', photon_index2='1.76', ts='5.71', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.84', time_epoch_completed='1779223688.96', return_code='0', job_id='26876474', GAL2='1.13', EG2='0.85', return_code2='0', energy_flux_error='3.74e-06', photon_flux_error2='8.24e-09', ts2='7.69', photon_index='2.47' WHERE bin_id='928' AND source_name='4FGL J1740.5+5211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:48:09 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  2.451e+00  1.636e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.139e+00  7.018e-02  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  8.362e-01  9.945e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.71
Ra Dec: 265.136 52.193
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 1.24e-08
Energy Flux (Fixed Index): 5.61e-06 +/- 3.74e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35192.532034
delta logL = 0.981269871132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35192.5253332
delta logL = 0.987970686678

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   35192.53     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2498        1.5998        .68474E-03   -.30158E-02
   2  Index         1.7568        .31331        .27408       -.26670E-03
   3  Normalizat    .84921        .92419E-01    .75226E-01    .12408E-03
   4  Prefactor     1.1343        .68856E-01    .36407E-01    .13847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.24982
  Index      = 1.75676
  Normalizat = 0.849209
  Prefactor  = 1.13433
 **********
 **   18 **HESSE 
 **********

 FCN=   35192.53     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2498        1.7845        .18651E-04   -1.5678    
   2  Index         1.7568        .46072        .14407E-01   -.70581    
   3  Normalizat    .84921        .10729        .33295E-03   -.98269    
   4  Prefactor     1.1343        .80111E-01    .21700E-03   -.88377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61179e-11
Minuit parameter uncertainties:
  1  1.78453
  2  0.46185
  3  0.107316
  4  0.0801194
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) = 35192.5253332
delta logL = 0.98797069642

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  2.250e+00  1.785e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  1.757e+00  4.619e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.134e+00  8.012e-02  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  8.492e-01  1.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.69
Ra Dec: 265.136 52.193
Photon Index (Free Index): 1.76 +/- 0.46
Photon Flux (Free Index): 8.47e-09 +/- 8.24e-09
Energy Flux (Free Index): 1.16e-05 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26876463/cmap_HighResolution_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='1.16e-05', photon_flux_error='1.24e-08', dlogl='9.88e-01', energy_flux='5.61e-06', photon_flux2='8.47e-09', job_status='DONE', time_completed='2026-05-19 13:48:27.146993', photon_index_error2='0.46', photon_index2='1.76', ts='5.71', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.84', time_epoch_completed='1779223707.15', return_code='0', job_id='26876463', GAL2='1.13', EG2='0.85', return_code2='0', energy_flux_error='3.74e-06', photon_flux_error2='8.24e-09', ts2='7.69', photon_index='2.47' WHERE bin_id='928' AND source_name='4FGL J1740.5+5211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:48:27 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  2.451e+00  1.636e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.139e+00  7.018e-02  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  8.362e-01  9.945e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.71
Ra Dec: 265.136 52.193
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 1.24e-08
Energy Flux (Fixed Index): 5.61e-06 +/- 3.74e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35192.532034
delta logL = 0.981269871132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35192.5253332
delta logL = 0.987970686678

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   35192.53     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2498        1.5998        .68474E-03   -.30158E-02
   2  Index         1.7568        .31331        .27408       -.26670E-03
   3  Normalizat    .84921        .92419E-01    .75226E-01    .12408E-03
   4  Prefactor     1.1343        .68856E-01    .36407E-01    .13847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.24982
  Index      = 1.75676
  Normalizat = 0.849209
  Prefactor  = 1.13433
 **********
 **   18 **HESSE 
 **********

 FCN=   35192.53     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2498        1.7845        .18651E-04   -1.5678    
   2  Index         1.7568        .46072        .14407E-01   -.70581    
   3  Normalizat    .84921        .10729        .33295E-03   -.98269    
   4  Prefactor     1.1343        .80111E-01    .21700E-03   -.88377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61179e-11
Minuit parameter uncertainties:
  1  1.78453
  2  0.46185
  3  0.107316
  4  0.0801194
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) = 35192.5253332
delta logL = 0.98797069642

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  2.250e+00  1.785e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  1.757e+00  4.619e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.134e+00  8.012e-02  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  8.492e-01  1.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.69
Ra Dec: 265.136 52.193
Photon Index (Free Index): 1.76 +/- 0.46
Photon Flux (Free Index): 8.47e-09 +/- 8.24e-09
Energy Flux (Free Index): 1.16e-05 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26876473/cmap_HighResolution_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='1.16e-05', photon_flux_error='1.24e-08', dlogl='9.88e-01', energy_flux='5.61e-06', photon_flux2='8.47e-09', job_status='DONE', time_completed='2026-05-19 13:48:59.636173', photon_index_error2='0.46', photon_index2='1.76', ts='5.71', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.84', time_epoch_completed='1779223739.64', return_code='0', job_id='26876473', GAL2='1.13', EG2='0.85', return_code2='0', energy_flux_error='3.74e-06', photon_flux_error2='8.24e-09', ts2='7.69', photon_index='2.47' WHERE bin_id='928' AND source_name='4FGL J1740.5+5211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:48:59 PDT 2026

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

 FCN=   35193.51     FROM HESSE     STATUS=OK           587 CALLS     3101 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0089        6.5043        .50420E-03   -1.5668    
   2  Prefactor      .0000        .58805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1708        2.7296        .44198E-03   -1.5662    
   4  Prefactor     4.1204        1.5916        .49630E-03   -1.5667    
   5  Prefactor     19.689        5.7966        .22543E-03   -1.5619    
   6  Prefactor     1.4164        8.4036        .90615E-03   -1.5684    
   7  norm          .56033        .36723        .72809E-03   -1.5693    
   8  Prefactor     .99920E-09    2.0725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .61245E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61062E-09    2.2466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .97427        2.2536        .42501E-03   -1.5688    
  12  norm          .50404        .61849        .78318E-03   -1.5694    
  13  Prefactor     1.9762        1.4376        .73690E-03   -1.5680    
  14  Prefactor     46.606        28.874        .14614E-03   -1.5571    
  15  norm           .0000        1.0292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    7.5453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4513        1.6361        .65315E-03   -1.5677    
  18  Prefactor     23.550        17.545        .20589E-03   -1.5611    
  19  Prefactor     55.027        35.114        .13431E-03   -1.5560    
  20  Prefactor     4.8447        4.6948        .45611E-03   -1.5664    
  21  norm          .38303E-08    2.1200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.2120        5.9856        .37354E-03   -1.5654    
  23  norm          5.0548        2.7586        .44670E-03   -1.5663    
  24  norm          4.2634        3.2491        .48770E-03   -1.5667    
  25  norm          13.120        5.4796        .27605E-03   -1.5636    
  26  Prefactor     2.1635        1.1365        .69958E-03   -1.5679    
  27  Normalizat    .83623        .99430E-01    .75762E-01   -.98739    
  28  Prefactor     1.1392        .70172E-01    .36258E-01   -.88223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65312e-06
Minuit parameter uncertainties:
  1  6.50434
  2  1.2742e-06
  3  2.72956
  4  1.59155
  5  5.79657
  6  6.90005
  7  0.36723
  8  9.14504e-05
  9  2.93271e-08
  10  7.2774e-05
  11  2.25356
  12  0.618493
  13  1.43758
  14  28.8744
  15  2.21544e-06
  16  5.91432e-05
  17  1.63612
  18  17.5453
  19  35.1137
  20  4.6948
  21  0.000179888
  22  5.98563
  23  2.75857
  24  3.2491
  25  5.47962
  26  1.13648
  27  0.0994515
  28  0.0701776
Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  2.451e+00  1.636e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.139e+00  7.018e-02  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  8.362e-01  9.945e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.71
Ra Dec: 265.136 52.193
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 1.24e-08
Energy Flux (Fixed Index): 5.61e-06 +/- 3.74e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35192.532034
delta logL = 0.981269871132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35192.5253332
delta logL = 0.987970686678

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   35192.53     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2498        1.5998        .68474E-03   -.30158E-02
   2  Index         1.7568        .31331        .27408       -.26670E-03
   3  Normalizat    .84921        .92419E-01    .75226E-01    .12408E-03
   4  Prefactor     1.1343        .68856E-01    .36407E-01    .13847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.24982
  Index      = 1.75676
  Normalizat = 0.849209
  Prefactor  = 1.13433
 **********
 **   18 **HESSE 
 **********

 FCN=   35192.53     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2498        1.7845        .18651E-04   -1.5678    
   2  Index         1.7568        .46072        .14407E-01   -.70581    
   3  Normalizat    .84921        .10729        .33295E-03   -.98269    
   4  Prefactor     1.1343        .80111E-01    .21700E-03   -.88377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61179e-11
Minuit parameter uncertainties:
  1  1.78453
  2  0.46185
  3  0.107316
  4  0.0801194
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) = 35192.5253332
delta logL = 0.98797069642

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  2.250e+00  1.785e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  1.757e+00  4.619e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.134e+00  8.012e-02  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  8.492e-01  1.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.69
Ra Dec: 265.136 52.193
Photon Index (Free Index): 1.76 +/- 0.46
Photon Flux (Free Index): 8.47e-09 +/- 8.24e-09
Energy Flux (Free Index): 1.16e-05 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/26876499/cmap_HighResolution_800236801_800841601_4FGL_J1740.5+5211_weekly_bin928.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='1.16e-05', photon_flux_error='1.24e-08', dlogl='9.88e-01', energy_flux='5.61e-06', photon_flux2='8.47e-09', job_status='DONE', time_completed='2026-05-19 13:50:19.959120', photon_index_error2='0.46', photon_index2='1.76', ts='5.71', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.84', time_epoch_completed='1779223819.96', return_code='0', job_id='26876499', GAL2='1.13', EG2='0.85', return_code2='0', energy_flux_error='3.74e-06', photon_flux_error2='8.24e-09', ts2='7.69', photon_index='2.47' WHERE bin_id='928' AND source_name='4FGL J1740.5+5211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 19 13:50:20 PDT 2026

