/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 (v
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.43) and linked library (v3.41).3.41).



tfile=/lscratch/kocevski/38281245/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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/38281245/ft2_4FGL_J0308.4+0407_weekly_bin945.fits
.....................!
real 18.41
user 17.92
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38281245/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38281245/ft2_4FGL_J0308.4+0407_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38281245/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281245/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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/38281245/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
.....................!
real 70.71
user 65.93
sys 4.08

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

Setting source of interest to:
4FGL J0308.4+0407 @ 47.1105 4.1177

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38281245/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits scfile=/lscratch/kocevski/38281245/ft2_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281245/cmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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=47.1105 yref=4.1177 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.49
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38281245/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits scfile=/lscratch/kocevski/38281245/ft2_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281245/cmap_HighResolution_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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=47.1105 yref=4.1177 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.50
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38281245/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38281245/ft2_4FGL_J0308.4+0407_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38281245/Model_4FGL_J0308.4+0407_weekly_bin945.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_number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 17508
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0308.4+0407_weekly_bin945
RA = 47.1105, Dec = 4.1177
tmin = 810518401, tmax = 811123201
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='38281730', job_status='RUN', time_executed='2026-09-15 02:36:30.578582', time_epoch_executed='1789464990.58' WHERE source_name='4FGL J0308.4+0407' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38281730

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38281730/ft1_4FGL_J0308.4+0407_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38281730/ft1_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281730/ft1_filteredMKT_4FGL_J0308.4+0407_weekly_bin945.fits ra=47.1105 dec=4.1177 rad=12.0 tmin=810518401.0 tmax=811123201.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 6.37
user 5.10
sys 0.33

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.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/38281730/ft1_filteredMKT_4FGL_J0308.4+0407_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38281730/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2252

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38281730/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.fits sctable="SC_DATA" oDone.


Performing analysis on: 4FGL_J0308.4+0407_weekly_bin945
RA = 47.1105, Dec = 4.1177
tmin = 810518401, tmax = 811123201
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='38281731', job_status='RUN', time_executed='2026-09-15 02:36:30.586785', time_epoch_executed='1789464990.59' WHERE source_name='4FGL J0308.4+0407' and cadence='weekly' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38281731

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38281731/ft1_4FGL_J0308.4+0407_weekly_bin945.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38281731/ft1_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281731/ft1_filteredMKT_4FGL_J0308.4+0407_weekly_bin945.fits ra=47.1105 dec=4.1177 rad=12.0 tmin=810518401.0 tmax=811123201.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 6.62
user 5.10
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.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/38281731/ft1_filteredMKT_4FGL_J0308.4+0407_weekly_bin945.fits evtable="EVENTS" outfile="/lscratch/kocevski/38281731/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2252

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38281731/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38281343/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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/38281343/ft2_4FGL_J0308.4+0407_weekly_bin945.fits
.....................!
real 20.04
user 18.51
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38281343/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38281343/ft2_4FGL_J0308.4+0407_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38281343/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281343/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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/38281343/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
.....................!
real 78.15
user 70.19
sys 4.46

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

