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


Performing analysis on: 4FGL_J2136.5+4259_weekly_bin780
RA = 324.141, Dec = 42.9938
tmin = 710726401, tmax = 711331201
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='19664647', job_status='RUN', time_executed='2023-07-18 01:53:03.380194', time_epoch_executed='1689670383.38' WHERE source_name='4FGL J2136.5+4259' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19664647

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19664647/ft1_4FGL_J2136.5+4259_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19664647/ft1_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19664647/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits ra=324.141 dec=42.9938 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.51
user 3.61
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.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/19664647/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19664647/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 8604

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19664647/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA"/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

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

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

 outfile=/lscratch/kocevski/19664647/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.fits
.....................!
real 16.30
user 15.29
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19664647/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19664647/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19664647/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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/19664647/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
.....................!
real 61.30
user 56.67
sys 3.64

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 185 point sources and 7 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2136.5+4259 @ 324.141 42.9938

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19664647/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits scfile=/lscratch/kocevski/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19664647/cmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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=324.141 yref=42.9938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.08
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19664647/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits scfile=/lscratch/kocevski/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19664647/cmap_HighResolution_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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=324.141 yref=42.9938 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"number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2136.5+4259_weekly_bin780
RA = 324.141, Dec = 42.9938
tmin = 710726401, tmax = 711331201
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='19665619', job_status='RUN', time_executed='2023-07-18 01:58:31.738110', time_epoch_executed='1689670711.74' WHERE source_name='4FGL J2136.5+4259' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19665619

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19665619/ft1_4FGL_J2136.5+4259_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19665619/ft1_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19665619/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits ra=324.141 dec=42.9938 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.87
user 3.80
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.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/19665619/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19665619/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 8604

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19665619/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA"number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2136.5+4259_weekly_bin780
RA = 324.141, Dec = 42.9938
tmin = 710726401, tmax = 711331201
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='19665541', job_status='RUN', time_executed='2023-07-18 01:58:21.183781', time_epoch_executed='1689670701.18' WHERE source_name='4FGL J2136.5+4259' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19665541

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19665541/ft1_4FGL_J2136.5+4259_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19665541/ft1_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19665541/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits ra=324.141 dec=42.9938 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.63
user 3.50
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.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/19665541/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19665541/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 8604

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19665541/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19665619/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.fits
.....................!
real 16.95
user 15.92
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19665619/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19665619/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19665619/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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/19665619/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
.....................!
real 64.49
user 58.74
sys 3.68

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
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 185 point sources and 7 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2136.5+4259 @ 324.141 42.9938

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19665619/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits scfile=/lscratch/kocevski/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19665619/cmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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=324.141 yref=42.9938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.08
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19665619/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits scfile=/lscratch/kocevski/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19665619/cmap_HighResolution_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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=324.141 yref=42.9938 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" outfile=/lscratch/kocevski/19665541/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.fits
.....................!
real 16.77
user 15.70
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19665541/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19665541/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19665541/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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/19665541/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
.....................!
real 59.78
user 55.73
sys 3.20

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
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 185 point sources and 7 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2136.5+4259 @ 324.141 42.9938

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19665541/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits scfile=/lscratch/kocevski/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19665541/cmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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=324.141 yref=42.9938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.15
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19665541/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits scfile=/lscratch/kocevski/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19665541/cmap_HighResolution_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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=324.141 yref=42.9938 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"Done.


Performing analysis on: 4FGL_J2136.5+4259_weekly_bin780
RA = 324.141, Dec = 42.9938
tmin = 710726401, tmax = 711331201
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='19666051', job_status='RUN', time_executed='2023-07-18 02:01:05.409985', time_epoch_executed='1689670865.41' WHERE source_name='4FGL J2136.5+4259' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19666051

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19666051/ft1_4FGL_J2136.5+4259_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19666051/ft2_4FGL_J2136.5+4259_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19666051/ft1_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19666051/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits ra=324.141 dec=42.9938 rad=12.0 tmin=710726401.0 tmax=711331201.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"
CAUTION: tmpfile /tmp/jqFLML_cint can't open

 *** Break *** segmentation violation
#0  0x00007fb51ad9f3cb in waitpid () from /lib64/libc.so.6
#1  0x00007fb51ad00bff in do_system () from /lib64/libc.so.6
#2  0x00007fb51cdedb0f in TUnixSystem::StackTrace (this=0x19306d0) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/unix/src/TUnixSystem.cxx:2419
#3  0x00007fb51cdef73c in TUnixSystem::DispatchSignals (this=0x19306d0, sig=kSigSegmentationViolation) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/unix/src/TUnixSystem.cxx:1294
#4  <signal handler called>
#5  0x00007fb51ad2c800 in fgetpos

