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

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

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

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

Done.


Performing analysis on: 4FGL_J2244.2+4057_weekly_bin780
RA = 341.061, Dec = 40.9597
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='19666121', job_status='RUN', time_executed='2023-07-18 02:01:20.052710', time_epoch_executed='1689670880.05' WHERE source_name='4FGL J2244.2+4057' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19666121

Creating custom pfile directory:
/lscratch/kocevski/19666121/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/19666121/ft1_4FGL_J2244.2+4057_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/19666121/ft2_4FGL_J2244.2+4057_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19666121/ft1_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19666121/ft1_filteredMKT_4FGL_J2244.2+4057_weekly_bin780.fits ra=341.061 dec=40.9597 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.50
user 3.46
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19666121/ft2_4FGL_J2244.2+4057_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19666121/ft2_4FGL_J2244.2+4057_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/19666121/ft1_filteredMKT_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19666121/ft1_filtered_4FGL_J2244.2+4057_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.25
user 0.19
sys 0.15

Number of photons that the gtmktime cut: 3291

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

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

 outfile=/lscratch/kocevski/19666034/ltcube_710726401_711331201_4FGL_J2244.2+4057_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/19666034/ft2_4FGL_J2244.2+4057_weekly_bin780.fits
.....................!
real 16.06
user 15.01
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19666034/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666034/ft2_4FGL_J2244.2+4057_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19666034/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19666034/expmap_710726401_711331201_4FGL_J2244.2+4057_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/19666034/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
.....................!
real 60.25
user 55.54
sys 3.69

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 174 point sources and 3 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 J2244.2+4057 @ 341.061 40.9597

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19666034/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits scfile=/lscratch/kocevski/19666034/ft2_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19666034/cmap_710726401_711331201_4FGL_J2244.2+4057_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=341.061 yref=40.9597 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.18
user 0.19
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19666034/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits scfile=/lscratch/kocevski/19666034/ft2_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19666034/cmap_HighResolution_710726401_711331201_4FGL_J2244.2+4057_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=341.061 yref=40.9597 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.23
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19666034/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666034/ft2_4FGL_J2 outfile=/lscratch/kocevski/19666121/ltcube_710726401_711331201_4FGL_J2244.2+4057_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/19666121/ft2_4FGL_J2244.2+4057_weekly_bin780.fits
.....................!
real 16.35
user 15.10
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19666121/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666121/ft2_4FGL_J2244.2+4057_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19666121/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19666121/expmap_710726401_711331201_4FGL_J2244.2+4057_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/19666121/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
.....................!
real 60.29
user 55.54
sys 3.61

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 174 point sources and 3 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 J2244.2+4057 @ 341.061 40.9597

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19666121/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits scfile=/lscratch/kocevski/19666121/ft2_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19666121/cmap_710726401_711331201_4FGL_J2244.2+4057_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=341.061 yref=40.9597 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.04
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19666121/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits scfile=/lscratch/kocevski/19666121/ft2_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19666121/cmap_HighResolution_710726401_711331201_4FGL_J2244.2+4057_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=341.061 yref=40.9597 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.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19666121/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666121/ft2_4FGL_J2number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2244.2+4057_weekly_bin780
RA = 341.061, Dec = 40.9597
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='19667113', job_status='RUN', time_executed='2023-07-18 02:06:37.497740', time_epoch_executed='1689671197.5' WHERE source_name='4FGL J2244.2+4057' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19667113