Setting source of interest to:
4FGL J0308.4+0407 @ 47.1105 4.1177

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38281343/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits scfile=/lscratch/kocevski/38281343/ft2_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281343/cmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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=47.1105 yref=4.1177 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.68
user 0.26
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38281343/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits scfile=/lscratch/kocevski/38281343/ft2_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281343/cmap_HighResolution_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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=47.1105 yref=4.1177 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.66
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38281343/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38281343/ft2_4FGL_J0308.4+0407_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38281343/Model_4FGL_J0308.4+0407_weekly_bin945.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 GALV02
Working on...
/lscratch/kocevski/38281245/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits.....................!
real 111.63
user 109.73
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38281245/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits', '/lscratch/kocevski/38281245/ft2_4FGL_J0308.4+0407_weekly_bin945.fits', expMap='/lscratch/kocevski/38281245/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits', expCube='/lscratch/kocevski/38281245/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38281245/Model_4FGL_J0308.4+0407_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0308.4+0407'

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  1.323e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38281245/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38281245/ft2_4FGL_J0308.4+0407_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38281245/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38281245/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38281245/Model_4FGL_J0308.4+0407_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 24372.7927241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35848E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .39424E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.306       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11103E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .66302       1.0000          .0000       .10000E+07
     6 'norm      '    .43898E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3054       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20254E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    27.681       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3355       1.0000          .0000       .10000E+07
    11 'norm      '    .89359E-05   1.0000          .0000       .10000E+07
    12 'norm      '    1.1485       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25202E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .72611       1.0000          .0000       .10000E+07
    15 'Prefactor '    .89331E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .68952       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19155E-03   1.0000          .0000       .10000E+07
    18 'norm      '    1.0458       1.0000          .0000       .10000E+07
    19 'norm      '    4.0999       1.0000          .0000       .10000E+07
    20 'Normalizat'    .82998       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24372.68     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1287 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61673E-07    46.354        .35034E-05** at limit **
   2  Prefactor     .48367E-06    60.987       -.46969E-05** at limit **
   3  Prefactor     10.535        6.5988       -.11747E-05   -.11337    
   4  Prefactor     .22871E-07    9.7030       -.19651E-05** at limit **
   5  Prefactor     .70722        .80236        .61517E-06   -.88513E-02
   6  norm          .16653E-09    1.7468       -.11306E-07** at limit **
   7  Prefactor     1.3512        5.0993        .55380E-06   -.14136E-02
   8  Prefactor     .12712E-07    6.9753       -.82604E-06** at limit **
   9  Prefactor     28.022        19.794       -.30925E-05    .55013E-01
  10  Prefactor     1.3401        3.2027        .38731E-07   -.17136E-02
  11  norm          .30531E-08    2.9677        .32225E-06** at limit **
  12  norm          1.1485        1.4019       -.22134E-06   -.26806E-02
  13  Prefactor      .0000        1.2622        .42285E-06** at limit **
  14  norm          .72612        4.0548        .10223E-05    .14110E-02
  15  Prefactor     .27756E-08    2.8994       -.16130E-05** at limit **
  16  Prefactor     .68989        2.1875       -.75351E-06   -.19022E-02
  17  Prefactor     .11102E-09    1.5602        .64285E-06** at limit **
  18  norm          1.0447        1.7280        .43874E-07   -.31277E-02
  19  norm          4.1011        .85682        .10900E-06    .25273E-02
  20  Normalizat    .82911        .11473        .73994E-05   -.19988E-03
  21  Prefactor     1.0430        .50777E-01   -.23813E-05   -.36018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.16729e-08
  Prefactor  = 4.83669e-07
  Prefactor  = 10.5354
  Prefactor  = 2.28706e-08
  Prefactor  = 0.707216
  norm       = 1.66533e-10
  Prefactor  = 1.35124
  Prefactor  = 1.27121e-08
  Prefactor  = 28.0218
  Prefactor  = 1.34013
  norm       = 3.05311e-09
  norm       = 1.14853
  Prefactor  = 0
  norm       = 0.726123
  Prefactor  = 2.77556e-09
  Prefactor  = 0.689895
  Prefactor  = 1.11022e-10
  norm       = 1.04468
  norm       = 4.10105
  Normalizat = 0.829111
  Prefactor  = 1.04301
utfile=/lscratch/kocevski/38281730/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.fits
.....................!
real 19.20
user 17.92
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38281730/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38281730/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281730/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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/38281730/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
.....................!
real 66.69
user 60.62
sys 4.34

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

Setting source of interest to:
4FGL J0308.4+0407 @ 47.1105 4.1177

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38281730/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits scfile=/lscratch/kocevski/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281730/cmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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=47.1105 yref=4.1177 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 1.72
user 0.24
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38281730/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits scfile=/lscratch/kocevski/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281730/cmap_HighResolution_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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=47.1105 yref=4.1177 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.78
user 0.23
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38281730/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38281730/Model_4FGL_J0308.4+0407_weekly_bin945.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 GALutfile=/lscratch/kocevski/38281731/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.fits
.....................!
real 19.39
user 17.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38281731/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38281731/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281731/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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/38281731/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
.....................!
real 66.23
user 60.46
sys 4.37

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