GLIBC_2.2.5 () from /lib64/libc.so.6
#6  0x00007fb51c01db92 in G__replacefuncmacro (callfuncmacro=0x1a4e748, nosemic=nosemic
entry=1, nobraces=1, def_pos=..., def_fp=0x1a4b6c0, defpara=0x1a4e738, callpara=0x7ffcee468680, item=0x1a28b70 "G__DECL_IOFM(") at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/macro.cxx:338
#7  G__transfuncmacro (item=item
entry=0x1a28b70 "G__DECL_IOFM(", deffuncmacro=deffuncmacro
entry=0x1a4e710, callfuncmacro=callfuncmacro
entry=0x1a4e748, call_pos=..., p=p
entry=0x194649c "(hex,basefield)", nobraces=nobraces
entry=1, nosemic=nosemic
entry=1) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/macro.cxx:458
#8  0x00007fb51c01e095 in G__execfuncmacro_noexec (macroname=0x1a28b70 "G__DECL_IOFM(") at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/macro.cxx:894
#9  0x00007fb51c04cf80 in G__exec_statement (mparen=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/parse.cxx:7065
#10 0x00007fb51bfc58f5 in G__loadfile (filenamein=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/loadfile.cxx:2338
#11 0x00007fb51bfc61aa in G__include_file () at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/loadfile.cxx:269
#12 0x00007fb51c0544df in G__exec_statement (mparen=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/parse.cxx:6600
#13 0x00007fb51c0a2ed1 in G__define_struct (type=110 'n') at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/struct.cxx:751
#14 0x00007fb51c052ca5 in G__exec_statement (mparen=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/parse.cxx:6620
#15 0x00007fb51bfc58f5 in G__loadfile (filenamein=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/loadfile.cxx:2338
#16 0x00007fb51bfc61aa in G__include_file () at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/loadfile.cxx:269
#17 0x00007fb51c0544df in G__exec_statement (mparen=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/parse.cxx:6600
#18 0x00007fb51bfc7e5d in G__exec_tempfile_core (file=file
entry=0x0, fp=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/debug.cxx:266
#19 0x00007fb51bfc936e in G__exec_tempfile_fp (fp=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/debug.cxx:807
#20 0x00007fb51c05dc19 in G__process_cmd (line=<optimized out>, prompt=<optimized out>, more=<optimized out>, err=0x7ffcee46e66c, rslt=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/pause.cxx:3341
#21 0x00007fb51cdb2918 in TCint::ProcessLine (this=this
entry=0x1936360, line=line
entry=0x7fb51cef7f6b "#include <iostream>", error=error
entry=0x0) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/meta/src/TCint.cxx:588
#22 0x00007fb51cdb5287 in TCint::TCint (this=0x1936360, name=<optimized out>, title=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/meta/src/TCint.cxx:351
#23 0x00007fb51ce3aba3 in TROOT::TROOT (this=0x7fb51d25d7c0 <ROOT::GetROOT()::root>, name=0x7fb51ceaecc0 "root", title=<optimized out>, initfunc=0x0) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/base/src/TROOT.cxx:316
#24 0x00007fb51ce3c084 in ROOT::GetROOT () at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/base/src/TROOT.cxx:206
#25 0x00007fb51ca676f0 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/base/src/TROOT.cxx:215
#26 _GLOBAL__sub_I_TROOT.cxx(void) () at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/base/src/TROOT.cxx:2258
#27 0x00007fb5269b0e0a in call_init (l=<optimized out>, argc=argc
entry=23, argv=argv
entry=0x7ffcee46e898, env=env
entry=0x7ffcee46e958) at dl-init.c:72
#28 0x00007fb5269b0f0a in call_init (env=0x7ffcee46e958, argv=0x7ffcee46e898, argc=23, l=<optimized out>) at dl-init.c:30
#29 _dl_init (main_map=0x7fb526bcb1f0, argc=23, argv=0x7ffcee46e898, env=0x7ffcee46e958) at dl-init.c:119
#30 0x00007fb5269a201a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#31 0x0000000000000017 in ?? ()
#32 0x00007ffcee46fdde in ?? ()
#33 0x00007ffcee46fde7 in ?? ()
#34 0x00007ffcee46fe33 in ?? ()
#35 0x00007ffcee46fe8c in ?? ()
#36 0x00007ffcee46fe97 in ?? ()
#37 0x00007ffcee46fea3 in ?? ()
#38 0x00007ffcee46feac in ?? ()
#39 0x00007ffcee46febd in ?? ()
#40 0x00007ffcee46fece in ?? ()
#41 0x00007ffcee46fed9 in ?? ()
#42 0x00007ffcee46fee7 in ?? ()
#43 0x00007ffcee46fef0 in ?? ()
#44 0x00007ffcee46fefa in ?? ()
#45 0x00007ffcee46ff06 in ?? ()
#46 0x00007ffcee46ff13 in ?? ()
#47 0x00007ffcee46ff1f in ?? ()
#48 0x00007ffcee46ff2c in ?? ()
#49 0x00007ffcee46ff39 in ?? ()
#50 0x00007ffcee46ff48 in ?? ()
#51 0x00007ffcee46ff52 in ?? ()
#52 0x00007ffcee46ff5e in ?? ()
#53 0x00007ffcee46ff67 in ?? ()
#54 0x00007ffcee46ff6e in ?? ()
#55 0x0000000000000000 in ?? ()
real 13.76
user 1.88
sys 0.52
[Errno 2] No such file or directory: '/lscratch/kocevski/19666051/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits'
Traceback (most recent call last):
  File "/sdf/group/fermi/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py", line 2936, in sourceAnalysis
    ft1 = astro_fits.open(filteredEventsMKT)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 148, in fitsopen
    lazy_load_hdus, **kwargs)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 402, in fromfile
    lazy_load_hdus=lazy_load_hdus, **kwargs)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 1006, in _readfrom
    fileobj = _File(fileobj, mode=mode, memmap=memmap, cache=cache)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/utils/decorators.py", line 508, in wrapper
    return function(*args, **kwargs)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/file.py", line 150, in __init__
    self._open_filename(fileobj, mode, overwrite)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/file.py", line 506, in _open_filename
    self._file = fileobj_open(self.name, IO_FITS_MODES[mode])
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/util.py", line 395, in fileobj_open
    return open(filename, mode)
