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


Performing analysis on: 4FGL_J0427.3+0504_weekly_bin781
RA = 66.8294, Dec = 5.08
tmin = 711331201, tmax = 711936001
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='20007500', job_status='RUN', time_executed='2023-07-25 00:06:25.316200', time_epoch_executed='1690268785.32' WHERE source_name='4FGL J0427.3+0504' and cadence='weekly' and bin_id='781'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/20007500

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

Retrieving the FT1 file...

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

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

Retrieving 93 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/20007500/ft1_4FGL_J0427.3+0504_weekly_bin781.fits


Retrieving the FT1 file...

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

Retrieving 93 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/20007500/ft1_4FGL_J0427.3+0504_weekly_bin781.fits outfile=/lscratch/kocevski/20007500/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin781.fits ra=66.8294 dec=5.08 rad=12.0 tmin=711331201.0 tmax=711936001.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.63
user 3.41
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.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/20007500/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin781.fits evtable="EVENTS" outfile="/lscratch/kocevski/20007500/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.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.32
user 0.18
sys 0.12

Number of photons that the gtmktime cut: 2576

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/20007500/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits" evtable="EVENTS" scfile=/lscratch/kocevski/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.fits sctable="SC_DATA" outfileDone.


Performing analysis on: 4FGL_J0427.3+0504_weekly_bin781
RA = 66.8294, Dec = 5.08
tmin = 711331201, tmax = 711936001
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='20007496', job_status='RUN', time_executed='2023-07-25 00:06:25.162378', time_epoch_executed='1690268785.16' WHERE source_name='4FGL J0427.3+0504' and cadence='weekly' and bin_id='781'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/20007496

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

Retrieving the FT1 file...

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

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

Retrieving 93 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/20007496/ft1_4FGL_J0427.3+0504_weekly_bin781.fits


Retrieving the FT1 file...

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

Retrieving 93 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/20007496/ft1_4FGL_J0427.3+0504_weekly_bin781.fits outfile=/lscratch/kocevski/20007496/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin781.fits ra=66.8294 dec=5.08 rad=12.0 tmin=711331201.0 tmax=711936001.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.65
user 3.42
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.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/20007496/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin781.fits evtable="EVENTS" outfile="/lscratch/kocevski/20007496/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.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.33
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 2576

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/20007496/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits" evtable="EVENTS" scfile=/lscratch/kocevski/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.fits sctable="SC_DATA" outfile=/lscratch/kocevski/20007500/ltcube_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.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/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.fits
.....................!
real 16.20
user 15.87
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/20007500/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits evtable="EVENTS" scfile=/lscratch/kocevski/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.fits sctable="SC_DATA" expcube=/lscratch/kocevski/20007500/ltcube_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits outfile=/lscratch/kocevski/20007500/expmap_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.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/20007500/ltcube_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits
.....................!
real 58.75
user 55.34
sys 3.15

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

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/20007500/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits scfile=/lscratch/kocevski/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.fits outfile=/lscratch/kocevski/20007500/cmap_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.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=66.8294 yref=5.08 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.36
user 0.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/20007500/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits scfile=/lscratch/kocevski/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.fits outfile=/lscratch/kocevski/20007500/cmap_HighResolution_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.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=66.8294 yref=5.08 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.35
user 0.19
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/20007500/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits evtable="EVENTS" scfile=/lscratch/kocevski/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/20007500/Model_4FGL_J0427.3+0504_weekly_bin781.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=/lscratch/kocevski/20007496/ltcube_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.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/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.fits
.....................!
real 17.82
user 17.47
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/20007496/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits evtable="EVENTS" scfile=/lscratch/kocevski/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.fits sctable="SC_DATA" expcube=/lscratch/kocevski/20007496/ltcube_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits outfile=/lscratch/kocevski/20007496/expmap_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.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/20007496/ltcube_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits
.....................!
real 58.75
user 55.43
sys 3.06

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

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/20007496/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits scfile=/lscratch/kocevski/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.fits outfile=/lscratch/kocevski/20007496/cmap_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.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=66.8294 yref=5.08 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.46
user 0.19
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/20007496/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits scfile=/lscratch/kocevski/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.fits outfile=/lscratch/kocevski/20007496/cmap_HighResolution_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.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=66.8294 yref=5.08 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.37
user 0.19
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/20007496/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits evtable="EVENTS" scfile=/lscratch/kocevski/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/20007496/Model_4FGL_J0427.3+0504_weekly_bin781.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/20007500/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits.....................!
real 126.88
user 125.57
sys 0.80

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/20007500/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits', '/lscratch/kocevski/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.fits', expMap='/lscratch/kocevski/20007500/expmap_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits', expCube='/lscratch/kocevski/20007500/ltcube_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/20007500/Model_4FGL_J0427.3+0504_weekly_bin781.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/20007500/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits
Spacecraft file(s): /lscratch/kocevski/20007500/ft2_4FGL_J0427.3+0504_weekly_bin781.fits
Exposure map: /lscratch/kocevski/20007500/expmap_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits
Exposure cube: /lscratch/kocevski/20007500/ltcube_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/20007500/Model_4FGL_J0427.3+0504_weekly_bin781.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) = 26981.4480171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53722E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    22.946       1.0000          .0000       .10000E+07
     3 'norm      '    .88036       1.0000          .0000       .10000E+07
     4 'Prefactor '    .55743E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .51903E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .84842E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .31024E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.7482       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5532       1.0000          .0000       .10000E+07
    10 'Prefactor '    24.480       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.4880       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.0368       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12563E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .92946       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.2992       1.0000          .0000       .10000E+07
    16 'norm      '    3.6925       1.0000          .0000       .10000E+07
    17 'norm      '    1.0693       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.6700       1.0000          .0000       .10000E+07
    19 'norm      '    29.556       1.0000          .0000       .10000E+07
    20 'Prefactor '    .58437E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .20754       1.0000          .0000       .10000E+07
    22 'norm      '    2.7503       1.0000          .0000       .10000E+07
    23 'Prefactor '    .20549E-04   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.2636       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94666       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIM on...