Setting source of interest to:
4FGL J0308.4+0407 @ 47.1105 4.1177

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38281731/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits scfile=/lscratch/kocevski/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281731/cmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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=47.1105 yref=4.1177 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 1.81
user 0.23
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38281731/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits scfile=/lscratch/kocevski/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.fits outfile=/lscratch/kocevski/38281731/cmap_HighResolution_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.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=47.1105 yref=4.1177 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.79
user 0.23
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38281731/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits evtable="EVENTS" scfile=/lscratch/kocevski/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38281731/Model_4FGL_J0308.4+0407_weekly_bin945.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 **********
 **   18 **HESSE 
 **********

 FCN=   24372.68     FROM HESSE     STATUS=OK           363 CALLS     1650 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61673E-07    46.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .48367E-06    60.889        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.535        13.267        .31187E-03   -1.5643    
   4  Prefactor     .22871E-07    9.7796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .70722        35.248        .63763E-03   -1.5691    
   6  norm          .16653E-09    1.7595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3512        5.1449        .96575E-03   -1.5685    
   8  Prefactor     .12712E-07    7.0493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.022        21.827        .19010E-03   -1.5602    
  10  Prefactor     1.3401        3.2292        .94900E-03   -1.5685    
  11  norm          .30531E-08    2.9801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1485        1.4269        .10804E-02   -1.5687    
  13  Prefactor      .0000        1.2616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .72612        4.0378        .58613E-03   -1.5691    
  15  Prefactor     .27756E-08    2.9164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .68989        2.1991        .61563E-03   -1.5691    
  17  Prefactor     .11102E-09    1.5659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0447        2.1026        .60736E-02   -1.5688    
  19  norm          4.1011        .85925        .49765E-03   -1.5667    
  20  Normalizat    .82911        .10992        .85287E-01   -.98998    
  21  Prefactor     1.0430        .46648E-01    .40347E-01   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07151e-05
Minuit parameter uncertainties:
  1  0.00338521
  2  0.0108536
  3  13.2674
  4  0.000945873
  5  9.98561
  6  3.17221e-05
  7  5.14494
  8  0.000599319
  9  21.8273
  10  3.22924
  11  0.000191528
  12  1.42688
  13  8.11001e-06
  14  3.42456
  15  0.000180047
  16  2.19909
  17  2.32728e-05
  18  2.10264
  19  0.859253
  20  0.109949
  21  0.0466498