IOError: [Errno 2] No such file or directory: '/lscratch/kocevski/19666051/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits'


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='[Errno 2] No such file or directory: '/lscratch/kocevski/19666051/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits'', time_epoch_completed='1689671597.27', time_completed='2023-07-18 02:13:17.273829', job_id='19666051' WHERE bin_id='780' AND source_name='4FGL J2136.5+4259' AND cadence='weekly';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='[Errno 2] No such file or directory: '/lscratch/kocevski/19666051/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits'', time_epoch_completed='1689671597.27', time_completed='2023-07-18 02:13:17.273829', job_id='19666051' WHERE bin_id='780' AND source_name='4FGL J2136.5+4259' AND cadence='weekly';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''', time_epoch_completed='1689671597.27', time_completed='2023-07-18 02:13:17.27' at line 1
Traceback (most recent call last):
  File "/sdf/data/fermi/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''', time_epoch_completed='1689671597.27', time_completed='2023-07-18 02:13:17.27' at line 1

Command execution failed.

Waiting 10.2667471462 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
FAIL', comment='[Errno 2] No such file or directory: '/lscratch/kocevski/19666051/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits'', time_epoch_completed='1689671597.27', time_completed='2023-07-18 02:13:17.273829', job_id='19666051' WHERE bin_id='780' AND source_name='4FGL J2136.5+4259' AND cadence='weekly';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='[Errno 2] No such file or directory: '/lscratch/kocevski/19666051/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits'', time_epoch_completed='1689671597.27', time_completed='2023-07-18 02:13:17.273829', job_id='19666051' WHERE bin_id='780' AND source_name='4FGL J2136.5+4259' AND cadence='weekly';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''', time_epoch_completed='1689671597.27', time_completed='2023-07-18 02:13:17.27' at line 1
Traceback (most recent call last):
  File "/sdf/data/fermi/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''', time_epoch_completed='1689671597.27', time_completed='2023-07-18 02:13:17.27' at line 1

Command execution failed.

Waiting 29.3008978953 seconds and trying again...


Error: could not find cmap file: /lscratch/kocevski/19666051/cmap_HighResolution_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
Continuing... 

Cleaning up...

** Nuclear option initiated! **


Analysis Complete.


Tue Jul 18 02:13:59 PDT 2023

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


