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

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

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

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

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

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

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

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

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

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


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

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


Performing analysis on: 4FGL_J0137.0+4751_daily_bin2051
RA = 24.2603, Dec = 47.8637
tmin = 770947201, tmax = 771206401
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='6054230', job_status='RUN', time_executed='2025-06-10 00:15:45.688123', time_epoch_executed='1749539745.69' WHERE source_name='4FGL J0137.0+4751' and cadence='daily' and bin_id='2051'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/6054230

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/6054230/ft1_4FGL_J0137.0+4751_daily_bin2051.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/6054230/ft2_4FGL_J0137.0+4751_daily_bin2051.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/6054230/ft1_4FGL_J0137.0+4751_daily_bin2051.fits outfile=/lscratch/kocevski/6054230/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin2051.fits ra=24.2603 dec=47.8637 rad=12.0 tmin=770947201.0 tmax=771206401.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 5.16
user 1.87
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/6054230/ft2_4FGL_J0137.0+4751_daily_bin2051.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/6054230/ft2_4FGL_J0137.0+4751_daily_bin2051.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/6054230/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin2051.fits evtable="EVENTS" outfile="/lscratch/kocevski/6054230/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.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 3.67
user 0.19
sys 0.23

Number of photons that the gtmktime cut: 1274

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/6054230/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits" evtable="EVENTS" scfile=/lscratch/kocevski/6054230/ft2_4FGL_J0137.0+4751_daily_bin2051.fits sctable="SC_DATA" outfile=/lscranumber of points = 6997
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0137.0+4751_daily_bin2051
RA = 24.2603, Dec = 47.8637
tmin = 770947201, tmax = 771206401
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='6054225', job_status='RUN', time_executed='2025-06-10 00:16:45.148637', time_epoch_executed='1749539805.15' WHERE source_name='4FGL J0137.0+4751' and cadence='daily' and bin_id='2051'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/6054225

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/6054225/ft1_4FGL_J0137.0+4751_daily_bin2051.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/6054225/ft2_4FGL_J0137.0+4751_daily_bin2051.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/6054225/ft1_4FGL_J0137.0+4751_daily_bin2051.fits outfile=/lscratch/kocevski/6054225/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin2051.fits ra=24.2603 dec=47.8637 rad=12.0 tmin=770947201.0 tmax=771206401.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 7.62
user 2.45
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/6054225/ft2_4FGL_J0137.0+4751_daily_bin2051.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/6054225/ft2_4FGL_J0137.0+4751_daily_bin2051.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/6054225/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin2051.fits evtable="EVENTS" outfile="/lscratch/kocevski/6054225/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.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 7.81
user 0.23
sys 0.16

