/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
/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).


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

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

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

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


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

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


Performing analysis on: 4FGL_J0253.9+5103_weekly_bin776
RA = 43.4933, Dec = 51.0633
tmin = 708307201, tmax = 708912001
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='18516324', job_status='RUN', time_executed='2023-06-20 00:07:00.866052', time_epoch_executed='1687244820.87' WHERE source_name='4FGL J0253.9+5103' and cadence='weekly' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18516324

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18516324/ft1_4FGL_J0253.9+5103_weekly_bin776.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18516324/ft1_4FGL_J0253.9+5103_weekly_bin776.fits outfile=/lscratch/kocevski/18516324/ft1_filteredMKT_4FGL_J0253.9+5103_weekly_bin776.fits ra=43.4933 dec=51.0633 rad=12.0 tmin=708307201.0 tmax=708912001.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.03
user 3.21
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.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/18516324/ft1_filteredMKT_4FGL_J0253.9+5103_weekly_bin776.fits evtable="EVENTS" outfile="/lscratch/kocevski/18516324/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.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.50
user 0.25
sys 0.15

Number of photons that the gtmktime cut: 6269

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18516324/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18516324/ltcube_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.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/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.fits
.....................!
real 34.45
user 33.79
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18516324/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18516324/ltcube_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits outfile=/lscratch/kocevski/18516324/expmap_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.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/18516324/ltcube_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits
.....................!
real 65.25
user 61.34
sys 3.50

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 180 point sources and 4 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 J0253.9+5103 @ 43.4933 51.0633

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18516324/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits scfile=/lscratch/kocevski/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.fits outfile=/lscratch/kocevski/18516324/cmap_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.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=43.4933 yref=51.0633 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.49
user 0.25
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18516324/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits scfile=/lscratch/kocevski/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.fits outfile=/lscratch/kocevski/18516324/cmap_HighResolution_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.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=43.4933 yref=51.0633 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 libraryDone.


