/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 = 17362
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 17362
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0238.2+1531_weekly_bin773
RA = 39.5617, Dec = 15.5175
tmin = 706492801, tmax = 707097601
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='17971479', job_status='RUN', time_executed='2023-05-30 00:06:28.371097', time_epoch_executed='1685430388.37' WHERE source_name='4FGL J0238.2+1531' and cadence='weekly' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17971479

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17971479/ft1_4FGL_J0238.2+1531_weekly_bin773.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17971479/ft1_4FGL_J0238.2+1531_weekly_bin773.fits outfile=/lscratch/kocevski/17971479/ft1_filteredMKT_4FGL_J0238.2+1531_weekly_bin773.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=706492801.0 tmax=707097601.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.73
user 4.27
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.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/17971479/ft1_filteredMKT_4FGL_J0238.2+1531_weekly_bin773.fits evtable="EVENTS" outfile="/lscratch/kocevski/17971479/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2241

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17971479/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17971479/ltcube_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.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/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.fits
.....................!
real 31.73
user 31.05
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17971479/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17971479/ltcube_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits outfile=/lscratch/kocevski/17971479/expmap_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.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/17971479/ltcube_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits
.....................!
real 66.12
user 61.69
sys 3.74

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

Setting source of interest to:
4FGL J0238.2+1531 @ 39.5617 15.5175

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17971479/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits scfile=/lscratch/kocevski/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.fits outfile=/lscratch/kocevski/17971479/cmap_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.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=39.5617 yref=15.5175 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.48
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17971479/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits scfile=/lscratch/kocevski/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.fits outfile=/lscratch/kocevski/17971479/cmap_HighResolution_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.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=39.5617 yref=15.5175 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.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17971479/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17971479/Model_4FGL_J0238.2+1531_weekly_bin773.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcDone.


