/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_J0245.4+2408_weekly_bin773
RA = 41.3545, Dec = 24.1498
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='17971508', job_status='RUN', time_executed='2023-05-30 00:06:30.308255', time_epoch_executed='1685430390.31' WHERE source_name='4FGL J0245.4+2408' and cadence='weekly' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17971508

Creating custom pfile directory:
/lscratch/kocevski/17971508/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/17971508/ft1_4FGL_J0245.4+2408_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/17971508/ft2_4FGL_J0245.4+2408_weekly_bin773.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17971508/ft1_4FGL_J0245.4+2408_weekly_bin773.fits outfile=/lscratch/kocevski/17971508/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin773.fits ra=41.3545 dec=24.1498 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.74
user 4.28
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17971508/ft2_4FGL_J0245.4+2408_weekly_bin773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17971508/ft2_4FGL_J0245.4+2408_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/17971508/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin773.fits evtable="EVENTS" outfile="/lscratch/kocevski/17971508/ft1_filtered_4FGL_J0245.4+2408_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.43
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2269

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17971508/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17971508/ft2_4FGL_J0245.4+2408_weekly_bin773.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17971508/ltcube_706492801_707097601_4FGL_J0245.4+2408_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/17971508/ft2_4FGL_J0245.4+2408_weekly_bin773.fits
.....................!
real 31.91
user 31.16
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17971508/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971508/ft2_4FGL_J0245.4+2408_weekly_bin773.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17971508/ltcube_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits outfile=/lscratch/kocevski/17971508/expmap_706492801_707097601_4FGL_J0245.4+2408_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/17971508/ltcube_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits
.....................!
real 65.84
user 61.57
sys 3.48

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

Setting source of interest to:
4FGL J0245.4+2408 @ 41.3545 24.1498

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17971508/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits scfile=/lscratch/kocevski/17971508/ft2_4FGL_J0245.4+2408_weekly_bin773.fits outfile=/lscratch/kocevski/17971508/cmap_706492801_707097601_4FGL_J0245.4+2408_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=41.3545 yref=24.1498 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.45
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17971508/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits scfile=/lscratch/kocevski/17971508/ft2_4FGL_J0245.4+2408_weekly_bin773.fits outfile=/lscratch/kocevski/17971508/cmap_HighResolution_706492801_707097601_4FGL_J0245.4+2408_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=41.3545 yref=24.1498 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.47
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17971508/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971508/ft2_4FGL_J0245.4+2408_weekly_bin773.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17971508/Model_4FGL_J0245.4+2408_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_J0245.4+2408_weekly_bin773
RA = 41.3545, Dec = 24.1498
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='17971507', job_status='RUN', time_executed='2023-05-30 00:06:30.308164', time_epoch_executed='1685430390.31' WHERE source_name='4FGL J0245.4+2408' and cadence='weekly' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17971507

Creating custom pfile directory:
/lscratch/kocevski/17971507/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/17971507/ft1_4FGL_J0245.4+2408_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/17971507/ft2_4FGL_J0245.4+2408_weekly_bin773.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17971507/ft1_4FGL_J0245.4+2408_weekly_bin773.fits outfile=/lscratch/kocevski/17971507/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin773.fits ra=41.3545 dec=24.1498 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.74
user 4.25
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17971507/ft2_4FGL_J0245.4+2408_weekly_bin773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17971507/ft2_4FGL_J0245.4+2408_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/17971507/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin773.fits evtable="EVENTS" outfile="/lscratch/kocevski/17971507/ft1_filtered_4FGL_J0245.4+2408_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.57
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 2269

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17971507/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17971507/ft2_4FGL_J0245.4+2408_weekly_bin773.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17971507/ltcube_706492801_707097601_4FGL_J0245.4+2408_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/17971507/ft2_4FGL_J0245.4+2408_weekly_bin773.fits
.....................!
real 29.76
user 28.64
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17971507/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971507/ft2_4FGL_J0245.4+2408_weekly_bin773.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17971507/ltcube_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits outfile=/lscratch/kocevski/17971507/expmap_706492801_707097601_4FGL_J0245.4+2408_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/17971507/ltcube_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits
.....................!
real 67.16
user 61.91
sys 3.56

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

