/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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


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

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

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

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

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


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

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


Performing analysis on: 4FGL_J0058.4+3315_weekly_bin776
RA = 14.6101, Dec = 33.2505
tmin = 708307201, tmax = 708912001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='18516048', job_status='RUN', time_executed='2023-06-20 00:06:44.563816', time_epoch_executed='1687244804.56' WHERE source_name='4FGL J0058.4+3315' and cadence='weekly' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18516048

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18516048/ft1_4FGL_J0058.4+3315_weekly_bin776.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18516048/ft1_4FGL_J0058.4+3315_weekly_bin776.fits outfile=/lscratch/kocevski/18516048/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin776.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=708307201.0 tmax=708912001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.64
user 3.34
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/18516048/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin776.fits evtable="EVENTS" outfile="/lscratch/kocevski/18516048/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 3217

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18516048/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18516048/ltcube_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits
.....................!
real 36.98
user 36.33
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18516048/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18516048/ltcube_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits outfile=/lscratch/kocevski/18516048/expmap_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/18516048/ltcube_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits
.....................!
real 65.16
user 61.28
sys 3.39

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

Setting source of interest to:
4FGL J0058.4+3315 @ 14.6101 33.2505

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18516048/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits scfile=/lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits outfile=/lscratch/kocevski/18516048/cmap_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=14.6101 yref=33.2505 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.42
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18516048/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits scfile=/lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits outfile=/lscratch/kocevski/18516048/cmap_HighResolution_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=14.6101 yref=33.2505 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.43
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18516048/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18516048/Model_4FGL_J0058.4+3315_weekly_bin776.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcDone.


Performing analysis on: 4FGL_J0058.4+3315_weekly_bin776
RA = 14.6101, Dec = 33.2505
tmin = 708307201, tmax = 708912001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='18516047', job_status='RUN', time_executed='2023-06-20 00:06:44.532428', time_epoch_executed='1687244804.53' WHERE source_name='4FGL J0058.4+3315' and cadence='weekly' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18516047

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18516047/ft1_4FGL_J0058.4+3315_weekly_bin776.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18516047/ft1_4FGL_J0058.4+3315_weekly_bin776.fits outfile=/lscratch/kocevski/18516047/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin776.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=708307201.0 tmax=708912001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.64
user 3.31
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/18516047/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin776.fits evtable="EVENTS" outfile="/lscratch/kocevski/18516047/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 3217

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18516047/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18516047/ltcube_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits
.....................!
real 35.72
user 35.06
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18516047/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18516047/ltcube_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits outfile=/lscratch/kocevski/18516047/expmap_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/18516047/ltcube_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits
.....................!
real 65.03
user 61.12
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 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J0058.4+3315 @ 14.6101 33.2505

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18516047/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits scfile=/lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits outfile=/lscratch/kocevski/18516047/cmap_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=14.6101 yref=33.2505 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.49
user 0.25
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18516047/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits scfile=/lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits outfile=/lscratch/kocevski/18516047/cmap_HighResolution_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=14.6101 yref=33.2505 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.43
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18516047/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18516047/Model_4FGL_J0058.4+3315_weekly_bin776.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/18516048/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits.....................!
real 110.72
user 108.25
sys 0.79

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18516048/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits', '/lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits', expMap='/lscratch/kocevski/18516048/expmap_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits', expCube='/lscratch/kocevski/18516048/ltcube_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18516048/Model_4FGL_J0058.4+3315_weekly_bin776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0058.4+3315'

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.596e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18516048/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits
Spacecraft file(s): /lscratch/kocevski/18516048/ft2_4FGL_J0058.4+3315_weekly_bin776.fits
Exposure map: /lscratch/kocevski/18516048/expmap_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits
Exposure cube: /lscratch/kocevski/18516048/ltcube_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18516048/Model_4FGL_J0058.4+3315_weekly_bin776.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32034E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.1512       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.1753       1.0000          .0000       .10000E+07
     4 'Prefactor '    .94525E-04   1.0000          .0000       .10000E+07
     5 'norm      '    2.1470       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.8278       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44735E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .75367E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .13363       1.0000          .0000       .10000E+07
    10 'Prefactor '    28.145       1.0000          .0000       .10000E+07
    11 'norm      '    4.5524       1.0000          .0000       .10000E+07
    12 'norm      '    60.106       1.0000          .0000       .10000E+07
    13 'Prefactor '    .40263E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.7631       1.0000          .0000       .10000E+07
    15 'Prefactor '    14.407       1.0000          .0000       .10000E+07
    16 'norm      '    1.2015       1.0000          .0000       .10000E+07
    17 'norm      '    1.6079       1.0000          .0000       .10000E+07
    18 'Prefactor '    .79547E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    .72467       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1746       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   32888.99     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     1536 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        6.4770        .10883E-07** at limit **
   2  Prefactor     5.1534        3.4910       -.62020E-08    .51111E-03
   3  Prefactor     4.1828        9.2395       -.24242E-07    .14445E-02
   4  Prefactor      .0000        4.8651        .30381E-08** at limit **
   5  norm          2.1467        1.0535       -.15697E-08    .25119E-02
   6  Prefactor     1.8088        5.8781        .57593E-06   -.63625E-02
   7  Prefactor      .0000        1.2643       -.71191E-08** at limit **
   8  Prefactor      .0000        2.5120       -.12338E-08** at limit **
   9  Prefactor     .35019E-04    2.1652       -.11662E-06** at limit **
  10  Prefactor     28.364        10.725        .11518E-06    .18592E-01
  11  norm          4.5523        .58884       -.26094E-08   -.11091E-04
  12  norm          60.105        2.3800       -.17965E-08    .12501E-01
  13  Prefactor      .0000        8.7989        .24356E-09** at limit **
  14  Prefactor     1.7656        2.1817        .40096E-08   -.85152E-03
  15  Prefactor     14.453        7.6004       -.95130E-08   -.23633E-04
  16  norm          1.2017        .57255       -.13228E-08   -.65924E-03
  17  norm          1.6080        .47237       -.10791E-08   -.45649E-03
  18  Prefactor      .0000        3.6441       -.10356E-08** at limit **
  19  Normalizat    .72469        .12161        .24270E-06    .19149E-02
  20  Prefactor     1.1747        .73922E-01    .33897E-06    .36413E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.15341
  Prefactor  = 4.18281
  Prefactor  = 0
  norm       = 2.14675
  Prefactor  = 1.80882
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.50194e-05
  Prefactor  = 28.3638
  norm       = 4.55228
  norm       = 60.1053
  Prefactor  = 0
  Prefactor  = 1.7656
  Prefactor  = 14.453
  norm       = 1.20169
  norm       = 1.60804
  Prefactor  = 0
  Normalizat = 0.724694
  Prefactor  = 1.17466