_V02
Working on...
/lscratch/kocevski/38281343/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits.....................!
real 123.69
user 116.58
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38281343/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits', '/lscratch/kocevski/38281343/ft2_4FGL_J0308.4+0407_weekly_bin945.fits', expMap='/lscratch/kocevski/38281343/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits', expCube='/lscratch/kocevski/38281343/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38281343/Model_4FGL_J0308.4+0407_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0308.4+0407'

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  1.323e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38281343/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38281343/ft2_4FGL_J0308.4+0407_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38281343/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38281343/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38281343/Model_4FGL_J0308.4+0407_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 24372.7927241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35848E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .39424E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.306       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11103E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .66302       1.0000          .0000       .10000E+07
     6 'norm      '    .43898E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3054       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20254E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    27.681       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3355       1.0000          .0000       .10000E+07
    11 'norm      '    .89359E-05   1.0000          .0000       .10000E+07
    12 'norm      '    1.1485       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25202E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .72611       1.0000          .0000       .10000E+07
    15 'Prefactor '    .89331E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .68952       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19155E-03   1.0000          .0000       .10000E+07
    18 'norm      '    1.0458       1.0000          .0000       .10000E+07
    19 'norm      '    4.0999       1.0000          .0000       .10000E+07
    20 'Normalizat'    .82998       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24372.68     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1287 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61673E-07    46.354        .35034E-05** at limit **
   2  Prefactor     .48367E-06    60.987       -.46969E-05** at limit **
   3  Prefactor     10.535        6.5988       -.11747E-05   -.11337    
   4  Prefactor     .22871E-07    9.7030       -.19651E-05** at limit **
   5  Prefactor     .70722        .80236        .61517E-06   -.88513E-02
   6  norm          .16653E-09    1.7468       -.11306E-07** at limit **
   7  Prefactor     1.3512        5.0993        .55380E-06   -.14136E-02
   8  Prefactor     .12712E-07    6.9753       -.82604E-06** at limit **
   9  Prefactor     28.022        19.794       -.30925E-05    .55013E-01
  10  Prefactor     1.3401        3.2027        .38731E-07   -.17136E-02
  11  norm          .30531E-08    2.9677        .32225E-06** at limit **
  12  norm          1.1485        1.4019       -.22134E-06   -.26806E-02
  13  Prefactor      .0000        1.2622        .42285E-06** at limit **
  14  norm          .72612        4.0548        .10223E-05    .14110E-02
  15  Prefactor     .27756E-08    2.8994       -.16130E-05** at limit **
  16  Prefactor     .68989        2.1875       -.75351E-06   -.19022E-02
  17  Prefactor     .11102E-09    1.5602        .64285E-06** at limit **
  18  norm          1.0447        1.7280        .43874E-07   -.31277E-02
  19  norm          4.1011        .85682        .10900E-06    .25273E-02
  20  Normalizat    .82911        .11473        .73994E-05   -.19988E-03
  21  Prefactor     1.0430        .50777E-01   -.23813E-05   -.36018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.16729e-08
  Prefactor  = 4.83669e-07
  Prefactor  = 10.5354
  Prefactor  = 2.28706e-08
  Prefactor  = 0.707216
  norm       = 1.66533e-10
  Prefactor  = 1.35124
  Prefactor  = 1.27121e-08
  Prefactor  = 28.0218
  Prefactor  = 1.34013
  norm       = 3.05311e-09
  norm       = 1.14853
  Prefactor  = 0
  norm       = 0.726123
  Prefactor  = 2.77556e-09
  Prefactor  = 0.689895
  Prefactor  = 1.11022e-10
  norm       = 1.04468
  norm       = 4.10105
  Normalizat = 0.829111
  Prefactor  = 1.04301
 **********
 **   18 **HESSE 
 **********

 FCN=   24372.68     FROM HESSE     STATUS=OK           363 CALLS     1650 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61673E-07    46.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .48367E-06    60.889        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.535        13.267        .31187E-03   -1.5643    
   4  Prefactor     .22871E-07    9.7796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .70722        35.248        .63763E-03   -1.5691    
   6  norm          .16653E-09    1.7595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3512        5.1449        .96575E-03   -1.5685    
   8  Prefactor     .12712E-07    7.0493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.022        21.827        .19010E-03   -1.5602    
  10  Prefactor     1.3401        3.2292        .94900E-03   -1.5685    
  11  norm          .30531E-08    2.9801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1485        1.4269        .10804E-02   -1.5687    
  13  Prefactor      .0000        1.2616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .72612        4.0378        .58613E-03   -1.5691    
  15  Prefactor     .27756E-08    2.9164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .68989        2.1991        .61563E-03   -1.5691    
  17  Prefactor     .11102E-09    1.5659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0447        2.1026        .60736E-02   -1.5688    
  19  norm          4.1011        .85925        .49765E-03   -1.5667    
  20  Normalizat    .82911        .10992        .85287E-01   -.98998    
  21  Prefactor     1.0430        .46648E-01    .40347E-01   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07151e-05
Minuit parameter uncertainties:
  1  0.00338521
  2  0.0108536
  3  13.2674
  4  0.000945873
  5  9.98561
  6  3.17221e-05
  7  5.14494
  8  0.000599319
  9  21.8273
  10  3.22924
  11  0.000191528
  12  1.42688
  13  8.11001e-06
  14  3.42456
  15  0.000180047
  16  2.19909
  17  2.32728e-05
  18  2.10264
  19  0.859253
  20  0.109949
  21  0.0466498
Done.

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

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  8.110e-06  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.043e+00  4.665e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.291e-01  1.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 47.111 4.118
Photon Flux Upper Limit: 2.50235484991e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00187257019943 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38281245/likelihoodResults_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24372.6850923
delta logL = -0.00145506263652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24372.6836376
delta logL = -3.76236130251e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75540E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6554       1.0000          .0000       10.000    
     3 'Normalizat'    .82911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   24372.68     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      238 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1696        .42118E-03** at limit **
   2  Index         1.7985        1.0705        .64013E-06     .0000    
   3  Normalizat    .82911        1.1671       -.26079E-05    .36394E-04
   4  Prefactor     1.0430        1.1998        .50945E-06   -.10948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.7985
  Normalizat = 0.829112
  Prefactor  = 1.04301
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   24372.68     FROM HESSE     STATUS=FAILED         9 CALLS      247 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33100        1.5944        .64013E-06   -.69489    
   3  Normalizat    .82911        1.1671       -.26079E-05   -.98998    
   4  Prefactor     1.0430        1.1998        .50945E-06   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.75819e-12