Setting source of interest to:
4FGL J0245.4+2408 @ 41.3545 24.1498

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17971507/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits scfile=/lscratch/kocevski/17971507/ft2_4FGL_J0245.4+2408_weekly_bin773.fits outfile=/lscratch/kocevski/17971507/cmap_706492801_707097601_4FGL_J0245.4+2408_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=41.3545 yref=24.1498 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.67
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17971507/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits scfile=/lscratch/kocevski/17971507/ft2_4FGL_J0245.4+2408_weekly_bin773.fits outfile=/lscratch/kocevski/17971507/cmap_HighResolution_706492801_707097601_4FGL_J0245.4+2408_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=41.3545 yref=24.1498 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.57
user 0.27
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17971507/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971507/ft2_4FGL_J0245.4+2408_weekly_bin773.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17971507/Model_4FGL_J0245.4+2408_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/17971507/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits.....................!
real 132.68
user 130.59
sys 0.61

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17971507/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits', '/lscratch/kocevski/17971507/ft2_4FGL_J0245.4+2408_weekly_bin773.fits', expMap='/lscratch/kocevski/17971507/expmap_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits', expCube='/lscratch/kocevski/17971507/ltcube_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17971507/Model_4FGL_J0245.4+2408_weekly_bin773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.4+2408'

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.151e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17971507/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits
Spacecraft file(s): /lscratch/kocevski/17971507/ft2_4FGL_J0245.4+2408_weekly_bin773.fits
Exposure map: /lscratch/kocevski/17971507/expmap_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits
Exposure cube: /lscratch/kocevski/17971507/ltcube_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17971507/Model_4FGL_J0245.4+2408_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) = 25183.7290711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17780E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.8446       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.0104       1.0000          .0000       .10000E+07
     4 'norm      '    .38186E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.5579       1.0000          .0000       .10000E+07
     6 'Prefactor '    .82070E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .52630E-06   1.0000          .0000       .10000E+07
     8 'norm      '    5.0492       1.0000          .0000       .10000E+07
     9 'Prefactor '    .54892E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .60717       1.0000          .0000       .10000E+07
    11 'Prefactor '    .43405E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .43011       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12376E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.7482       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.3286       1.0000          .0000       .10000E+07
    16 'Prefactor '    35.334       1.0000          .0000       .10000E+07
    17 'norm      '    4.9638       1.0000          .0000       .10000E+07
    18 'norm      '    19.880       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.3450       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.3952       1.0000          .0000       .10000E+07
    21 'norm      '    .39240       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1035       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0082       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25183.72     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1943 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3945        .55333E-07** at limit **
   2  Prefactor     8.7798        7.0517       -.63471E-07   -.14940E-02
   3  Prefactor     1.0101        2.8079        .26508E-07   -.37000E-02
   4  norm          .26090E-08    28.204        .13921E-06** at limit **
   5  Prefactor     4.5507        9.0264       -.29182E-08   -.46323E-01
   6  Prefactor     .21094E-08    12.063        .80575E-07** at limit **
   7  Prefactor     .57732E-08    10.345       -.29225E-07** at limit **
   8  norm          5.0503        1.4704       -.13600E-07   -.43930E-02
   9  Prefactor      .0000        1.6177        .10745E-06** at limit **
  10  norm          .60697        .25644       -.47887E-08   -.56182E-02
  11  Prefactor     .55511E-10    6.6578       -.72414E-08** at limit **
  12  Prefactor     .41938        2.0019        .76881E-08   -.10570E-01
  13  Prefactor     .18263E-07    41.314        .38813E-06** at limit **
  14  Prefactor     3.7561        4.6049        .28349E-07    .39959E-04
  15  Prefactor     4.3453        10.320        .17876E-07    .19623E-01
  16  Prefactor     35.064        38.643       -.16321E-07    .51044E-01
  17  norm          4.9640        4.5451        .13717E-07    .40113E-03
  18  norm          19.905        6.8188        .27796E-09    .84527E-01
  19  Prefactor     2.3362        5.6054       -.22935E-06   -.24855E-02
  20  Prefactor     8.3997        6.1965        .10038E-07    .63080E-02
  21  norm          .39836        2.9360        .11396E-06   -.25863E-03
  22  Normalizat    1.1037        .15926       -.10291E-05   -.21170E-03
  23  Prefactor     1.0082        .58499E-01   -.77754E-07   -.48310E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 8.77982
  Prefactor  = 1.01008
  norm       = 2.60902e-09
  Prefactor  = 4.55075
  Prefactor  = 2.10942e-09
  Prefactor  = 5.77316e-09
  norm       = 5.05031
  Prefactor  = 0
  norm       = 0.606965
  Prefactor  = 5.55112e-11
  Prefactor  = 0.419377
  Prefactor  = 1.82632e-08
  Prefactor  = 3.75608
  Prefactor  = 4.34526
  Prefactor  = 35.0643
  norm       = 4.96398
  norm       = 19.9049
  Prefactor  = 2.33616
  Prefactor  = 8.39975
  norm       = 0.398355
  Normalizat = 1.10371
  Prefactor  = 1.00818
