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


Performing analysis on: 4FGL_J0102.4+4214_weekly_bin773
RA = 15.6069, Dec = 42.2371
tmin = 706492801, tmax = 707097601
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='17971255', job_status='RUN', time_executed='2023-05-30 00:06:18.291357', time_epoch_executed='1685430378.29' WHERE source_name='4FGL J0102.4+4214' and cadence='weekly' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17971255

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17971255/ft1_4FGL_J0102.4+4214_weekly_bin773.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17971255/ft1_4FGL_J0102.4+4214_weekly_bin773.fits outfile=/lscratch/kocevski/17971255/ft1_filteredMKT_4FGL_J0102.4+4214_weekly_bin773.fits ra=15.6069 dec=42.2371 rad=12.0 tmin=706492801.0 tmax=707097601.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.07
user 3.73
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.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/17971255/ft1_filteredMKT_4FGL_J0102.4+4214_weekly_bin773.fits evtable="EVENTS" outfile="/lscratch/kocevski/17971255/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.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.23
sys 0.14

Number of photons that the gtmktime cut: 2955

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17971255/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17971255/ltcube_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.fits
.....................!
real 24.95
user 24.36
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17971255/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17971255/ltcube_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits outfile=/lscratch/kocevski/17971255/expmap_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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/17971255/ltcube_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits
.....................!
real 67.05
user 62.97
sys 3.62

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

Setting source of interest to:
4FGL J0102.4+4214 @ 15.6069 42.2371

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17971255/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits scfile=/lscratch/kocevski/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.fits outfile=/lscratch/kocevski/17971255/cmap_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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=15.6069 yref=42.2371 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.43
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17971255/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits scfile=/lscratch/kocevski/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.fits outfile=/lscratch/kocevski/17971255/cmap_HighResolution_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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=15.6069 yref=42.2371 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.43
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17971255/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17971255/Model_4FGL_J0102.4+4214_weekly_bin773.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_J0102.4+4214_weekly_bin773
RA = 15.6069, Dec = 42.2371
tmin = 706492801, tmax = 707097601
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='17971256', job_status='RUN', time_executed='2023-05-30 00:06:18.267071', time_epoch_executed='1685430378.27' WHERE source_name='4FGL J0102.4+4214' and cadence='weekly' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17971256

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17971256/ft1_4FGL_J0102.4+4214_weekly_bin773.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17971256/ft1_4FGL_J0102.4+4214_weekly_bin773.fits outfile=/lscratch/kocevski/17971256/ft1_filteredMKT_4FGL_J0102.4+4214_weekly_bin773.fits ra=15.6069 dec=42.2371 rad=12.0 tmin=706492801.0 tmax=707097601.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.19
user 3.74
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.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/17971256/ft1_filteredMKT_4FGL_J0102.4+4214_weekly_bin773.fits evtable="EVENTS" outfile="/lscratch/kocevski/17971256/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2955

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17971256/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17971256/ltcube_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.fits
.....................!
real 31.13
user 30.46
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17971256/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17971256/ltcube_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits outfile=/lscratch/kocevski/17971256/expmap_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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/17971256/ltcube_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits
.....................!
real 67.17
user 62.89
sys 3.61

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