Performing analysis on: 4FGL_J2136.5+4259_weekly_bin780
RA = 324.141, Dec = 42.9938
tmin = 710726401, tmax = 711331201
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='19666674', job_status='RUN', time_executed='2023-07-18 02:04:13.871952', time_epoch_executed='1689671053.87' WHERE source_name='4FGL J2136.5+4259' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19666674

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19666674/ft1_4FGL_J2136.5+4259_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19666674/ft1_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19666674/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits ra=324.141 dec=42.9938 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.38
user 3.47
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.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/19666674/ft1_filteredMKT_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19666674/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 8604

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19666674/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19666674/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.fits
.....................!
real 16.26
user 15.16
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19666674/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19666674/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19666674/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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/19666674/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
.....................!
real 60.14
user 55.48
sys 3.55

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
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 185 point sources and 7 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2136.5+4259 @ 324.141 42.9938

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19666674/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits scfile=/lscratch/kocevski/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19666674/cmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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=324.141 yref=42.9938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.03
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19666674/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits scfile=/lscratch/kocevski/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.fits outfile=/lscratch/kocevski/19666674/cmap_HighResolution_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.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=324.141 yref=42.9938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.20
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19664647/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19664647/Model_4FGL_J2136.5+4259_weekly_bin780.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 CTB 109
adding source Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/lscratch/kocevski/19664647/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits.....................!
real 524.58
user 519.66
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19664647/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits', '/lscratch/kocevski/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.fits', expMap='/lscratch/kocevski/19664647/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits', expCube='/lscratch/kocevski/19664647/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19664647/Model_4FGL_J2136.5+4259_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2136.5+4259'

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  1.347e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19664647/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19664647/ft2_4FGL_J2136.5+4259_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19664647/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19664647/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19664647/Model_4FGL_J2136.5+4259_weekly_bin780.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) = 77881.3268357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74746E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    17.125       1.0000          .0000       .10000E+07
     3 'norm      '    .32075       1.0000          .0000       .10000E+07
     4 'norm      '    4.5514       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.4770       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.8534       1.0000          .0000       .10000E+07
     7 'norm      '    .13819E-04   1.0000          .0000       .10000E+07
     8 'norm      '    9.9053       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20879E-05   1.0000          .0000       .10000E+07
    10 'Normalizat'    .88654       1.0000         .10000E-01   10.000    
    11 'Prefactor '    .99419       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   77881.27     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      714 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.9351       -.24818E-06** at limit **
   2  Prefactor     17.099        15.516       -.48094E-07    .19639E-04
   3  norm          .32071        .48918       -.25148E-07   -.32962E-03
   4  norm          4.4880        7.5091        .12650E-06   -.86419E-04
   5  Prefactor     6.4816        3.3283       -.10075E-06    .38005E-03
   6  Prefactor     6.8647        3.9385       -.59688E-07    .33514E-03
   7  norm           .0000        16.380       -.84625E-07** at limit **
   8  norm          9.9048        .77506        .26377E-08   -.16367E-02
   9  Prefactor      .0000        4.2896       -.44767E-07** at limit **
  10  Normalizat    .88667        .15163        .30482E-06   -.98976E-05
  11  Prefactor     .99420        .17130E-01    .34260E-06   -.19252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 17.0989
  norm       = 0.320706
  norm       = 4.48797
  Prefactor  = 6.48158
  Prefactor  = 6.86475
  norm       = 0
  norm       = 9.90479
  Prefactor  = 0
  Normalizat = 0.886667
  Prefactor  = 0.994196
 **********
 **   18 **HESSE 
 **********

 FCN=   77881.27     FROM HESSE     STATUS=OK           148 CALLS      862 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.9541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.099        15.589        .24175E-03   -1.5625    
   3  norm          .32071        .48154        .57607E-02   -1.5697    
   4  norm          4.4880        7.5251        .47163E-03   -1.5666    
   5  Prefactor     6.4816        3.3473        .39411E-03   -1.5657    
   6  Prefactor     6.8647        3.9490        .38301E-03   -1.5656    
   7  norm           .0000        .29404        .52759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9048        .77921        .31814E-03   -1.5645    
   9  Prefactor      .0000        4.2968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Normalizat    .88667        .16057        .23735       -.96930    
  11  Prefactor     .99420        .17537E-01    .26587E-01   -.92923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89857e-08
Minuit parameter uncertainties:
  1  6.18726e-06
  2  15.589
  3  0.481541
  4  7.52516
  5  3.34727
  6  3.94903
  7  2.81883e-08
  8  0.779207
  9  1.53389e-06
  10  0.160656
  11  0.0175369
Done.

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

Extracting fit parameters...

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  6.482e+00  3.347e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.942e-01  1.754e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  8.867e-01  1.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.94
Ra Dec: 324.141 42.994
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 7.80e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 9.77e-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) = 77880.9336488
delta logL = 0.339419369819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 77880.9293688
delta logL = 0.343699344739

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   77880.93     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      338 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6352        4.5887        .68180E-04   -.44821E-03
   2  Index         2.2817        .44583        .96677E-02    .23542E-03
   3  Normalizat    .90204        .14623        .10530E-02   -.29368E-05
   4  Prefactor     .99349        .17080E-01    .11754E-03   -.47973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63518
  Index      = 2.28171
  Normalizat = 0.902036
  Prefactor  = 0.993491
 **********
 **   18 **HESSE 
 **********

 FCN=   77880.93     FROM HESSE     STATUS=OK            25 CALLS      363 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6352        4.5279        .27272E-05   -1.5649    
   2  Index         2.2817        .43989        .19335E-02   -.57479    
   3  Normalizat    .90204        .14621        .42118E-04   -.96389    
   4  Prefactor     .99349        .17077E-01    .47017E-05   -.92947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21577e-12
Minuit parameter uncertainties:
  1  4.52786
  2  0.440697
  3  0.146269
  4  0.0170766
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) = 77880.9293681
delta logL = 0.343700082653

