/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).

/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/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)

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)

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_J0011.4+0057_weekly_bin776
RA = 2.8551, Dec = 0.9646
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='18515940', job_status='RUN', time_executed='2023-06-20 00:06:33.100732', time_epoch_executed='1687244793.1' WHERE source_name='4FGL J0011.4+0057' and cadence='weekly' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18515940

Creating custom pfile directory:
/lscratch/kocevski/18515940/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/18515940/ft1_4FGL_J0011.4+0057_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/18515940/ft2_4FGL_J0011.4+0057_weekly_bin776.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18515940/ft1_4FGL_J0011.4+0057_weekly_bin776.fits outfile=/lscratch/kocevski/18515940/ft1_filteredMKT_4FGL_J0011.4+0057_weekly_bin776.fits ra=2.8551 dec=0.9646 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.13
user 2.80
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18515940/ft2_4FGL_J0011.4+0057_weekly_bin776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18515940/ft2_4FGL_J0011.4+0057_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/18515940/ft1_filteredMKT_4FGL_J0011.4+0057_weekly_bin776.fits evtable="EVENTS" outfile="/lscratch/kocevski/18515940/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1902

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18515940/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18515940/ft2_4FGL_J0011.4+0057_weekly_bin776.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18515940/ltcube_708307201_708912001_4FGL_J0011.4+0057_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/18515940/ft2_4FGL_J0011.4+0057_weekly_bin776.fits
.....................!
real 26.38
user 25.81
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18515940/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18515940/ft2_4FGL_J0011.4+0057_weekly_bin776.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18515940/ltcube_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits outfile=/lscratch/kocevski/18515940/expmap_708307201_708912001_4FGL_J0011.4+0057_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/18515940/ltcube_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits
.....................!
real 67.25
user 63.21
sys 3.53

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

Setting source of interest to:
4FGL J0011.4+0057 @ 2.8551 0.9646

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18515940/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits scfile=/lscratch/kocevski/18515940/ft2_4FGL_J0011.4+0057_weekly_bin776.fits outfile=/lscratch/kocevski/18515940/cmap_708307201_708912001_4FGL_J0011.4+0057_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=2.8551 yref=0.9646 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.40
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18515940/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits scfile=/lscratch/kocevski/18515940/ft2_4FGL_J0011.4+0057_weekly_bin776.fits outfile=/lscratch/kocevski/18515940/cmap_HighResolution_708307201_708912001_4FGL_J0011.4+0057_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=2.8551 yref=0.9646 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.39
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18515940/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18515940/ft2_4FGL_J0011.4+0057_weekly_bin776.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18515940/Model_4FGL_J0011.4+0057_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
WDone.


Performing analysis on: 4FGL_J0011.4+0057_weekly_bin776
RA = 2.8551, Dec = 0.9646
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='18515939', job_status='RUN', time_executed='2023-06-20 00:06:33.592365', time_epoch_executed='1687244793.59' WHERE source_name='4FGL J0011.4+0057' and cadence='weekly' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18515939

Creating custom pfile directory:
/lscratch/kocevski/18515939/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/18515939/ft1_4FGL_J0011.4+0057_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/18515939/ft2_4FGL_J0011.4+0057_weekly_bin776.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18515939/ft1_4FGL_J0011.4+0057_weekly_bin776.fits outfile=/lscratch/kocevski/18515939/ft1_filteredMKT_4FGL_J0011.4+0057_weekly_bin776.fits ra=2.8551 dec=0.9646 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.75
user 3.38
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18515939/ft2_4FGL_J0011.4+0057_weekly_bin776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18515939/ft2_4FGL_J0011.4+0057_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/18515939/ft1_filteredMKT_4FGL_J0011.4+0057_weekly_bin776.fits evtable="EVENTS" outfile="/lscratch/kocevski/18515939/ft1_filtered_4FGL_J0011.4+0057_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.52
user 0.27
sys 0.13