Setting source of interest to:
4FGL J0102.4+4214 @ 15.6069 42.2371

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17971256/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits scfile=/lscratch/kocevski/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.fits outfile=/lscratch/kocevski/17971256/cmap_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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=15.6069 yref=42.2371 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.52
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17971256/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits scfile=/lscratch/kocevski/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.fits outfile=/lscratch/kocevski/17971256/cmap_HighResolution_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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=15.6069 yref=42.2371 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.58
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17971256/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17971256/Model_4FGL_J0102.4+4214_weekly_bin773.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/17971255/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits.....................!
real 115.05
user 113.70
sys 0.62

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17971255/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits', '/lscratch/kocevski/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.fits', expMap='/lscratch/kocevski/17971255/expmap_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits', expCube='/lscratch/kocevski/17971255/ltcube_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17971255/Model_4FGL_J0102.4+4214_weekly_bin773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0102.4+4214'

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  3.800e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
179        Index:  2.680e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17971255/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits
Spacecraft file(s): /lscratch/kocevski/17971255/ft2_4FGL_J0102.4+4214_weekly_bin773.fits
Exposure map: /lscratch/kocevski/17971255/expmap_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits
Exposure cube: /lscratch/kocevski/17971255/ltcube_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17971255/Model_4FGL_J0102.4+4214_weekly_bin773.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) = 30168.473163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.101       1.0000          .0000       .10000E+07
     2 'norm      '    .10733E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11940E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.2029       1.0000          .0000       .10000E+07
     5 'Prefactor '    .22663E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0370       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20992E-03   1.0000          .0000       .10000E+07
     8 'norm      '    4.3764       1.0000          .0000       .10000E+07
     9 'Prefactor '    .42205E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9172       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19539E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .22471E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    17.984       1.0000          .0000       .10000E+07
    14 'norm      '    70.707       1.0000          .0000       .10000E+07
    15 'norm      '    .44298E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .74257E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.8088       1.0000          .0000       .10000E+07
    18 'norm      '    4.4989       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12913       1.0000          .0000       .10000E+07
    20 'Prefactor '    .25757E-07   1.0000          .0000       .10000E+07
    21 'Prefactor '    15.065       1.0000          .0000       .10000E+07
    22 'Normalizat'    .78430       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30168.40     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1501 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.081        1.0841        .14289E-07   -.73906E-03
   2  norm          .10048E-06    5.0045       -.63828E-06** at limit **
   3  Prefactor      .0000        1.0942        .13607E-10** at limit **
   4  Prefactor     1.2029        1.1516       -.11605E-06    .58680E-03
   5  Prefactor     .55511E-10    3.8814       -.99725E-07** at limit **
   6  Prefactor     6.0314        4.8478       -.27091E-06   -.67533E-01
   7  Prefactor     .65781E-07    6.1788        .30972E-06** at limit **
   8  norm          4.3752        1.6663       -.12733E-07    .68101E-03
   9  Prefactor      .0000        1.0021       -.55159E-07** at limit **
  10  Prefactor     1.9180        5.3694       -.13591E-06   -.27815E-03
  11  Prefactor      .0000        2.3011        .61949E-07** at limit **
  12  norm          .13434E-07    7.9429       -.12326E-06** at limit **
  13  Prefactor     17.981        2.4473        .80853E-07    .28819E-01
  14  norm          70.709        3.0402       -.58789E-08   -.15129E-02
  15  norm           .0000        .66267        .18518E-08** at limit **
  16  Prefactor     .22649E-07    5.1824        .78500E-07** at limit **
  17  norm          1.8098        .75849        .25723E-07    .11136E-02
  18  norm          4.4989        .68705       -.71518E-08    .95092E-02
  19  Prefactor     .94597E-06    717.80        .19282E-05** at limit **
  20  Prefactor      .0000        2.5703       -.95354E-07** at limit **
  21  Prefactor     15.475        19.469        .14662E-06    .85130E-02
  22  Normalizat    .78438        .13674        .92735E-05    .19420E-03
  23  Prefactor     1.1074        .62144E-01   -.10206E-05    .36992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0814
  norm       = 1.00475e-07
  Prefactor  = 0
  Prefactor  = 1.20286
  Prefactor  = 5.55112e-11
  Prefactor  = 6.0314
  Prefactor  = 6.57807e-08
  norm       = 4.3752
  Prefactor  = 0
  Prefactor  = 1.91798
  Prefactor  = 0
  norm       = 1.34337e-08
  Prefactor  = 17.9815
  norm       = 70.7088
  norm       = 0
  Prefactor  = 2.26485e-08
  norm       = 1.80977
  norm       = 4.49891
  Prefactor  = 9.45966e-07
  Prefactor  = 0
  Prefactor  = 15.4751
  Normalizat = 0.784378
  Prefactor  = 1.10738
