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

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

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

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


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

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

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

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

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


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

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


Performing analysis on: 4FGL_J0227.2+3928_weekly_bin776
RA = 36.8053, Dec = 39.4704
tmin = 708307201, tmax = 708912001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='18516248', job_status='RUN', time_executed='2023-06-20 00:06:58.183452', time_epoch_executed='1687244818.18' WHERE source_name='4FGL J0227.2+3928' and cadence='weekly' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18516248

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18516248/ft1_4FGL_J0227.2+3928_weekly_bin776.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18516248/ft2_4FGL_J0227.2+3928_weekly_bin776.fits


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

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

Done.
real 3.33
user 3.00
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18516248/ft2_4FGL_J0227.2+3928_weekly_bin776.fits

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

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

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

Number of photons that the gtmktime cut: 2415

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

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

Working on file /lscratch/kocevski/18516248/ft2_4FGL_J0227.2+3928_weekly_bin776.fits
.....................!
real 34.14
user 33.37
sys 0.29

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

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/18516248/ltcube_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits
.....................!
real 67.00
user 62.90
sys 3.63

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

Setting source of interest to:
4FGL J0227.2+3928 @ 36.8053 39.4704

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18516248/ft1_filtered_4FGL_J0227.2+3928_weekly_bin776.fits scfile=/lscratch/kocevski/18516248/ft2_4FGL_J0227.2+3928_weekly_bin776.fits outfile=/lscratch/kocevski/18516248/cmap_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.8053 yref=39.4704 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.41
user 0.24
sys 0.13

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

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

This is gtbin version HEAD
real 0.47
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18516248/ft1_filtered_4FGL_J0227.2+3928_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18516248/ft2_4FGL_J0227.2+3928_weekly_bin776.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18516248/Model_4FGL_J0227.2+3928_weekly_bin776.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcDone.


Performing analysis on: 4FGL_J0227.2+3928_weekly_bin776
RA = 36.8053, Dec = 39.4704
tmin = 708307201, tmax = 708912001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='18516249', job_status='RUN', time_executed='2023-06-20 00:06:58.183496', time_epoch_executed='1687244818.18' WHERE source_name='4FGL J0227.2+3928' and cadence='weekly' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18516249

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18516249/ft1_4FGL_J0227.2+3928_weekly_bin776.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18516249/ft2_4FGL_J0227.2+3928_weekly_bin776.fits


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

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

Done.
real 4.16
user 3.52
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18516249/ft2_4FGL_J0227.2+3928_weekly_bin776.fits

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

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

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

Number of photons that the gtmktime cut: 2415

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

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

Working on file /lscratch/kocevski/18516249/ft2_4FGL_J0227.2+3928_weekly_bin776.fits
.....................!
real 31.73
user 31.11
sys 0.26

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

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/18516249/ltcube_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits
.....................!
real 67.14
user 62.84
sys 3.77

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

Setting source of interest to:
4FGL J0227.2+3928 @ 36.8053 39.4704

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18516249/ft1_filtered_4FGL_J0227.2+3928_weekly_bin776.fits scfile=/lscratch/kocevski/18516249/ft2_4FGL_J0227.2+3928_weekly_bin776.fits outfile=/lscratch/kocevski/18516249/cmap_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.8053 yref=39.4704 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.44
user 0.24
sys 0.12

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

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