Performing analysis on: 4FGL_J0238.2+1531_weekly_bin773
RA = 39.5617, Dec = 15.5175
tmin = 706492801, tmax = 707097601
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='17971480', job_status='RUN', time_executed='2023-05-30 00:06:28.397758', time_epoch_executed='1685430388.4' WHERE source_name='4FGL J0238.2+1531' and cadence='weekly' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17971480

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17971480/ft1_4FGL_J0238.2+1531_weekly_bin773.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17971480/ft1_4FGL_J0238.2+1531_weekly_bin773.fits outfile=/lscratch/kocevski/17971480/ft1_filteredMKT_4FGL_J0238.2+1531_weekly_bin773.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=706492801.0 tmax=707097601.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 4.05
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.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/17971480/ft1_filteredMKT_4FGL_J0238.2+1531_weekly_bin773.fits evtable="EVENTS" outfile="/lscratch/kocevski/17971480/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2241

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17971480/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17971480/ltcube_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.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/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.fits
.....................!
real 33.01
user 32.29
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17971480/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17971480/ltcube_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits outfile=/lscratch/kocevski/17971480/expmap_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.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/17971480/ltcube_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits
.....................!
real 65.76
user 61.57
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
Added 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J0238.2+1531 @ 39.5617 15.5175

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17971480/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits scfile=/lscratch/kocevski/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.fits outfile=/lscratch/kocevski/17971480/cmap_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.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=39.5617 yref=15.5175 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.51
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17971480/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits scfile=/lscratch/kocevski/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.fits outfile=/lscratch/kocevski/17971480/cmap_HighResolution_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.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=39.5617 yref=15.5175 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.52
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17971480/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17971480/Model_4FGL_J0238.2+1531_weekly_bin773.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17971480/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits.....................!
real 119.83
user 118.04
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17971480/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits', '/lscratch/kocevski/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.fits', expMap='/lscratch/kocevski/17971480/expmap_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits', expCube='/lscratch/kocevski/17971480/ltcube_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17971480/Model_4FGL_J0238.2+1531_weekly_bin773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.2+1531'

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.956e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17971480/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits
Spacecraft file(s): /lscratch/kocevski/17971480/ft2_4FGL_J0238.2+1531_weekly_bin773.fits
Exposure map: /lscratch/kocevski/17971480/expmap_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits
Exposure cube: /lscratch/kocevski/17971480/ltcube_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17971480/Model_4FGL_J0238.2+1531_weekly_bin773.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) = 24881.9698471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2746       1.0000          .0000       .10000E+07
     2 'Prefactor '    8.7071       1.0000          .0000       .10000E+07
     3 'norm      '    5.6696       1.0000          .0000       .10000E+07
     4 'Prefactor '    .76176       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.9387       1.0000          .0000       .10000E+07
     6 'norm      '    .43055E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.447       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15604E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16694E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .35334E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .25246E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.2352       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25069E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .59622       1.0000          .0000       .10000E+07
    15 'Prefactor '    .49063E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14467E-01   1.0000          .0000       .10000E+07
    17 'norm      '    16.607       1.0000          .0000       .10000E+07
    18 'Prefactor '    .21291E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13880E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.8487       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.1936       1.0000          .0000       .10000E+07
    22 'norm      '    4.9059       1.0000          .0000       .10000E+07
    23 'norm      '    7.3816       1.0000          .0000       .10000E+07
    24 'norm      '    1.8784       1.0000          .0000       .10000E+07
    25 'norm      '    .76609       1.0000          .0000       .10000E+07
    26 'Prefactor '    2.2016       1.0000          .0000       .10000E+07
    27 'Prefactor '    .11086E-03   1.0000          .0000       .10000E+07
    28 'Prefactor '    7.8210       1.0000          .0000       .10000E+07
    29 'Normalizat'    1.1249       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0036       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24881.94     FROM MIGRAD    STATUS=CONVERGED    214 CALLS     2855 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2734        3.2157        .12620E-07   -.35664E-03
   2  Prefactor     8.7063        2.1837       -.45509E-08    .26759E-04
   3  norm          5.6687        2.7076        .14062E-07   -.34148E-03
   4  Prefactor     .74040        2.6773       -.29690E-07    .14891E-03
   5  Prefactor     3.9418        1.6403       -.25457E-07   -.10440E-02
   6  norm          .10419E-06    28.002        .13068E-06** at limit **
   7  Prefactor     18.194        5.7650       -.10895E-06    .88839E-01
   8  Prefactor     .35910E-04    173.53        .54764E-06** at limit **
   9  Prefactor     .82712E-08    19.649       -.24582E-06** at limit **
  10  Prefactor     .44409E-09    11.373       -.51032E-07** at limit **
  11  Prefactor     .55511E-10    4.8597       -.16559E-06** at limit **
  12  Prefactor     5.3582        12.474       -.57224E-06   -.19912E-01
  13  Prefactor      .0000        1.5270       -.21797E-06** at limit **
  14  norm          .59637        .25227        .48420E-07    .44788E-03
  15  Prefactor      .0000        6.2599        .32882E-06** at limit **
  16  Prefactor     .33951E-06    70.522       -.36843E-06** at limit **
  17  norm          16.528        8.3245        .12988E-06    .10333E-02
  18  Prefactor     .41649E-03    47.163        .83287E-08** at limit **
  19  Prefactor     .94869E-07    46.507       -.12727E-05** at limit **
  20  Prefactor     2.8533        4.0466        .26872E-06   -.95993E-03
  21  Prefactor     4.1950        2.0341        .21841E-07    .74693E-02
  22  norm          4.9264        4.5232       -.10193E-06    .86611E-04
  23  norm          7.3617        5.9292       -.17785E-06    .70332E-03
  24  norm          1.8785        1.6500       -.19716E-07    .49035E-03
  25  norm          .77406        7.0586        .30534E-07    .63584E-03
  26  Prefactor     2.2012        1.9541       -.95325E-07   -.54979E-03
  27  Prefactor     .16653E-09    5.0644        .39421E-06** at limit **
  28  Prefactor     7.8377        5.8438        .11197E-06    .14576E-03
  29  Normalizat    1.1254        .15598        .87412E-05   -.10343E-03
  30  Prefactor     1.0036        .60851E-01   -.84188E-06   -.18690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.27335
  Prefactor  = 8.70628
  norm       = 5.66873
  Prefactor  = 0.740403
  Prefactor  = 3.94176
  norm       = 1.04194e-07
  Prefactor  = 18.1941
  Prefactor  = 3.59103e-05
  Prefactor  = 8.27116e-09
  Prefactor  = 4.44089e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 5.35825
  Prefactor  = 0
  norm       = 0.596366
  Prefactor  = 0
  Prefactor  = 3.39506e-07
  norm       = 16.5279
  Prefactor  = 0.000416486
  Prefactor  = 9.48686e-08
  Prefactor  = 2.85327
  Prefactor  = 4.19497
  norm       = 4.92644
  norm       = 7.36169
  norm       = 1.87846
  norm       = 0.774056
  Prefactor  = 2.20118
  Prefactor  = 1.66533e-10
  Prefactor  = 7.83774
  Normalizat = 1.12537
  Prefactor  = 1.00358