e GAL_V02
Working on...
/lscratch/kocevski/17971256/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits.....................!
real 114.76
user 113.42
sys 0.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17971256/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits', '/lscratch/kocevski/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.fits', expMap='/lscratch/kocevski/17971256/expmap_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits', expCube='/lscratch/kocevski/17971256/ltcube_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17971256/Model_4FGL_J0102.4+4214_weekly_bin773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0102.4+4214'

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  3.800e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
179        Index:  2.680e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17971256/ft1_filtered_4FGL_J0102.4+4214_weekly_bin773.fits
Spacecraft file(s): /lscratch/kocevski/17971256/ft2_4FGL_J0102.4+4214_weekly_bin773.fits
Exposure map: /lscratch/kocevski/17971256/expmap_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits
Exposure cube: /lscratch/kocevski/17971256/ltcube_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17971256/Model_4FGL_J0102.4+4214_weekly_bin773.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) = 30168.473163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.101       1.0000          .0000       .10000E+07
     2 'norm      '    .10733E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11940E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.2029       1.0000          .0000       .10000E+07
     5 'Prefactor '    .22663E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0370       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20992E-03   1.0000          .0000       .10000E+07
     8 'norm      '    4.3764       1.0000          .0000       .10000E+07
     9 'Prefactor '    .42205E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9172       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19539E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .22471E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    17.984       1.0000          .0000       .10000E+07
    14 'norm      '    70.707       1.0000          .0000       .10000E+07
    15 'norm      '    .44298E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .74257E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.8088       1.0000          .0000       .10000E+07
    18 'norm      '    4.4989       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12913       1.0000          .0000       .10000E+07
    20 'Prefactor '    .25757E-07   1.0000          .0000       .10000E+07
    21 'Prefactor '    15.065       1.0000          .0000       .10000E+07
    22 'Normalizat'    .78430       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30168.40     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1501 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.081        1.0841        .14289E-07   -.73906E-03
   2  norm          .10048E-06    5.0045       -.63828E-06** at limit **
   3  Prefactor      .0000        1.0942        .13607E-10** at limit **
   4  Prefactor     1.2029        1.1516       -.11605E-06    .58680E-03
   5  Prefactor     .55511E-10    3.8814       -.99725E-07** at limit **
   6  Prefactor     6.0314        4.8478       -.27091E-06   -.67533E-01
   7  Prefactor     .65781E-07    6.1788        .30972E-06** at limit **
   8  norm          4.3752        1.6663       -.12733E-07    .68101E-03
   9  Prefactor      .0000        1.0021       -.55159E-07** at limit **
  10  Prefactor     1.9180        5.3694       -.13591E-06   -.27815E-03
  11  Prefactor      .0000        2.3011        .61949E-07** at limit **
  12  norm          .13434E-07    7.9429       -.12326E-06** at limit **
  13  Prefactor     17.981        2.4473        .80853E-07    .28819E-01
  14  norm          70.709        3.0402       -.58789E-08   -.15129E-02
  15  norm           .0000        .66267        .18518E-08** at limit **
  16  Prefactor     .22649E-07    5.1824        .78500E-07** at limit **
  17  norm          1.8098        .75849        .25723E-07    .11136E-02
  18  norm          4.4989        .68705       -.71518E-08    .95092E-02
  19  Prefactor     .94597E-06    717.80        .19282E-05** at limit **
  20  Prefactor      .0000        2.5703       -.95354E-07** at limit **
  21  Prefactor     15.475        19.469        .14662E-06    .85130E-02
  22  Normalizat    .78438        .13674        .92735E-05    .19420E-03
  23  Prefactor     1.1074        .62144E-01   -.10206E-05    .36992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0814
  norm       = 1.00475e-07
  Prefactor  = 0
  Prefactor  = 1.20286
  Prefactor  = 5.55112e-11
  Prefactor  = 6.0314
  Prefactor  = 6.57807e-08
  norm       = 4.3752
  Prefactor  = 0
  Prefactor  = 1.91798
  Prefactor  = 0
  norm       = 1.34337e-08
  Prefactor  = 17.9815
  norm       = 70.7088
  norm       = 0
  Prefactor  = 2.26485e-08
  norm       = 1.80977
  norm       = 4.49891
  Prefactor  = 9.45966e-07
  Prefactor  = 0
  Prefactor  = 15.4751
  Normalizat = 0.784378
  Prefactor  = 1.10738
 **********
 **   18 **HESSE 
 **********

 FCN=   30168.40     FROM HESSE     STATUS=OK           418 CALLS     1919 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.081        12.623        .30045E-03   -1.5641    
   2  norm          .10048E-06    6.0277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.0930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2029        1.1536        .10338E-03   -1.5686    
   5  Prefactor     .55511E-10    3.8781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0314        8.4686        .40841E-03   -1.5659    
   7  Prefactor     .65781E-07    6.9256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3752        1.6689        .48121E-03   -1.5666    
   9  Prefactor      .0000        .99959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9180        5.4047        .75027E-03   -1.5680    
  11  Prefactor      .0000        2.2948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13434E-07    8.0959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.981        9.3933        .23590E-03   -1.5623    
  14  norm          70.709        3.0444        .11893E-03   -1.5540    
  15  norm           .0000        .66113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22649E-07    5.4353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8098        .76071        .77661E-03   -1.5681    
  18  norm          4.4989        .68880        .47444E-03   -1.5666    
  19  Prefactor     .94597E-06    2.6160        .13205E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        2.5179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.475        19.651        .25779E-03   -1.5629    
  22  Normalizat    .78438        .12917        .10724       -1.0065    
  23  Prefactor     1.1074        .57028E-01    .37313E-01   -.89231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96894e-07
