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


Performing analysis on: 4FGL_J0427.3+0504_weekly_bin827
RA = 66.8294, Dec = 5.08
tmin = 739152001, tmax = 739756801
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='50334610', job_status='RUN', time_executed='2024-06-11 00:18:49.931465', time_epoch_executed='1718090329.93' WHERE source_name='4FGL J0427.3+0504' and cadence='weekly' and bin_id='827'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/50334610

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/50334610/ft1_4FGL_J0427.3+0504_weekly_bin827.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/50334610/ft2_4FGL_J0427.3+0504_weekly_bin827.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/50334610/ft1_4FGL_J0427.3+0504_weekly_bin827.fits outfile=/lscratch/kocevski/50334610/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin827.fits ra=66.8294 dec=5.08 rad=12.0 tmin=739152001.0 tmax=739756801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.77
user 4.25
sys 0.27

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

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

Number of photons that the gtmktime cut: 2617

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


Performing analysis on: 4FGL_J0427.3+0504_weekly_bin827
RA = 66.8294, Dec = 5.08
tmin = 739152001, tmax = 739756801
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='50334615', job_status='RUN', time_executed='2024-06-11 00:18:51.349940', time_epoch_executed='1718090331.35' WHERE source_name='4FGL J0427.3+0504' and cadence='weekly' and bin_id='827'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/50334615

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/50334615/ft1_4FGL_J0427.3+0504_weekly_bin827.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/50334615/ft2_4FGL_J0427.3+0504_weekly_bin827.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/50334615/ft1_4FGL_J0427.3+0504_weekly_bin827.fits outfile=/lscratch/kocevski/50334615/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin827.fits ra=66.8294 dec=5.08 rad=12.0 tmin=739152001.0 tmax=739756801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.87
user 4.31
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/50334615/ft2_4FGL_J0427.3+0504_weekly_bin827.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/50334615/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin827.fits evtable="EVENTS" outfile="/lscratch/kocevski/50334615/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2617

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/50334615/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits" evtable="EVENTS" scfile=/lscratch/kocevski/50334615/ft2_4FGL_J0427.3+0504_weekly_bin827.fits sctable="SC_DATA" outfile=/lscratch/kocevski/50334615/ltcube_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.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/50334615/ft2_4FGL_J0427.3+0504_weekly_bin827.fits
.....................!
real 15.94
user 15.08
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/50334615/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits evtable="EVENTS" scfile=/lscratch/kocevski/50334615/ft2_4FGL_J0427.3+0504_weekly_bin827.fits sctable="SC_DATA" expcube=/lscratch/kocevski/50334615/ltcube_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits outfile=/lscratch/kocevski/50334615/expmap_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.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/50334615/ltcube_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits
.....................!
real 59.48
user 55.52
sys 3.49

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/50334615/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits scfile=/lscratch/kocevski/50334615/ft2_4FGL_J0427.3+0504_weekly_bin827.fits outfile=/lscratch/kocevski/50334615/cmap_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.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.43
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/50334615/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits scfile=/lscratch/kocevski/50334615/ft2_4FGL_J0427.3+0504_weekly_bin827.fits outfile=/lscratch/kocevski/50334615/cmap_HighResolution_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.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.42
user 0.19
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/50334615/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits evtable="EVENTS" scfile=/lscratch/kocevski/50334615/ft2_4FGL_J0427.3+0504_weekly_bin827.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/50334615/Model_4FGL_J0427.3+0504_weekly_bin827.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
Workile=/lscratch/kocevski/50334610/ltcube_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.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/50334610/ft2_4FGL_J0427.3+0504_weekly_bin827.fits
.....................!
real 16.70
user 16.00
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/50334610/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits evtable="EVENTS" scfile=/lscratch/kocevski/50334610/ft2_4FGL_J0427.3+0504_weekly_bin827.fits sctable="SC_DATA" expcube=/lscratch/kocevski/50334610/ltcube_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits outfile=/lscratch/kocevski/50334610/expmap_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.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/50334610/ltcube_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits
.....................!
real 60.52
user 55.29
sys 3.68

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/50334610/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits scfile=/lscratch/kocevski/50334610/ft2_4FGL_J0427.3+0504_weekly_bin827.fits outfile=/lscratch/kocevski/50334610/cmap_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.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.59
user 0.25
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/50334610/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits scfile=/lscratch/kocevski/50334610/ft2_4FGL_J0427.3+0504_weekly_bin827.fits outfile=/lscratch/kocevski/50334610/cmap_HighResolution_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.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.42
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/50334610/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits evtable="EVENTS" scfile=/lscratch/kocevski/50334610/ft2_4FGL_J0427.3+0504_weekly_bin827.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/50334610/Model_4FGL_J0427.3+0504_weekly_bin827.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/50334615/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits.....................!
real 131.10
user 129.51
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/50334615/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits', '/lscratch/kocevski/50334615/ft2_4FGL_J0427.3+0504_weekly_bin827.fits', expMap='/lscratch/kocevski/50334615/expmap_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits', expCube='/lscratch/kocevski/50334615/ltcube_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/50334615/Model_4FGL_J0427.3+0504_weekly_bin827.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/50334615/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits
Spacecraft file(s): /lscratch/kocevski/50334615/ft2_4FGL_J0427.3+0504_weekly_bin827.fits
Exposure map: /lscratch/kocevski/50334615/expmap_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits
Exposure cube: /lscratch/kocevski/50334615/ltcube_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/50334615/Model_4FGL_J0427.3+0504_weekly_bin827.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) = 27927.7682357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66001E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.8114       1.0000          .0000       .10000E+07
     3 'norm      '    .40403E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    14.370       1.0000          .0000       .10000E+07
     5 'norm      '    .83267E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.9259       1.0000          .0000       .10000E+07
     7 'norm      '    .48787       1.0000          .0000       .10000E+07
     8 'norm      '    2.6681       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7505       1.0000          .0000       .10000E+07
    10 'Prefactor '    .79574E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .18674E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11826E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10706E-02   1.0000          .0000       .10000E+07
    14 'norm      '    3.7481       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19946E-03   1.0000          .0000       .10000E+07
    16 'norm      '    22.314       1.0000          .0000       .10000E+07
    17 'norm      '    14.607       1.0000          .0000       .10000E+07
    18 'Prefactor '    .27503       1.0000          .0000       .10000E+07
    19 'norm      '    2.3007       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.4050       1.0000          .0000       .10000E+07
    21 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
    22 'norm      '    5.9396       1.0000          .0000       .10000E+07
    23 'Prefactor '    .19207E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1163       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1055       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MIng on...