Number of photons that the gtmktime cut: 1902

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18515939/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18515939/ft2_4FGL_J0011.4+0057_weekly_bin776.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18515939/ltcube_708307201_708912001_4FGL_J0011.4+0057_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/18515939/ft2_4FGL_J0011.4+0057_weekly_bin776.fits
.....................!
real 29.63
user 28.88
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18515939/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18515939/ft2_4FGL_J0011.4+0057_weekly_bin776.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18515939/ltcube_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits outfile=/lscratch/kocevski/18515939/expmap_708307201_708912001_4FGL_J0011.4+0057_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/18515939/ltcube_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits
.....................!
real 66.20
user 62.21
sys 3.54

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

Setting source of interest to:
4FGL J0011.4+0057 @ 2.8551 0.9646

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18515939/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits scfile=/lscratch/kocevski/18515939/ft2_4FGL_J0011.4+0057_weekly_bin776.fits outfile=/lscratch/kocevski/18515939/cmap_708307201_708912001_4FGL_J0011.4+0057_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=2.8551 yref=0.9646 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.38
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18515939/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits scfile=/lscratch/kocevski/18515939/ft2_4FGL_J0011.4+0057_weekly_bin776.fits outfile=/lscratch/kocevski/18515939/cmap_HighResolution_708307201_708912001_4FGL_J0011.4+0057_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=2.8551 yref=0.9646 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.39
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18515939/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18515939/ft2_4FGL_J0011.4+0057_weekly_bin776.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18515939/Model_4FGL_J0011.4+0057_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
orking on...
/lscratch/kocevski/18515940/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits.....................!
real 69.76
user 68.48
sys 0.79

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18515940/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits', '/lscratch/kocevski/18515940/ft2_4FGL_J0011.4+0057_weekly_bin776.fits', expMap='/lscratch/kocevski/18515940/expmap_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits', expCube='/lscratch/kocevski/18515940/ltcube_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18515940/Model_4FGL_J0011.4+0057_weekly_bin776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0011.4+0057'

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.882e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18515940/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits
Spacecraft file(s): /lscratch/kocevski/18515940/ft2_4FGL_J0011.4+0057_weekly_bin776.fits
Exposure map: /lscratch/kocevski/18515940/expmap_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits
Exposure cube: /lscratch/kocevski/18515940/ltcube_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18515940/Model_4FGL_J0011.4+0057_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) = 20715.8755671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5969       1.0000          .0000       .10000E+07
     2 'Prefactor '    .14965E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .45320E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .57906E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .19635E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .91371E-07   1.0000          .0000       .10000E+07
     7 'norm      '    .33736E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    9.5640       1.0000          .0000       .10000E+07
     9 'norm      '    6.2609       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11445E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.2451       1.0000          .0000       .10000E+07
    12 'Prefactor '    12.165       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7441       1.0000          .0000       .10000E+07
    14 'norm      '    .11852E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .37593E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    15.738       1.0000          .0000       .10000E+07
    17 'Prefactor '    16.173       1.0000          .0000       .10000E+07
    18 'Prefactor '    .56647E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    .88873       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0658       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20715.83     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1232 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5894        4.6025        .12710E-06   -.27192E-02
   2  Prefactor      .0000        5.1340       -.88395E-07** at limit **
   3  Prefactor     .26645E-08    1.7084        .10539E-06** at limit **
   4  norm          .55511E-10    .71590        .35805E-06** at limit **
   5  Prefactor     .11102E-09    1.4026        .10054E-06** at limit **
   6  norm          .18041E-07    1.9059        .26171E-07** at limit **
   7  norm          .38858E-09    1.2613       -.10841E-06** at limit **
   8  Prefactor     9.5692        1.5770        .55377E-07    .87308E-01
   9  norm          6.2648        4.1395       -.23429E-07    .22500E-02
  10  Prefactor     .55511E-10    .89098        .18486E-06** at limit **
  11  Prefactor     2.2479        1.4583       -.84267E-07   -.53323E-03
  12  Prefactor     12.759        18.636       -.38343E-07   -.39652E-01
  13  Prefactor     3.8115        10.188        .12555E-05    .30597E-01
  14  norm          .20151E-07    1.6110        .19364E-06** at limit **
  15  Prefactor     .55511E-10    .75884        .26785E-06** at limit **
  16  Prefactor     15.437        13.068        .77975E-06   -.68953E-01
  17  Prefactor     16.459        1.5371        .38571E-08    .59051E-01
  18  Prefactor     .29754E-07    1.1559       -.76626E-07** at limit **
  19  Normalizat    .88877        .11041        .63138E-06    .12780E-03
  20  Prefactor     1.0655        .87858E-01    .19538E-05    .17972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.58939
  Prefactor  = 0
  Prefactor  = 2.66454e-09
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  norm       = 1.80411e-08
  norm       = 3.88578e-10
  Prefactor  = 9.56921
  norm       = 6.26477
  Prefactor  = 5.55112e-11
  Prefactor  = 2.24792
  Prefactor  = 12.7586
  Prefactor  = 3.81154
  norm       = 2.01505e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 15.4369
  Prefactor  = 16.4593
  Prefactor  = 2.9754e-08
  Normalizat = 0.888769
  Prefactor  = 1.06548