Creating custom pfile directory:
/lscratch/kocevski/19667113/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/19667113/ft1_4FGL_J2244.2+4057_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/19667113/ft2_4FGL_J2244.2+4057_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19667113/ft1_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19667113/ft1_filteredMKT_4FGL_J2244.2+4057_weekly_bin780.fits ra=341.061 dec=40.9597 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.64
user 3.70
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19667113/ft2_4FGL_J2244.2+4057_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19667113/ft2_4FGL_J2244.2+4057_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/19667113/ft1_filteredMKT_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19667113/ft1_filtered_4FGL_J2244.2+4057_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.14
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 3291

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19667113/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19667113/ft2_4FGL_J2244.2+4057_weekly_bin780.fits sctable="SC_DATA" 244.2+4057_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19666034/Model_4FGL_J2244.2+4057_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 EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/19666034/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits.....................!
real 136.85
user 134.46
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19666034/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits', '/lscratch/kocevski/19666034/ft2_4FGL_J2244.2+4057_weekly_bin780.fits', expMap='/lscratch/kocevski/19666034/expmap_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits', expCube='/lscratch/kocevski/19666034/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19666034/Model_4FGL_J2244.2+4057_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2244.2+4057'

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  8.060e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19666034/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19666034/ft2_4FGL_J2244.2+4057_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19666034/expmap_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19666034/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19666034/Model_4FGL_J2244.2+4057_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) = 33267.0081309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.244       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12378E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .46643E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.9216       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.3671       1.0000          .0000       .10000E+07
     6 'Prefactor '    .29525E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .27832       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.4140       1.0000          .0000       .10000E+07
     9 'norm      '    .71271E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.5925       1.0000          .0000       .10000E+07
    11 'norm      '    .62536E-01   1.0000          .0000       .10000E+07
    12 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .93092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   33266.29     FROM MIGRAD    STATUS=CONVERGED    286 CALLS      913 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.244        .77920        .13935E-08   -.97466E-03
   2  Prefactor     .83267E-09    4.5047        .12391E-06** at limit **
   3  norm          .15599E-07    .51035       -.31872E-07** at limit **
   4  Prefactor     4.9240        4.8590        .14484E-07    .26313E-02
   5  Prefactor     2.3627        3.4467        .73380E-07   -.20014E-03
   6  Prefactor     .19984E-08    4.1106       -.19420E-06** at limit **
   7  norm          .27890        .51545        .97785E-07   -.13056E-01
   8  Prefactor     4.4172        5.4332        .25519E-07    .50832E-03
   9  norm          .61062E-09    5.1508        .15554E-06** at limit **
  10  norm          3.6398        3.2065       -.34929E-09    .58688E-03
  11  norm          .52309E-01    .34997       -.45315E-08** at limit **
  12  Normalizat    1.0017        .12860       -.93048E-06   -.83849E-04
  13  Prefactor     .93094        .38403E-01    .42399E-07   -.18780E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2435
  Prefactor  = 8.32667e-10
  norm       = 1.55986e-08
  Prefactor  = 4.92396
  Prefactor  = 2.36272
  Prefactor  = 1.9984e-09
  norm       = 0.278899
  Prefactor  = 4.41715
  norm       = 6.10623e-10
  norm       = 3.63976
  norm       = 0.0523089
  Normalizat = 1.00175
  Prefactor  = 0.930944
 **********
 **   18 **HESSE 
 **********

 FCN=   33266.29     FROM HESSE     STATUS=OK           155 CALLS     1068 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.244        .77987        .42493E-05   -1.5644    
   2  Prefactor     .83267E-09    4.6409        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .15599E-07    5.0702        .24249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9240        4.8745        .18125E-04   -1.5664    
   5  Prefactor     2.3627        3.3785        .26630E-04   -1.5677    
   6  Prefactor     .19984E-08    4.4394        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .27890        .52659        .17782E-04   -1.5697    
   8  Prefactor     4.4172        5.4170        .19164E-04   -1.5666    
   9  norm          .61062E-09    5.4631        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6398        3.2084        .21315E-04   -1.5670    
  11  norm          .52309E-01    5.1551        .20634E-03   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    1.0017        .13980        .46233E-03   -.92972    
  13  Prefactor     .93094        .42187E-01    .14608E-03   -.95068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29907e-09
Minuit parameter uncertainties:
  1  0.779867
  2  0.000123859
  3  0.000562847
  4  4.87448
  5  3.37847
  6  0.000189451
  7  0.526587
  8  5.41699
  9  0.000116088
  10  3.20845
  11  1.03857
  12  0.139847
  13  0.0421883