/lscratch/kocevski/50334610/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits.....................!
real 131.75
user 130.36
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/50334610/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits', '/lscratch/kocevski/50334610/ft2_4FGL_J0427.3+0504_weekly_bin827.fits', expMap='/lscratch/kocevski/50334610/expmap_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits', expCube='/lscratch/kocevski/50334610/ltcube_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/50334610/Model_4FGL_J0427.3+0504_weekly_bin827.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/50334610/ft1_filtered_4FGL_J0427.3+0504_weekly_bin827.fits
Spacecraft file(s): /lscratch/kocevski/50334610/ft2_4FGL_J0427.3+0504_weekly_bin827.fits
Exposure map: /lscratch/kocevski/50334610/expmap_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits
Exposure cube: /lscratch/kocevski/50334610/ltcube_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/50334610/Model_4FGL_J0427.3+0504_weekly_bin827.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) = 27927.7682357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66001E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.8114       1.0000          .0000       .10000E+07
     3 'norm      '    .40403E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    14.370       1.0000          .0000       .10000E+07
     5 'norm      '    .83267E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.9259       1.0000          .0000       .10000E+07
     7 'norm      '    .48787       1.0000          .0000       .10000E+07
     8 'norm      '    2.6681       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7505       1.0000          .0000       .10000E+07
    10 'Prefactor '    .79574E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .18674E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11826E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10706E-02   1.0000          .0000       .10000E+07
    14 'norm      '    3.7481       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19946E-03   1.0000          .0000       .10000E+07
    16 'norm      '    22.314       1.0000          .0000       .10000E+07
    17 'norm      '    14.607       1.0000          .0000       .10000E+07
    18 'Prefactor '    .27503       1.0000          .0000       .10000E+07
    19 'norm      '    2.3007       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.4050       1.0000          .0000       .10000E+07
    21 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
    22 'norm      '    5.9396       1.0000          .0000       .10000E+07
    23 'Prefactor '    .19207E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1163       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1055       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.

 FCN=   27927.70     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     2594 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    8.3199        .12235E-06** at limit **
   2  Prefactor     9.8212        9.5253        .80835E-10   -.13223E-02
   3  norm           .0000        4.2059       -.31012E-09** at limit **
   4  Prefactor     14.373        14.102        .29586E-08   -.18129E-03
   5  norm           .0000        .54805        .24257E-09** at limit **
   6  Prefactor     8.3160        20.201        .19208E-07   -.84017E-06
   7  norm          .55251        3.2424        .32853E-07   -.34342E-03
   8  norm          2.6687        .78575       -.10702E-08   -.54030E-02
   9  Prefactor     1.7508        .99656       -.54199E-08   -.49842E-02
  10  Prefactor      .0000        16.965       -.60329E-07** at limit **
  11  Prefactor     .16653E-09    23.601        .88105E-07** at limit **
  12  Prefactor      .0000        2.3523        .11771E-08** at limit **
  13  Prefactor      .0000        7.0981        .14606E-07** at limit **
  14  norm          3.7457        2.2307       -.11717E-07    .22908E-02
  15  Prefactor     .44409E-09    8.0458       -.13732E-06** at limit **
  16  norm          22.320        2.6529       -.28367E-08   -.26593E-02
  17  norm          14.609        2.2576       -.35169E-08   -.12555E-02
  18  Prefactor     .88818E-09    191.20       -.57466E-05** at limit **
  19  norm          2.3016        1.4036       -.71171E-08   -.49458E-03
  20  Prefactor     3.6701        29.584       -.70253E-07    .30705E-03
  21  norm           .0000        .16848       -.63434E-09** at limit **
  22  norm          5.9358        2.6410       -.75215E-07    .15632E-02
  23  Prefactor      .0000        1.0433       -.68359E-09** at limit **
  24  Normalizat    1.1155        .17507       -.24771E-06   -.56752E-04
  25  Prefactor     1.1056        .50399E-01    .16969E-06    .12506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Prefactor  = 9.82122
  norm       = 0
  Prefactor  = 14.3727
  norm       = 0
  Prefactor  = 8.316
  norm       = 0.552508
  norm       = 2.66866
  Prefactor  = 1.75084
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.74568
  Prefactor  = 4.44089e-10
  norm       = 22.3202
  norm       = 14.6087
  Prefactor  = 8.88178e-10
  norm       = 2.30161
  Prefactor  = 3.67011
  norm       = 0
  norm       = 5.93584
  Prefactor  = 0
  Normalizat = 1.11548
  Prefactor  = 1.10558
NIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27927.70     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     2594 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    8.3199        .12235E-06** at limit **
   2  Prefactor     9.8212        9.5253        .80835E-10   -.13223E-02
   3  norm           .0000        4.2059       -.31012E-09** at limit **
   4  Prefactor     14.373        14.102        .29586E-08   -.18129E-03
   5  norm           .0000        .54805        .24257E-09** at limit **
   6  Prefactor     8.3160        20.201        .19208E-07   -.84017E-06
   7  norm          .55251        3.2424        .32853E-07   -.34342E-03
   8  norm          2.6687        .78575       -.10702E-08   -.54030E-02
   9  Prefactor     1.7508        .99656       -.54199E-08   -.49842E-02
  10  Prefactor      .0000        16.965       -.60329E-07** at limit **
  11  Prefactor     .16653E-09    23.601        .88105E-07** at limit **
  12  Prefactor      .0000        2.3523        .11771E-08** at limit **
  13  Prefactor      .0000        7.0981        .14606E-07** at limit **
  14  norm          3.7457        2.2307       -.11717E-07    .22908E-02
  15  Prefactor     .44409E-09    8.0458       -.13732E-06** at limit **
  16  norm          22.320        2.6529       -.28367E-08   -.26593E-02
  17  norm          14.609        2.2576       -.35169E-08   -.12555E-02
  18  Prefactor     .88818E-09    191.20       -.57466E-05** at limit **
  19  norm          2.3016        1.4036       -.71171E-08   -.49458E-03
  20  Prefactor     3.6701        29.584       -.70253E-07    .30705E-03
  21  norm           .0000        .16848       -.63434E-09** at limit **
  22  norm          5.9358        2.6410       -.75215E-07    .15632E-02
  23  Prefactor      .0000        1.0433       -.68359E-09** at limit **
  24  Normalizat    1.1155        .17507       -.24771E-06   -.56752E-04
  25  Prefactor     1.1056        .50399E-01    .16969E-06    .12506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Prefactor  = 9.82122
  norm       = 0
  Prefactor  = 14.3727
  norm       = 0
  Prefactor  = 8.316
  norm       = 0.552508
  norm       = 2.66866
  Prefactor  = 1.75084
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.74568
  Prefactor  = 4.44089e-10
  norm       = 22.3202
  norm       = 14.6087
  Prefactor  = 8.88178e-10
  norm       = 2.30161
  Prefactor  = 3.67011
  norm       = 0
  norm       = 5.93584
  Prefactor  = 0
  Normalizat = 1.11548
  Prefactor  = 1.10558
 **********
 **   18 **HESSE 
 **********

 FCN=   27927.70     FROM HESSE     STATUS=OK           441 CALLS     3035 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    8.3298        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.8212        9.5146        .12787E-04   -1.5645    
   3  norm           .0000        4.2150        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.373        14.096        .10559E-04   -1.5632    
   5  norm           .0000        .54834        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3160        20.156        .14237E-04   -1.5650    
   7  norm          .55251        25.155        .56850E-03   -1.5693    
   8  norm          2.6687        .78353        .75714E-05   -1.5675    
   9  Prefactor     1.7508        .99403        .11912E-04   -1.5681    
  10  Prefactor      .0000        17.003        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16653E-09    23.625        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.3579        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        7.1133        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7457        2.2222        .17997E-04   -1.5669    
  15  Prefactor     .44409E-09    8.0632        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.320        2.6632        .42350E-04   -1.5613    
  17  norm          14.609        2.2591        .93446E-05   -1.5632    
  18  Prefactor     .88818E-09    14.460        .15179E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.3016        1.3985        .14829E-04   -1.5678    
  20  Prefactor     3.6701        28.018        .21920E-04   -1.5670    
  21  norm           .0000        .17218        .13335E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.9358        2.6429        .82358E-04   -1.5659    
  23  Prefactor      .0000        1.0459        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1155        .19093        .52243E-03   -.89256    
  25  Prefactor     1.1056        .55033E-01    .16656E-03   -.89288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02178e-07