e GAL_V02
Working on...
/lscratch/kocevski/18516047/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits.....................!
real 111.12
user 109.46
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18516047/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits', '/lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits', expMap='/lscratch/kocevski/18516047/expmap_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits', expCube='/lscratch/kocevski/18516047/ltcube_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18516047/Model_4FGL_J0058.4+3315_weekly_bin776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0058.4+3315'

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.596e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18516047/ft1_filtered_4FGL_J0058.4+3315_weekly_bin776.fits
Spacecraft file(s): /lscratch/kocevski/18516047/ft2_4FGL_J0058.4+3315_weekly_bin776.fits
Exposure map: /lscratch/kocevski/18516047/expmap_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits
Exposure cube: /lscratch/kocevski/18516047/ltcube_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18516047/Model_4FGL_J0058.4+3315_weekly_bin776.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32034E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.1512       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.1753       1.0000          .0000       .10000E+07
     4 'Prefactor '    .94525E-04   1.0000          .0000       .10000E+07
     5 'norm      '    2.1470       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.8278       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44735E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .75367E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .13363       1.0000          .0000       .10000E+07
    10 'Prefactor '    28.145       1.0000          .0000       .10000E+07
    11 'norm      '    4.5524       1.0000          .0000       .10000E+07
    12 'norm      '    60.106       1.0000          .0000       .10000E+07
    13 'Prefactor '    .40263E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.7631       1.0000          .0000       .10000E+07
    15 'Prefactor '    14.407       1.0000          .0000       .10000E+07
    16 'norm      '    1.2015       1.0000          .0000       .10000E+07
    17 'norm      '    1.6079       1.0000          .0000       .10000E+07
    18 'Prefactor '    .79547E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    .72467       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1746       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   32888.99     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     1536 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        6.4770        .10883E-07** at limit **
   2  Prefactor     5.1534        3.4910       -.62020E-08    .51111E-03
   3  Prefactor     4.1828        9.2395       -.24242E-07    .14445E-02
   4  Prefactor      .0000        4.8651        .30381E-08** at limit **
   5  norm          2.1467        1.0535       -.15697E-08    .25119E-02
   6  Prefactor     1.8088        5.8781        .57593E-06   -.63625E-02
   7  Prefactor      .0000        1.2643       -.71191E-08** at limit **
   8  Prefactor      .0000        2.5120       -.12338E-08** at limit **
   9  Prefactor     .35019E-04    2.1652       -.11662E-06** at limit **
  10  Prefactor     28.364        10.725        .11518E-06    .18592E-01
  11  norm          4.5523        .58884       -.26094E-08   -.11091E-04
  12  norm          60.105        2.3800       -.17965E-08    .12501E-01
  13  Prefactor      .0000        8.7989        .24356E-09** at limit **
  14  Prefactor     1.7656        2.1817        .40096E-08   -.85152E-03
  15  Prefactor     14.453        7.6004       -.95130E-08   -.23633E-04
  16  norm          1.2017        .57255       -.13228E-08   -.65924E-03
  17  norm          1.6080        .47237       -.10791E-08   -.45649E-03
  18  Prefactor      .0000        3.6441       -.10356E-08** at limit **
  19  Normalizat    .72469        .12161        .24270E-06    .19149E-02
  20  Prefactor     1.1747        .73922E-01    .33897E-06    .36413E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.15341
  Prefactor  = 4.18281
  Prefactor  = 0
  norm       = 2.14675
  Prefactor  = 1.80882
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.50194e-05
  Prefactor  = 28.3638
  norm       = 4.55228
  norm       = 60.1053
  Prefactor  = 0
  Prefactor  = 1.7656
  Prefactor  = 14.453
  norm       = 1.20169
  norm       = 1.60804
  Prefactor  = 0
  Normalizat = 0.724694
  Prefactor  = 1.17466
 **********
 **   18 **HESSE 
 **********

 FCN=   32888.99     FROM HESSE     STATUS=OK           303 CALLS     1839 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        6.4959        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1534        3.4959        .17709E-04   -1.5663    
   3  Prefactor     4.1828        9.2200        .19720E-04   -1.5667    
   4  Prefactor      .0000        4.8665        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1467        1.0540        .28120E-05   -1.5679    
   6  Prefactor     1.8088        6.0262        .15435E-03   -1.5681    
   7  Prefactor      .0000        1.2724        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.5164        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .35019E-04    2.6241        .69948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.364        11.014        .75410E-05   -1.5601    
  11  norm          4.5523        .58873        .47940E-05   -1.5665    
  12  norm          60.105        2.3830        .51597E-05   -1.5553    
  13  Prefactor      .0000        8.8046        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7656        2.1648        .28665E-04   -1.5681    
  15  Prefactor     14.453        7.5951        .10545E-04   -1.5632    
  16  norm          1.2017        .56652        .92266E-05   -1.5686    
  17  norm          1.6080        .47150        .65598E-05   -1.5683    
  18  Prefactor      .0000        3.6477        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .72469        .13598        .43561E-03   -1.0293    
  20  Prefactor     1.1747        .82948E-01    .21934E-03   -.87115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70356e-09