Number of photons that the gtmktime cut: 1274

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/6054225/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits" evtable="EVENTS" scfile=/lscratch/kocevski/6054225/ft2_4FGL_J0137.0+4751_daily_bin2051.fits sctable="SC_DATA" outfile=/lscratch/kocevski/6054230/ltcube_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.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/6054230/ft2_4FGL_J0137.0+4751_daily_bin2051.fits
.....................!
real 11.51
user 7.85
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/6054230/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits evtable="EVENTS" scfile=/lscratch/kocevski/6054230/ft2_4FGL_J0137.0+4751_daily_bin2051.fits sctable="SC_DATA" expcube=/lscratch/kocevski/6054230/ltcube_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits outfile=/lscratch/kocevski/6054230/expmap_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.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/6054230/ltcube_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits
.....................!
real 69.14
user 59.56
sys 3.43

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 177 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0137.0+4751 @ 24.2603 47.8637

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/6054230/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits scfile=/lscratch/kocevski/6054230/ft2_4FGL_J0137.0+4751_daily_bin2051.fits outfile=/lscratch/kocevski/6054230/cmap_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.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=24.2603 yref=47.8637 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 2.94
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/6054230/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits scfile=/lscratch/kocevski/6054230/ft2_4FGL_J0137.0+4751_daily_bin2051.fits outfile=/lscratch/kocevski/6054230/cmap_HighResolution_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.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=24.2603 yref=47.8637 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 3.98
user 0.21
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/6054230/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits evtable="EVENTS" scfile=/lscratch/kocevski/6054230/ft2_4FGL_J0137.0+475tch/kocevski/6054225/ltcube_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.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/6054225/ft2_4FGL_J0137.0+4751_daily_bin2051.fits
.....................!
real 18.35
user 10.25
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/6054225/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits evtable="EVENTS" scfile=/lscratch/kocevski/6054225/ft2_4FGL_J0137.0+4751_daily_bin2051.fits sctable="SC_DATA" expcube=/lscratch/kocevski/6054225/ltcube_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits outfile=/lscratch/kocevski/6054225/expmap_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.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/6054225/ltcube_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits
.....................!
real 93.46
user 76.54
sys 4.55

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 177 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0137.0+4751 @ 24.2603 47.8637

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/6054225/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits scfile=/lscratch/kocevski/6054225/ft2_4FGL_J0137.0+4751_daily_bin2051.fits outfile=/lscratch/kocevski/6054225/cmap_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.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=24.2603 yref=47.8637 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 12.51
user 0.26
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/6054225/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits scfile=/lscratch/kocevski/6054225/ft2_4FGL_J0137.0+4751_daily_bin2051.fits outfile=/lscratch/kocevski/6054225/cmap_HighResolution_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.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=24.2603 yref=47.8637 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 16.77
user 0.26
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/6054225/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits evtable="EVENTS" scfile=/lscratch/kocevski/6054225/ft2_4FGL_J0137.0+1_daily_bin2051.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/6054230/Model_4FGL_J0137.0+4751_daily_bin2051.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
adding source HB 3
adding source W 3
Working on...
/lscratch/kocevski/6054230/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits.....................!
real 66.79
user 58.37
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/6054230/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits', '/lscratch/kocevski/6054230/ft2_4FGL_J0137.0+4751_daily_bin2051.fits', expMap='/lscratch/kocevski/6054230/expmap_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits', expCube='/lscratch/kocevski/6054230/ltcube_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/6054230/Model_4FGL_J0137.0+4751_daily_bin2051.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0137.0+4751'

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.175e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  9.871e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/6054230/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits
Spacecraft file(s): /lscratch/kocevski/6054230/ft2_4FGL_J0137.0+4751_daily_bin2051.fits
Exposure map: /lscratch/kocevski/6054230/expmap_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits
Exposure cube: /lscratch/kocevski/6054230/ltcube_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/6054230/Model_4FGL_J0137.0+4751_daily_bin2051.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) = 13172.4980035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37696E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .70380E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.1434       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.3736       1.0000          .0000       .10000E+07
     5 'norm      '    2.7678       1.0000          .0000       .10000E+07
     6 'norm      '    .16406E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23884E-04   1.0000          .0000       .10000E+07
     8 'norm      '    2.8342       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13077E-01   1.0000          .0000       .10000E+07
    10 'norm      '    3.9682       1.0000          .0000       .10000E+07
    11 'norm      '    2.3839       1.0000          .0000       .10000E+07
    12 'Prefactor '    .44174       1.0000          .0000       .10000E+07
    13 'Prefactor '    .74456E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .20285E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .56790E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .14988E-08   1.0000          .0000       .10000E+07
    17 'norm      '    .52512E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95836       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13172.45     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1184 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    9.9861        .11781E-05** at limit **
   2  norm          .88818E-09    7.0264        .93457E-06** at limit **
   3  Prefactor     1.1564        9.8472        .19001E-05   -.25644E-03
   4  Prefactor     4.3217        7.5317        .23952E-06    .58080E-03
   5  norm          2.8526        5.6237       -.37269E-06   -.34753E-03
   6  norm          .49960E-09    6.9345        .11921E-05** at limit **
   7  Prefactor      .0000        4.9429        .16324E-06** at limit **
   8  norm          2.8389        3.2103       -.74566E-06    .78468E-03
   9  Prefactor     .55511E-10    19.166        .21052E-07** at limit **
  10  norm          3.9682        1.4400       -.83451E-07    .31850E-02
  11  norm          2.3856        .90381       -.10685E-06   -.24365E-02
  12  Prefactor     .39570        9.6319       -.17252E-05   -.55042E-03
  13  Prefactor      .0000        48.880        .28128E-05** at limit **
  14  Prefactor      .0000        17.151       -.12622E-05** at limit **
  15  Prefactor     .22204E-09    56.135       -.76628E-06** at limit **
  16  norm           .0000        .84791E-01   -.57060E-07** at limit **
  17  norm           .0000        4.3668       -.43874E-06** at limit **
  18  Normalizat    1.0855        .20335        .16213E-04    .66869E-05
  19  Prefactor     .95834        .61682E-01    .31522E-06   -.68534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 8.88178e-10
  Prefactor  = 1.15644
  Prefactor  = 4.32166
  norm       = 2.85263
  norm       = 4.996e-10
  Prefactor  = 0
  norm       = 2.83888
  Prefactor  = 5.55112e-11
  norm       = 3.96824
  norm       = 2.38564
  Prefactor  = 0.395696
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  norm       = 0
  norm       = 0
  Normalizat = 1.08553
  Prefactor  = 0.958336
 **********
 **   18 **HESSE 
 **********

 FCN=   13172.45     FROM HESSE     STATUS=OK           318 CALLS     1502 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    10.006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .88818E-09    13.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1564        9.7758        .10854E-02   -1.5686    
   4  Prefactor     4.3217        7.5214        .48137E-03   -1.5666    
   5  norm          2.8526        5.6282        .61150E-03   -1.5674    
   6  norm          .49960E-09    13.762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        4.9586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8389        3.2282        .60378E-03   -1.5674    
   9  Prefactor     .55511E-10    19.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9682        1.4433        .50610E-03   -1.5668    
  11  norm          2.3856        .90904        .66315E-03   -1.5677    
  12  Prefactor     .39570        2.2679        .60273E-02   -1.5695    
  13  Prefactor      .0000        48.386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.8794        .53757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22204E-09    56.164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .81666E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        4.4015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0855        .19402        .10128       -.90218    
  19  Prefactor     .95834        .57692E-01    .32254E-01   -.94131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47925e-06