e GAL_V02
Working on...
/lscratch/kocevski/17971508/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits.....................!
real 133.19
user 131.46
sys 0.79

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17971508/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits', '/lscratch/kocevski/17971508/ft2_4FGL_J0245.4+2408_weekly_bin773.fits', expMap='/lscratch/kocevski/17971508/expmap_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits', expCube='/lscratch/kocevski/17971508/ltcube_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17971508/Model_4FGL_J0245.4+2408_weekly_bin773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.4+2408'

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.151e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17971508/ft1_filtered_4FGL_J0245.4+2408_weekly_bin773.fits
Spacecraft file(s): /lscratch/kocevski/17971508/ft2_4FGL_J0245.4+2408_weekly_bin773.fits
Exposure map: /lscratch/kocevski/17971508/expmap_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits
Exposure cube: /lscratch/kocevski/17971508/ltcube_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17971508/Model_4FGL_J0245.4+2408_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) = 25183.7290711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17780E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.8446       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.0104       1.0000          .0000       .10000E+07
     4 'norm      '    .38186E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.5579       1.0000          .0000       .10000E+07
     6 'Prefactor '    .82070E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .52630E-06   1.0000          .0000       .10000E+07
     8 'norm      '    5.0492       1.0000          .0000       .10000E+07
     9 'Prefactor '    .54892E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .60717       1.0000          .0000       .10000E+07
    11 'Prefactor '    .43405E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .43011       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12376E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.7482       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.3286       1.0000          .0000       .10000E+07
    16 'Prefactor '    35.334       1.0000          .0000       .10000E+07
    17 'norm      '    4.9638       1.0000          .0000       .10000E+07
    18 'norm      '    19.880       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.3450       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.3952       1.0000          .0000       .10000E+07
    21 'norm      '    .39240       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1035       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0082       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25183.72     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1943 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3945        .55333E-07** at limit **
   2  Prefactor     8.7798        7.0517       -.63471E-07   -.14940E-02
   3  Prefactor     1.0101        2.8079        .26508E-07   -.37000E-02
   4  norm          .26090E-08    28.204        .13921E-06** at limit **
   5  Prefactor     4.5507        9.0264       -.29182E-08   -.46323E-01
   6  Prefactor     .21094E-08    12.063        .80575E-07** at limit **
   7  Prefactor     .57732E-08    10.345       -.29225E-07** at limit **
   8  norm          5.0503        1.4704       -.13600E-07   -.43930E-02
   9  Prefactor      .0000        1.6177        .10745E-06** at limit **
  10  norm          .60697        .25644       -.47887E-08   -.56182E-02
  11  Prefactor     .55511E-10    6.6578       -.72414E-08** at limit **
  12  Prefactor     .41938        2.0019        .76881E-08   -.10570E-01
  13  Prefactor     .18263E-07    41.314        .38813E-06** at limit **
  14  Prefactor     3.7561        4.6049        .28349E-07    .39959E-04
  15  Prefactor     4.3453        10.320        .17876E-07    .19623E-01
  16  Prefactor     35.064        38.643       -.16321E-07    .51044E-01
  17  norm          4.9640        4.5451        .13717E-07    .40113E-03
  18  norm          19.905        6.8188        .27796E-09    .84527E-01
  19  Prefactor     2.3362        5.6054       -.22935E-06   -.24855E-02
  20  Prefactor     8.3997        6.1965        .10038E-07    .63080E-02
  21  norm          .39836        2.9360        .11396E-06   -.25863E-03
  22  Normalizat    1.1037        .15926       -.10291E-05   -.21170E-03
  23  Prefactor     1.0082        .58499E-01   -.77754E-07   -.48310E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 8.77982
  Prefactor  = 1.01008
  norm       = 2.60902e-09
  Prefactor  = 4.55075
  Prefactor  = 2.10942e-09
  Prefactor  = 5.77316e-09
  norm       = 5.05031
  Prefactor  = 0
  norm       = 0.606965
  Prefactor  = 5.55112e-11
  Prefactor  = 0.419377
  Prefactor  = 1.82632e-08
  Prefactor  = 3.75608
  Prefactor  = 4.34526
  Prefactor  = 35.0643
  norm       = 4.96398
  norm       = 19.9049
  Prefactor  = 2.33616
  Prefactor  = 8.39975
  norm       = 0.398355
  Normalizat = 1.10371
  Prefactor  = 1.00818
 **********
 **   18 **HESSE 
 **********

 FCN=   25183.72     FROM HESSE     STATUS=OK           434 CALLS     2377 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7798        7.0488        .33679E-03   -1.5649    
   3  Prefactor     1.0101        2.8129        .44132E-03   -1.5688    
   4  norm          .26090E-08    27.983        .16047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5507        28.700        .47128E-03   -1.5665    
   6  Prefactor     .21094E-08    12.100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .57732E-08    10.214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0503        1.4754        .44725E-03   -1.5663    
   9  Prefactor      .0000        1.6145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .60697        .26546        .68588E-03   -1.5692    
  11  Prefactor     .55511E-10    6.6656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .41938        4.8886        .11203E-01   -1.5695    
  13  Prefactor     .18263E-07    41.236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7561        4.6144        .52127E-03   -1.5669    
  15  Prefactor     4.3453        10.970        .48393E-03   -1.5666    
  16  Prefactor     35.064        43.024        .16825E-03   -1.5590    
  17  norm          4.9640        4.5427        .45116E-03   -1.5663    
  18  norm          19.905        18.648        .22435E-03   -1.5619    
  19  Prefactor     2.3362        5.6922        .66919E-03   -1.5677    
  20  Prefactor     8.3997        6.1974        .34575E-03   -1.5650    
  21  norm          .39836        1.0035        .63495E-02   -1.5695    
  22  Normalizat    1.1037        .14518        .93082E-01   -.89633    
  23  Prefactor     1.0082        .51616E-01    .43602E-01   -.92457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61761e-06