Extracting fit parameters...

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  8.635e+00  4.528e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.282e+00  4.407e-01  0.000e+00  1.000e+01 (-1.000e+00)
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.935e-01  1.708e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.020e-01  1.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.59
Ra Dec: 324.141 42.994
Photon Index (Free Index): 2.28 +/- 0.44
Photon Flux (Free Index): 6.12e-08 +/- 4.01e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/19664647/cmap_HighResolution_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.80e-08', energy_flux2='2.38e-05', photon_flux_error='4.02e-08', dlogl='3.44e-01', energy_flux='1.89e-05', photon_flux2='6.12e-08', job_status='DONE', time_completed='2023-07-18 02:23:41.932904', photon_index_error2='0.44', photon_index2='2.28', ts='4.94', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.89', time_epoch_completed='1689672221.93', return_code='0', job_id='19664647', GAL2='0.99', EG2='0.90', return_code2='0', energy_flux_error='9.77e-06', photon_flux_error2='4.01e-08', ts2='5.59', photon_index='2.69' WHERE bin_id='780' AND source_name='4FGL J2136.5+4259' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:23:42 PDT 2023

 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.13
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19665619/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19665619/Model_4FGL_J2136.5+4259_weekly_bin780.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 CTB 109
adding source Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/lscratch/kocevski/19665619/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits.....................!
real 521.96
user 516.86
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19665619/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits', '/lscratch/kocevski/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.fits', expMap='/lscratch/kocevski/19665619/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits', expCube='/lscratch/kocevski/19665619/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19665619/Model_4FGL_J2136.5+4259_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2136.5+4259'

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  1.347e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19665619/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19665619/ft2_4FGL_J2136.5+4259_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19665619/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19665619/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19665619/Model_4FGL_J2136.5+4259_weekly_bin780.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) = 77881.3268357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74746E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    17.125       1.0000          .0000       .10000E+07
     3 'norm      '    .32075       1.0000          .0000       .10000E+07
     4 'norm      '    4.5514       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.4770       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.8534       1.0000          .0000       .10000E+07
     7 'norm      '    .13819E-04   1.0000          .0000       .10000E+07
     8 'norm      '    9.9053       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20879E-05   1.0000          .0000       .10000E+07
    10 'Normalizat'    .88654       1.0000         .10000E-01   10.000    
    11 'Prefactor '    .99419       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   77881.27     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      714 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.9351       -.24818E-06** at limit **
   2  Prefactor     17.099        15.516       -.48094E-07    .19639E-04
   3  norm          .32071        .48918       -.25148E-07   -.32962E-03
   4  norm          4.4880        7.5091        .12650E-06   -.86419E-04
   5  Prefactor     6.4816        3.3283       -.10075E-06    .38005E-03
   6  Prefactor     6.8647        3.9385       -.59688E-07    .33514E-03
   7  norm           .0000        16.380       -.84625E-07** at limit **
   8  norm          9.9048        .77506        .26377E-08   -.16367E-02
   9  Prefactor      .0000        4.2896       -.44767E-07** at limit **
  10  Normalizat    .88667        .15163        .30482E-06   -.98976E-05
  11  Prefactor     .99420        .17130E-01    .34260E-06   -.19252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 17.0989
  norm       = 0.320706
  norm       = 4.48797
  Prefactor  = 6.48158
  Prefactor  = 6.86475
  norm       = 0
  norm       = 9.90479
  Prefactor  = 0
  Normalizat = 0.886667
  Prefactor  = 0.994196
 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.29
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19665541/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19665541/Model_4FGL_J2136.5+4259_weekly_bin780.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 CTB 109
adding source Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/lscratch/kocevski/19665541/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits.....................!
real 517.31
user 512.76
sys 0.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19665541/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits', '/lscratch/kocevski/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.fits', expMap='/lscratch/kocevski/19665541/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits', expCube='/lscratch/kocevski/19665541/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19665541/Model_4FGL_J2136.5+4259_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2136.5+4259'

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  1.347e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19665541/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19665541/ft2_4FGL_J2136.5+4259_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19665541/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19665541/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19665541/Model_4FGL_J2136.5+4259_weekly_bin780.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) = 77881.3268357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74746E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    17.125       1.0000          .0000       .10000E+07
     3 'norm      '    .32075       1.0000          .0000       .10000E+07
     4 'norm      '    4.5514       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.4770       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.8534       1.0000          .0000       .10000E+07
     7 'norm      '    .13819E-04   1.0000          .0000       .10000E+07
     8 'norm      '    9.9053       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20879E-05   1.0000          .0000       .10000E+07
    10 'Normalizat'    .88654       1.0000         .10000E-01   10.000    
    11 'Prefactor '    .99419       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   77881.27     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      714 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.9351       -.24818E-06** at limit **
   2  Prefactor     17.099        15.516       -.48094E-07    .19639E-04
   3  norm          .32071        .48918       -.25148E-07   -.32962E-03
   4  norm          4.4880        7.5091        .12650E-06   -.86419E-04
   5  Prefactor     6.4816        3.3283       -.10075E-06    .38005E-03
   6  Prefactor     6.8647        3.9385       -.59688E-07    .33514E-03
   7  norm           .0000        16.380       -.84625E-07** at limit **
   8  norm          9.9048        .77506        .26377E-08   -.16367E-02
   9  Prefactor      .0000        4.2896       -.44767E-07** at limit **
  10  Normalizat    .88667        .15163        .30482E-06   -.98976E-05
  11  Prefactor     .99420        .17130E-01    .34260E-06   -.19252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 17.0989
  norm       = 0.320706
  norm       = 4.48797
  Prefactor  = 6.48158
  Prefactor  = 6.86475
  norm       = 0
  norm       = 9.90479
  Prefactor  = 0
  Normalizat = 0.886667
  Prefactor  = 0.994196
 **********
 **   18 **HESSE 
 **********

 FCN=   77881.27     FROM HESSE     STATUS=OK           148 CALLS      862 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.9541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.099        15.589        .24175E-03   -1.5625    
   3  norm          .32071        .48154        .57607E-02   -1.5697    
   4  norm          4.4880        7.5251        .47163E-03   -1.5666    
   5  Prefactor     6.4816        3.3473        .39411E-03   -1.5657    
   6  Prefactor     6.8647        3.9490        .38301E-03   -1.5656    
   7  norm           .0000        .29404        .52759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9048        .77921        .31814E-03   -1.5645    
   9  Prefactor      .0000        4.2968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Normalizat    .88667        .16057        .23735       -.96930    
  11  Prefactor     .99420        .17537E-01    .26587E-01   -.92923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89857e-08