Minuit parameter uncertainties:
  1  1.71047e-06
  2  1.08489
  3  1.20565
  4  1.23293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 24372.6836372
delta logL = 1.09139364213e-11

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  1.710e-06  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.798e+00  1.085e+00  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.043e+00  1.233e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.291e-01  1.206e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 47.111 4.118

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/38281245/cmap_HighResolution_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-03', job_status='DONE', photon_flux_upper_limit='2.50e-08', time_completed='2026-09-15 02:43:01.250790', job_id='38281245', GAL2='1.04', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1789465381.25', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='945' AND source_name='4FGL J0308.4+0407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 02:43:01 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  8.110e-06  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.043e+00  4.665e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.291e-01  1.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 47.111 4.118
Photon Flux Upper Limit: 2.50235484991e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00187257019943 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38281343/likelihoodResults_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24372.6850923
delta logL = -0.00145506263652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24372.6836376
delta logL = -3.76236130251e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75540E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6554       1.0000          .0000       10.000    
     3 'Normalizat'    .82911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   24372.68     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      238 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1696        .42118E-03** at limit **
   2  Index         1.7985        1.0705        .64013E-06     .0000    
   3  Normalizat    .82911        1.1671       -.26079E-05    .36394E-04
   4  Prefactor     1.0430        1.1998        .50945E-06   -.10948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.7985
  Normalizat = 0.829112
  Prefactor  = 1.04301
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   24372.68     FROM HESSE     STATUS=FAILED         9 CALLS      247 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33100        1.5944        .64013E-06   -.69489    
   3  Normalizat    .82911        1.1671       -.26079E-05   -.98998    
   4  Prefactor     1.0430        1.1998        .50945E-06   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.75819e-12
Minuit parameter uncertainties:
  1  1.71047e-06
  2  1.08489
  3  1.20565
  4  1.23293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 24372.6836372
delta logL = 1.09139364213e-11

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  1.710e-06  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.798e+00  1.085e+00  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.043e+00  1.233e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.291e-01  1.206e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 47.111 4.118

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/38281343/cmap_HighResolution_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-03', job_status='DONE', photon_flux_upper_limit='2.50e-08', time_completed='2026-09-15 02:44:05.854592', job_id='38281343', GAL2='1.04', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1789465445.85', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='945' AND source_name='4FGL J0308.4+0407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 02:44:05 PDT 2026

_V02
Working on...
/lscratch/kocevski/38281730/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits.....................!
real 112.45
user 104.27
sys 5.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38281730/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits', '/lscratch/kocevski/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.fits', expMap='/lscratch/kocevski/38281730/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits', expCube='/lscratch/kocevski/38281730/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38281730/Model_4FGL_J0308.4+0407_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0308.4+0407'

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  1.323e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38281730/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38281730/ft2_4FGL_J0308.4+0407_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38281730/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38281730/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38281730/Model_4FGL_J0308.4+0407_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 24372.7927241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35848E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .39424E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.306       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11103E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .66302       1.0000          .0000       .10000E+07
     6 'norm      '    .43898E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3054       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20254E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    27.681       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3355       1.0000          .0000       .10000E+07
    11 'norm      '    .89359E-05   1.0000          .0000       .10000E+07
    12 'norm      '    1.1485       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25202E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .72611       1.0000          .0000       .10000E+07
    15 'Prefactor '    .89331E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .68952       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19155E-03   1.0000          .0000       .10000E+07
    18 'norm      '    1.0458       1.0000          .0000       .10000E+07
    19 'norm      '    4.0999       1.0000          .0000       .10000E+07
    20 'Normalizat'    .82998       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24372.68     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1287 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61673E-07    46.354        .35034E-05** at limit **
   2  Prefactor     .48367E-06    60.987       -.46969E-05** at limit **
   3  Prefactor     10.535        6.5988       -.11747E-05   -.11337    
   4  Prefactor     .22871E-07    9.7030       -.19651E-05** at limit **
   5  Prefactor     .70722        .80236        .61517E-06   -.88513E-02
   6  norm          .16653E-09    1.7468       -.11306E-07** at limit **
   7  Prefactor     1.3512        5.0993        .55380E-06   -.14136E-02
   8  Prefactor     .12712E-07    6.9753       -.82604E-06** at limit **
   9  Prefactor     28.022        19.794       -.30925E-05    .55013E-01
  10  Prefactor     1.3401        3.2027        .38731E-07   -.17136E-02
  11  norm          .30531E-08    2.9677        .32225E-06** at limit **
  12  norm          1.1485        1.4019       -.22134E-06   -.26806E-02
  13  Prefactor      .0000        1.2622        .42285E-06** at limit **
  14  norm          .72612        4.0548        .10223E-05    .14110E-02
  15  Prefactor     .27756E-08    2.8994       -.16130E-05** at limit **
  16  Prefactor     .68989        2.1875       -.75351E-06   -.19022E-02
  17  Prefactor     .11102E-09    1.5602        .64285E-06** at limit **
  18  norm          1.0447        1.7280        .43874E-07   -.31277E-02
  19  norm          4.1011        .85682        .10900E-06    .25273E-02
  20  Normalizat    .82911        .11473        .73994E-05   -.19988E-03
  21  Prefactor     1.0430        .50777E-01   -.23813E-05   -.36018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.16729e-08
  Prefactor  = 4.83669e-07
  Prefactor  = 10.5354
  Prefactor  = 2.28706e-08
  Prefactor  = 0.707216
  norm       = 1.66533e-10
  Prefactor  = 1.35124
  Prefactor  = 1.27121e-08
  Prefactor  = 28.0218
  Prefactor  = 1.34013
  norm       = 3.05311e-09
  norm       = 1.14853
  Prefactor  = 0
  norm       = 0.726123
  Prefactor  = 2.77556e-09
  Prefactor  = 0.689895
  Prefactor  = 1.11022e-10
  norm       = 1.04468
  norm       = 4.10105
  Normalizat = 0.829111
  Prefactor  = 1.04301