Minuit parameter uncertainties:
  1  5.72826e-06
  2  7.04884
  3  2.81295
  4  0.000543228
  5  22.8568
  6  0.00031767
  7  0.000486771
  8  1.47544
  9  1.09477e-05
  10  0.265463
  11  3.83602e-05
  12  2.86367
  13  0.00173541
  14  4.61439
  15  10.9702
  16  43.024
  17  4.54274
  18  18.6484
  19  5.69219
  20  6.19739
  21  1.00353
  22  0.145229
  23  0.0516188
 **********
 **   18 **HESSE 
 **********

 FCN=   25183.72     FROM HESSE     STATUS=OK           434 CALLS     2377 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7798        7.0488        .33679E-03   -1.5649    
   3  Prefactor     1.0101        2.8129        .44132E-03   -1.5688    
   4  norm          .26090E-08    27.983        .16047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5507        28.700        .47128E-03   -1.5665    
   6  Prefactor     .21094E-08    12.100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .57732E-08    10.214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0503        1.4754        .44725E-03   -1.5663    
   9  Prefactor      .0000        1.6145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .60697        .26546        .68588E-03   -1.5692    
  11  Prefactor     .55511E-10    6.6656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .41938        4.8886        .11203E-01   -1.5695    
  13  Prefactor     .18263E-07    41.236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7561        4.6144        .52127E-03   -1.5669    
  15  Prefactor     4.3453        10.970        .48393E-03   -1.5666    
  16  Prefactor     35.064        43.024        .16825E-03   -1.5590    
  17  norm          4.9640        4.5427        .45116E-03   -1.5663    
  18  norm          19.905        18.648        .22435E-03   -1.5619    
  19  Prefactor     2.3362        5.6922        .66919E-03   -1.5677    
  20  Prefactor     8.3997        6.1974        .34575E-03   -1.5650    
  21  norm          .39836        1.0035        .63495E-02   -1.5695    
  22  Normalizat    1.1037        .14518        .93082E-01   -.89633    
  23  Prefactor     1.0082        .51616E-01    .43602E-01   -.92457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61761e-06
