/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 (vWARNING: version mismatch between CFITSIO header (v3.433.43) and linked library (v) and linked library (v3.413.41).).



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


Performing analysis on: 4FGL_J0105.1+3929_weekly_bin770
RA = 16.2913, Dec = 39.4963
tmin = 704678401, tmax = 705283201
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='17157699', job_status='RUN', time_executed='2023-05-09 01:01:11.873395', time_epoch_executed='1683619271.87' WHERE source_name='4FGL J0105.1+3929' and cadence='weekly' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17157699

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17157699/ft1_4FGL_J0105.1+3929_weekly_bin770.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17157699/ft1_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157699/ft1_filteredMKT_4FGL_J0105.1+3929_weekly_bin770.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=704678401.0 tmax=705283201.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.08
user 2.83
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.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/17157699/ft1_filteredMKT_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" outfile="/lscratch/kocevski/17157699/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.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.35
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 845

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17157699/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17157699/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.fits
.....................!
real 16.78
user 16.46
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17157699/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" scfile=/lscratch/kocevski/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17157699/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157699/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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/17157699/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
.....................!
real 59.46
user 55.62
sys 3.48

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

Setting source of interest to:
4FGL J0105.1+3929 @ 16.2913 39.4963

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17157699/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits scfile=/lscratch/kocevski/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157699/cmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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=16.2913 yref=39.4963 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.37
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17157699/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits scfile=/lscratch/kocevski/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157699/cmap_HighResolution_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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=16.2913 yref=39.4963 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.36
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17157699/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" scfile=/lscratch/kocevski/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17157699/Model_4FGL_J0105.1+3929_weekly_bin770.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 sourceDone.


Performing analysis on: 4FGL_J0105.1+3929_weekly_bin770
RA = 16.2913, Dec = 39.4963
tmin = 704678401, tmax = 705283201
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='17157698', job_status='RUN', time_executed='2023-05-09 01:01:11.800676', time_epoch_executed='1683619271.8' WHERE source_name='4FGL J0105.1+3929' and cadence='weekly' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17157698

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17157698/ft1_4FGL_J0105.1+3929_weekly_bin770.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17157698/ft1_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157698/ft1_filteredMKT_4FGL_J0105.1+3929_weekly_bin770.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=704678401.0 tmax=705283201.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.08
user 2.84
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.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/17157698/ft1_filteredMKT_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" outfile="/lscratch/kocevski/17157698/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.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.36
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 845

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17157698/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17157698/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.fits
.....................!
real 16.78
user 16.45
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17157698/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" scfile=/lscratch/kocevski/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17157698/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157698/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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/17157698/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
.....................!
real 59.47
user 55.61
sys 3.40

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

Setting source of interest to:
4FGL J0105.1+3929 @ 16.2913 39.4963

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17157698/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits scfile=/lscratch/kocevski/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157698/cmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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=16.2913 yref=39.4963 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.37
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17157698/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits scfile=/lscratch/kocevski/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157698/cmap_HighResolution_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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=16.2913 yref=39.4963 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.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17157698/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" scfile=/lscratch/kocevski/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17157698/Model_4FGL_J0105.1+3929_weekly_bin770.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 Done.


Performing analysis on: 4FGL_J0105.1+3929_weekly_bin770
RA = 16.2913, Dec = 39.4963
tmin = 704678401, tmax = 705283201
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='17157697', job_status='RUN', time_executed='2023-05-09 01:01:55.956318', time_epoch_executed='1683619315.96' WHERE source_name='4FGL J0105.1+3929' and cadence='weekly' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17157697

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17157697/ft1_4FGL_J0105.1+3929_weekly_bin770.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17157697/ft1_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157697/ft1_filteredMKT_4FGL_J0105.1+3929_weekly_bin770.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=704678401.0 tmax=705283201.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.10
user 2.87
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.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/17157697/ft1_filteredMKT_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" outfile="/lscratch/kocevski/17157697/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.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.35
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 845

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17157697/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17157697/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.fits
.....................!
real 16.21
user 15.87
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17157697/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" scfile=/lscratch/kocevski/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17157697/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157697/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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/17157697/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
.....................!
real 59.27
user 55.52
sys 3.42

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

Setting source of interest to:
4FGL J0105.1+3929 @ 16.2913 39.4963

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17157697/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits scfile=/lscratch/kocevski/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157697/cmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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=16.2913 yref=39.4963 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.37
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17157697/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits scfile=/lscratch/kocevski/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157697/cmap_HighResolution_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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=16.2913 yref=39.4963 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.37
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17157697/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" scfile=/lscratch/kocevski/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17157697/Model_4FGL_J0105.1+3929_weekly_bin770.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 sourceDone.