Working on...
/lscratch/kocevski/18515939/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits.....................!
real 69.59
user 67.85
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18515939/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits', '/lscratch/kocevski/18515939/ft2_4FGL_J0011.4+0057_weekly_bin776.fits', expMap='/lscratch/kocevski/18515939/expmap_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits', expCube='/lscratch/kocevski/18515939/ltcube_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18515939/Model_4FGL_J0011.4+0057_weekly_bin776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0011.4+0057'

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.882e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18515939/ft1_filtered_4FGL_J0011.4+0057_weekly_bin776.fits
Spacecraft file(s): /lscratch/kocevski/18515939/ft2_4FGL_J0011.4+0057_weekly_bin776.fits
Exposure map: /lscratch/kocevski/18515939/expmap_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits
Exposure cube: /lscratch/kocevski/18515939/ltcube_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18515939/Model_4FGL_J0011.4+0057_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) = 20715.8755671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5969       1.0000          .0000       .10000E+07
     2 'Prefactor '    .14965E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .45320E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .57906E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .19635E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .91371E-07   1.0000          .0000       .10000E+07
     7 'norm      '    .33736E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    9.5640       1.0000          .0000       .10000E+07
     9 'norm      '    6.2609       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11445E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.2451       1.0000          .0000       .10000E+07
    12 'Prefactor '    12.165       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7441       1.0000          .0000       .10000E+07
    14 'norm      '    .11852E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .37593E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    15.738       1.0000          .0000       .10000E+07
    17 'Prefactor '    16.173       1.0000          .0000       .10000E+07
    18 'Prefactor '    .56647E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    .88873       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0658       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20715.83     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1232 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5894        4.6025        .12710E-06   -.27192E-02
   2  Prefactor      .0000        5.1340       -.88395E-07** at limit **
   3  Prefactor     .26645E-08    1.7084        .10539E-06** at limit **
   4  norm          .55511E-10    .71590        .35805E-06** at limit **
   5  Prefactor     .11102E-09    1.4026        .10054E-06** at limit **
   6  norm          .18041E-07    1.9059        .26171E-07** at limit **
   7  norm          .38858E-09    1.2613       -.10841E-06** at limit **
   8  Prefactor     9.5692        1.5770        .55377E-07    .87308E-01
   9  norm          6.2648        4.1395       -.23429E-07    .22500E-02
  10  Prefactor     .55511E-10    .89098        .18486E-06** at limit **
  11  Prefactor     2.2479        1.4583       -.84267E-07   -.53323E-03
  12  Prefactor     12.759        18.636       -.38343E-07   -.39652E-01
  13  Prefactor     3.8115        10.188        .12555E-05    .30597E-01
  14  norm          .20151E-07    1.6110        .19364E-06** at limit **
  15  Prefactor     .55511E-10    .75884        .26785E-06** at limit **
  16  Prefactor     15.437        13.068        .77975E-06   -.68953E-01
  17  Prefactor     16.459        1.5371        .38571E-08    .59051E-01
  18  Prefactor     .29754E-07    1.1559       -.76626E-07** at limit **
  19  Normalizat    .88877        .11041        .63138E-06    .12780E-03
  20  Prefactor     1.0655        .87858E-01    .19538E-05    .17972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.58939
  Prefactor  = 0
  Prefactor  = 2.66454e-09
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  norm       = 1.80411e-08
  norm       = 3.88578e-10
  Prefactor  = 9.56921
  norm       = 6.26477
  Prefactor  = 5.55112e-11
  Prefactor  = 2.24792
  Prefactor  = 12.7586
  Prefactor  = 3.81154
  norm       = 2.01505e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 15.4369
  Prefactor  = 16.4593
  Prefactor  = 2.9754e-08
  Normalizat = 0.888769
  Prefactor  = 1.06548
 **********
 **   18 **HESSE 
 **********

 FCN=   20715.83     FROM HESSE     STATUS=OK           331 CALLS     1563 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5894        4.6154        .46923E-03   -1.5665    
   2  Prefactor      .0000        5.1153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .26645E-08    1.8053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    .70342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    1.4271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .18041E-07    .52320        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .38858E-09    1.2489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5692        5.1664        .32380E-03   -1.5646    
   9  norm          6.2648        4.1438        .40094E-03   -1.5658    
  10  Prefactor     .55511E-10    .87308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2479        1.4621        .68558E-03   -1.5678    
  12  Prefactor     12.759        20.514        .28695E-03   -1.5637    
  13  Prefactor     3.8115        13.517        .52156E-03   -1.5669    
  14  norm          .20151E-07    2.1221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    .75587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.437        17.356        .25220E-03   -1.5629    
  17  Prefactor     16.459        10.286        .24878E-03   -1.5627    
  18  Prefactor     .29754E-07    1.9778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88877        .99551E-01    .44757E-01   -.96856    
  20  Prefactor     1.0655        .77849E-01    .39062E-01   -.90577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52106e-07