e GAL_V02
Working on...
/lscratch/kocevski/17971479/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits.....................!
real 119.62
user 117.85
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17971479/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits', '/lscratch/kocevski/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.fits', expMap='/lscratch/kocevski/17971479/expmap_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits', expCube='/lscratch/kocevski/17971479/ltcube_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17971479/Model_4FGL_J0238.2+1531_weekly_bin773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.2+1531'

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.956e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17971479/ft1_filtered_4FGL_J0238.2+1531_weekly_bin773.fits
Spacecraft file(s): /lscratch/kocevski/17971479/ft2_4FGL_J0238.2+1531_weekly_bin773.fits
Exposure map: /lscratch/kocevski/17971479/expmap_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits
Exposure cube: /lscratch/kocevski/17971479/ltcube_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17971479/Model_4FGL_J0238.2+1531_weekly_bin773.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) = 24881.9698471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2746       1.0000          .0000       .10000E+07
     2 'Prefactor '    8.7071       1.0000          .0000       .10000E+07
     3 'norm      '    5.6696       1.0000          .0000       .10000E+07
     4 'Prefactor '    .76176       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.9387       1.0000          .0000       .10000E+07
     6 'norm      '    .43055E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.447       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15604E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16694E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .35334E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .25246E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.2352       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25069E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .59622       1.0000          .0000       .10000E+07
    15 'Prefactor '    .49063E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14467E-01   1.0000          .0000       .10000E+07
    17 'norm      '    16.607       1.0000          .0000       .10000E+07
    18 'Prefactor '    .21291E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13880E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.8487       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.1936       1.0000          .0000       .10000E+07
    22 'norm      '    4.9059       1.0000          .0000       .10000E+07
    23 'norm      '    7.3816       1.0000          .0000       .10000E+07
    24 'norm      '    1.8784       1.0000          .0000       .10000E+07
    25 'norm      '    .76609       1.0000          .0000       .10000E+07
    26 'Prefactor '    2.2016       1.0000          .0000       .10000E+07
    27 'Prefactor '    .11086E-03   1.0000          .0000       .10000E+07
    28 'Prefactor '    7.8210       1.0000          .0000       .10000E+07
    29 'Normalizat'    1.1249       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0036       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24881.94     FROM MIGRAD    STATUS=CONVERGED    214 CALLS     2855 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2734        3.2157        .12620E-07   -.35664E-03
   2  Prefactor     8.7063        2.1837       -.45509E-08    .26759E-04
   3  norm          5.6687        2.7076        .14062E-07   -.34148E-03
   4  Prefactor     .74040        2.6773       -.29690E-07    .14891E-03
   5  Prefactor     3.9418        1.6403       -.25457E-07   -.10440E-02
   6  norm          .10419E-06    28.002        .13068E-06** at limit **
   7  Prefactor     18.194        5.7650       -.10895E-06    .88839E-01
   8  Prefactor     .35910E-04    173.53        .54764E-06** at limit **
   9  Prefactor     .82712E-08    19.649       -.24582E-06** at limit **
  10  Prefactor     .44409E-09    11.373       -.51032E-07** at limit **
  11  Prefactor     .55511E-10    4.8597       -.16559E-06** at limit **
  12  Prefactor     5.3582        12.474       -.57224E-06   -.19912E-01
  13  Prefactor      .0000        1.5270       -.21797E-06** at limit **
  14  norm          .59637        .25227        .48420E-07    .44788E-03
  15  Prefactor      .0000        6.2599        .32882E-06** at limit **
  16  Prefactor     .33951E-06    70.522       -.36843E-06** at limit **
  17  norm          16.528        8.3245        .12988E-06    .10333E-02
  18  Prefactor     .41649E-03    47.163        .83287E-08** at limit **
  19  Prefactor     .94869E-07    46.507       -.12727E-05** at limit **
  20  Prefactor     2.8533        4.0466        .26872E-06   -.95993E-03
  21  Prefactor     4.1950        2.0341        .21841E-07    .74693E-02
  22  norm          4.9264        4.5232       -.10193E-06    .86611E-04
  23  norm          7.3617        5.9292       -.17785E-06    .70332E-03
  24  norm          1.8785        1.6500       -.19716E-07    .49035E-03
  25  norm          .77406        7.0586        .30534E-07    .63584E-03
  26  Prefactor     2.2012        1.9541       -.95325E-07   -.54979E-03
  27  Prefactor     .16653E-09    5.0644        .39421E-06** at limit **
  28  Prefactor     7.8377        5.8438        .11197E-06    .14576E-03
  29  Normalizat    1.1254        .15598        .87412E-05   -.10343E-03
  30  Prefactor     1.0036        .60851E-01   -.84188E-06   -.18690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.27335
  Prefactor  = 8.70628
  norm       = 5.66873
  Prefactor  = 0.740403
  Prefactor  = 3.94176
  norm       = 1.04194e-07
  Prefactor  = 18.1941
  Prefactor  = 3.59103e-05
  Prefactor  = 8.27116e-09
  Prefactor  = 4.44089e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 5.35825
  Prefactor  = 0
  norm       = 0.596366
  Prefactor  = 0
  Prefactor  = 3.39506e-07
  norm       = 16.5279
  Prefactor  = 0.000416486
  Prefactor  = 9.48686e-08
  Prefactor  = 2.85327
  Prefactor  = 4.19497
  norm       = 4.92644
  norm       = 7.36169
  norm       = 1.87846
  norm       = 0.774056
  Prefactor  = 2.20118
  Prefactor  = 1.66533e-10
  Prefactor  = 7.83774
  Normalizat = 1.12537
  Prefactor  = 1.00358
 **********
 **   18 **HESSE 
 **********

 FCN=   24881.94     FROM HESSE     STATUS=OK           660 CALLS     3515 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2734        3.2237        .40050E-03   -1.5658    
   2  Prefactor     8.7063        2.1806        .33946E-03   -1.5649    
   3  norm          5.6687        2.7133        .42163E-03   -1.5660    
   4  Prefactor     .74040        2.6803        .55830E-03   -1.5691    
   5  Prefactor     3.9418        1.6704        .50806E-03   -1.5668    
   6  norm          .10419E-06    28.281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.194        20.250        .23292E-03   -1.5623    
   8  Prefactor     .35910E-04    196.69        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .82712E-08    19.680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44409E-09    11.406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    4.8497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3582        14.880        .43908E-03   -1.5662    
  13  Prefactor      .0000        1.5300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .59637        .25976        .69567E-03   -1.5693    
  15  Prefactor      .0000        6.2966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .33951E-06    70.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.528        8.3454        .24550E-03   -1.5627    
  18  Prefactor     .41649E-03    6.6723        .84782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .94869E-07    46.884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8533        4.0689        .60215E-03   -1.5674    
  21  Prefactor     4.1950        10.837        .49188E-03   -1.5667    
  22  norm          4.9264        4.5187        .45387E-03   -1.5664    
  23  norm          7.3617        5.9356        .36892E-03   -1.5654    
  24  norm          1.8785        1.6535        .75936E-03   -1.5681    
  25  norm          .77406        7.1998        .55497E-03   -1.5690    
  26  Prefactor     2.2012        1.9470        .69313E-03   -1.5678    
  27  Prefactor     .16653E-09    5.0584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.8377        5.8549        .35831E-03   -1.5652    
  29  Normalizat    1.1254        .13935        .90206E-01   -.88941    
  30  Prefactor     1.0036        .53734E-01    .44502E-01   -.92610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82286e-07