Minuit parameter uncertainties:
  1  5.72826e-06
  2  7.04884
  3  2.81295
  4  0.000543228
  5  22.8568
  6  0.00031767
  7  0.000486771
  8  1.47544
  9  1.09477e-05
  10  0.265463
  11  3.83602e-05
  12  2.86367
  13  0.00173541
  14  4.61439
  15  10.9702
  16  43.024
  17  4.54274
  18  18.6484
  19  5.69219
  20  6.19739
  21  1.00353
  22  0.145229
  23  0.0516188
Done.

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

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.756e+00  4.614e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.008e+00  5.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.104e+00  1.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 41.355 24.150
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 5.29e-06 +/- 6.50e-06

TS (Fixed Index): 1.13
Ra Dec: 41.355 24.150
Photon Flux Upper Limit: 8.55030845971e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00672179962236 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17971507/likelihoodResults_706492801_707097601_4FGL_J0245.4+2408_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): 0
logL (Free Index) = 25183.0473383
delta logL = 0.673843727363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25182.689438
delta logL = 1.03174407542

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25182.69     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      223 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89176        .97377        .46331E-03    .12567E-01
   2  Index         1.2936        .31028        .32722       -.23183E-03
   3  Normalizat    1.1209        .13224        .92440E-01    .71534E-04
   4  Prefactor     1.0061        .50506E-01    .43976E-01   -.10865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.891765
  Index      = 1.29362
  Normalizat = 1.12094
  Prefactor  = 1.00607
 **********
 **   18 **HESSE 
 **********

 FCN=   25182.69     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89176        1.5566        .15841E-04   -1.5689    
   2  Index         1.2936        .64630        .14225E-01   -.83497    
   3  Normalizat    1.1209        .15013        .40947E-03   -.89082    
   4  Prefactor     1.0061        .57479E-01    .16324E-03   -.92527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21842e-08
Minuit parameter uncertainties:
  1  1.55659
  2  0.650364
  3  0.150187
  4  0.0574828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25182.689438