This is gtbin version HEAD
real 0.47
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18516249/ft1_filtered_4FGL_J0227.2+3928_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18516249/ft2_4FGL_J0227.2+3928_weekly_bin776.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18516249/Model_4FGL_J0227.2+3928_weekly_bin776.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/18516248/ft1_filtered_4FGL_J0227.2+3928_weekly_bin776.fits.....................!
real 109.33
user 107.85
sys 0.78

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18516248/ft1_filtered_4FGL_J0227.2+3928_weekly_bin776.fits', '/lscratch/kocevski/18516248/ft2_4FGL_J0227.2+3928_weekly_bin776.fits', expMap='/lscratch/kocevski/18516248/expmap_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits', expCube='/lscratch/kocevski/18516248/ltcube_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18516248/Model_4FGL_J0227.2+3928_weekly_bin776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.2+3928'

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.077e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
303        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18516248/ft1_filtered_4FGL_J0227.2+3928_weekly_bin776.fits
Spacecraft file(s): /lscratch/kocevski/18516248/ft2_4FGL_J0227.2+3928_weekly_bin776.fits
Exposure map: /lscratch/kocevski/18516248/expmap_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits
Exposure cube: /lscratch/kocevski/18516248/ltcube_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18516248/Model_4FGL_J0227.2+3928_weekly_bin776.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2409       1.0000          .0000       .10000E+07
     2 'Prefactor '    .34212E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15591E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5007       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.010       1.0000          .0000       .10000E+07
     6 'norm      '    .59714       1.0000          .0000       .10000E+07
     7 'Prefactor '    .61134E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .28422E-07   1.0000          .0000       .10000E+07
     9 'norm      '    .74776       1.0000          .0000       .10000E+07
    10 'norm      '    .62755       1.0000          .0000       .10000E+07
    11 'Prefactor '    .39579E-07   1.0000          .0000       .10000E+07
    12 'norm      '    4.1920       1.0000          .0000       .10000E+07
    13 'norm      '    .56194       1.0000          .0000       .10000E+07
    14 'Prefactor '    38.906       1.0000          .0000       .10000E+07
    15 'norm      '    5.7876       1.0000          .0000       .10000E+07
    16 'norm      '    .70475       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.306       1.0000          .0000       .10000E+07
    18 'norm      '    3.4271       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3593       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25742.44     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1555 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2409        .56833       -.10527E-07    .97514E-02
   2  Prefactor     .55511E-10    2.9974       -.33393E-06** at limit **
   3  Prefactor     .16653E-09    1.1816        .18993E-06** at limit **
   4  Prefactor     1.5195        14.602        .14810E-05   -.28466E-04
   5  Prefactor     13.005        1.0736       -.35104E-07   -.14782E-01
   6  norm          .59698        .92972       -.18669E-06    .48153E-02
   7  Prefactor     .94369E-09    6.7347       -.77688E-06** at limit **
   8  norm          .55511E-10    .80257       -.52961E-07** at limit **
   9  norm          .74795        .31420       -.95389E-07    .44989E-01
  10  norm          .62772        .19132        .28355E-08   -.98546E-02
  11  Prefactor      .0000        .79376        .26446E-07** at limit **
  12  norm          4.1915        2.5245        .31583E-07    .22509E-02
  13  norm          .56100        .91732        .22566E-06   -.92007E-02
  14  Prefactor     38.924        1.4053        .25710E-07    .12772    
  15  norm          5.7890        3.0662        .56784E-07    .11918E-03
  16  norm          .88084        58.268       -.51733E-05    .10704E-02
  17  Prefactor     11.314        7.6414        .63577E-06    .22658E-02
  18  norm          3.4268        .56279       -.39563E-07    .14618E-01
  19  Normalizat    1.3594        .13860       -.38011E-05    .33796E-03
  20  Prefactor     .91871        .59485E-01    .16137E-05    .62486E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2409
  Prefactor  = 5.55112e-11
  Prefactor  = 1.66533e-10
  Prefactor  = 1.51946
  Prefactor  = 13.0049
  norm       = 0.596984
  Prefactor  = 9.4369e-10
  norm       = 5.55112e-11
  norm       = 0.747951
  norm       = 0.627721
  Prefactor  = 0
  norm       = 4.19148
  norm       = 0.560996
  Prefactor  = 38.9238
  norm       = 5.78901
  norm       = 0.880838
  Prefactor  = 11.3136
  norm       = 3.42685
  Normalizat = 1.35937
  Prefactor  = 0.918713