Performing analysis on: 4FGL_J0105.1+3929_weekly_bin770
RA = 16.2913, Dec = 39.4963
tmin = 704678401, tmax = 705283201
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='17157700', job_status='RUN', time_executed='2023-05-09 01:01:55.956304', time_epoch_executed='1683619315.96' WHERE source_name='4FGL J0105.1+3929' and cadence='weekly' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17157700

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17157700/ft1_4FGL_J0105.1+3929_weekly_bin770.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17157700/ft1_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157700/ft1_filteredMKT_4FGL_J0105.1+3929_weekly_bin770.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=704678401.0 tmax=705283201.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.09
user 2.82
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.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/17157700/ft1_filteredMKT_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" outfile="/lscratch/kocevski/17157700/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.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.35
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 845

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17157700/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17157700/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.fits
.....................!
real 16.22
user 15.89
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17157700/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" scfile=/lscratch/kocevski/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17157700/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157700/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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/17157700/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
.....................!
real 59.45
user 55.68
sys 3.41

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

Setting source of interest to:
4FGL J0105.1+3929 @ 16.2913 39.4963

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17157700/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits scfile=/lscratch/kocevski/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157700/cmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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=16.2913 yref=39.4963 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17157700/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits scfile=/lscratch/kocevski/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.fits outfile=/lscratch/kocevski/17157700/cmap_HighResolution_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.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=16.2913 yref=39.4963 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.36
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17157700/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits evtable="EVENTS" scfile=/lscratch/kocevski/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17157700/Model_4FGL_J0105.1+3929_weekly_bin770.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/17157699/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits.....................!
real 32.46
user 31.60
sys 0.63

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17157699/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits', '/lscratch/kocevski/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.fits', expMap='/lscratch/kocevski/17157699/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits', expCube='/lscratch/kocevski/17157699/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17157699/Model_4FGL_J0105.1+3929_weekly_bin770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0105.1+3929'

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  5.058e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17157699/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits
Spacecraft file(s): /lscratch/kocevski/17157699/ft2_4FGL_J0105.1+3929_weekly_bin770.fits
Exposure map: /lscratch/kocevski/17157699/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
Exposure cube: /lscratch/kocevski/17157699/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17157699/Model_4FGL_J0105.1+3929_weekly_bin770.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) = 9220.95378275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8592       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.8471       1.0000          .0000       .10000E+07
     3 'Prefactor '    .67135E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    13.872       1.0000          .0000       .10000E+07
     5 'Prefactor '    .54900E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .53405E-02   1.0000          .0000       .10000E+07
     7 'norm      '    2.6820       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11380E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.9992       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20722E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    17.408       1.0000          .0000       .10000E+07
    12 'norm      '    9.8723       1.0000          .0000       .10000E+07
    13 'norm      '    5.3258       1.0000          .0000       .10000E+07
    14 'Prefactor '    20.622       1.0000          .0000       .10000E+07
    15 'norm      '    1.7217       1.0000          .0000       .10000E+07
    16 'norm      '    2.5491       1.0000          .0000       .10000E+07
    17 'Prefactor '    .73200E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14981E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .30335E-04   1.0000          .0000       .10000E+07
    20 'Normalizat'    .97238       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9220.942     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1636 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8292        17.277       -.97692E-07    .16388E-02
   2  Prefactor     6.8658        5.9052        .70535E-07   -.74600E-03
   3  Prefactor     .12762E-05    1.9185       -.32907E-08** at limit **
   4  Prefactor     13.879        11.083        .10346E-07    .16652E-02
   5  Prefactor     .55511E-10    15.474       -.77129E-07** at limit **
   6  Prefactor     .19429E-08    6.7664        .15630E-06** at limit **
   7  norm          2.6821        2.0541        .22329E-07   -.36633E-03
   8  Prefactor     .99920E-09    1.6875        .55387E-07** at limit **
   9  Prefactor     5.0318        9.0322       -.11672E-06   -.14418E-03
  10  Prefactor     .89928E-08    33.947       -.31895E-06** at limit **
  11  Prefactor     17.385        14.911       -.95903E-07    .46007E-02
  12  norm          9.8718        2.4939       -.13316E-07   -.76941E-03
  13  norm          5.3245        3.6896        .48810E-07   -.44903E-03
  14  Prefactor     21.020        56.056        .48046E-06   -.20008E-02
  15  norm          1.7199        1.5535        .10990E-07   -.58258E-04
  16  norm          2.5472        1.2466       -.56645E-08    .11064E-04
  17  Prefactor     .23315E-08    7.9132        .66639E-07** at limit **
  18  Prefactor     .11102E-08    3.4101       -.51753E-07** at limit **
  19  Prefactor     .24425E-08    50.652       -.42155E-08** at limit **
  20  Normalizat    .97277        .21798        .19801E-05   -.67540E-05
  21  Prefactor     .92923        .10998       -.21270E-05   -.58749E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.82925
  Prefactor  = 6.86579
  Prefactor  = 1.2762e-06
  Prefactor  = 13.8794
  Prefactor  = 5.55112e-11
  Prefactor  = 1.94289e-09
  norm       = 2.68208
  Prefactor  = 9.99201e-10
  Prefactor  = 5.03176
  Prefactor  = 8.99281e-09
  Prefactor  = 17.3846
  norm       = 9.87185
  norm       = 5.32445
  Prefactor  = 21.0205
  norm       = 1.71991
  norm       = 2.5472
  Prefactor  = 2.33147e-09
  Prefactor  = 1.11022e-09
  Prefactor  = 2.44249e-09
  Normalizat = 0.972773
  Prefactor  = 0.929233