Minuit parameter uncertainties:
  1  3.22367
  2  2.18057
  3  2.71326
  4  2.68035
  5  1.67045
  6  0.00343323
  7  20.2504
  8  0.168091
  9  0.000806708
  10  0.000139633
  11  3.62326e-05
  12  14.8805
  13  4.85817e-06
  14  0.259761
  15  1.52054e-05
  16  0.00976122
  17  8.34544
  18  0.105431
  19  0.00421853
  20  4.06893
  21  10.8373
  22  4.51866
  23  5.93564
  24  1.65348
  25  4.72148
  26  1.94697
  27  5.44117e-05
  28  5.85493
  29  0.139396
  30  0.0537372
 **********
 **   18 **HESSE 
 **********

 FCN=   24881.94     FROM HESSE     STATUS=OK           660 CALLS     3515 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2734        3.2237        .40050E-03   -1.5658    
   2  Prefactor     8.7063        2.1806        .33946E-03   -1.5649    
   3  norm          5.6687        2.7133        .42163E-03   -1.5660    
   4  Prefactor     .74040        2.6803        .55830E-03   -1.5691    
   5  Prefactor     3.9418        1.6704        .50806E-03   -1.5668    
   6  norm          .10419E-06    28.281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.194        20.250        .23292E-03   -1.5623    
   8  Prefactor     .35910E-04    196.69        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .82712E-08    19.680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44409E-09    11.406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    4.8497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3582        14.880        .43908E-03   -1.5662    
  13  Prefactor      .0000        1.5300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .59637        .25976        .69567E-03   -1.5693    
  15  Prefactor      .0000        6.2966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .33951E-06    70.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.528        8.3454        .24550E-03   -1.5627    
  18  Prefactor     .41649E-03    6.6723        .84782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .94869E-07    46.884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8533        4.0689        .60215E-03   -1.5674    
  21  Prefactor     4.1950        10.837        .49188E-03   -1.5667    
  22  norm          4.9264        4.5187        .45387E-03   -1.5664    
  23  norm          7.3617        5.9356        .36892E-03   -1.5654    
  24  norm          1.8785        1.6535        .75936E-03   -1.5681    
  25  norm          .77406        7.1998        .55497E-03   -1.5690    
  26  Prefactor     2.2012        1.9470        .69313E-03   -1.5678    
  27  Prefactor     .16653E-09    5.0584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.8377        5.8549        .35831E-03   -1.5652    
  29  Normalizat    1.1254        .13935        .90206E-01   -.88941    
  30  Prefactor     1.0036        .53734E-01    .44502E-01   -.92610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82286e-07