e GAL_V02
Working on...
/lscratch/kocevski/18516249/ft1_filtered_4FGL_J0227.2+3928_weekly_bin776.fits.....................!
real 108.70
user 107.17
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18516249/ft1_filtered_4FGL_J0227.2+3928_weekly_bin776.fits', '/lscratch/kocevski/18516249/ft2_4FGL_J0227.2+3928_weekly_bin776.fits', expMap='/lscratch/kocevski/18516249/expmap_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits', expCube='/lscratch/kocevski/18516249/ltcube_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18516249/Model_4FGL_J0227.2+3928_weekly_bin776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.2+3928'

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.077e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
303        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18516249/ft1_filtered_4FGL_J0227.2+3928_weekly_bin776.fits
Spacecraft file(s): /lscratch/kocevski/18516249/ft2_4FGL_J0227.2+3928_weekly_bin776.fits
Exposure map: /lscratch/kocevski/18516249/expmap_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits
Exposure cube: /lscratch/kocevski/18516249/ltcube_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18516249/Model_4FGL_J0227.2+3928_weekly_bin776.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2409       1.0000          .0000       .10000E+07
     2 'Prefactor '    .34212E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15591E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5007       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.010       1.0000          .0000       .10000E+07
     6 'norm      '    .59714       1.0000          .0000       .10000E+07
     7 'Prefactor '    .61134E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .28422E-07   1.0000          .0000       .10000E+07
     9 'norm      '    .74776       1.0000          .0000       .10000E+07
    10 'norm      '    .62755       1.0000          .0000       .10000E+07
    11 'Prefactor '    .39579E-07   1.0000          .0000       .10000E+07
    12 'norm      '    4.1920       1.0000          .0000       .10000E+07
    13 'norm      '    .56194       1.0000          .0000       .10000E+07
    14 'Prefactor '    38.906       1.0000          .0000       .10000E+07
    15 'norm      '    5.7876       1.0000          .0000       .10000E+07
    16 'norm      '    .70475       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.306       1.0000          .0000       .10000E+07
    18 'norm      '    3.4271       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3593       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25742.44     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1555 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2409        .56833       -.10527E-07    .97514E-02
   2  Prefactor     .55511E-10    2.9974       -.33393E-06** at limit **
   3  Prefactor     .16653E-09    1.1816        .18993E-06** at limit **
   4  Prefactor     1.5195        14.602        .14810E-05   -.28466E-04
   5  Prefactor     13.005        1.0736       -.35104E-07   -.14782E-01
   6  norm          .59698        .92972       -.18669E-06    .48153E-02
   7  Prefactor     .94369E-09    6.7347       -.77688E-06** at limit **
   8  norm          .55511E-10    .80257       -.52961E-07** at limit **
   9  norm          .74795        .31420       -.95389E-07    .44989E-01
  10  norm          .62772        .19132        .28355E-08   -.98546E-02
  11  Prefactor      .0000        .79376        .26446E-07** at limit **
  12  norm          4.1915        2.5245        .31583E-07    .22509E-02
  13  norm          .56100        .91732        .22566E-06   -.92007E-02
  14  Prefactor     38.924        1.4053        .25710E-07    .12772    
  15  norm          5.7890        3.0662        .56784E-07    .11918E-03
  16  norm          .88084        58.268       -.51733E-05    .10704E-02
  17  Prefactor     11.314        7.6414        .63577E-06    .22658E-02
  18  norm          3.4268        .56279       -.39563E-07    .14618E-01
  19  Normalizat    1.3594        .13860       -.38011E-05    .33796E-03
  20  Prefactor     .91871        .59485E-01    .16137E-05    .62486E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2409
  Prefactor  = 5.55112e-11
  Prefactor  = 1.66533e-10
  Prefactor  = 1.51946
  Prefactor  = 13.0049
  norm       = 0.596984
  Prefactor  = 9.4369e-10
  norm       = 5.55112e-11
  norm       = 0.747951
  norm       = 0.627721
  Prefactor  = 0
  norm       = 4.19148
  norm       = 0.560996
  Prefactor  = 38.9238
  norm       = 5.78901
  norm       = 0.880838
  Prefactor  = 11.3136
  norm       = 3.42685
  Normalizat = 1.35937
  Prefactor  = 0.918713
 **********
 **   18 **HESSE 
 **********

 FCN=   25742.44     FROM HESSE     STATUS=OK           339 CALLS     1894 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2409        .57470        .10061E-02   -1.5686    
   2  Prefactor     .55511E-10    2.9978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    1.1713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5195        14.447        .87376E-03   -1.5683    
   5  Prefactor     13.005        27.452        .27745E-03   -1.5636    
   6  norm          .59698        .95245        .69485E-03   -1.5693    
   7  Prefactor     .94369E-09    6.6099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55511E-10    .80132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .74795        .31721        .56913E-03   -1.5691    
  10  norm          .62772        .19309        .66795E-03   -1.5692    
  11  Prefactor      .0000        .79203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1915        2.5364        .49198E-03   -1.5667    
  13  norm          .56100        .93129        .72709E-03   -1.5693    
  14  Prefactor     38.924        45.992        .16034E-03   -1.5583    
  15  norm          5.7890        3.0596        .41725E-03   -1.5660    
  16  norm          .88084        57.468        .60324E-03   -1.5689    
  17  Prefactor     11.314        7.6257        .29769E-03   -1.5641    
  18  norm          3.4268        .56159        .54615E-03   -1.5671    
  19  Normalizat    1.3594        .12448        .80590E-01   -.81811    
  20  Prefactor     .91871        .52709E-01    .45244E-01   -.95490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47199e-06