244.2+4057_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19666121/Model_4FGL_J2244.2+4057_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 EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/19666121/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits.....................!
real 130.64
user 128.18
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19666121/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits', '/lscratch/kocevski/19666121/ft2_4FGL_J2244.2+4057_weekly_bin780.fits', expMap='/lscratch/kocevski/19666121/expmap_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits', expCube='/lscratch/kocevski/19666121/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19666121/Model_4FGL_J2244.2+4057_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2244.2+4057'

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  8.060e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19666121/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19666121/ft2_4FGL_J2244.2+4057_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19666121/expmap_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19666121/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19666121/Model_4FGL_J2244.2+4057_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) = 33267.0081309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.244       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12378E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .46643E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.9216       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.3671       1.0000          .0000       .10000E+07
     6 'Prefactor '    .29525E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .27832       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.4140       1.0000          .0000       .10000E+07
     9 'norm      '    .71271E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.5925       1.0000          .0000       .10000E+07
    11 'norm      '    .62536E-01   1.0000          .0000       .10000E+07
    12 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .93092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   33266.29     FROM MIGRAD    STATUS=CONVERGED    286 CALLS      913 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.244        .77920        .13935E-08   -.97466E-03
   2  Prefactor     .83267E-09    4.5047        .12391E-06** at limit **
   3  norm          .15599E-07    .51035       -.31872E-07** at limit **
   4  Prefactor     4.9240        4.8590        .14484E-07    .26313E-02
   5  Prefactor     2.3627        3.4467        .73380E-07   -.20014E-03
   6  Prefactor     .19984E-08    4.1106       -.19420E-06** at limit **
   7  norm          .27890        .51545        .97785E-07   -.13056E-01
   8  Prefactor     4.4172        5.4332        .25519E-07    .50832E-03
   9  norm          .61062E-09    5.1508        .15554E-06** at limit **
  10  norm          3.6398        3.2065       -.34929E-09    .58688E-03
  11  norm          .52309E-01    .34997       -.45315E-08** at limit **
  12  Normalizat    1.0017        .12860       -.93048E-06   -.83849E-04
  13  Prefactor     .93094        .38403E-01    .42399E-07   -.18780E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2435
  Prefactor  = 8.32667e-10
  norm       = 1.55986e-08
  Prefactor  = 4.92396
  Prefactor  = 2.36272
  Prefactor  = 1.9984e-09
  norm       = 0.278899
  Prefactor  = 4.41715
  norm       = 6.10623e-10
  norm       = 3.63976
  norm       = 0.0523089
  Normalizat = 1.00175
  Prefactor  = 0.930944
 **********
 **   18 **HESSE 
 **********

 FCN=   33266.29     FROM HESSE     STATUS=OK           155 CALLS     1068 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.244        .77987        .42493E-05   -1.5644    
   2  Prefactor     .83267E-09    4.6409        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .15599E-07    5.0702        .24249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9240        4.8745        .18125E-04   -1.5664    
   5  Prefactor     2.3627        3.3785        .26630E-04   -1.5677    
   6  Prefactor     .19984E-08    4.4394        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .27890        .52659        .17782E-04   -1.5697    
   8  Prefactor     4.4172        5.4170        .19164E-04   -1.5666    
   9  norm          .61062E-09    5.4631        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6398        3.2084        .21315E-04   -1.5670    
  11  norm          .52309E-01    5.1551        .20634E-03   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    1.0017        .13980        .46233E-03   -.92972    
  13  Prefactor     .93094        .42187E-01    .14608E-03   -.95068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29907e-09
Minuit parameter uncertainties:
  1  0.779867
  2  0.000123859
  3  0.000562847
  4  4.87448
  5  3.37847
  6  0.000189451
  7  0.526587
  8  5.41699
  9  0.000116088
  10  3.20845
  11  1.03857
  12  0.139847
  13  0.0421883