GAL_V02
Working on...
/lscratch/kocevski/17157698/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits.....................!
real 32.56
user 31.68
sys 0.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17157698/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits', '/lscratch/kocevski/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.fits', expMap='/lscratch/kocevski/17157698/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits', expCube='/lscratch/kocevski/17157698/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17157698/Model_4FGL_J0105.1+3929_weekly_bin770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0105.1+3929'

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  5.058e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17157698/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits
Spacecraft file(s): /lscratch/kocevski/17157698/ft2_4FGL_J0105.1+3929_weekly_bin770.fits
Exposure map: /lscratch/kocevski/17157698/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
Exposure cube: /lscratch/kocevski/17157698/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17157698/Model_4FGL_J0105.1+3929_weekly_bin770.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) = 9220.95378275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8592       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.8471       1.0000          .0000       .10000E+07
     3 'Prefactor '    .67135E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    13.872       1.0000          .0000       .10000E+07
     5 'Prefactor '    .54900E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .53405E-02   1.0000          .0000       .10000E+07
     7 'norm      '    2.6820       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11380E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.9992       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20722E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    17.408       1.0000          .0000       .10000E+07
    12 'norm      '    9.8723       1.0000          .0000       .10000E+07
    13 'norm      '    5.3258       1.0000          .0000       .10000E+07
    14 'Prefactor '    20.622       1.0000          .0000       .10000E+07
    15 'norm      '    1.7217       1.0000          .0000       .10000E+07
    16 'norm      '    2.5491       1.0000          .0000       .10000E+07
    17 'Prefactor '    .73200E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14981E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .30335E-04   1.0000          .0000       .10000E+07
    20 'Normalizat'    .97238       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9220.942     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1636 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8292        17.277       -.97692E-07    .16388E-02
   2  Prefactor     6.8658        5.9052        .70535E-07   -.74600E-03
   3  Prefactor     .12762E-05    1.9185       -.32907E-08** at limit **
   4  Prefactor     13.879        11.083        .10346E-07    .16652E-02
   5  Prefactor     .55511E-10    15.474       -.77129E-07** at limit **
   6  Prefactor     .19429E-08    6.7664        .15630E-06** at limit **
   7  norm          2.6821        2.0541        .22329E-07   -.36633E-03
   8  Prefactor     .99920E-09    1.6875        .55387E-07** at limit **
   9  Prefactor     5.0318        9.0322       -.11672E-06   -.14418E-03
  10  Prefactor     .89928E-08    33.947       -.31895E-06** at limit **
  11  Prefactor     17.385        14.911       -.95903E-07    .46007E-02
  12  norm          9.8718        2.4939       -.13316E-07   -.76941E-03
  13  norm          5.3245        3.6896        .48810E-07   -.44903E-03
  14  Prefactor     21.020        56.056        .48046E-06   -.20008E-02
  15  norm          1.7199        1.5535        .10990E-07   -.58258E-04
  16  norm          2.5472        1.2466       -.56645E-08    .11064E-04
  17  Prefactor     .23315E-08    7.9132        .66639E-07** at limit **
  18  Prefactor     .11102E-08    3.4101       -.51753E-07** at limit **
  19  Prefactor     .24425E-08    50.652       -.42155E-08** at limit **
  20  Normalizat    .97277        .21798        .19801E-05   -.67540E-05
  21  Prefactor     .92923        .10998       -.21270E-05   -.58749E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.82925
  Prefactor  = 6.86579
  Prefactor  = 1.2762e-06
  Prefactor  = 13.8794
  Prefactor  = 5.55112e-11
  Prefactor  = 1.94289e-09
  norm       = 2.68208
  Prefactor  = 9.99201e-10
  Prefactor  = 5.03176
  Prefactor  = 8.99281e-09
  Prefactor  = 17.3846
  norm       = 9.87185
  norm       = 5.32445
  Prefactor  = 21.0205
  norm       = 1.71991
  norm       = 2.5472
  Prefactor  = 2.33147e-09
  Prefactor  = 1.11022e-09
  Prefactor  = 2.44249e-09
  Normalizat = 0.972773
  Prefactor  = 0.929233
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.942     FROM HESSE     STATUS=OK           367 CALLS     2003 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8292        17.887        .51344E-03   -1.5669    
   2  Prefactor     6.8658        5.9932        .38319E-03   -1.5656    
   3  Prefactor     .12762E-05    1.2861        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.879        11.445        .26867E-03   -1.5633    
   5  Prefactor     .55511E-10    14.794        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19429E-08    6.8245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6821        2.0665        .62193E-03   -1.5675    
   8  Prefactor     .99920E-09    1.7108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0318        9.0531        .44953E-03   -1.5663    
  10  Prefactor     .89928E-08    33.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.385        14.947        .23978E-03   -1.5625    
  12  norm          9.8718        2.4920        .31868E-03   -1.5645    
  13  norm          5.3245        3.6816        .43526E-03   -1.5662    
  14  Prefactor     21.020        56.404        .22028E-03   -1.5616    
  15  norm          1.7199        1.5608        .80023E-03   -1.5682    
  16  norm          2.5472        1.2521        .63928E-03   -1.5676    
  17  Prefactor     .23315E-08    7.9816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-08    3.4406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .24425E-08    50.737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97277        .18919        .77530E-01   -.93948    
  21  Prefactor     .92923        .93986E-01    .45380E-01   -.95127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25105e-08