Minuit parameter uncertainties:
  1  3.33981e-05
  2  0.000216311
  3  6.72462
  4  7.52138
  5  5.62821
  6  0.000163103
  7  1.08721e-05
  8  3.2282
  9  4.87722e-05
  10  1.44333
  11  0.909042
  12  1.89462
  13  6.99627e-06
  14  1.2531e-05
  15  0.000232838
  16  1.54332e-07
  17  6.18723e-06
  18  0.194151
  19  0.0576961
Done.

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

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  2.386e+00  9.090e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  9.871e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.583e-01  5.770e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.086e+00  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.02
Ra Dec: 24.260 47.864
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 4.39e-08
Energy Flux (Fixed Index): 4.61e-05 +/- 1.76e-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) = 13171.2559776
delta logL = 1.18974741912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13171.2392773
delta logL = 1.20644777741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7823       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7764       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96626       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   13171.24     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      258 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7822        .92551        .49491E-05   -.12639E-01
   2  alpha         2.7764        .41631        .10887E-01   -.40147E-04
   3  Normalizat    1.0300        .20044        .45874E-03   -.10166E-03
   4  Prefactor     .96626        .59438E-01    .14196E-03    .11997E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7822
  alpha      = 2.77637
  Normalizat = 1.02999
  Prefactor  = 0.966263
 **********
 **   18 **HESSE 
 **********

 FCN=   13171.24     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7822        .87403        .19796E-06   -1.5681    
   2  alpha         2.7764        .39305        .43548E-03    .11078    
   3  Normalizat    1.0300        .20041        .18350E-04   -.92032    
   4  Prefactor     .96626        .59430E-01    .56784E-05   -.93863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66102e-11