outfile=/lscratch/kocevski/19667113/ltcube_710726401_711331201_4FGL_J2244.2+4057_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/19667113/ft2_4FGL_J2244.2+4057_weekly_bin780.fits
.....................!
real 16.50
user 15.35
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19667113/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19667113/ft2_4FGL_J2244.2+4057_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19667113/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19667113/expmap_710726401_711331201_4FGL_J2244.2+4057_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/19667113/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
.....................!
real 60.99
user 56.37
sys 3.51

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 174 point sources and 3 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 J2244.2+4057 @ 341.061 40.9597

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19667113/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits scfile=/lscratch/kocevski/19667113/ft2_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19667113/cmap_710726401_711331201_4FGL_J2244.2+4057_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=341.061 yref=40.9597 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.39
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19667113/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits scfile=/lscratch/kocevski/19667113/ft2_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19667113/cmap_HighResolution_710726401_711331201_4FGL_J2244.2+4057_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=341.061 yref=40.9597 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.26
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19667113/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19667113/ft2_4FGL_J22Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.560e-08  5.628e-04  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.309e-01  4.219e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.002e+00  1.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 341.061 40.960
Photon Flux Upper Limit: 3.09843803228e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79148018268e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19666034/likelihoodResults_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33265.6946688
delta logL = 0.59313025797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33265.6853446
delta logL = 0.60245443663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21758E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .95416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   33265.69     FROM MIGRAD    STATUS=FAILED       102 CALLS      386 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21757E-01    .24893E-01    .22145E-04** at limit **
   2  alpha         5.0000        3.1527        .50000    ** at limit **
   3  Normalizat    .95432        .14321        .47233E-03   -.18678E-04
   4  Prefactor     .93798        .42338E-01    .14555E-03   -.18496E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   33265.69     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      511 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21757E-01    .24893E-01    .31854E-08   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        3.1527        .10199E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95432        .14321        .13872E-05   -.94577    
   4  Prefactor     .93798        .42338E-01    .56745E-07   -.94826    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   33265.69     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      548 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21757E-01    .23188E-01    .44290E-05** at limit **
   2  alpha         5.0000        3.0764        .50000    ** at limit **
   3  Normalizat    .95432        .14364        .18893E-04   -.19255E-04
   4  Prefactor     .93798        .42388E-01    .58222E-05   -.18745E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.021757
  alpha      = 5
  Normalizat = 0.954316
  Prefactor  = 0.93798
 **********
 **   18 **HESSE 
 **********

 FCN=   33265.69     FROM HESSE     STATUS=OK            31 CALLS      579 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21757E-01    .22934E-01    .88580E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        1.1309        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95432        .14372        .37787E-05   -.94577    
   4  Prefactor     .93798        .42402E-01    .11644E-05   -.94826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34679e-12
Minuit parameter uncertainties:
  1  0.0229337
  2  1.50604e-05
  3  0.143779
  4  0.0424032
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) = 33265.6853436
delta logL = 0.602455432861

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  2.176e-02  2.293e-02  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  5.000e+00  1.506e-05  0.000e+00  5.000e+00 ( 1.000e+00)
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.380e-01  4.240e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  9.543e-01  1.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 341.061 40.960
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.15e-08 +/- 4.35e-08
Energy Flux (Free Index): 5.69e-06 +/- 5.98e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/19666034/cmap_HighResolution_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-05', comment='SUCCESS', energy_flux2='5.69e-06', dlogl='6.02e-01', photon_flux2='4.15e-08', job_status='DONE', time_completed='2023-07-18 02:21:28.811902', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='3.10e-08', energy_flux_error2='5.98e-06', EG='1.00', time_epoch_completed='1689672088.81', return_code='0', job_id='19666034', GAL2='0.94', EG2='0.95', return_code2='0', photon_flux_error2='4.35e-08', ts2='1.31', photon_index='2.03' WHERE bin_id='780' AND source_name='4FGL J2244.2+4057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:21:29 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.560e-08  5.628e-04  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.309e-01  4.219e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.002e+00  1.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 341.061 40.960
Photon Flux Upper Limit: 3.09843803228e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79148018268e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19666121/likelihoodResults_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33265.6946688
delta logL = 0.59313025797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33265.6853446
delta logL = 0.60245443663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21758E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .95416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   33265.69     FROM MIGRAD    STATUS=FAILED       102 CALLS      386 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21757E-01    .24893E-01    .22145E-04** at limit **
   2  alpha         5.0000        3.1527        .50000    ** at limit **
   3  Normalizat    .95432        .14321        .47233E-03   -.18678E-04
   4  Prefactor     .93798        .42338E-01    .14555E-03   -.18496E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   33265.69     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      511 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21757E-01    .24893E-01    .31854E-08   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        3.1527        .10199E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95432        .14321        .13872E-05   -.94577    
   4  Prefactor     .93798        .42338E-01    .56745E-07   -.94826    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   33265.69     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      548 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21757E-01    .23188E-01    .44290E-05** at limit **
   2  alpha         5.0000        3.0764        .50000    ** at limit **
   3  Normalizat    .95432        .14364        .18893E-04   -.19255E-04
   4  Prefactor     .93798        .42388E-01    .58222E-05   -.18745E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.021757
  alpha      = 5
  Normalizat = 0.954316
  Prefactor  = 0.93798
 **********
 **   18 **HESSE 
 **********

 FCN=   33265.69     FROM HESSE     STATUS=OK            31 CALLS      579 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21757E-01    .22934E-01    .88580E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        1.1309        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95432        .14372        .37787E-05   -.94577    
   4  Prefactor     .93798        .42402E-01    .11644E-05   -.94826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34679e-12