Performing analysis on: 4FGL_J0253.9+5103_weekly_bin776
RA = 43.4933, Dec = 51.0633
tmin = 708307201, tmax = 708912001
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='18516323', job_status='RUN', time_executed='2023-06-20 00:07:00.579929', time_epoch_executed='1687244820.58' WHERE source_name='4FGL J0253.9+5103' and cadence='weekly' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18516323

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18516323/ft1_4FGL_J0253.9+5103_weekly_bin776.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18516323/ft1_4FGL_J0253.9+5103_weekly_bin776.fits outfile=/lscratch/kocevski/18516323/ft1_filteredMKT_4FGL_J0253.9+5103_weekly_bin776.fits ra=43.4933 dec=51.0633 rad=12.0 tmin=708307201.0 tmax=708912001.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.05
user 3.40
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.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/18516323/ft1_filteredMKT_4FGL_J0253.9+5103_weekly_bin776.fits evtable="EVENTS" outfile="/lscratch/kocevski/18516323/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.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.10
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 6269

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18516323/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18516323/ltcube_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.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/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.fits
.....................!
real 34.17
user 33.54
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18516323/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18516323/ltcube_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits outfile=/lscratch/kocevski/18516323/expmap_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.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/18516323/ltcube_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits
.....................!
real 65.33
user 61.55
sys 3.35

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 180 point sources and 4 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 J0253.9+5103 @ 43.4933 51.0633

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18516323/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits scfile=/lscratch/kocevski/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.fits outfile=/lscratch/kocevski/18516323/cmap_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.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=43.4933 yref=51.0633 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.46
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18516323/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits scfile=/lscratch/kocevski/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.fits outfile=/lscratch/kocevski/18516323/cmap_HighResolution_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.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=43.4933 yref=51.0633 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18516323/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18516323/Model_4FGL_J0253.9+5103_weekly_bin776.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/18516323/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits.....................!
real 370.45
user 367.58
sys 0.80

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18516323/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits', '/lscratch/kocevski/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.fits', expMap='/lscratch/kocevski/18516323/expmap_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits', expCube='/lscratch/kocevski/18516323/ltcube_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18516323/Model_4FGL_J0253.9+5103_weekly_bin776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0253.9+5103'

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  1.069e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.468e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18516323/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits
Spacecraft file(s): /lscratch/kocevski/18516323/ft2_4FGL_J0253.9+5103_weekly_bin776.fits
Exposure map: /lscratch/kocevski/18516323/expmap_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits
Exposure cube: /lscratch/kocevski/18516323/ltcube_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18516323/Model_4FGL_J0253.9+5103_weekly_bin776.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) = 59979.8038296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58844       1.0000          .0000       .10000E+07
     2 'norm      '    4.9998       1.0000          .0000       .10000E+07
     3 'norm      '    2.8369       1.0000          .0000       .10000E+07
     4 'norm      '    10.741       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24877E-05   1.0000          .0000       .10000E+07
     6 'norm      '    5.4059       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.301       1.0000          .0000       .10000E+07
     8 'norm      '    3.3716       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12180E-04   1.0000          .0000       .10000E+07
    10 'norm      '    25.485       1.0000          .0000       .10000E+07
    11 'Prefactor '    28.894       1.0000          .0000       .10000E+07
    12 'Prefactor '    .35869       1.0000          .0000       .10000E+07
    13 'norm      '    14.673       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.3506       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .96509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   59979.80     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1055 TOTAL
                     EDM=   .10E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58843        .18754       -.99417E-09    .13469E-03
   2  norm          4.9778        2.9214       -.86540E-07    .59770E-03
   3  norm          2.8366        .33660       -.42123E-08    .72298E-03
   4  norm          10.684        8.3511        .67794E-07   -.21592E-03
   5  Prefactor      .0000        2.7946       -.30693E-07** at limit **
   6  norm          5.3892        2.9531        .91824E-08   -.28713E-03
   7  Prefactor     10.305        7.4954       -.13485E-07    .78727E-04
   8  norm          3.3716        .55979        .12837E-08   -.28636E-03
   9  Prefactor      .0000        8.7168        .12993E-06** at limit **
  10  norm          24.701        47.781        .16325E-06   -.54413E-04
  11  Prefactor     28.865        21.646        .25069E-07   -.49170E-04
  12  Prefactor     .33988        4.3267        .30246E-06   -.15392E-03
  13  norm          14.688        8.0205       -.58787E-08   -.19224E-04
  14  Normalizat    1.3510        .15451       -.15293E-05   -.11138E-04
  15  Prefactor     .96512        .22668E-01    .41571E-06   -.99539E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.588432
  norm       = 4.97784
  norm       = 2.83658
  norm       = 10.684
  Prefactor  = 0
  norm       = 5.38924
  Prefactor  = 10.305
  norm       = 3.37159
  Prefactor  = 0
  norm       = 24.701
  Prefactor  = 28.8652
  Prefactor  = 0.339883
  norm       = 14.6878
  Normalizat = 1.35097
  Prefactor  = 0.965121
 (v3.41).