Minuit parameter uncertainties:
  1  16.5521
  2  5.99316
  3  0.00256231
  4  11.4451
  5  5.48997e-05
  6  0.000231706
  7  2.06649
  8  8.16373e-05
  9  9.05317
  10  0.00109778
  11  14.9469
  12  2.49197
  13  3.68165
  14  56.4059
  15  1.56081
  16  1.25213
  17  0.000272782
  18  0.000123746
  19  0.000707799
  20  0.189324
  21  0.0940026
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.942     FROM HESSE     STATUS=OK           367 CALLS     2003 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8292        17.887        .51344E-03   -1.5669    
   2  Prefactor     6.8658        5.9932        .38319E-03   -1.5656    
   3  Prefactor     .12762E-05    1.2861        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.879        11.445        .26867E-03   -1.5633    
   5  Prefactor     .55511E-10    14.794        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19429E-08    6.8245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6821        2.0665        .62193E-03   -1.5675    
   8  Prefactor     .99920E-09    1.7108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0318        9.0531        .44953E-03   -1.5663    
  10  Prefactor     .89928E-08    33.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.385        14.947        .23978E-03   -1.5625    
  12  norm          9.8718        2.4920        .31868E-03   -1.5645    
  13  norm          5.3245        3.6816        .43526E-03   -1.5662    
  14  Prefactor     21.020        56.404        .22028E-03   -1.5616    
  15  norm          1.7199        1.5608        .80023E-03   -1.5682    
  16  norm          2.5472        1.2521        .63928E-03   -1.5676    
  17  Prefactor     .23315E-08    7.9816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-08    3.4406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .24425E-08    50.737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97277        .18919        .77530E-01   -.93948    
  21  Prefactor     .92923        .93986E-01    .45380E-01   -.95127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25105e-08
Minuit parameter uncertainties:
  1  16.5521
  2  5.99316
  3  0.00256231
  4  11.4451
  5  5.48997e-05
  6  0.000231706
  7  2.06649
  8  8.16373e-05
  9  9.05317
  10  0.00109778
  11  14.9469
  12  2.49197
  13  3.68165
  14  56.4059
  15  1.56081
  16  1.25213
  17  0.000272782
  18  0.000123746
  19  0.000707799
  20  0.189324
  21  0.0940026
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.738e+01  1.495e+01  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.292e-01  9.400e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.728e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.77
Ra Dec: 16.291 39.496
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.04e-05

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) = 9220.76430006
delta logL = 0.177409258769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.76037544
delta logL = 0.181333883198

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9220.760     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.016        17.869        .94260E-05   -.98901E-04
   2  Index         1.8581        .75058        .12339E-01   -.26407E-05
   3  Normalizat    .98973        .20958        .34046E-03   -.47150E-04
   4  Prefactor     .92500        .10649        .17829E-03    .78661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0161
  Index      = 1.85813
  Normalizat = 0.989726
  Prefactor  = 0.925001
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.760     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.016        18.117        .37704E-06   -1.5623    
   2  Index         1.8581        .76097        .49355E-03   -.67946    
   3  Normalizat    .98973        .20972        .13618E-04   -.93375    
   4  Prefactor     .92500        .10656        .35658E-04   -.95273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56898e-11