Minuit parameter uncertainties:
  1  0.0229337
  2  1.50604e-05
  3  0.143779
  4  0.0424032
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) = 33265.6853436
delta logL = 0.602455432861

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  2.176e-02  2.293e-02  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  5.000e+00  1.506e-05  0.000e+00  5.000e+00 ( 1.000e+00)
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.380e-01  4.240e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  9.543e-01  1.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 341.061 40.960
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.15e-08 +/- 4.35e-08
Energy Flux (Free Index): 5.69e-06 +/- 5.98e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/19666121/cmap_HighResolution_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-05', comment='SUCCESS', energy_flux2='5.69e-06', dlogl='6.02e-01', photon_flux2='4.15e-08', job_status='DONE', time_completed='2023-07-18 02:21:55.480096', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='3.10e-08', energy_flux_error2='5.98e-06', EG='1.00', time_epoch_completed='1689672115.48', return_code='0', job_id='19666121', GAL2='0.94', EG2='0.95', return_code2='0', photon_flux_error2='4.35e-08', ts2='1.31', photon_index='2.03' WHERE bin_id='780' AND source_name='4FGL J2244.2+4057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:21:56 PDT 2023

44.2+4057_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19667113/Model_4FGL_J2244.2+4057_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 EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/19667113/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits.....................!
real 131.24
user 128.47
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19667113/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits', '/lscratch/kocevski/19667113/ft2_4FGL_J2244.2+4057_weekly_bin780.fits', expMap='/lscratch/kocevski/19667113/expmap_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits', expCube='/lscratch/kocevski/19667113/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19667113/Model_4FGL_J2244.2+4057_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2244.2+4057'

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  8.060e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19667113/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19667113/ft2_4FGL_J2244.2+4057_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19667113/expmap_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19667113/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19667113/Model_4FGL_J2244.2+4057_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) = 33267.0081309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.244       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12378E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .46643E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.9216       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.3671       1.0000          .0000       .10000E+07
     6 'Prefactor '    .29525E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .27832       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.4140       1.0000          .0000       .10000E+07
     9 'norm      '    .71271E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.5925       1.0000          .0000       .10000E+07
    11 'norm      '    .62536E-01   1.0000          .0000       .10000E+07
    12 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .93092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   33266.29     FROM MIGRAD    STATUS=CONVERGED    286 CALLS      913 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.244        .77920        .13935E-08   -.97466E-03
   2  Prefactor     .83267E-09    4.5047        .12391E-06** at limit **
   3  norm          .15599E-07    .51035       -.31872E-07** at limit **
   4  Prefactor     4.9240        4.8590        .14484E-07    .26313E-02
   5  Prefactor     2.3627        3.4467        .73380E-07   -.20014E-03
   6  Prefactor     .19984E-08    4.1106       -.19420E-06** at limit **
   7  norm          .27890        .51545        .97785E-07   -.13056E-01
   8  Prefactor     4.4172        5.4332        .25519E-07    .50832E-03
   9  norm          .61062E-09    5.1508        .15554E-06** at limit **
  10  norm          3.6398        3.2065       -.34929E-09    .58688E-03
  11  norm          .52309E-01    .34997       -.45315E-08** at limit **
  12  Normalizat    1.0017        .12860       -.93048E-06   -.83849E-04
  13  Prefactor     .93094        .38403E-01    .42399E-07   -.18780E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2435
  Prefactor  = 8.32667e-10
  norm       = 1.55986e-08
  Prefactor  = 4.92396
  Prefactor  = 2.36272
  Prefactor  = 1.9984e-09
  norm       = 0.278899
  Prefactor  = 4.41715
  norm       = 6.10623e-10
  norm       = 3.63976
  norm       = 0.0523089
  Normalizat = 1.00175
  Prefactor  = 0.930944
 **********
 **   18 **HESSE 
 **********

 FCN=   33266.29     FROM HESSE     STATUS=OK           155 CALLS     1068 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.244        .77987        .42493E-05   -1.5644    
   2  Prefactor     .83267E-09    4.6409        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .15599E-07    5.0702        .24249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9240        4.8745        .18125E-04   -1.5664    
   5  Prefactor     2.3627        3.3785        .26630E-04   -1.5677    
   6  Prefactor     .19984E-08    4.4394        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .27890        .52659        .17782E-04   -1.5697    
   8  Prefactor     4.4172        5.4170        .19164E-04   -1.5666    
   9  norm          .61062E-09    5.4631        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6398        3.2084        .21315E-04   -1.5670    
  11  norm          .52309E-01    5.1551        .20634E-03   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    1.0017        .13980        .46233E-03   -.92972    
  13  Prefactor     .93094        .42187E-01    .14608E-03   -.95068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29907e-09