_V02
Working on...
/lscratch/kocevski/38281731/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits.....................!
real 114.76
user 104.78
sys 5.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38281731/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits', '/lscratch/kocevski/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.fits', expMap='/lscratch/kocevski/38281731/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits', expCube='/lscratch/kocevski/38281731/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38281731/Model_4FGL_J0308.4+0407_weekly_bin945.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0308.4+0407'

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  1.323e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38281731/ft1_filtered_4FGL_J0308.4+0407_weekly_bin945.fits
Spacecraft file(s): /lscratch/kocevski/38281731/ft2_4FGL_J0308.4+0407_weekly_bin945.fits
Exposure map: /lscratch/kocevski/38281731/expmap_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
Exposure cube: /lscratch/kocevski/38281731/ltcube_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38281731/Model_4FGL_J0308.4+0407_weekly_bin945.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 24372.7927241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35848E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .39424E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.306       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11103E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .66302       1.0000          .0000       .10000E+07
     6 'norm      '    .43898E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3054       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20254E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    27.681       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3355       1.0000          .0000       .10000E+07
    11 'norm      '    .89359E-05   1.0000          .0000       .10000E+07
    12 'norm      '    1.1485       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25202E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .72611       1.0000          .0000       .10000E+07
    15 'Prefactor '    .89331E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .68952       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19155E-03   1.0000          .0000       .10000E+07
    18 'norm      '    1.0458       1.0000          .0000       .10000E+07
    19 'norm      '    4.0999       1.0000          .0000       .10000E+07
    20 'Normalizat'    .82998       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24372.68     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1287 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61673E-07    46.354        .35034E-05** at limit **
   2  Prefactor     .48367E-06    60.987       -.46969E-05** at limit **
   3  Prefactor     10.535        6.5988       -.11747E-05   -.11337    
   4  Prefactor     .22871E-07    9.7030       -.19651E-05** at limit **
   5  Prefactor     .70722        .80236        .61517E-06   -.88513E-02
   6  norm          .16653E-09    1.7468       -.11306E-07** at limit **
   7  Prefactor     1.3512        5.0993        .55380E-06   -.14136E-02
   8  Prefactor     .12712E-07    6.9753       -.82604E-06** at limit **
   9  Prefactor     28.022        19.794       -.30925E-05    .55013E-01
  10  Prefactor     1.3401        3.2027        .38731E-07   -.17136E-02
  11  norm          .30531E-08    2.9677        .32225E-06** at limit **
  12  norm          1.1485        1.4019       -.22134E-06   -.26806E-02
  13  Prefactor      .0000        1.2622        .42285E-06** at limit **
  14  norm          .72612        4.0548        .10223E-05    .14110E-02
  15  Prefactor     .27756E-08    2.8994       -.16130E-05** at limit **
  16  Prefactor     .68989        2.1875       -.75351E-06   -.19022E-02
  17  Prefactor     .11102E-09    1.5602        .64285E-06** at limit **
  18  norm          1.0447        1.7280        .43874E-07   -.31277E-02
  19  norm          4.1011        .85682        .10900E-06    .25273E-02
  20  Normalizat    .82911        .11473        .73994E-05   -.19988E-03
  21  Prefactor     1.0430        .50777E-01   -.23813E-05   -.36018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.16729e-08
  Prefactor  = 4.83669e-07
  Prefactor  = 10.5354
  Prefactor  = 2.28706e-08
  Prefactor  = 0.707216
  norm       = 1.66533e-10
  Prefactor  = 1.35124
  Prefactor  = 1.27121e-08
  Prefactor  = 28.0218
  Prefactor  = 1.34013
  norm       = 3.05311e-09
  norm       = 1.14853
  Prefactor  = 0
  norm       = 0.726123
  Prefactor  = 2.77556e-09
  Prefactor  = 0.689895
  Prefactor  = 1.11022e-10
  norm       = 1.04468
  norm       = 4.10105
  Normalizat = 0.829111
  Prefactor  = 1.04301
 **********
 **   18 **HESSE 
 **********

 FCN=   24372.68     FROM HESSE     STATUS=OK           363 CALLS     1650 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61673E-07    46.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .48367E-06    60.889        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.535        13.267        .31187E-03   -1.5643    
   4  Prefactor     .22871E-07    9.7796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .70722        35.248        .63763E-03   -1.5691    
   6  norm          .16653E-09    1.7595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3512        5.1449        .96575E-03   -1.5685    
   8  Prefactor     .12712E-07    7.0493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.022        21.827        .19010E-03   -1.5602    
  10  Prefactor     1.3401        3.2292        .94900E-03   -1.5685    
  11  norm          .30531E-08    2.9801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1485        1.4269        .10804E-02   -1.5687    
  13  Prefactor      .0000        1.2616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .72612        4.0378        .58613E-03   -1.5691    
  15  Prefactor     .27756E-08    2.9164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .68989        2.1991        .61563E-03   -1.5691    
  17  Prefactor     .11102E-09    1.5659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0447        2.1026        .60736E-02   -1.5688    
  19  norm          4.1011        .85925        .49765E-03   -1.5667    
  20  Normalizat    .82911        .10992        .85287E-01   -.98998    
  21  Prefactor     1.0430        .46648E-01    .40347E-01   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07151e-05