This is gtbin version HEAD
real 0.60
user 0.25
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18516324/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18516324/Model_4FGL_J0253.9+5103_weekly_bin776.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/18516324/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits.....................!
real 369.48
user 366.55
sys 0.82

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18516324/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits', '/lscratch/kocevski/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.fits', expMap='/lscratch/kocevski/18516324/expmap_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits', expCube='/lscratch/kocevski/18516324/ltcube_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18516324/Model_4FGL_J0253.9+5103_weekly_bin776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0253.9+5103'

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  1.069e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.468e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18516324/ft1_filtered_4FGL_J0253.9+5103_weekly_bin776.fits
Spacecraft file(s): /lscratch/kocevski/18516324/ft2_4FGL_J0253.9+5103_weekly_bin776.fits
Exposure map: /lscratch/kocevski/18516324/expmap_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits
Exposure cube: /lscratch/kocevski/18516324/ltcube_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18516324/Model_4FGL_J0253.9+5103_weekly_bin776.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) = 59979.8038296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58844       1.0000          .0000       .10000E+07
     2 'norm      '    4.9998       1.0000          .0000       .10000E+07
     3 'norm      '    2.8369       1.0000          .0000       .10000E+07
     4 'norm      '    10.741       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24877E-05   1.0000          .0000       .10000E+07
     6 'norm      '    5.4059       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.301       1.0000          .0000       .10000E+07
     8 'norm      '    3.3716       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12180E-04   1.0000          .0000       .10000E+07
    10 'norm      '    25.485       1.0000          .0000       .10000E+07
    11 'Prefactor '    28.894       1.0000          .0000       .10000E+07
    12 'Prefactor '    .35869       1.0000          .0000       .10000E+07
    13 'norm      '    14.673       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.3506       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .96509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   59979.80     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1055 TOTAL
                     EDM=   .10E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58843        .18754       -.99417E-09    .13469E-03
   2  norm          4.9778        2.9214       -.86540E-07    .59770E-03
   3  norm          2.8366        .33660       -.42123E-08    .72298E-03
   4  norm          10.684        8.3511        .67794E-07   -.21592E-03
   5  Prefactor      .0000        2.7946       -.30693E-07** at limit **
   6  norm          5.3892        2.9531        .91824E-08   -.28713E-03
   7  Prefactor     10.305        7.4954       -.13485E-07    .78727E-04
   8  norm          3.3716        .55979        .12837E-08   -.28636E-03
   9  Prefactor      .0000        8.7168        .12993E-06** at limit **
  10  norm          24.701        47.781        .16325E-06   -.54413E-04
  11  Prefactor     28.865        21.646        .25069E-07   -.49170E-04
  12  Prefactor     .33988        4.3267        .30246E-06   -.15392E-03
  13  norm          14.688        8.0205       -.58787E-08   -.19224E-04
  14  Normalizat    1.3510        .15451       -.15293E-05   -.11138E-04
  15  Prefactor     .96512        .22668E-01    .41571E-06   -.99539E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.588432
  norm       = 4.97784
  norm       = 2.83658
  norm       = 10.684
  Prefactor  = 0
  norm       = 5.38924
  Prefactor  = 10.305
  norm       = 3.37159
  Prefactor  = 0
  norm       = 24.701
  Prefactor  = 28.8652
  Prefactor  = 0.339883
  norm       = 14.6878
  Normalizat = 1.35097
  Prefactor  = 0.965121
 **********
 **   18 **HESSE 
 **********

 FCN=   59979.80     FROM HESSE     STATUS=OK           232 CALLS     1287 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58843        .18919        .70269E-03   -1.5693    
   2  norm          4.9778        2.9235        .44950E-03   -1.5663    
   3  norm          2.8366        .33666        .60348E-03   -1.5674    
   4  norm          10.684        8.5535        .30545E-03   -1.5643    
   5  Prefactor      .0000        .41262        .56016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3892        2.9812        .43196E-03   -1.5662    
   7  Prefactor     10.305        7.4753        .31195E-03   -1.5644    
   8  norm          3.3716        .55887        .55084E-03   -1.5671    
   9  Prefactor      .0000        8.8251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.701        48.398        .19813E-03   -1.5609    
  11  Prefactor     28.865        21.615        .18607E-03   -1.5601    
  12  Prefactor     .33988        1.0098        .94438E-02   -1.5696    
  13  norm          14.688        8.0395        .26122E-03   -1.5631    
  14  Normalizat    1.3510        .15271        .16882       -.82057    
  15  Prefactor     .96512        .21888E-01    .28800E-01   -.93901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38115e-08
Minuit parameter uncertainties:
  1  0.189187
  2  2.9235
  3  0.336659
  4  8.55353
  5  1.80812e-07
  6  2.98117
  7  7.47535
  8  0.558865
  9  8.35621e-06
  10  48.3983
  11  21.6147
  12  1.00983
  13  8.03954
  14  0.152762
  15  0.0218885
 **********
 **   18 **HESSE 
 **********

 FCN=   59979.80     FROM HESSE     STATUS=OK           232 CALLS     1287 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58843        .18919        .70269E-03   -1.5693    
   2  norm          4.9778        2.9235        .44950E-03   -1.5663    
   3  norm          2.8366        .33666        .60348E-03   -1.5674    
   4  norm          10.684        8.5535        .30545E-03   -1.5643    
   5  Prefactor      .0000        .41262        .56016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3892        2.9812        .43196E-03   -1.5662    
   7  Prefactor     10.305        7.4753        .31195E-03   -1.5644    
   8  norm          3.3716        .55887        .55084E-03   -1.5671    
   9  Prefactor      .0000        8.8251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.701        48.398        .19813E-03   -1.5609    
  11  Prefactor     28.865        21.615        .18607E-03   -1.5601    
  12  Prefactor     .33988        1.0098        .94438E-02   -1.5696    
  13  norm          14.688        8.0395        .26122E-03   -1.5631    
  14  Normalizat    1.3510        .15271        .16882       -.82057    
  15  Prefactor     .96512        .21888E-01    .28800E-01   -.93901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38115e-08