Minuit parameter uncertainties:
  1  0.779867
  2  0.000123859
  3  0.000562847
  4  4.87448
  5  3.37847
  6  0.000189451
  7  0.526587
  8  5.41699
  9  0.000116088
  10  3.20845
  11  1.03857
  12  0.139847
  13  0.0421883
number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2244.2+4057_weekly_bin780
RA = 341.061, Dec = 40.9597
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='19668053', job_status='RUN', time_executed='2023-07-18 02:13:09.686720', time_epoch_executed='1689671589.69' WHERE source_name='4FGL J2244.2+4057' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19668053

Creating custom pfile directory:
/lscratch/kocevski/19668053/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/19668053/ft1_4FGL_J2244.2+4057_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/19668053/ft2_4FGL_J2244.2+4057_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19668053/ft1_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19668053/ft1_filteredMKT_4FGL_J2244.2+4057_weekly_bin780.fits ra=341.061 dec=40.9597 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.40
user 3.47
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19668053/ft2_4FGL_J2244.2+4057_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19668053/ft2_4FGL_J2244.2+4057_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/19668053/ft1_filteredMKT_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19668053/ft1_filtered_4FGL_J2244.2+4057_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.00
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 3291

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19668053/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19668053/ft2_4FGL_J2244.2+4057_weekly_bin780.fits sctable="SC_DATA"Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.560e-08  5.628e-04  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.309e-01  4.219e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.002e+00  1.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 341.061 40.960
Photon Flux Upper Limit: 3.09843803228e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79148018268e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19667113/likelihoodResults_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33265.6946688
delta logL = 0.59313025797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33265.6853446
delta logL = 0.60245443663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21758E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .95416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   33265.69     FROM MIGRAD    STATUS=FAILED       102 CALLS      386 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21757E-01    .24893E-01    .22145E-04** at limit **
   2  alpha         5.0000        3.1527        .50000    ** at limit **
   3  Normalizat    .95432        .14321        .47233E-03   -.18678E-04
   4  Prefactor     .93798        .42338E-01    .14555E-03   -.18496E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   33265.69     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      511 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21757E-01    .24893E-01    .31854E-08   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        3.1527        .10199E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95432        .14321        .13872E-05   -.94577    
   4  Prefactor     .93798        .42338E-01    .56745E-07   -.94826    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   33265.69     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      548 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21757E-01    .23188E-01    .44290E-05** at limit **
   2  alpha         5.0000        3.0764        .50000    ** at limit **
   3  Normalizat    .95432        .14364        .18893E-04   -.19255E-04
   4  Prefactor     .93798        .42388E-01    .58222E-05   -.18745E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.021757
  alpha      = 5
  Normalizat = 0.954316
  Prefactor  = 0.93798
 outfile=/lscratch/kocevski/19668053/ltcube_710726401_711331201_4FGL_J2244.2+4057_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/19668053/ft2_4FGL_J2244.2+4057_weekly_bin780.fits
.....................!
real 16.14
user 15.16
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19668053/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19668053/ft2_4FGL_J2244.2+4057_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19668053/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19668053/expmap_710726401_711331201_4FGL_J2244.2+4057_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/19668053/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
.....................!
real 60.10
user 55.51
sys 3.63

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 174 point sources and 3 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 J2244.2+4057 @ 341.061 40.9597

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19668053/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits scfile=/lscratch/kocevski/19668053/ft2_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19668053/cmap_710726401_711331201_4FGL_J2244.2+4057_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=341.061 yref=40.9597 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.06
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19668053/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits scfile=/lscratch/kocevski/19668053/ft2_4FGL_J2244.2+4057_weekly_bin780.fits outfile=/lscratch/kocevski/19668053/cmap_HighResolution_710726401_711331201_4FGL_J2244.2+4057_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=341.061 yref=40.9597 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.02
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19668053/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19668053/ft2_4FGL_J2 **********
 **   18 **HESSE 
 **********

 FCN=   33265.69     FROM HESSE     STATUS=OK            31 CALLS      579 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21757E-01    .22934E-01    .88580E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        1.1309        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95432        .14372        .37787E-05   -.94577    
   4  Prefactor     .93798        .42402E-01    .11644E-05   -.94826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34679e-12