Minuit parameter uncertainties:
  1  12.6225
  2  0.00155636
  3  2.03305e-06
  4  1.15358
  5  2.55233e-05
  6  8.46865
  7  0.00135005
  8  1.66892
  9  2.96109e-06
  10  5.40476
  11  7.16556e-06
  12  0.000659044
  13  9.39327
  14  3.04439
  15  3.1166e-07
  16  0.000701385
  17  0.76071
  18  0.688797
  19  0.00314618
  20  3.71271e-07
  21  19.6513
  22  0.129224
  23  0.0570307
 **********
 **   18 **HESSE 
 **********

 FCN=   30168.40     FROM HESSE     STATUS=OK           418 CALLS     1919 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.081        12.623        .30045E-03   -1.5641    
   2  norm          .10048E-06    6.0277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.0930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2029        1.1536        .10338E-03   -1.5686    
   5  Prefactor     .55511E-10    3.8781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0314        8.4686        .40841E-03   -1.5659    
   7  Prefactor     .65781E-07    6.9256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3752        1.6689        .48121E-03   -1.5666    
   9  Prefactor      .0000        .99959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9180        5.4047        .75027E-03   -1.5680    
  11  Prefactor      .0000        2.2948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13434E-07    8.0959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.981        9.3933        .23590E-03   -1.5623    
  14  norm          70.709        3.0444        .11893E-03   -1.5540    
  15  norm           .0000        .66113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22649E-07    5.4353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8098        .76071        .77661E-03   -1.5681    
  18  norm          4.4989        .68880        .47444E-03   -1.5666    
  19  Prefactor     .94597E-06    2.6160        .13205E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        2.5179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.475        19.651        .25779E-03   -1.5629    
  22  Normalizat    .78438        .12917        .10724       -1.0065    
  23  Prefactor     1.1074        .57028E-01    .37313E-01   -.89231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96894e-07