Minuit parameter uncertainties:
  1  0.000124996
  2  9.51464
  3  4.32032e-07
  4  14.0959
  5  3.51496e-08
  6  20.1565
  7  7.45611
  8  0.783532
  9  0.994035
  10  2.54248e-05
  11  0.000132997
  12  1.86589e-07
  13  1.81881e-05
  14  2.22224
  15  0.000118555
  16  2.66324
  17  2.25908
  18  0.000229998
  19  1.39846
  20  20.2809
  21  2.72752e-06
  22  2.64287
  23  3.59151e-07
  24  0.191049
  25  0.0550357
 **********
 **   18 **HESSE 
 **********

 FCN=   27927.70     FROM HESSE     STATUS=OK           441 CALLS     3035 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    8.3298        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.8212        9.5146        .12787E-04   -1.5645    
   3  norm           .0000        4.2150        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.373        14.096        .10559E-04   -1.5632    
   5  norm           .0000        .54834        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3160        20.156        .14237E-04   -1.5650    
   7  norm          .55251        25.155        .56850E-03   -1.5693    
   8  norm          2.6687        .78353        .75714E-05   -1.5675    
   9  Prefactor     1.7508        .99403        .11912E-04   -1.5681    
  10  Prefactor      .0000        17.003        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16653E-09    23.625        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.3579        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        7.1133        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7457        2.2222        .17997E-04   -1.5669    
  15  Prefactor     .44409E-09    8.0632        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.320        2.6632        .42350E-04   -1.5613    
  17  norm          14.609        2.2591        .93446E-05   -1.5632    
  18  Prefactor     .88818E-09    14.460        .15179E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.3016        1.3985        .14829E-04   -1.5678    
  20  Prefactor     3.6701        28.018        .21920E-04   -1.5670    
  21  norm           .0000        .17218        .13335E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.9358        2.6429        .82358E-04   -1.5659    
  23  Prefactor      .0000        1.0459        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1155        .19093        .52243E-03   -.89256    
  25  Prefactor     1.1056        .55033E-01    .16656E-03   -.89288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02178e-07