Minuit parameter uncertainties:
  1  4.61544
  2  1.19516e-05
  3  0.000139251
  4  1.31975e-05
  5  2.53825e-05
  6  0.00019421
  7  4.29997e-05
  8  5.1664
  9  4.1438
  10  1.46384e-05
  11  1.46214
  12  20.5143
  13  13.5174
  14  0.000413338
  15  1.01268e-05
  16  17.3558
  17  10.2858
  18  0.000485121
  19  0.0995711
  20  0.0778569
 **********
 **   18 **HESSE 
 **********

 FCN=   20715.83     FROM HESSE     STATUS=OK           331 CALLS     1563 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5894        4.6154        .46923E-03   -1.5665    
   2  Prefactor      .0000        5.1153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .26645E-08    1.8053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    .70342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    1.4271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .18041E-07    .52320        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .38858E-09    1.2489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5692        5.1664        .32380E-03   -1.5646    
   9  norm          6.2648        4.1438        .40094E-03   -1.5658    
  10  Prefactor     .55511E-10    .87308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2479        1.4621        .68558E-03   -1.5678    
  12  Prefactor     12.759        20.514        .28695E-03   -1.5637    
  13  Prefactor     3.8115        13.517        .52156E-03   -1.5669    
  14  norm          .20151E-07    2.1221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    .75587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.437        17.356        .25220E-03   -1.5629    
  17  Prefactor     16.459        10.286        .24878E-03   -1.5627    
  18  Prefactor     .29754E-07    1.9778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88877        .99551E-01    .44757E-01   -.96856    
  20  Prefactor     1.0655        .77849E-01    .39062E-01   -.90577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52106e-07