Minuit parameter uncertainties:
  1  3.22367
  2  2.18057
  3  2.71326
  4  2.68035
  5  1.67045
  6  0.00343323
  7  20.2504
  8  0.168091
  9  0.000806708
  10  0.000139633
  11  3.62326e-05
  12  14.8805
  13  4.85817e-06
  14  0.259761
  15  1.52054e-05
  16  0.00976122
  17  8.34544
  18  0.105431
  19  0.00421853
  20  4.06893
  21  10.8373
  22  4.51866
  23  5.93564
  24  1.65348
  25  4.72148
  26  1.94697
  27  5.44117e-05
  28  5.85493
  29  0.139396
  30  0.0537372
Done.

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

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  0.000e+00  4.858e-06  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  1.004e+00  5.374e-02  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.125e+00  1.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 39.562 15.518
Photon Flux Upper Limit: 3.41341645004e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00263873686016 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17971479/likelihoodResults_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.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) = 24881.9362117
delta logL = -0.000572781322262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24881.9356411
delta logL = -2.19626235776e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   24881.94     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      242 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .64812        .42118E-03** at limit **
   2  Index         3.1836        2.0105        .41334E-06     .0000    
   3  Normalizat    1.1254        1.1393       -.17748E-05   -.25932E-04
   4  Prefactor     1.0036        1.2939        .12566E-05   -.13635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.18365
  Normalizat = 1.12537
  Prefactor  = 1.00358