Minuit parameter uncertainties:
  1  0.0229337
  2  1.50604e-05
  3  0.143779
  4  0.0424032
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) = 33265.6853436
delta logL = 0.602455432861

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  2.176e-02  2.293e-02  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  5.000e+00  1.506e-05  0.000e+00  5.000e+00 ( 1.000e+00)
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.380e-01  4.240e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  9.543e-01  1.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 341.061 40.960
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.15e-08 +/- 4.35e-08
Energy Flux (Free Index): 5.69e-06 +/- 5.98e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/19667113/cmap_HighResolution_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-05', comment='SUCCESS', energy_flux2='5.69e-06', dlogl='6.02e-01', photon_flux2='4.15e-08', job_status='DONE', time_completed='2023-07-18 02:27:33.025999', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='3.10e-08', energy_flux_error2='5.98e-06', EG='1.00', time_epoch_completed='1689672453.03', return_code='0', job_id='19667113', GAL2='0.94', EG2='0.95', return_code2='0', photon_flux_error2='4.35e-08', ts2='1.31', photon_index='2.03' WHERE bin_id='780' AND source_name='4FGL J2244.2+4057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:27:33 PDT 2023

244.2+4057_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19668053/Model_4FGL_J2244.2+4057_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 EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/19668053/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits.....................!
real 131.39
user 129.22
sys 0.68

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19668053/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits', '/lscratch/kocevski/19668053/ft2_4FGL_J2244.2+4057_weekly_bin780.fits', expMap='/lscratch/kocevski/19668053/expmap_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits', expCube='/lscratch/kocevski/19668053/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19668053/Model_4FGL_J2244.2+4057_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2244.2+4057'

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  8.060e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19668053/ft1_filtered_4FGL_J2244.2+4057_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19668053/ft2_4FGL_J2244.2+4057_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19668053/expmap_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19668053/ltcube_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19668053/Model_4FGL_J2244.2+4057_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) = 33267.0081309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.244       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12378E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .46643E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.9216       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.3671       1.0000          .0000       .10000E+07
     6 'Prefactor '    .29525E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .27832       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.4140       1.0000          .0000       .10000E+07
     9 'norm      '    .71271E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.5925       1.0000          .0000       .10000E+07
    11 'norm      '    .62536E-01   1.0000          .0000       .10000E+07
    12 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .93092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   33266.29     FROM MIGRAD    STATUS=CONVERGED    286 CALLS      913 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.244        .77920        .13935E-08   -.97466E-03
   2  Prefactor     .83267E-09    4.5047        .12391E-06** at limit **
   3  norm          .15599E-07    .51035       -.31872E-07** at limit **
   4  Prefactor     4.9240        4.8590        .14484E-07    .26313E-02
   5  Prefactor     2.3627        3.4467        .73380E-07   -.20014E-03
   6  Prefactor     .19984E-08    4.1106       -.19420E-06** at limit **
   7  norm          .27890        .51545        .97785E-07   -.13056E-01
   8  Prefactor     4.4172        5.4332        .25519E-07    .50832E-03
   9  norm          .61062E-09    5.1508        .15554E-06** at limit **
  10  norm          3.6398        3.2065       -.34929E-09    .58688E-03
  11  norm          .52309E-01    .34997       -.45315E-08** at limit **
  12  Normalizat    1.0017        .12860       -.93048E-06   -.83849E-04
  13  Prefactor     .93094        .38403E-01    .42399E-07   -.18780E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2435
  Prefactor  = 8.32667e-10
  norm       = 1.55986e-08
  Prefactor  = 4.92396
  Prefactor  = 2.36272
  Prefactor  = 1.9984e-09
  norm       = 0.278899
  Prefactor  = 4.41715
  norm       = 6.10623e-10
  norm       = 3.63976
  norm       = 0.0523089
  Normalizat = 1.00175
  Prefactor  = 0.930944
 **********
 **   18 **HESSE 
 **********

 FCN=   33266.29     FROM HESSE     STATUS=OK           155 CALLS     1068 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.244        .77987        .42493E-05   -1.5644    
   2  Prefactor     .83267E-09    4.6409        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .15599E-07    5.0702        .24249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9240        4.8745        .18125E-04   -1.5664    
   5  Prefactor     2.3627        3.3785        .26630E-04   -1.5677    
   6  Prefactor     .19984E-08    4.4394        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .27890        .52659        .17782E-04   -1.5697    
   8  Prefactor     4.4172        5.4170        .19164E-04   -1.5666    
   9  norm          .61062E-09    5.4631        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6398        3.2084        .21315E-04   -1.5670    
  11  norm          .52309E-01    5.1551        .20634E-03   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    1.0017        .13980        .46233E-03   -.92972    
  13  Prefactor     .93094        .42187E-01    .14608E-03   -.95068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29907e-09