Minuit parameter uncertainties:
  1  6.18726e-06
  2  15.589
  3  0.481541
  4  7.52516
  5  3.34727
  6  3.94903
  7  2.81883e-08
  8  0.779207
  9  1.53389e-06
  10  0.160656
  11  0.0175369
 **********
 **   18 **HESSE 
 **********

 FCN=   77881.27     FROM HESSE     STATUS=OK           148 CALLS      862 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.9541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.099        15.589        .24175E-03   -1.5625    
   3  norm          .32071        .48154        .57607E-02   -1.5697    
   4  norm          4.4880        7.5251        .47163E-03   -1.5666    
   5  Prefactor     6.4816        3.3473        .39411E-03   -1.5657    
   6  Prefactor     6.8647        3.9490        .38301E-03   -1.5656    
   7  norm           .0000        .29404        .52759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9048        .77921        .31814E-03   -1.5645    
   9  Prefactor      .0000        4.2968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Normalizat    .88667        .16057        .23735       -.96930    
  11  Prefactor     .99420        .17537E-01    .26587E-01   -.92923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89857e-08
Minuit parameter uncertainties:
  1  6.18726e-06
  2  15.589
  3  0.481541
  4  7.52516
  5  3.34727
  6  3.94903
  7  2.81883e-08
  8  0.779207
  9  1.53389e-06
  10  0.160656
  11  0.0175369
Done.

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

Extracting fit parameters...

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  6.482e+00  3.347e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.942e-01  1.754e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  8.867e-01  1.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.94
Ra Dec: 324.141 42.994
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 7.80e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 9.77e-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) = 77880.9336488
delta logL = 0.339419369819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 77880.9293688
delta logL = 0.343699344739

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   77880.93     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      338 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6352        4.5887        .68180E-04   -.44821E-03
   2  Index         2.2817        .44583        .96677E-02    .23542E-03
   3  Normalizat    .90204        .14623        .10530E-02   -.29368E-05
   4  Prefactor     .99349        .17080E-01    .11754E-03   -.47973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63518
  Index      = 2.28171
  Normalizat = 0.902036
  Prefactor  = 0.993491
 **********
 **   18 **HESSE 
 **********

 FCN=   77880.93     FROM HESSE     STATUS=OK            25 CALLS      363 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6352        4.5279        .27272E-05   -1.5649    
   2  Index         2.2817        .43989        .19335E-02   -.57479    
   3  Normalizat    .90204        .14621        .42118E-04   -.96389    
   4  Prefactor     .99349        .17077E-01    .47017E-05   -.92947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21577e-12
Minuit parameter uncertainties:
  1  4.52786
  2  0.440697
  3  0.146269
  4  0.0170766
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) = 77880.9293681
delta logL = 0.343700082653