Done.

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

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  0.000e+00  4.858e-06  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  1.004e+00  5.374e-02  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.125e+00  1.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 39.562 15.518
Photon Flux Upper Limit: 3.41341645004e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00263873686016 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17971480/likelihoodResults_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.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) = 24881.9362117
delta logL = -0.000572781322262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24881.9356411
delta logL = -2.19626235776e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   24881.94     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      242 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .64812        .42118E-03** at limit **
   2  Index         3.1836        2.0105        .41334E-06     .0000    
   3  Normalizat    1.1254        1.1393       -.17748E-05   -.25932E-04
   4  Prefactor     1.0036        1.2939        .12566E-05   -.13635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.18365
  Normalizat = 1.12537
  Prefactor  = 1.00358
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   24881.94     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .64812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1407        2.2209        .41334E-06   -.37178    
   3  Normalizat    1.1254        1.1393       -.17748E-05   -.88941    
   4  Prefactor     1.0036        1.2939        .12566E-05   -.92610    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01662e-12
Minuit parameter uncertainties:
  1  1.22646e-07
  2  2.07883
  3  1.1658
  4  1.33767
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   24881.94     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .64812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1407        2.2209        .41334E-06   -.37178    
   3  Normalizat    1.1254        1.1393       -.17748E-05   -.88941    
   4  Prefactor     1.0036        1.2939        .12566E-05   -.92610    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01662e-12
Minuit parameter uncertainties:
  1  1.22646e-07
  2  2.07883
  3  1.1658
  4  1.33767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
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) = 24881.9356389
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  0.000e+00  1.226e-07  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  3.184e+00  2.079e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  1.004e+00  1.338e+00  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.125e+00  1.166e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 39.562 15.518

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/17971479/cmap_HighResolution_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-03', job_status='DONE', photon_flux_upper_limit='3.41e-08', time_completed='2023-05-30 00:20:59.197429', job_id='17971479', GAL2='1.00', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1685431259.2', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='773' AND source_name='4FGL J0238.2+1531' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 30 00:20:59 PDT 2023

Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 24881.9356389
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  0.000e+00  1.226e-07  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  3.184e+00  2.079e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  1.004e+00  1.338e+00  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.125e+00  1.166e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 39.562 15.518

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/17971480/cmap_HighResolution_706492801_707097601_4FGL_J0238.2+1531_weekly_bin773.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-03', job_status='DONE', photon_flux_upper_limit='3.41e-08', time_completed='2023-05-30 00:20:59.253331', job_id='17971480', GAL2='1.00', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1685431259.25', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='773' AND source_name='4FGL J0238.2+1531' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 30 00:20:59 PDT 2023