Minuit parameter uncertainties:
  1  0.779867
  2  0.000123859
  3  0.000562847
  4  4.87448
  5  3.37847
  6  0.000189451
  7  0.526587
  8  5.41699
  9  0.000116088
  10  3.20845
  11  1.03857
  12  0.139847
  13  0.0421883
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.560e-08  5.628e-04  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.309e-01  4.219e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.002e+00  1.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 341.061 40.960
Photon Flux Upper Limit: 3.09843803228e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79148018268e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19668053/likelihoodResults_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33265.6946688
delta logL = 0.59313025797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33265.6853446
delta logL = 0.60245443663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21758E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .95416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   33265.69     FROM MIGRAD    STATUS=FAILED       102 CALLS      386 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21757E-01    .24893E-01    .22145E-04** at limit **
   2  alpha         5.0000        3.1527        .50000    ** at limit **
   3  Normalizat    .95432        .14321        .47233E-03   -.18678E-04
   4  Prefactor     .93798        .42338E-01    .14555E-03   -.18496E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   33265.69     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      511 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21757E-01    .24893E-01    .31854E-08   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        3.1527        .10199E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95432        .14321        .13872E-05   -.94577    
   4  Prefactor     .93798        .42338E-01    .56745E-07   -.94826    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   33265.69     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      548 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21757E-01    .23188E-01    .44290E-05** at limit **
   2  alpha         5.0000        3.0764        .50000    ** at limit **
   3  Normalizat    .95432        .14364        .18893E-04   -.19255E-04
   4  Prefactor     .93798        .42388E-01    .58222E-05   -.18745E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.021757
  alpha      = 5
  Normalizat = 0.954316
  Prefactor  = 0.93798
 **********
 **   18 **HESSE 
 **********

 FCN=   33265.69     FROM HESSE     STATUS=OK            31 CALLS      579 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21757E-01    .22934E-01    .88580E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        1.1309        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95432        .14372        .37787E-05   -.94577    
   4  Prefactor     .93798        .42402E-01    .11644E-05   -.94826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34679e-12
Minuit parameter uncertainties:
  1  0.0229337
  2  1.50604e-05
  3  0.143779
  4  0.0424032
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) = 33265.6853436
delta logL = 0.602455432861

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  2.176e-02  2.293e-02  0.000e+00  1.000e+06 ( 1.000e-12)
388        alpha:  5.000e+00  1.506e-05  0.000e+00  5.000e+00 ( 1.000e+00)
389         beta:  9.648e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.380e-01  4.240e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  9.543e-01  1.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 341.061 40.960
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.15e-08 +/- 4.35e-08
Energy Flux (Free Index): 5.69e-06 +/- 5.98e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/19668053/cmap_HighResolution_710726401_711331201_4FGL_J2244.2+4057_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-05', comment='SUCCESS', energy_flux2='5.69e-06', dlogl='6.02e-01', photon_flux2='4.15e-08', job_status='DONE', time_completed='2023-07-18 02:34:59.412742', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='3.10e-08', energy_flux_error2='5.98e-06', EG='1.00', time_epoch_completed='1689672899.41', return_code='0', job_id='19668053', GAL2='0.94', EG2='0.95', return_code2='0', photon_flux_error2='4.35e-08', ts2='1.31', photon_index='2.03' WHERE bin_id='780' AND source_name='4FGL J2244.2+4057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:35:00 PDT 2023