Minuit parameter uncertainties:
  1  0.000124996
  2  9.51464
  3  4.32032e-07
  4  14.0959
  5  3.51496e-08
  6  20.1565
  7  7.45611
  8  0.783532
  9  0.994035
  10  2.54248e-05
  11  0.000132997
  12  1.86589e-07
  13  1.81881e-05
  14  2.22224
  15  0.000118555
  16  2.66324
  17  2.25908
  18  0.000229998
  19  1.39846
  20  20.2809
  21  2.72752e-06
  22  2.64287
  23  3.59151e-07
  24  0.191049
  25  0.0550357
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  0.000e+00  2.542e-05  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:  1.106e+00  5.504e-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.115e+00  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 9.01914373811e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0071643184233 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/50334615/likelihoodResults_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 27927.7027556
delta logL = -0.000159102884936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27926.9915187
delta logL = 0.71107776518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33032E-02   1.0000          .0000       .10000E+07
     2 'Index     '    9.9966       1.0000          .0000       10.000    
     3 'Normalizat'    1.0665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1144       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=   27927.70     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      390 TOTAL
                     EDM=   .84E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.396        .66009E-06** at limit **
   2  Index         2.6791        .40183       -.15425E-07     .0000    
   3  Normalizat    1.1155        .16562       -.58413E-05    .10524E-04
   4  Prefactor     1.1056        .53043E-01    .14210E-05   -.45755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6791
  Normalizat = 1.11548
  Prefactor  = 1.10558
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27927.70     FROM HESSE     STATUS=FAILED        11 CALLS      401 TOTAL
                     EDM=   .84E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81246        1.9854       -.15425E-07   -.48271    
   3  Normalizat    1.1155        1.2079       -.58413E-05   -2.2490    
   4  Prefactor     1.1056        1.1359        .14210E-05   -2.2487    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.36399e-13
Minuit parameter uncertainties:
  1  3.64227e-07
  2  1.42309
  3  1.24002
  4  1.16228
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) = 27927.7025965
delta logL = 1.09139364213e-11

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  0.000e+00  3.642e-07  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.679e+00  1.423e+00  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:  1.106e+00  1.162e+00  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.115e+00  1.240e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 66.829 5.080

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/50334615/cmap_HighResolution_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.16e-03', job_status='DONE', photon_flux_upper_limit='9.02e-08', time_completed='2024-06-11 00:41:31.446056', job_id='50334615', GAL2='1.11', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1718091691.45', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='827' AND source_name='4FGL J0427.3+0504' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 11 00:41:32 PDT 2024

Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  0.000e+00  2.542e-05  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:  1.106e+00  5.504e-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.115e+00  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 9.01914373811e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0071643184233 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/50334610/likelihoodResults_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 27927.7027556
delta logL = -0.000159102884936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27926.9915187
delta logL = 0.71107776518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33032E-02   1.0000          .0000       .10000E+07
     2 'Index     '    9.9966       1.0000          .0000       10.000    
     3 'Normalizat'    1.0665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1144       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=   27927.70     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      390 TOTAL
                     EDM=   .84E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.396        .66009E-06** at limit **
   2  Index         2.6791        .40183       -.15425E-07     .0000    
   3  Normalizat    1.1155        .16562       -.58413E-05    .10524E-04
   4  Prefactor     1.1056        .53043E-01    .14210E-05   -.45755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6791
  Normalizat = 1.11548
  Prefactor  = 1.10558
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27927.70     FROM HESSE     STATUS=FAILED        11 CALLS      401 TOTAL
                     EDM=   .84E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81246        1.9854       -.15425E-07   -.48271    
   3  Normalizat    1.1155        1.2079       -.58413E-05   -2.2490    
   4  Prefactor     1.1056        1.1359        .14210E-05   -2.2487    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.36399e-13
Minuit parameter uncertainties:
  1  3.64227e-07
  2  1.42309
  3  1.24002
  4  1.16228
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) = 27927.7025965
delta logL = 1.09139364213e-11

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  0.000e+00  3.642e-07  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.679e+00  1.423e+00  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:  1.106e+00  1.162e+00  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.115e+00  1.240e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 66.829 5.080

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/50334610/cmap_HighResolution_739152001_739756801_4FGL_J0427.3+0504_weekly_bin827.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.16e-03', job_status='DONE', photon_flux_upper_limit='9.02e-08', time_completed='2024-06-11 00:41:52.305822', job_id='50334610', GAL2='1.11', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1718091712.31', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='827' AND source_name='4FGL J0427.3+0504' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 11 00:41:52 PDT 2024