/lscratch/kocevski/20007496/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits.....................!
real 126.16
user 125.05
sys 0.58

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/20007496/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits', '/lscratch/kocevski/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.fits', expMap='/lscratch/kocevski/20007496/expmap_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits', expCube='/lscratch/kocevski/20007496/ltcube_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/20007496/Model_4FGL_J0427.3+0504_weekly_bin781.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/20007496/ft1_filtered_4FGL_J0427.3+0504_weekly_bin781.fits
Spacecraft file(s): /lscratch/kocevski/20007496/ft2_4FGL_J0427.3+0504_weekly_bin781.fits
Exposure map: /lscratch/kocevski/20007496/expmap_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits
Exposure cube: /lscratch/kocevski/20007496/ltcube_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/20007496/Model_4FGL_J0427.3+0504_weekly_bin781.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) = 26981.4480171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53722E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    22.946       1.0000          .0000       .10000E+07
     3 'norm      '    .88036       1.0000          .0000       .10000E+07
     4 'Prefactor '    .55743E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .51903E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .84842E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .31024E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.7482       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5532       1.0000          .0000       .10000E+07
    10 'Prefactor '    24.480       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.4880       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.0368       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12563E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .92946       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.2992       1.0000          .0000       .10000E+07
    16 'norm      '    3.6925       1.0000          .0000       .10000E+07
    17 'norm      '    1.0693       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.6700       1.0000          .0000       .10000E+07
    19 'norm      '    29.556       1.0000          .0000       .10000E+07
    20 'Prefactor '    .58437E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .20754       1.0000          .0000       .10000E+07
    22 'norm      '    2.7503       1.0000          .0000       .10000E+07
    23 'Prefactor '    .20549E-04   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.2636       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94666       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26981.31     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1673 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22760E-08    12.749       -.14008E-06** at limit **
   2  Prefactor     22.946        1.9171       -.33034E-06   -.10167    
   3  norm          .88547        .48703       -.22466E-06   -.59833E-02
   4  Prefactor     .11102E-09    4.9176        .34405E-06** at limit **
   5  norm           .0000        .61363        .66281E-06** at limit **
   6  Prefactor      .0000        4.2730       -.63839E-06** at limit **
   7  norm          .11324E-07    10.669       -.52578E-05** at limit **
   8  norm          1.7501        .68852       -.10561E-06   -.25373E-02
   9  Prefactor     1.5563        .95359       -.12819E-06    .84191E-02
  10  Prefactor     24.873        1.8810       -.17997E-06    .69721E-03
  11  Prefactor     5.2295        2.5291       -.10279E-05    .25116E-02
  12  Prefactor     2.0446        4.4588        .90561E-06   -.46463E-02
  13  Prefactor     .33307E-09    28.261       -.10656E-04** at limit **
  14  norm          .89599        1.4955        .59481E-07    .34494E-02
  15  Prefactor     5.2012        1.3172        .11563E-06   -.12042E-02
  16  norm          3.6937        1.4615        .71514E-07   -.30922E-02
  17  norm          1.0686        1.3481       -.10789E-06    .18775E-02
  18  Prefactor     5.6294        1.0957        .39997E-07    .50159E-02
  19  norm          29.565        2.6986        .80930E-08   -.21483E-01
  20  Prefactor     .15543E-08    8.5677        .28926E-05** at limit **
  21  norm          .20756        .26004        .47264E-07** at limit **
  22  norm          2.7507        2.0280        .15954E-07   -.14126E-02
  23  Prefactor     .11102E-09    1.2270       -.19013E-06** at limit **
  24  Normalizat    1.2633        .16656        .46337E-05    .28230E-03
  25  Prefactor     .94672        .50085E-01   -.14339E-05    .17051E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27596e-09
  Prefactor  = 22.9458
  norm       = 0.885469
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 0
  norm       = 1.13243e-08
  norm       = 1.75012
  Prefactor  = 1.55625
  Prefactor  = 24.8734
  Prefactor  = 5.22946
  Prefactor  = 2.04462
  Prefactor  = 3.33067e-10
  norm       = 0.895988
  Prefactor  = 5.20115
  norm       = 3.69372
  norm       = 1.06857
  Prefactor  = 5.62945
  norm       = 29.5652
  Prefactor  = 1.55431e-09
  norm       = 0.207558
  norm       = 2.7507
  Prefactor  = 1.11022e-10
  Normalizat = 1.26331
  Prefactor  = 0.946718
IZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26981.31     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1673 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22760E-08    12.749       -.14008E-06** at limit **
   2  Prefactor     22.946        1.9171       -.33034E-06   -.10167    
   3  norm          .88547        .48703       -.22466E-06   -.59833E-02
   4  Prefactor     .11102E-09    4.9176        .34405E-06** at limit **
   5  norm           .0000        .61363        .66281E-06** at limit **
   6  Prefactor      .0000        4.2730       -.63839E-06** at limit **
   7  norm          .11324E-07    10.669       -.52578E-05** at limit **
   8  norm          1.7501        .68852       -.10561E-06   -.25373E-02
   9  Prefactor     1.5563        .95359       -.12819E-06    .84191E-02
  10  Prefactor     24.873        1.8810       -.17997E-06    .69721E-03
  11  Prefactor     5.2295        2.5291       -.10279E-05    .25116E-02
  12  Prefactor     2.0446        4.4588        .90561E-06   -.46463E-02
  13  Prefactor     .33307E-09    28.261       -.10656E-04** at limit **
  14  norm          .89599        1.4955        .59481E-07    .34494E-02
  15  Prefactor     5.2012        1.3172        .11563E-06   -.12042E-02
  16  norm          3.6937        1.4615        .71514E-07   -.30922E-02
  17  norm          1.0686        1.3481       -.10789E-06    .18775E-02
  18  Prefactor     5.6294        1.0957        .39997E-07    .50159E-02
  19  norm          29.565        2.6986        .80930E-08   -.21483E-01
  20  Prefactor     .15543E-08    8.5677        .28926E-05** at limit **
  21  norm          .20756        .26004        .47264E-07** at limit **
  22  norm          2.7507        2.0280        .15954E-07   -.14126E-02
  23  Prefactor     .11102E-09    1.2270       -.19013E-06** at limit **
  24  Normalizat    1.2633        .16656        .46337E-05    .28230E-03
  25  Prefactor     .94672        .50085E-01   -.14339E-05    .17051E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27596e-09
  Prefactor  = 22.9458
  norm       = 0.885469
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 0
  norm       = 1.13243e-08
  norm       = 1.75012
  Prefactor  = 1.55625
  Prefactor  = 24.8734
  Prefactor  = 5.22946
  Prefactor  = 2.04462
  Prefactor  = 3.33067e-10
  norm       = 0.895988
  Prefactor  = 5.20115
  norm       = 3.69372
  norm       = 1.06857
  Prefactor  = 5.62945
  norm       = 29.5652
  Prefactor  = 1.55431e-09
  norm       = 0.207558
  norm       = 2.7507
  Prefactor  = 1.11022e-10
  Normalizat = 1.26331
  Prefactor  = 0.946718
 **********
 **   18 **HESSE 
 **********

 FCN=   26981.31     FROM HESSE     STATUS=OK           485 CALLS     2158 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22760E-08    12.831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.946        10.191        .20881E-03   -1.5612    
   3  norm          .88547        7.6354        .47128E-03   -1.5689    
   4  Prefactor     .11102E-09    4.9247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .61319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.2684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .11324E-07    10.793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7501        .70972        .79277E-03   -1.5682    
   9  Prefactor     1.5563        1.0344        .85409E-03   -1.5683    
  10  Prefactor     24.873        14.508        .20216E-03   -1.5608    
  11  Prefactor     5.2295        28.815        .42867E-03   -1.5662    
  12  Prefactor     2.0446        4.4869        .72440E-03   -1.5679    
  13  Prefactor     .33307E-09    28.144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89599        1.7162        .43744E-03   -1.5689    
  15  Prefactor     5.2012        17.095        .43637E-03   -1.5662    
  16  norm          3.6937        1.4666        .52534E-03   -1.5670    
  17  norm          1.0686        1.3676        .11753E-02   -1.5687    
  18  Prefactor     5.6294        12.433        .42162E-03   -1.5661    
  19  norm          29.565        2.6988        .18397E-03   -1.5599    
  20  Prefactor     .15543E-08    8.7056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .20756        .29258        .22168E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.7507        2.0924        .61358E-03   -1.5675    
  23  Prefactor     .11102E-09    1.2214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2633        .15431        .99538E-01   -.84668    
  25  Prefactor     .94672        .44694E-01    .45597E-01   -.94527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04097e-06