Minuit parameter uncertainties:
  1  0.874026
  2  0.394713
  3  0.200555
  4  0.0594343
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) = 13171.2392772
delta logL = 1.20644779654

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.782e+00  8.740e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.776e+00  3.947e-01  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  9.871e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.663e-01  5.943e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.030e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.66
Ra Dec: 24.260 47.864
Photon Index (Free Index): 2.78 +/- 0.39
Photon Flux (Free Index): 1.72e-07 +/- 6.47e-08
Energy Flux (Free Index): 4.08e-05 +/- 1.42e-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/6054230/cmap_HighResolution_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='4.08e-05', photon_flux_error='4.39e-08', dlogl='1.21e+00', energy_flux='4.61e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2025-06-10 00:26:23.777868', photon_index_error2='0.39', photon_index2='2.78', ts='13.02', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.09', time_epoch_completed='1749540383.78', return_code='0', job_id='6054230', GAL2='0.97', EG2='1.03', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='6.47e-08', ts2='15.66', photon_index='2.20' WHERE bin_id='2051' AND source_name='4FGL J0137.0+4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun 10 00:26:23 PDT 2025

4751_daily_bin2051.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/6054225/Model_4FGL_J0137.0+4751_daily_bin2051.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
adding source HB 3
adding source W 3
Working on...
/lscratch/kocevski/6054225/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits.....................!
real 101.94
user 72.27
sys 1.73

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/6054225/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits', '/lscratch/kocevski/6054225/ft2_4FGL_J0137.0+4751_daily_bin2051.fits', expMap='/lscratch/kocevski/6054225/expmap_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits', expCube='/lscratch/kocevski/6054225/ltcube_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/6054225/Model_4FGL_J0137.0+4751_daily_bin2051.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0137.0+4751'

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.175e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  9.871e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/6054225/ft1_filtered_4FGL_J0137.0+4751_daily_bin2051.fits
Spacecraft file(s): /lscratch/kocevski/6054225/ft2_4FGL_J0137.0+4751_daily_bin2051.fits
Exposure map: /lscratch/kocevski/6054225/expmap_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits
Exposure cube: /lscratch/kocevski/6054225/ltcube_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/6054225/Model_4FGL_J0137.0+4751_daily_bin2051.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) = 13172.4980035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37696E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .70380E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.1434       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.3736       1.0000          .0000       .10000E+07
     5 'norm      '    2.7678       1.0000          .0000       .10000E+07
     6 'norm      '    .16406E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23884E-04   1.0000          .0000       .10000E+07
     8 'norm      '    2.8342       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13077E-01   1.0000          .0000       .10000E+07
    10 'norm      '    3.9682       1.0000          .0000       .10000E+07
    11 'norm      '    2.3839       1.0000          .0000       .10000E+07
    12 'Prefactor '    .44174       1.0000          .0000       .10000E+07
    13 'Prefactor '    .74456E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .20285E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .56790E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .14988E-08   1.0000          .0000       .10000E+07
    17 'norm      '    .52512E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95836       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13172.45     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1184 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    9.9861        .11781E-05** at limit **
   2  norm          .88818E-09    7.0264        .93457E-06** at limit **
   3  Prefactor     1.1564        9.8472        .19001E-05   -.25644E-03
   4  Prefactor     4.3217        7.5317        .23952E-06    .58080E-03
   5  norm          2.8526        5.6237       -.37269E-06   -.34753E-03
   6  norm          .49960E-09    6.9345        .11921E-05** at limit **
   7  Prefactor      .0000        4.9429        .16324E-06** at limit **
   8  norm          2.8389        3.2103       -.74566E-06    .78468E-03
   9  Prefactor     .55511E-10    19.166        .21052E-07** at limit **
  10  norm          3.9682        1.4400       -.83451E-07    .31850E-02
  11  norm          2.3856        .90381       -.10685E-06   -.24365E-02
  12  Prefactor     .39570        9.6319       -.17252E-05   -.55042E-03
  13  Prefactor      .0000        48.880        .28128E-05** at limit **
  14  Prefactor      .0000        17.151       -.12622E-05** at limit **
  15  Prefactor     .22204E-09    56.135       -.76628E-06** at limit **
  16  norm           .0000        .84791E-01   -.57060E-07** at limit **
  17  norm           .0000        4.3668       -.43874E-06** at limit **
  18  Normalizat    1.0855        .20335        .16213E-04    .66869E-05
  19  Prefactor     .95834        .61682E-01    .31522E-06   -.68534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 8.88178e-10
  Prefactor  = 1.15644
  Prefactor  = 4.32166
  norm       = 2.85263
  norm       = 4.996e-10
  Prefactor  = 0
  norm       = 2.83888
  Prefactor  = 5.55112e-11
  norm       = 3.96824
  norm       = 2.38564
  Prefactor  = 0.395696
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  norm       = 0
  norm       = 0
  Normalizat = 1.08553
  Prefactor  = 0.958336
 **********
 **   18 **HESSE 
 **********

 FCN=   13172.45     FROM HESSE     STATUS=OK           318 CALLS     1502 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    10.006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .88818E-09    13.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1564        9.7758        .10854E-02   -1.5686    
   4  Prefactor     4.3217        7.5214        .48137E-03   -1.5666    
   5  norm          2.8526        5.6282        .61150E-03   -1.5674    
   6  norm          .49960E-09    13.762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        4.9586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8389        3.2282        .60378E-03   -1.5674    
   9  Prefactor     .55511E-10    19.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9682        1.4433        .50610E-03   -1.5668    
  11  norm          2.3856        .90904        .66315E-03   -1.5677    
  12  Prefactor     .39570        2.2679        .60273E-02   -1.5695    
  13  Prefactor      .0000        48.386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.8794        .53757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22204E-09    56.164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .81666E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        4.4015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0855        .19402        .10128       -.90218    
  19  Prefactor     .95834        .57692E-01    .32254E-01   -.94131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47925e-06