Minuit parameter uncertainties:
  1  18.1171
  2  0.765913
  3  0.209899
  4  0.106589
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.738e+01  1.495e+01  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.292e-01  9.400e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.728e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.77
Ra Dec: 16.291 39.496
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.04e-05

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) = 9220.76430006
delta logL = 0.177409258769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.76037544
delta logL = 0.181333883198

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9220.760     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.016        17.869        .94260E-05   -.98901E-04
   2  Index         1.8581        .75058        .12339E-01   -.26407E-05
   3  Normalizat    .98973        .20958        .34046E-03   -.47150E-04
   4  Prefactor     .92500        .10649        .17829E-03    .78661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0161
  Index      = 1.85813
  Normalizat = 0.989726
  Prefactor  = 0.925001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.76037525
delta logL = 0.181334077093

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.802e+01  1.812e+01  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  1.858e+00  7.659e-01  0.000e+00  1.000e+01 (-1.000e+00)
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.250e-01  1.066e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.897e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 16.291 39.496
Photon Index (Free Index): 1.86 +/- 0.77
Photon Flux (Free Index): 1.75e-08 +/- 2.79e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.32e-05

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/17157699/cmap_HighResolution_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='1.77e-05', photon_flux_error='2.77e-08', dlogl='1.81e-01', energy_flux='1.21e-05', photon_flux2='1.75e-08', job_status='DONE', time_completed='2023-05-09 01:05:20.424637', photon_index_error2='0.77', photon_index2='1.86', ts='4.77', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='0.97', time_epoch_completed='1683619520.42', return_code='0', job_id='17157699', GAL2='0.93', EG2='0.99', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.79e-08', ts2='5.13', photon_index='2.30' WHERE bin_id='770' AND source_name='4FGL J0105.1+3929' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  9 01:05:20 PDT 2023

 **********
 **   18 **HESSE 
 **********

 FCN=   9220.760     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.016        18.117        .37704E-06   -1.5623    
   2  Index         1.8581        .76097        .49355E-03   -.67946    
   3  Normalizat    .98973        .20972        .13618E-04   -.93375    
   4  Prefactor     .92500        .10656        .35658E-04   -.95273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56898e-11
Minuit parameter uncertainties:
  1  18.1171
  2  0.765913
  3  0.209899
  4  0.106589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.76037525
delta logL = 0.181334077093

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.802e+01  1.812e+01  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  1.858e+00  7.659e-01  0.000e+00  1.000e+01 (-1.000e+00)
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.250e-01  1.066e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.897e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 16.291 39.496
Photon Index (Free Index): 1.86 +/- 0.77
Photon Flux (Free Index): 1.75e-08 +/- 2.79e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.32e-05

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/17157698/cmap_HighResolution_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='1.77e-05', photon_flux_error='2.77e-08', dlogl='1.81e-01', energy_flux='1.21e-05', photon_flux2='1.75e-08', job_status='DONE', time_completed='2023-05-09 01:05:23.217849', photon_index_error2='0.77', photon_index2='1.86', ts='4.77', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='0.97', time_epoch_completed='1683619523.22', return_code='0', job_id='17157698', GAL2='0.93', EG2='0.99', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.79e-08', ts2='5.13', photon_index='2.30' WHERE bin_id='770' AND source_name='4FGL J0105.1+3929' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  9 01:05:23 PDT 2023

 GAL_V02