Minuit parameter uncertainties:
  1  1.39619e-05
  2  3.49593
  3  9.22003
  4  2.11181e-06
  5  1.05399
  6  6.02625
  7  6.38658e-06
  8  2.57187e-06
  9  0.0191724
  10  11.0139
  11  0.588728
  12  2.38297
  13  9.1566e-07
  14  2.16478
  15  7.59509
  16  0.566523
  17  0.471495
  18  7.89715e-07
  19  0.136039
  20  0.0829569
 **********
 **   18 **HESSE 
 **********

 FCN=   32888.99     FROM HESSE     STATUS=OK           303 CALLS     1839 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        6.4959        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1534        3.4959        .17709E-04   -1.5663    
   3  Prefactor     4.1828        9.2200        .19720E-04   -1.5667    
   4  Prefactor      .0000        4.8665        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1467        1.0540        .28120E-05   -1.5679    
   6  Prefactor     1.8088        6.0262        .15435E-03   -1.5681    
   7  Prefactor      .0000        1.2724        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.5164        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .35019E-04    2.6241        .69948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.364        11.014        .75410E-05   -1.5601    
  11  norm          4.5523        .58873        .47940E-05   -1.5665    
  12  norm          60.105        2.3830        .51597E-05   -1.5553    
  13  Prefactor      .0000        8.8046        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7656        2.1648        .28665E-04   -1.5681    
  15  Prefactor     14.453        7.5951        .10545E-04   -1.5632    
  16  norm          1.2017        .56652        .92266E-05   -1.5686    
  17  norm          1.6080        .47150        .65598E-05   -1.5683    
  18  Prefactor      .0000        3.6477        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .72469        .13598        .43561E-03   -1.0293    
  20  Prefactor     1.1747        .82948E-01    .21934E-03   -.87115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70356e-09