Minuit parameter uncertainties:
  1  0.00338521
  2  0.0108536
  3  13.2674
  4  0.000945873
  5  9.98561
  6  3.17221e-05
  7  5.14494
  8  0.000599319
  9  21.8273
  10  3.22924
  11  0.000191528
  12  1.42688
  13  8.11001e-06
  14  3.42456
  15  0.000180047
  16  2.19909
  17  2.32728e-05
  18  2.10264
  19  0.859253
  20  0.109949
  21  0.0466498
 **********
 **   18 **HESSE 
 **********

 FCN=   24372.68     FROM HESSE     STATUS=OK           363 CALLS     1650 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61673E-07    46.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .48367E-06    60.889        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.535        13.267        .31187E-03   -1.5643    
   4  Prefactor     .22871E-07    9.7796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .70722        35.248        .63763E-03   -1.5691    
   6  norm          .16653E-09    1.7595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3512        5.1449        .96575E-03   -1.5685    
   8  Prefactor     .12712E-07    7.0493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.022        21.827        .19010E-03   -1.5602    
  10  Prefactor     1.3401        3.2292        .94900E-03   -1.5685    
  11  norm          .30531E-08    2.9801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1485        1.4269        .10804E-02   -1.5687    
  13  Prefactor      .0000        1.2616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .72612        4.0378        .58613E-03   -1.5691    
  15  Prefactor     .27756E-08    2.9164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .68989        2.1991        .61563E-03   -1.5691    
  17  Prefactor     .11102E-09    1.5659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0447        2.1026        .60736E-02   -1.5688    
  19  norm          4.1011        .85925        .49765E-03   -1.5667    
  20  Normalizat    .82911        .10992        .85287E-01   -.98998    
  21  Prefactor     1.0430        .46648E-01    .40347E-01   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07151e-05