delta logL = 1.03174408205

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  8.918e-01  1.557e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  1.294e+00  6.504e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.006e+00  5.748e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.121e+00  1.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 41.355 24.150
Photon Index (Free Index): 1.29 +/- 0.65
Photon Flux (Free Index): 2.40e-09 +/- 3.45e-09
Energy Flux (Free Index): 1.50e-05 +/- 2.35e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17971507/cmap_HighResolution_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='1.50e-05', photon_flux_error='2.65e-08', dlogl='1.03e+00', energy_flux='5.29e-06', photon_flux2='2.40e-09', job_status='DONE', time_completed='2023-05-30 00:18:42.498278', photon_index_error2='0.65', photon_index2='1.29', ts='1.13', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.55e-08', energy_flux_error2='2.35e-05', EG='1.10', time_epoch_completed='1685431122.5', return_code='0', job_id='17971507', GAL2='1.01', EG2='1.12', return_code2='0', energy_flux_error='6.50e-06', photon_flux_error2='3.45e-09', ts2='3.18', photon_index='2.68' WHERE bin_id='773' AND source_name='4FGL J0245.4+2408' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 30 00:18:42 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.756e+00  4.614e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.008e+00  5.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.104e+00  1.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 41.355 24.150
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 5.29e-06 +/- 6.50e-06

TS (Fixed Index): 1.13
Ra Dec: 41.355 24.150
Photon Flux Upper Limit: 8.55030845971e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00672179962236 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17971508/likelihoodResults_706492801_707097601_4FGL_J0245.4+2408_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): 0
logL (Free Index) = 25183.0473383
delta logL = 0.673843727363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25182.689438
delta logL = 1.03174407542

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25182.69     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      223 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89176        .97377        .46331E-03    .12567E-01
   2  Index         1.2936        .31028        .32722       -.23183E-03
   3  Normalizat    1.1209        .13224        .92440E-01    .71534E-04
   4  Prefactor     1.0061        .50506E-01    .43976E-01   -.10865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.891765
  Index      = 1.29362
  Normalizat = 1.12094
  Prefactor  = 1.00607
 **********
 **   18 **HESSE 
 **********

 FCN=   25182.69     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89176        1.5566        .15841E-04   -1.5689    
   2  Index         1.2936        .64630        .14225E-01   -.83497    
   3  Normalizat    1.1209        .15013        .40947E-03   -.89082    
   4  Prefactor     1.0061        .57479E-01    .16324E-03   -.92527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21842e-08
Minuit parameter uncertainties:
  1  1.55659
  2  0.650364
  3  0.150187
  4  0.0574828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25182.689438
delta logL = 1.03174408205

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  8.918e-01  1.557e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  1.294e+00  6.504e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.006e+00  5.748e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.121e+00  1.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 41.355 24.150
Photon Index (Free Index): 1.29 +/- 0.65
Photon Flux (Free Index): 2.40e-09 +/- 3.45e-09
Energy Flux (Free Index): 1.50e-05 +/- 2.35e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17971508/cmap_HighResolution_706492801_707097601_4FGL_J0245.4+2408_weekly_bin773.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='1.50e-05', photon_flux_error='2.65e-08', dlogl='1.03e+00', energy_flux='5.29e-06', photon_flux2='2.40e-09', job_status='DONE', time_completed='2023-05-30 00:18:49.097315', photon_index_error2='0.65', photon_index2='1.29', ts='1.13', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.55e-08', energy_flux_error2='2.35e-05', EG='1.10', time_epoch_completed='1685431129.1', return_code='0', job_id='17971508', GAL2='1.01', EG2='1.12', return_code2='0', energy_flux_error='6.50e-06', photon_flux_error2='3.45e-09', ts2='3.18', photon_index='2.68' WHERE bin_id='773' AND source_name='4FGL J0245.4+2408' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 30 00:18:49 PDT 2023