Working on...
/lscratch/kocevski/17157697/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits.....................!
real 32.47
user 31.62
sys 0.63

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17157697/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits', '/lscratch/kocevski/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.fits', expMap='/lscratch/kocevski/17157697/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits', expCube='/lscratch/kocevski/17157697/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17157697/Model_4FGL_J0105.1+3929_weekly_bin770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0105.1+3929'

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  5.058e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17157697/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits
Spacecraft file(s): /lscratch/kocevski/17157697/ft2_4FGL_J0105.1+3929_weekly_bin770.fits
Exposure map: /lscratch/kocevski/17157697/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
Exposure cube: /lscratch/kocevski/17157697/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17157697/Model_4FGL_J0105.1+3929_weekly_bin770.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) = 9220.95378275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8592       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.8471       1.0000          .0000       .10000E+07
     3 'Prefactor '    .67135E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    13.872       1.0000          .0000       .10000E+07
     5 'Prefactor '    .54900E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .53405E-02   1.0000          .0000       .10000E+07
     7 'norm      '    2.6820       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11380E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.9992       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20722E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    17.408       1.0000          .0000       .10000E+07
    12 'norm      '    9.8723       1.0000          .0000       .10000E+07
    13 'norm      '    5.3258       1.0000          .0000       .10000E+07
    14 'Prefactor '    20.622       1.0000          .0000       .10000E+07
    15 'norm      '    1.7217       1.0000          .0000       .10000E+07
    16 'norm      '    2.5491       1.0000          .0000       .10000E+07
    17 'Prefactor '    .73200E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14981E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .30335E-04   1.0000          .0000       .10000E+07
    20 'Normalizat'    .97238       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9220.942     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1636 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8292        17.277       -.97692E-07    .16388E-02
   2  Prefactor     6.8658        5.9052        .70535E-07   -.74600E-03
   3  Prefactor     .12762E-05    1.9185       -.32907E-08** at limit **
   4  Prefactor     13.879        11.083        .10346E-07    .16652E-02
   5  Prefactor     .55511E-10    15.474       -.77129E-07** at limit **
   6  Prefactor     .19429E-08    6.7664        .15630E-06** at limit **
   7  norm          2.6821        2.0541        .22329E-07   -.36633E-03
   8  Prefactor     .99920E-09    1.6875        .55387E-07** at limit **
   9  Prefactor     5.0318        9.0322       -.11672E-06   -.14418E-03
  10  Prefactor     .89928E-08    33.947       -.31895E-06** at limit **
  11  Prefactor     17.385        14.911       -.95903E-07    .46007E-02
  12  norm          9.8718        2.4939       -.13316E-07   -.76941E-03
  13  norm          5.3245        3.6896        .48810E-07   -.44903E-03
  14  Prefactor     21.020        56.056        .48046E-06   -.20008E-02
  15  norm          1.7199        1.5535        .10990E-07   -.58258E-04
  16  norm          2.5472        1.2466       -.56645E-08    .11064E-04
  17  Prefactor     .23315E-08    7.9132        .66639E-07** at limit **
  18  Prefactor     .11102E-08    3.4101       -.51753E-07** at limit **
  19  Prefactor     .24425E-08    50.652       -.42155E-08** at limit **
  20  Normalizat    .97277        .21798        .19801E-05   -.67540E-05
  21  Prefactor     .92923        .10998       -.21270E-05   -.58749E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.82925
  Prefactor  = 6.86579
  Prefactor  = 1.2762e-06
  Prefactor  = 13.8794
  Prefactor  = 5.55112e-11
  Prefactor  = 1.94289e-09
  norm       = 2.68208
  Prefactor  = 9.99201e-10
  Prefactor  = 5.03176
  Prefactor  = 8.99281e-09
  Prefactor  = 17.3846
  norm       = 9.87185
  norm       = 5.32445
  Prefactor  = 21.0205
  norm       = 1.71991
  norm       = 2.5472
  Prefactor  = 2.33147e-09
  Prefactor  = 1.11022e-09
  Prefactor  = 2.44249e-09
  Normalizat = 0.972773
  Prefactor  = 0.929233
 GAL_V02