Minuit parameter uncertainties:
  1  0.189187
  2  2.9235
  3  0.336659
  4  8.55353
  5  1.80812e-07
  6  2.98117
  7  7.47535
  8  0.558865
  9  8.35621e-06
  10  48.3983
  11  21.6147
  12  1.00983
  13  8.03954
  14  0.152762
  15  0.0218885
Done.

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

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  1.808e-07  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.468e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.651e-01  2.189e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.351e+00  1.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 43.493 51.063
Photon Flux Upper Limit: 6.41369613851e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00497828677062 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18516323/likelihoodResults_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.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): 102
logL (Free Index) = 59978.082495
delta logL = 1.71505364017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 59977.9609914
delta logL = 1.83655724498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59083E-02   1.0000          .0000       .10000E+07
     2 'Index     '    5.7706       1.0000          .0000       10.000    
     3 'Normalizat'    1.2785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96829       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   59979.80     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      279 TOTAL
                     EDM=   .38E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .99525        .42118E-03** at limit **
   2  Index         2.1325        .82955        .12654E-03     .0000    
   3  Normalizat    1.3510        1.1100       -.55188E-05    .16499E-04
   4  Prefactor     .96512        1.3075        .19566E-05    .26895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.13252
  Normalizat = 1.35097
  Prefactor  = 0.965121
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   59979.80     FROM HESSE     STATUS=FAILED         9 CALLS      288 TOTAL
                     EDM=   .38E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .99525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49783        1.6941        .12654E-03   -.61077    
   3  Normalizat    1.3510        1.1100       -.55188E-05   -.82057    
   4  Prefactor     .96512        1.3075        .19566E-05   -.93901    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.79696e-12
Minuit parameter uncertainties:
  1  2.0195e-06
  2  0.835325
  3  1.13069
  4  1.35449
Done.

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

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  1.808e-07  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.468e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.651e-01  2.189e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.351e+00  1.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 43.493 51.063
Photon Flux Upper Limit: 6.41369613851e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00497828677062 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18516324/likelihoodResults_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.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): 102
logL (Free Index) = 59978.082495
delta logL = 1.71505364017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 59977.9609914
delta logL = 1.83655724498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59083E-02   1.0000          .0000       .10000E+07
     2 'Index     '    5.7706       1.0000          .0000       10.000    
     3 'Normalizat'    1.2785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96829       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   59979.80     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      279 TOTAL
                     EDM=   .38E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .99525        .42118E-03** at limit **
   2  Index         2.1325        .82955        .12654E-03     .0000    
   3  Normalizat    1.3510        1.1100       -.55188E-05    .16499E-04
   4  Prefactor     .96512        1.3075        .19566E-05    .26895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.13252
  Normalizat = 1.35097
  Prefactor  = 0.965121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 59979.7975486
delta logL = 0.0

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  2.020e-06  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.133e+00  8.353e-01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.651e-01  1.354e+00  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.351e+00  1.131e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 43.493 51.063

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/18516323/cmap_HighResolution_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2023-06-20 00:27:31.994482', job_id='18516323', GAL2='0.97', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1687246051.99', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='776' AND source_name='4FGL J0253.9+5103' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 20 00:27:32 PDT 2023

 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   59979.80     FROM HESSE     STATUS=FAILED         9 CALLS      288 TOTAL
                     EDM=   .38E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .99525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49783        1.6941        .12654E-03   -.61077    
   3  Normalizat    1.3510        1.1100       -.55188E-05   -.82057    
   4  Prefactor     .96512        1.3075        .19566E-05   -.93901    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.79696e-12
Minuit parameter uncertainties:
  1  2.0195e-06
  2  0.835325
  3  1.13069
  4  1.35449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 59979.7975486
delta logL = 0.0

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  2.020e-06  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.133e+00  8.353e-01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.651e-01  1.354e+00  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.351e+00  1.131e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 43.493 51.063

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/18516324/cmap_HighResolution_708307201_708912001_4FGL_J0253.9+5103_weekly_bin776.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2023-06-20 00:27:36.466198', job_id='18516324', GAL2='0.97', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1687246056.47', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='776' AND source_name='4FGL J0253.9+5103' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 20 00:27:36 PDT 2023