Minuit parameter uncertainties:
  1  12.6225
  2  0.00155636
  3  2.03305e-06
  4  1.15358
  5  2.55233e-05
  6  8.46865
  7  0.00135005
  8  1.66892
  9  2.96109e-06
  10  5.40476
  11  7.16556e-06
  12  0.000659044
  13  9.39327
  14  3.04439
  15  3.1166e-07
  16  0.000701385
  17  0.76071
  18  0.688797
  19  0.00314618
  20  3.71271e-07
  21  19.6513
  22  0.129224
  23  0.0570307
Done.

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

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  0.000e+00  7.166e-06  0.000e+00  1.000e+06 ( 1.000e-12)
179        Index:  2.680e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  1.107e+00  5.703e-02  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  7.844e-01  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 15.607 42.237
Photon Flux Upper Limit: 3.49368450654e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00274712605723 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17971255/likelihoodResults_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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) = 30168.3981871
delta logL = -0.0023044762529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 30168.3958829
delta logL = -2.33379978454e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   30168.40     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      239 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3562        .42118E-03** at limit **
   2  Index         2.5820        1.3828       -.65622E-06     .0000    
   3  Normalizat    .78438        1.1235        .19246E-05    .26438E-04
   4  Prefactor     1.1074        1.1439       -.14704E-05    .12012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.58199
  Normalizat = 0.784377
  Prefactor  = 1.10738
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .75322        1.9526       -.65622E-06   -.50477    
   3  Normalizat    .78438        1.1235        .19246E-05   -1.0065    
   4  Prefactor     1.1074        1.1439       -.14704E-05   -.89231    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.37003e-12
Minuit parameter uncertainties:
  1  2.77146e-07
  2  1.40693
  3  1.15958
  4  1.17093
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) = 30168.3958827
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  0.000e+00  2.771e-07  0.000e+00  1.000e+06 ( 1.000e-12)
179        Index:  2.582e+00  1.407e+00  0.000e+00  1.000e+01 (-1.000e+00)
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  1.107e+00  1.171e+00  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  7.844e-01  1.160e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 15.607 42.237

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/17971255/cmap_HighResolution_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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.49e-08', time_completed='2023-05-30 00:18:32.469465', job_id='17971255', GAL2='1.11', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1685431112.47', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='773' AND source_name='4FGL J0102.4+4214' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 30 00:18:32 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  0.000e+00  7.166e-06  0.000e+00  1.000e+06 ( 1.000e-12)
179        Index:  2.680e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  1.107e+00  5.703e-02  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  7.844e-01  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 15.607 42.237
Photon Flux Upper Limit: 3.49368450654e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00274712605723 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17971256/likelihoodResults_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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) = 30168.3981871
delta logL = -0.0023044762529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 30168.3958829
delta logL = -2.33379978454e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   30168.40     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      239 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3562        .42118E-03** at limit **
   2  Index         2.5820        1.3828       -.65622E-06     .0000    
   3  Normalizat    .78438        1.1235        .19246E-05    .26438E-04
   4  Prefactor     1.1074        1.1439       -.14704E-05    .12012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.58199
  Normalizat = 0.784377
  Prefactor  = 1.10738
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .75322        1.9526       -.65622E-06   -.50477    
   3  Normalizat    .78438        1.1235        .19246E-05   -1.0065    
   4  Prefactor     1.1074        1.1439       -.14704E-05   -.89231    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.37003e-12
Minuit parameter uncertainties:
  1  2.77146e-07
  2  1.40693
  3  1.15958
  4  1.17093
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) = 30168.3958827
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  0.000e+00  2.771e-07  0.000e+00  1.000e+06 ( 1.000e-12)
179        Index:  2.582e+00  1.407e+00  0.000e+00  1.000e+01 (-1.000e+00)
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  1.107e+00  1.171e+00  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  7.844e-01  1.160e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 15.607 42.237

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/17971256/cmap_HighResolution_706492801_707097601_4FGL_J0102.4+4214_weekly_bin773.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.49e-08', time_completed='2023-05-30 00:18:42.757820', job_id='17971256', GAL2='1.11', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1685431122.76', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='773' AND source_name='4FGL J0102.4+4214' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 30 00:18:42 PDT 2023