Minuit parameter uncertainties:
  1  0.574705
  2  2.64291e-05
  3  2.57824e-05
  4  9.37062
  5  27.452
  6  0.95245
  7  0.000156896
  8  1.00214e-05
  9  0.317206
  10  0.19309
  11  3.7602e-06
  12  2.53643
  13  0.931288
  14  45.9927
  15  3.05961
  16  14.2297
  17  7.6257
  18  0.56159
  19  0.124503
  20  0.0527117
 **********
 **   18 **HESSE 
 **********

 FCN=   25742.44     FROM HESSE     STATUS=OK           339 CALLS     1894 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2409        .57470        .10061E-02   -1.5686    
   2  Prefactor     .55511E-10    2.9978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    1.1713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5195        14.447        .87376E-03   -1.5683    
   5  Prefactor     13.005        27.452        .27745E-03   -1.5636    
   6  norm          .59698        .95245        .69485E-03   -1.5693    
   7  Prefactor     .94369E-09    6.6099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55511E-10    .80132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .74795        .31721        .56913E-03   -1.5691    
  10  norm          .62772        .19309        .66795E-03   -1.5692    
  11  Prefactor      .0000        .79203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1915        2.5364        .49198E-03   -1.5667    
  13  norm          .56100        .93129        .72709E-03   -1.5693    
  14  Prefactor     38.924        45.992        .16034E-03   -1.5583    
  15  norm          5.7890        3.0596        .41725E-03   -1.5660    
  16  norm          .88084        57.468        .60324E-03   -1.5689    
  17  Prefactor     11.314        7.6257        .29769E-03   -1.5641    
  18  norm          3.4268        .56159        .54615E-03   -1.5671    
  19  Normalizat    1.3594        .12448        .80590E-01   -.81811    
  20  Prefactor     .91871        .52709E-01    .45244E-01   -.95490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47199e-06