Extracting fit parameters...

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  8.635e+00  4.528e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.282e+00  4.407e-01  0.000e+00  1.000e+01 (-1.000e+00)
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.935e-01  1.708e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.020e-01  1.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.59
Ra Dec: 324.141 42.994
Photon Index (Free Index): 2.28 +/- 0.44
Photon Flux (Free Index): 6.12e-08 +/- 4.01e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/19665619/cmap_HighResolution_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.80e-08', energy_flux2='2.38e-05', photon_flux_error='4.02e-08', dlogl='3.44e-01', energy_flux='1.89e-05', photon_flux2='6.12e-08', job_status='DONE', time_completed='2023-07-18 02:29:25.564234', photon_index_error2='0.44', photon_index2='2.28', ts='4.94', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.89', time_epoch_completed='1689672565.56', return_code='0', job_id='19665619', GAL2='0.99', EG2='0.90', return_code2='0', energy_flux_error='9.77e-06', photon_flux_error2='4.01e-08', ts2='5.59', photon_index='2.69' WHERE bin_id='780' AND source_name='4FGL J2136.5+4259' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:29:26 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  6.482e+00  3.347e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.942e-01  1.754e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  8.867e-01  1.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.94
Ra Dec: 324.141 42.994
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 7.80e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 9.77e-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) = 77880.9336488
delta logL = 0.339419369819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 77880.9293688
delta logL = 0.343699344739

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   77880.93     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      338 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6352        4.5887        .68180E-04   -.44821E-03
   2  Index         2.2817        .44583        .96677E-02    .23542E-03
   3  Normalizat    .90204        .14623        .10530E-02   -.29368E-05
   4  Prefactor     .99349        .17080E-01    .11754E-03   -.47973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63518
  Index      = 2.28171
  Normalizat = 0.902036
  Prefactor  = 0.993491
 **********
 **   18 **HESSE 
 **********

 FCN=   77880.93     FROM HESSE     STATUS=OK            25 CALLS      363 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6352        4.5279        .27272E-05   -1.5649    
   2  Index         2.2817        .43989        .19335E-02   -.57479    
   3  Normalizat    .90204        .14621        .42118E-04   -.96389    
   4  Prefactor     .99349        .17077E-01    .47017E-05   -.92947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21577e-12
Minuit parameter uncertainties:
  1  4.52786
  2  0.440697
  3  0.146269
  4  0.0170766
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) = 77880.9293681
delta logL = 0.343700082653

Extracting fit parameters...

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  8.635e+00  4.528e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.282e+00  4.407e-01  0.000e+00  1.000e+01 (-1.000e+00)
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.935e-01  1.708e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.020e-01  1.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.59
Ra Dec: 324.141 42.994
Photon Index (Free Index): 2.28 +/- 0.44
Photon Flux (Free Index): 6.12e-08 +/- 4.01e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/19665541/cmap_HighResolution_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.80e-08', energy_flux2='2.38e-05', photon_flux_error='4.02e-08', dlogl='3.44e-01', energy_flux='1.89e-05', photon_flux2='6.12e-08', job_status='DONE', time_completed='2023-07-18 02:29:46.625723', photon_index_error2='0.44', photon_index2='2.28', ts='4.94', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.89', time_epoch_completed='1689672586.63', return_code='0', job_id='19665541', GAL2='0.99', EG2='0.90', return_code2='0', energy_flux_error='9.77e-06', photon_flux_error2='4.01e-08', ts2='5.59', photon_index='2.69' WHERE bin_id='780' AND source_name='4FGL J2136.5+4259' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:29:47 PDT 2023

 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.37
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19666674/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19666674/Model_4FGL_J2136.5+4259_weekly_bin780.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 CTB 109
adding source Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/lscratch/kocevski/19666674/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits.....................!
real 515.07
user 510.17
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19666674/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits', '/lscratch/kocevski/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.fits', expMap='/lscratch/kocevski/19666674/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits', expCube='/lscratch/kocevski/19666674/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19666674/Model_4FGL_J2136.5+4259_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2136.5+4259'

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  1.347e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19666674/ft1_filtered_4FGL_J2136.5+4259_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19666674/ft2_4FGL_J2136.5+4259_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19666674/expmap_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19666674/ltcube_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19666674/Model_4FGL_J2136.5+4259_weekly_bin780.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) = 77881.3268357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74746E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    17.125       1.0000          .0000       .10000E+07
     3 'norm      '    .32075       1.0000          .0000       .10000E+07
     4 'norm      '    4.5514       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.4770       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.8534       1.0000          .0000       .10000E+07
     7 'norm      '    .13819E-04   1.0000          .0000       .10000E+07
     8 'norm      '    9.9053       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20879E-05   1.0000          .0000       .10000E+07
    10 'Normalizat'    .88654       1.0000         .10000E-01   10.000    
    11 'Prefactor '    .99419       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   77881.27     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      714 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.9351       -.24818E-06** at limit **
   2  Prefactor     17.099        15.516       -.48094E-07    .19639E-04
   3  norm          .32071        .48918       -.25148E-07   -.32962E-03
   4  norm          4.4880        7.5091        .12650E-06   -.86419E-04
   5  Prefactor     6.4816        3.3283       -.10075E-06    .38005E-03
   6  Prefactor     6.8647        3.9385       -.59688E-07    .33514E-03
   7  norm           .0000        16.380       -.84625E-07** at limit **
   8  norm          9.9048        .77506        .26377E-08   -.16367E-02
   9  Prefactor      .0000        4.2896       -.44767E-07** at limit **
  10  Normalizat    .88667        .15163        .30482E-06   -.98976E-05
  11  Prefactor     .99420        .17130E-01    .34260E-06   -.19252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 17.0989
  norm       = 0.320706
  norm       = 4.48797
  Prefactor  = 6.48158
  Prefactor  = 6.86475
  norm       = 0
  norm       = 9.90479
  Prefactor  = 0
  Normalizat = 0.886667
  Prefactor  = 0.994196
 **********
 **   18 **HESSE 
 **********

 FCN=   77881.27     FROM HESSE     STATUS=OK           148 CALLS      862 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.9541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.099        15.589        .24175E-03   -1.5625    
   3  norm          .32071        .48154        .57607E-02   -1.5697    
   4  norm          4.4880        7.5251        .47163E-03   -1.5666    
   5  Prefactor     6.4816        3.3473        .39411E-03   -1.5657    
   6  Prefactor     6.8647        3.9490        .38301E-03   -1.5656    
   7  norm           .0000        .29404        .52759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9048        .77921        .31814E-03   -1.5645    
   9  Prefactor      .0000        4.2968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Normalizat    .88667        .16057        .23735       -.96930    
  11  Prefactor     .99420        .17537E-01    .26587E-01   -.92923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89857e-08