Working on...
/lscratch/kocevski/17157700/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits.....................!
real 33.76
user 32.90
sys 0.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17157700/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits', '/lscratch/kocevski/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.fits', expMap='/lscratch/kocevski/17157700/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits', expCube='/lscratch/kocevski/17157700/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17157700/Model_4FGL_J0105.1+3929_weekly_bin770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0105.1+3929'

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  5.058e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17157700/ft1_filtered_4FGL_J0105.1+3929_weekly_bin770.fits
Spacecraft file(s): /lscratch/kocevski/17157700/ft2_4FGL_J0105.1+3929_weekly_bin770.fits
Exposure map: /lscratch/kocevski/17157700/expmap_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
Exposure cube: /lscratch/kocevski/17157700/ltcube_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17157700/Model_4FGL_J0105.1+3929_weekly_bin770.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) = 9220.95378275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8592       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.8471       1.0000          .0000       .10000E+07
     3 'Prefactor '    .67135E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    13.872       1.0000          .0000       .10000E+07
     5 'Prefactor '    .54900E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .53405E-02   1.0000          .0000       .10000E+07
     7 'norm      '    2.6820       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11380E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.9992       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20722E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    17.408       1.0000          .0000       .10000E+07
    12 'norm      '    9.8723       1.0000          .0000       .10000E+07
    13 'norm      '    5.3258       1.0000          .0000       .10000E+07
    14 'Prefactor '    20.622       1.0000          .0000       .10000E+07
    15 'norm      '    1.7217       1.0000          .0000       .10000E+07
    16 'norm      '    2.5491       1.0000          .0000       .10000E+07
    17 'Prefactor '    .73200E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14981E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .30335E-04   1.0000          .0000       .10000E+07
    20 'Normalizat'    .97238       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9220.942     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1636 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8292        17.277       -.97692E-07    .16388E-02
   2  Prefactor     6.8658        5.9052        .70535E-07   -.74600E-03
   3  Prefactor     .12762E-05    1.9185       -.32907E-08** at limit **
   4  Prefactor     13.879        11.083        .10346E-07    .16652E-02
   5  Prefactor     .55511E-10    15.474       -.77129E-07** at limit **
   6  Prefactor     .19429E-08    6.7664        .15630E-06** at limit **
   7  norm          2.6821        2.0541        .22329E-07   -.36633E-03
   8  Prefactor     .99920E-09    1.6875        .55387E-07** at limit **
   9  Prefactor     5.0318        9.0322       -.11672E-06   -.14418E-03
  10  Prefactor     .89928E-08    33.947       -.31895E-06** at limit **
  11  Prefactor     17.385        14.911       -.95903E-07    .46007E-02
  12  norm          9.8718        2.4939       -.13316E-07   -.76941E-03
  13  norm          5.3245        3.6896        .48810E-07   -.44903E-03
  14  Prefactor     21.020        56.056        .48046E-06   -.20008E-02
  15  norm          1.7199        1.5535        .10990E-07   -.58258E-04
  16  norm          2.5472        1.2466       -.56645E-08    .11064E-04
  17  Prefactor     .23315E-08    7.9132        .66639E-07** at limit **
  18  Prefactor     .11102E-08    3.4101       -.51753E-07** at limit **
  19  Prefactor     .24425E-08    50.652       -.42155E-08** at limit **
  20  Normalizat    .97277        .21798        .19801E-05   -.67540E-05
  21  Prefactor     .92923        .10998       -.21270E-05   -.58749E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.82925
  Prefactor  = 6.86579
  Prefactor  = 1.2762e-06
  Prefactor  = 13.8794
  Prefactor  = 5.55112e-11
  Prefactor  = 1.94289e-09
  norm       = 2.68208
  Prefactor  = 9.99201e-10
  Prefactor  = 5.03176
  Prefactor  = 8.99281e-09
  Prefactor  = 17.3846
  norm       = 9.87185
  norm       = 5.32445
  Prefactor  = 21.0205
  norm       = 1.71991
  norm       = 2.5472
  Prefactor  = 2.33147e-09
  Prefactor  = 1.11022e-09
  Prefactor  = 2.44249e-09
  Normalizat = 0.972773
  Prefactor  = 0.929233
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.942     FROM HESSE     STATUS=OK           367 CALLS     2003 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8292        17.887        .51344E-03   -1.5669    
   2  Prefactor     6.8658        5.9932        .38319E-03   -1.5656    
   3  Prefactor     .12762E-05    1.2861        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.879        11.445        .26867E-03   -1.5633    
   5  Prefactor     .55511E-10    14.794        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19429E-08    6.8245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6821        2.0665        .62193E-03   -1.5675    
   8  Prefactor     .99920E-09    1.7108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0318        9.0531        .44953E-03   -1.5663    
  10  Prefactor     .89928E-08    33.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.385        14.947        .23978E-03   -1.5625    
  12  norm          9.8718        2.4920        .31868E-03   -1.5645    
  13  norm          5.3245        3.6816        .43526E-03   -1.5662    
  14  Prefactor     21.020        56.404        .22028E-03   -1.5616    
  15  norm          1.7199        1.5608        .80023E-03   -1.5682    
  16  norm          2.5472        1.2521        .63928E-03   -1.5676    
  17  Prefactor     .23315E-08    7.9816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-08    3.4406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .24425E-08    50.737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97277        .18919        .77530E-01   -.93948    
  21  Prefactor     .92923        .93986E-01    .45380E-01   -.95127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25105e-08
Minuit parameter uncertainties:
  1  16.5521
  2  5.99316
  3  0.00256231
  4  11.4451
  5  5.48997e-05
  6  0.000231706
  7  2.06649
  8  8.16373e-05
  9  9.05317
  10  0.00109778
  11  14.9469
  12  2.49197
  13  3.68165
  14  56.4059
  15  1.56081
  16  1.25213
  17  0.000272782
  18  0.000123746
  19  0.000707799
  20  0.189324
  21  0.0940026
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.942     FROM HESSE     STATUS=OK           367 CALLS     2003 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8292        17.887        .51344E-03   -1.5669    
   2  Prefactor     6.8658        5.9932        .38319E-03   -1.5656    
   3  Prefactor     .12762E-05    1.2861        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.879        11.445        .26867E-03   -1.5633    
   5  Prefactor     .55511E-10    14.794        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19429E-08    6.8245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6821        2.0665        .62193E-03   -1.5675    
   8  Prefactor     .99920E-09    1.7108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0318        9.0531        .44953E-03   -1.5663    
  10  Prefactor     .89928E-08    33.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.385        14.947        .23978E-03   -1.5625    
  12  norm          9.8718        2.4920        .31868E-03   -1.5645    
  13  norm          5.3245        3.6816        .43526E-03   -1.5662    
  14  Prefactor     21.020        56.404        .22028E-03   -1.5616    
  15  norm          1.7199        1.5608        .80023E-03   -1.5682    
  16  norm          2.5472        1.2521        .63928E-03   -1.5676    
  17  Prefactor     .23315E-08    7.9816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-08    3.4406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .24425E-08    50.737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97277        .18919        .77530E-01   -.93948    
  21  Prefactor     .92923        .93986E-01    .45380E-01   -.95127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25105e-08