Minuit parameter uncertainties:
  1  0.00338521
  2  0.0108536
  3  13.2674
  4  0.000945873
  5  9.98561
  6  3.17221e-05
  7  5.14494
  8  0.000599319
  9  21.8273
  10  3.22924
  11  0.000191528
  12  1.42688
  13  8.11001e-06
  14  3.42456
  15  0.000180047
  16  2.19909
  17  2.32728e-05
  18  2.10264
  19  0.859253
  20  0.109949
  21  0.0466498
Done.

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

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  8.110e-06  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.043e+00  4.665e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.291e-01  1.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 47.111 4.118
Photon Flux Upper Limit: 2.50235484991e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00187257019943 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38281730/likelihoodResults_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24372.6850923
delta logL = -0.00145506263652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24372.6836376
delta logL = -3.76236130251e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75540E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6554       1.0000          .0000       10.000    
     3 'Normalizat'    .82911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   24372.68     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      238 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1696        .42118E-03** at limit **
   2  Index         1.7985        1.0705        .64013E-06     .0000    
   3  Normalizat    .82911        1.1671       -.26079E-05    .36394E-04
   4  Prefactor     1.0430        1.1998        .50945E-06   -.10948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.7985
  Normalizat = 0.829112
  Prefactor  = 1.04301
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   24372.68     FROM HESSE     STATUS=FAILED         9 CALLS      247 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33100        1.5944        .64013E-06   -.69489    
   3  Normalizat    .82911        1.1671       -.26079E-05   -.98998    
   4  Prefactor     1.0430        1.1998        .50945E-06   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.75819e-12
Minuit parameter uncertainties:
  1  1.71047e-06
  2  1.08489
  3  1.20565
  4  1.23293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 24372.6836372
delta logL = 1.09139364213e-11

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  1.710e-06  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.798e+00  1.085e+00  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.043e+00  1.233e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.291e-01  1.206e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 47.111 4.118

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/38281730/cmap_HighResolution_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-03', job_status='DONE', photon_flux_upper_limit='2.50e-08', time_completed='2026-09-15 02:46:30.763019', job_id='38281730', GAL2='1.04', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1789465590.76', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='945' AND source_name='4FGL J0308.4+0407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 02:46:31 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  8.110e-06  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.043e+00  4.665e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.291e-01  1.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 47.111 4.118
Photon Flux Upper Limit: 2.50235484991e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00187257019943 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38281731/likelihoodResults_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24372.6850923
delta logL = -0.00145506263652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24372.6836376
delta logL = -3.76236130251e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75540E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6554       1.0000          .0000       10.000    
     3 'Normalizat'    .82911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   24372.68     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      238 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1696        .42118E-03** at limit **
   2  Index         1.7985        1.0705        .64013E-06     .0000    
   3  Normalizat    .82911        1.1671       -.26079E-05    .36394E-04
   4  Prefactor     1.0430        1.1998        .50945E-06   -.10948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.7985
  Normalizat = 0.829112
  Prefactor  = 1.04301
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   24372.68     FROM HESSE     STATUS=FAILED         9 CALLS      247 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33100        1.5944        .64013E-06   -.69489    
   3  Normalizat    .82911        1.1671       -.26079E-05   -.98998    
   4  Prefactor     1.0430        1.1998        .50945E-06   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.75819e-12
Minuit parameter uncertainties:
  1  1.71047e-06
  2  1.08489
  3  1.20565
  4  1.23293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 24372.6836372
delta logL = 1.09139364213e-11

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  1.710e-06  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.798e+00  1.085e+00  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.043e+00  1.233e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.291e-01  1.206e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 47.111 4.118

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/38281731/cmap_HighResolution_810518401_811123201_4FGL_J0308.4+0407_weekly_bin945.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-03', job_status='DONE', photon_flux_upper_limit='2.50e-08', time_completed='2026-09-15 02:46:40.439395', job_id='38281731', GAL2='1.04', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1789465600.44', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='945' AND source_name='4FGL J0308.4+0407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 15 02:46:40 PDT 2026