Minuit parameter uncertainties:
  1  1.39619e-05
  2  3.49593
  3  9.22003
  4  2.11181e-06
  5  1.05399
  6  6.02625
  7  6.38658e-06
  8  2.57187e-06
  9  0.0191724
  10  11.0139
  11  0.588728
  12  2.38297
  13  9.1566e-07
  14  2.16478
  15  7.59509
  16  0.566523
  17  0.471495
  18  7.89715e-07
  19  0.136039
  20  0.0829569
Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  0.000e+00  2.572e-06  0.000e+00  1.000e+06 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.175e+00  8.296e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.247e-01  1.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 14.610 33.251
Photon Flux Upper Limit: 3.02575592895e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00232909402188 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18516048/likelihoodResults_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 32888.9890488
delta logL = -0.000531825171493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 32888.9885171
delta logL = -8.44884198159e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   32888.99     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      251 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6150        .42118E-03** at limit **
   2  Index         2.8436        1.9700        .70282E-04     .0000    
   3  Normalizat    .72469        1.0644       -.70277E-05    .15994E-05
   4  Prefactor     1.1747        1.1119        .51948E-05   -.49947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.84355
  Normalizat = 0.724692
  Prefactor  = 1.17466
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   32888.99     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .91577        2.1443        .70282E-04   -.44592    
   3  Normalizat    .72469        1.0644       -.70277E-05   -1.0293    
   4  Prefactor     1.1747        1.1119        .51948E-05   -.87115    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.62659e-12
Minuit parameter uncertainties:
  1  3.22072e-06
  2  2.03872
  3  1.09732
  4  1.13529
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) = 32888.988517
delta logL = 1.13504938781e-09

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  0.000e+00  3.221e-06  0.000e+00  1.000e+06 ( 1.000e-13)
190        Index:  2.844e+00  2.039e+00  0.000e+00  1.000e+01 (-1.000e+00)
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.175e+00  1.135e+00  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.247e-01  1.097e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 14.610 33.251

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/18516048/cmap_HighResolution_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-03', job_status='DONE', photon_flux_upper_limit='3.03e-08', time_completed='2023-06-20 00:18:52.962354', job_id='18516048', GAL2='1.17', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1687245532.96', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.14e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='776' AND source_name='4FGL J0058.4+3315' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 20 00:18:53 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  0.000e+00  2.572e-06  0.000e+00  1.000e+06 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.175e+00  8.296e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.247e-01  1.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 14.610 33.251
Photon Flux Upper Limit: 3.02575592895e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00232909402188 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18516047/likelihoodResults_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 32888.9890488
delta logL = -0.000531825171493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 32888.9885171
delta logL = -8.44884198159e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   32888.99     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      251 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6150        .42118E-03** at limit **
   2  Index         2.8436        1.9700        .70282E-04     .0000    
   3  Normalizat    .72469        1.0644       -.70277E-05    .15994E-05
   4  Prefactor     1.1747        1.1119        .51948E-05   -.49947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.84355
  Normalizat = 0.724692
  Prefactor  = 1.17466
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   32888.99     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .91577        2.1443        .70282E-04   -.44592    
   3  Normalizat    .72469        1.0644       -.70277E-05   -1.0293    
   4  Prefactor     1.1747        1.1119        .51948E-05   -.87115    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.62659e-12
Minuit parameter uncertainties:
  1  3.22072e-06
  2  2.03872
  3  1.09732
  4  1.13529
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) = 32888.988517
delta logL = 1.13504938781e-09

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  0.000e+00  3.221e-06  0.000e+00  1.000e+06 ( 1.000e-13)
190        Index:  2.844e+00  2.039e+00  0.000e+00  1.000e+01 (-1.000e+00)
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.175e+00  1.135e+00  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.247e-01  1.097e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 14.610 33.251

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/18516047/cmap_HighResolution_708307201_708912001_4FGL_J0058.4+3315_weekly_bin776.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-03', job_status='DONE', photon_flux_upper_limit='3.03e-08', time_completed='2023-06-20 00:19:07.185306', job_id='18516047', GAL2='1.17', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1687245547.19', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.14e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='776' AND source_name='4FGL J0058.4+3315' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 20 00:19:07 PDT 2023