Minuit parameter uncertainties:
  1  0.000340717
  2  10.1912
  3  5.20034
  4  4.13405e-05
  5  4.52696e-06
  6  2.26476e-06
  7  0.000699093
  8  0.709717
  9  1.03439
  10  14.508
  11  24.551
  12  4.48689
  13  0.000190812
  14  1.71624
  15  17.0956
  16  1.46658
  17  1.36764
  18  12.433
  19  2.69882
  20  0.000231347
  21  0.292577
  22  2.09241
  23  2.3799e-05
  24  0.154368
  25  0.0446961
 **********
 **   18 **HESSE 
 **********

 FCN=   26981.31     FROM HESSE     STATUS=OK           485 CALLS     2158 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22760E-08    12.831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.946        10.191        .20881E-03   -1.5612    
   3  norm          .88547        7.6354        .47128E-03   -1.5689    
   4  Prefactor     .11102E-09    4.9247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .61319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.2684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .11324E-07    10.793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7501        .70972        .79277E-03   -1.5682    
   9  Prefactor     1.5563        1.0344        .85409E-03   -1.5683    
  10  Prefactor     24.873        14.508        .20216E-03   -1.5608    
  11  Prefactor     5.2295        28.815        .42867E-03   -1.5662    
  12  Prefactor     2.0446        4.4869        .72440E-03   -1.5679    
  13  Prefactor     .33307E-09    28.144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89599        1.7162        .43744E-03   -1.5689    
  15  Prefactor     5.2012        17.095        .43637E-03   -1.5662    
  16  norm          3.6937        1.4666        .52534E-03   -1.5670    
  17  norm          1.0686        1.3676        .11753E-02   -1.5687    
  18  Prefactor     5.6294        12.433        .42162E-03   -1.5661    
  19  norm          29.565        2.6988        .18397E-03   -1.5599    
  20  Prefactor     .15543E-08    8.7056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .20756        .29258        .22168E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.7507        2.0924        .61358E-03   -1.5675    
  23  Prefactor     .11102E-09    1.2214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2633        .15431        .99538E-01   -.84668    
  25  Prefactor     .94672        .44694E-01    .45597E-01   -.94527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04097e-06