Minuit parameter uncertainties:
  1  4.61544
  2  1.19516e-05
  3  0.000139251
  4  1.31975e-05
  5  2.53825e-05
  6  0.00019421
  7  4.29997e-05
  8  5.1664
  9  4.1438
  10  1.46384e-05
  11  1.46214
  12  20.5143
  13  13.5174
  14  0.000413338
  15  1.01268e-05
  16  17.3558
  17  10.2858
  18  0.000485121
  19  0.0995711
  20  0.0778569
Done.

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

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  0.000e+00  1.195e-05  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.888e-01  9.957e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 2.855 0.965
Photon Flux Upper Limit: 3.07227158407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00236343087385 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18515940/likelihoodResults_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20715.8357727
delta logL = -0.000834160284285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20714.4185425
delta logL = 1.41639594213

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20715.83     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      423 TOTAL
                     EDM=   .66E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .17000        .42118E-03** at limit **
   2  Index         .37009        .51689        .97854E-07     .0000    
   3  Normalizat    .88877        1.2074        .57555E-05   -.72390E-05
   4  Prefactor     1.0655        1.1401        .49936E-05    .61534E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.370087
  Normalizat = 0.888769
  Prefactor  = 1.06548
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20715.83     FROM HESSE     STATUS=FAILED         9 CALLS      432 TOTAL
                     EDM=   .66E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .17000        .42118E-03   -32.987    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .37673E-01    .51689        .97854E-07   -.12218E+06
   3  Normalizat    .88877        1.2074        .57555E-05   -2055.6    
   4  Prefactor     1.0655        1.1401        .49936E-05   -1522.8    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.57684e-14
Minuit parameter uncertainties:
  1  7.07246e-08
  2  0.523577
  3  1.2474
  4  1.16777
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) = 20715.8349385
delta logL = 0.0

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  0.000e+00  7.072e-08  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  3.701e-01  5.236e-01  0.000e+00  1.000e+01 (-1.000e+00)
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.888e-01  1.247e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 2.855 0.965

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/18515940/cmap_HighResolution_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-03', job_status='DONE', photon_flux_upper_limit='3.07e-08', time_completed='2023-06-20 00:15:08.181373', job_id='18515940', GAL2='1.07', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1687245308.18', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='776' AND source_name='4FGL J0011.4+0057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 20 00:15:08 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  0.000e+00  1.195e-05  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.888e-01  9.957e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 2.855 0.965
Photon Flux Upper Limit: 3.07227158407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00236343087385 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18515939/likelihoodResults_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20715.8357727
delta logL = -0.000834160284285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20714.4185425
delta logL = 1.41639594213

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20715.83     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      423 TOTAL
                     EDM=   .66E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .17000        .42118E-03** at limit **
   2  Index         .37009        .51689        .97854E-07     .0000    
   3  Normalizat    .88877        1.2074        .57555E-05   -.72390E-05
   4  Prefactor     1.0655        1.1401        .49936E-05    .61534E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.370087
  Normalizat = 0.888769
  Prefactor  = 1.06548
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20715.83     FROM HESSE     STATUS=FAILED         9 CALLS      432 TOTAL
                     EDM=   .66E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .17000        .42118E-03   -32.987    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .37673E-01    .51689        .97854E-07   -.12218E+06
   3  Normalizat    .88877        1.2074        .57555E-05   -2055.6    
   4  Prefactor     1.0655        1.1401        .49936E-05   -1522.8    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.57684e-14
Minuit parameter uncertainties:
  1  7.07246e-08
  2  0.523577
  3  1.2474
  4  1.16777
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) = 20715.8349385
delta logL = 0.0

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  0.000e+00  7.072e-08  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  3.701e-01  5.236e-01  0.000e+00  1.000e+01 (-1.000e+00)
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.888e-01  1.247e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 2.855 0.965

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/18515939/cmap_HighResolution_708307201_708912001_4FGL_J0011.4+0057_weekly_bin776.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-03', job_status='DONE', photon_flux_upper_limit='3.07e-08', time_completed='2023-06-20 00:15:19.148995', job_id='18515939', GAL2='1.07', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1687245319.15', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='776' AND source_name='4FGL J0011.4+0057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 20 00:15:19 PDT 2023