Minuit parameter uncertainties:
  1  6.18726e-06
  2  15.589
  3  0.481541
  4  7.52516
  5  3.34727
  6  3.94903
  7  2.81883e-08
  8  0.779207
  9  1.53389e-06
  10  0.160656
  11  0.0175369
Done.

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

Extracting fit parameters...

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  6.482e+00  3.347e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.942e-01  1.754e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  8.867e-01  1.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.94
Ra Dec: 324.141 42.994
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 7.80e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 9.77e-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) = 77880.9336488
delta logL = 0.339419369819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 77880.9293688
delta logL = 0.343699344739

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   77880.93     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      338 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6352        4.5887        .68180E-04   -.44821E-03
   2  Index         2.2817        .44583        .96677E-02    .23542E-03
   3  Normalizat    .90204        .14623        .10530E-02   -.29368E-05
   4  Prefactor     .99349        .17080E-01    .11754E-03   -.47973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63518
  Index      = 2.28171
  Normalizat = 0.902036
  Prefactor  = 0.993491
 **********
 **   18 **HESSE 
 **********

 FCN=   77880.93     FROM HESSE     STATUS=OK            25 CALLS      363 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6352        4.5279        .27272E-05   -1.5649    
   2  Index         2.2817        .43989        .19335E-02   -.57479    
   3  Normalizat    .90204        .14621        .42118E-04   -.96389    
   4  Prefactor     .99349        .17077E-01    .47017E-05   -.92947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21577e-12
Minuit parameter uncertainties:
  1  4.52786
  2  0.440697
  3  0.146269
  4  0.0170766
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) = 77880.9293681
delta logL = 0.343700082653

Extracting fit parameters...

4FGL J2136.5+4259
   Spectrum: PowerLaw
375    Prefactor:  8.635e+00  4.528e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        Index:  2.282e+00  4.407e-01  0.000e+00  1.000e+01 (-1.000e+00)
377        Scale:  7.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.935e-01  1.708e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.020e-01  1.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.59
Ra Dec: 324.141 42.994
Photon Index (Free Index): 2.28 +/- 0.44
Photon Flux (Free Index): 6.12e-08 +/- 4.01e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/19666674/cmap_HighResolution_710726401_711331201_4FGL_J2136.5+4259_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.80e-08', energy_flux2='2.38e-05', photon_flux_error='4.02e-08', dlogl='3.44e-01', energy_flux='1.89e-05', photon_flux2='6.12e-08', job_status='DONE', time_completed='2023-07-18 02:35:21.719161', photon_index_error2='0.44', photon_index2='2.28', ts='4.94', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.89', time_epoch_completed='1689672921.72', return_code='0', job_id='19666674', GAL2='0.99', EG2='0.90', return_code2='0', energy_flux_error='9.77e-06', photon_flux_error2='4.01e-08', ts2='5.59', photon_index='2.69' WHERE bin_id='780' AND source_name='4FGL J2136.5+4259' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:35:22 PDT 2023