Minuit parameter uncertainties:
  1  0.000340717
  2  10.1912
  3  5.20034
  4  4.13405e-05
  5  4.52696e-06
  6  2.26476e-06
  7  0.000699093
  8  0.709717
  9  1.03439
  10  14.508
  11  24.551
  12  4.48689
  13  0.000190812
  14  1.71624
  15  17.0956
  16  1.46658
  17  1.36764
  18  12.433
  19  2.69882
  20  0.000231347
  21  0.292577
  22  2.09241
  23  2.3799e-05
  24  0.154368
  25  0.0446961
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.487e+01  1.451e+01  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.467e-01  4.470e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.263e+00  1.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 7.78e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 9.76e-06

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) = 26981.3096619
delta logL = 0.00115901622485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26981.3093316
delta logL = 0.00148930556315

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   26981.31     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      272 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.544        14.836        .80769E-05    .55796E-02
   2  Index         2.8935        .59553        .13837E-01    .20929E-03
   3  Normalizat    1.2619        .15573        .44125E-03   -.12707E-03
   4  Prefactor     .94701        .48965E-01    .15964E-03   -.52369E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5439
  Index      = 2.89345
  Normalizat = 1.26194
  Prefactor  = 0.947009
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.487e+01  1.451e+01  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.467e-01  4.470e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.263e+00  1.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 7.78e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 9.76e-06

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) = 26981.3096619
delta logL = 0.00115901622485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26981.3093316
delta logL = 0.00148930556315

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   26981.31     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      272 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.544        14.836        .80769E-05    .55796E-02
   2  Index         2.8935        .59553        .13837E-01    .20929E-03
   3  Normalizat    1.2619        .15573        .44125E-03   -.12707E-03
   4  Prefactor     .94701        .48965E-01    .15964E-03   -.52369E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5439
  Index      = 2.89345
  Normalizat = 1.26194
  Prefactor  = 0.947009
 **********
 **   18 **HESSE 
 **********

 FCN=   26981.31     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.544        14.202        .32307E-06   -1.5609    
   2  Index         2.8935        .56978        .55350E-03   -.43489    
   3  Normalizat    1.2619        .15578        .17650E-04   -.84710    
   4  Prefactor     .94701        .48953E-01    .31928E-04   -.94517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98121e-10
Minuit parameter uncertainties:
  1  14.2019
  2  0.571291
  3  0.155841
  4  0.0489548
 **********
 **   18 **HESSE 
 **********

 FCN=   26981.31     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.544        14.202        .32307E-06   -1.5609    
   2  Index         2.8935        .56978        .55350E-03   -.43489    
   3  Normalizat    1.2619        .15578        .17650E-04   -.84710    
   4  Prefactor     .94701        .48953E-01    .31928E-04   -.94517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98121e-10
Minuit parameter uncertainties:
  1  14.2019
  2  0.571291
  3  0.155841
  4  0.0489548
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) = 26981.3093309
delta logL = 0.00149000377132

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.454e+01  1.420e+01  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.893e+00  5.713e-01  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.470e-01  4.895e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.262e+00  1.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.99
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.89 +/- 0.57
Photon Flux (Free Index): 7.89e-08 +/- 4.52e-08
Energy Flux (Free Index): 1.67e-05 +/- 8.71e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/20007496/cmap_HighResolution_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.78e-08', energy_flux2='1.67e-05', photon_flux_error='4.53e-08', dlogl='1.49e-03', energy_flux='1.67e-05', photon_flux2='7.89e-08', job_status='DONE', time_completed='2023-07-25 00:15:09.454940', photon_index_error2='0.57', photon_index2='2.89', ts='4.99', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='8.71e-06', EG='1.26', time_epoch_completed='1690269309.45', return_code='0', job_id='20007496', GAL2='0.95', EG2='1.26', return_code2='0', energy_flux_error='9.76e-06', photon_flux_error2='4.52e-08', ts2='4.99', photon_index='2.86' WHERE bin_id='781' AND source_name='4FGL J0427.3+0504' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 25 00:15:09 PDT 2023

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) = 26981.3093309
delta logL = 0.00149000377132

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.454e+01  1.420e+01  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.893e+00  5.713e-01  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.470e-01  4.895e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.262e+00  1.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.99
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.89 +/- 0.57
Photon Flux (Free Index): 7.89e-08 +/- 4.52e-08
Energy Flux (Free Index): 1.67e-05 +/- 8.71e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/20007500/cmap_HighResolution_711331201_711936001_4FGL_J0427.3+0504_weekly_bin781.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.78e-08', energy_flux2='1.67e-05', photon_flux_error='4.53e-08', dlogl='1.49e-03', energy_flux='1.67e-05', photon_flux2='7.89e-08', job_status='DONE', time_completed='2023-07-25 00:15:09.864565', photon_index_error2='0.57', photon_index2='2.89', ts='4.99', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='8.71e-06', EG='1.26', time_epoch_completed='1690269309.86', return_code='0', job_id='20007500', GAL2='0.95', EG2='1.26', return_code2='0', energy_flux_error='9.76e-06', photon_flux_error2='4.52e-08', ts2='4.99', photon_index='2.86' WHERE bin_id='781' AND source_name='4FGL J0427.3+0504' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 25 00:15:09 PDT 2023