Minuit parameter uncertainties:
  1  3.33981e-05
  2  0.000216311
  3  6.72462
  4  7.52138
  5  5.62821
  6  0.000163103
  7  1.08721e-05
  8  3.2282
  9  4.87722e-05
  10  1.44333
  11  0.909042
  12  1.89462
  13  6.99627e-06
  14  1.2531e-05
  15  0.000232838
  16  1.54332e-07
  17  6.18723e-06
  18  0.194151
  19  0.0576961
Done.

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

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  2.386e+00  9.090e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  9.871e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.583e-01  5.770e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.086e+00  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.02
Ra Dec: 24.260 47.864
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 4.39e-08
Energy Flux (Fixed Index): 4.61e-05 +/- 1.76e-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) = 13171.2559776
delta logL = 1.18974741912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13171.2392773
delta logL = 1.20644777741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7823       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7764       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96626       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   13171.24     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      258 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7822        .92551        .49491E-05   -.12639E-01
   2  alpha         2.7764        .41631        .10887E-01   -.40147E-04
   3  Normalizat    1.0300        .20044        .45874E-03   -.10166E-03
   4  Prefactor     .96626        .59438E-01    .14196E-03    .11997E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7822
  alpha      = 2.77637
  Normalizat = 1.02999
  Prefactor  = 0.966263
 **********
 **   18 **HESSE 
 **********

 FCN=   13171.24     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7822        .87403        .19796E-06   -1.5681    
   2  alpha         2.7764        .39305        .43548E-03    .11078    
   3  Normalizat    1.0300        .20041        .18350E-04   -.92032    
   4  Prefactor     .96626        .59430E-01    .56784E-05   -.93863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66102e-11
Minuit parameter uncertainties:
  1  0.874026
  2  0.394713
  3  0.200555
  4  0.0594343
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) = 13171.2392772
delta logL = 1.20644779654

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.782e+00  8.740e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.776e+00  3.947e-01  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  9.871e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.663e-01  5.943e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.030e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.66
Ra Dec: 24.260 47.864
Photon Index (Free Index): 2.78 +/- 0.39
Photon Flux (Free Index): 1.72e-07 +/- 6.47e-08
Energy Flux (Free Index): 4.08e-05 +/- 1.42e-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/6054225/cmap_HighResolution_770947201_771206401_4FGL_J0137.0+4751_daily_bin2051.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='4.08e-05', photon_flux_error='4.39e-08', dlogl='1.21e+00', energy_flux='4.61e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2025-06-10 00:28:54.173606', photon_index_error2='0.39', photon_index2='2.78', ts='13.02', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.09', time_epoch_completed='1749540534.17', return_code='0', job_id='6054225', GAL2='0.97', EG2='1.03', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='6.47e-08', ts2='15.66', photon_index='2.20' WHERE bin_id='2051' AND source_name='4FGL J0137.0+4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun 10 00:28:55 PDT 2025