Minuit parameter uncertainties:
  1  16.5521
  2  5.99316
  3  0.00256231
  4  11.4451
  5  5.48997e-05
  6  0.000231706
  7  2.06649
  8  8.16373e-05
  9  9.05317
  10  0.00109778
  11  14.9469
  12  2.49197
  13  3.68165
  14  56.4059
  15  1.56081
  16  1.25213
  17  0.000272782
  18  0.000123746
  19  0.000707799
  20  0.189324
  21  0.0940026
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.738e+01  1.495e+01  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.292e-01  9.400e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.728e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.77
Ra Dec: 16.291 39.496
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.04e-05

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) = 9220.76430006
delta logL = 0.177409258769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.76037544
delta logL = 0.181333883198

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9220.760     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.016        17.869        .94260E-05   -.98901E-04
   2  Index         1.8581        .75058        .12339E-01   -.26407E-05
   3  Normalizat    .98973        .20958        .34046E-03   -.47150E-04
   4  Prefactor     .92500        .10649        .17829E-03    .78661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0161
  Index      = 1.85813
  Normalizat = 0.989726
  Prefactor  = 0.925001
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.760     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.016        18.117        .37704E-06   -1.5623    
   2  Index         1.8581        .76097        .49355E-03   -.67946    
   3  Normalizat    .98973        .20972        .13618E-04   -.93375    
   4  Prefactor     .92500        .10656        .35658E-04   -.95273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56898e-11
Minuit parameter uncertainties:
  1  18.1171
  2  0.765913
  3  0.209899
  4  0.106589
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.738e+01  1.495e+01  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.292e-01  9.400e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.728e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.77
Ra Dec: 16.291 39.496
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.04e-05

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) = 9220.76430006
delta logL = 0.177409258769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.76037544
delta logL = 0.181333883198

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9220.760     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.016        17.869        .94260E-05   -.98901E-04
   2  Index         1.8581        .75058        .12339E-01   -.26407E-05
   3  Normalizat    .98973        .20958        .34046E-03   -.47150E-04
   4  Prefactor     .92500        .10649        .17829E-03    .78661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0161
  Index      = 1.85813
  Normalizat = 0.989726
  Prefactor  = 0.925001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.76037525
delta logL = 0.181334077093

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.802e+01  1.812e+01  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  1.858e+00  7.659e-01  0.000e+00  1.000e+01 (-1.000e+00)
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.250e-01  1.066e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.897e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 16.291 39.496
Photon Index (Free Index): 1.86 +/- 0.77
Photon Flux (Free Index): 1.75e-08 +/- 2.79e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.32e-05

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/17157697/cmap_HighResolution_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='1.77e-05', photon_flux_error='2.77e-08', dlogl='1.81e-01', energy_flux='1.21e-05', photon_flux2='1.75e-08', job_status='DONE', time_completed='2023-05-09 01:06:03.503200', photon_index_error2='0.77', photon_index2='1.86', ts='4.77', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='0.97', time_epoch_completed='1683619563.5', return_code='0', job_id='17157697', GAL2='0.93', EG2='0.99', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.79e-08', ts2='5.13', photon_index='2.30' WHERE bin_id='770' AND source_name='4FGL J0105.1+3929' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  9 01:06:03 PDT 2023

 **********
 **   18 **HESSE 
 **********

 FCN=   9220.760     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.016        18.117        .37704E-06   -1.5623    
   2  Index         1.8581        .76097        .49355E-03   -.67946    
   3  Normalizat    .98973        .20972        .13618E-04   -.93375    
   4  Prefactor     .92500        .10656        .35658E-04   -.95273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56898e-11
Minuit parameter uncertainties:
  1  18.1171
  2  0.765913
  3  0.209899
  4  0.106589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.76037525
delta logL = 0.181334077093

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.802e+01  1.812e+01  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  1.858e+00  7.659e-01  0.000e+00  1.000e+01 (-1.000e+00)
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.250e-01  1.066e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.897e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 16.291 39.496
Photon Index (Free Index): 1.86 +/- 0.77
Photon Flux (Free Index): 1.75e-08 +/- 2.79e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.32e-05

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/17157700/cmap_HighResolution_704678401_705283201_4FGL_J0105.1+3929_weekly_bin770.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='1.77e-05', photon_flux_error='2.77e-08', dlogl='1.81e-01', energy_flux='1.21e-05', photon_flux2='1.75e-08', job_status='DONE', time_completed='2023-05-09 01:06:05.615264', photon_index_error2='0.77', photon_index2='1.86', ts='4.77', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='0.97', time_epoch_completed='1683619565.62', return_code='0', job_id='17157700', GAL2='0.93', EG2='0.99', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.79e-08', ts2='5.13', photon_index='2.30' WHERE bin_id='770' AND source_name='4FGL J0105.1+3929' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  9 01:06:05 PDT 2023