Minuit parameter uncertainties:
  1  0.574705
  2  2.64291e-05
  3  2.57824e-05
  4  9.37062
  5  27.452
  6  0.95245
  7  0.000156896
  8  1.00214e-05
  9  0.317206
  10  0.19309
  11  3.7602e-06
  12  2.53643
  13  0.931288
  14  45.9927
  15  3.05961
  16  14.2297
  17  7.6257
  18  0.56159
  19  0.124503
  20  0.0527117
Done.

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

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  0.000e+00  3.760e-06  0.000e+00  1.000e+06 ( 1.000e-12)
303        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.187e-01  5.271e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.359e+00  1.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 36.805 39.470
Photon Flux Upper Limit: 3.47978972618e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275344136554 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18516248/likelihoodResults_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25742.4418994
delta logL = -0.00373193058476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25742.4381676
delta logL = -3.74056980945e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   25742.44     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      239 TOTAL
                     EDM=   .47E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3530        .42118E-03** at limit **
   2  Index         1.8076        .92521       -.85788E-05     .0000    
   3  Normalizat    1.3594        1.0682        .47901E-05   -.47996E-04
   4  Prefactor     .91871        1.2627        .12442E-05   -.20289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.80764
  Normalizat = 1.35937
  Prefactor  = 0.918713
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25742.44     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .47E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33527        1.5660       -.85788E-05   -.69251    
   3  Normalizat    1.3594        1.0682        .47901E-05   -.81811    
   4  Prefactor     .91871        1.2627        .12442E-05   -.95490    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.65698e-12
Minuit parameter uncertainties:
  1  1.11846e-06
  2  0.934366
  3  1.08648
  4  1.30682
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) = 25742.4381675
delta logL = 2.54658516496e-11

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  0.000e+00  1.118e-06  0.000e+00  1.000e+06 ( 1.000e-12)
303        Index:  1.808e+00  9.344e-01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.187e-01  1.307e+00  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.359e+00  1.086e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 36.805 39.470

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/18516248/cmap_HighResolution_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.48e-08', time_completed='2023-06-20 00:18:54.652617', job_id='18516248', GAL2='0.92', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1687245534.65', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='776' AND source_name='4FGL J0227.2+3928' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 20 00:18:54 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  0.000e+00  3.760e-06  0.000e+00  1.000e+06 ( 1.000e-12)
303        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.187e-01  5.271e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.359e+00  1.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 36.805 39.470
Photon Flux Upper Limit: 3.47978972618e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275344136554 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18516249/likelihoodResults_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25742.4418994
delta logL = -0.00373193058476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25742.4381676
delta logL = -3.74056980945e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   25742.44     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      239 TOTAL
                     EDM=   .47E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3530        .42118E-03** at limit **
   2  Index         1.8076        .92521       -.85788E-05     .0000    
   3  Normalizat    1.3594        1.0682        .47901E-05   -.47996E-04
   4  Prefactor     .91871        1.2627        .12442E-05   -.20289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.80764
  Normalizat = 1.35937
  Prefactor  = 0.918713
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25742.44     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .47E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33527        1.5660       -.85788E-05   -.69251    
   3  Normalizat    1.3594        1.0682        .47901E-05   -.81811    
   4  Prefactor     .91871        1.2627        .12442E-05   -.95490    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.65698e-12
Minuit parameter uncertainties:
  1  1.11846e-06
  2  0.934366
  3  1.08648
  4  1.30682
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) = 25742.4381675
delta logL = 2.54658516496e-11

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  0.000e+00  1.118e-06  0.000e+00  1.000e+06 ( 1.000e-12)
303        Index:  1.808e+00  9.344e-01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.187e-01  1.307e+00  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.359e+00  1.086e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 36.805 39.470

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/18516249/cmap_HighResolution_708307201_708912001_4FGL_J0227.2+3928_weekly_bin776.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.48e-08', time_completed='2023-06-20 00:19:02.381986', job_id='18516249', GAL2='0.92', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1687245542.38', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='776' AND source_name='4FGL J0227.2+3928' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 20 00:19:02 PDT 2023

