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

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

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


Performing analysis on: 4FGL_J0809.5+5341_weekly_bin906
RA = 122.379, Dec = 53.6876
tmin = 786931201, tmax = 787536001
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='17374454', job_status='RUN', time_executed='2025-12-16 01:45:49.219830', time_epoch_executed='1765878349.22' WHERE source_name='4FGL J0809.5+5341' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17374454

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17374454/ft1_4FGL_J0809.5+5341_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17374454/ft1_4FGL_J0809.5+5341_weekly_bin906.fits outfile=/lscratch/kocevski/17374454/ft1_filteredMKT_4FGL_J0809.5+5341_weekly_bin906.fits ra=122.379 dec=53.6876 rad=12.0 tmin=786931201.0 tmax=787536001.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.24
user 5.60
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.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/17374454/ft1_filteredMKT_4FGL_J0809.5+5341_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17374454/ft1_filtered_4FGL_J0809.5+5341_weekly_bin906.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.69
user 0.23
sys 0.14

Number of photons that the gtmktime cut: 1940

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17374454/ft1_filtered_4FGL_J0809.5+5341_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17374454/ltcube_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.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/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.fits
.....................!
real 21.48
user 19.60
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17374454/ft1_filtered_4FGL_J0809.5+5341_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17374454/ltcube_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.fits outfile=/lscratch/kocevski/17374454/expmap_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.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/17374454/ltcube_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.fits
.....................!
real 76.72
user 70.76
sys 4.47

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

Setting source of interest to:
4FGL J0809.5+5341 @ 122.379 53.6876

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17374454/ft1_filtered_4FGL_J0809.5+5341_weekly_bin906.fits scfile=/lscratch/kocevski/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.fits outfile=/lscratch/kocevski/17374454/cmap_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.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=122.379 yref=53.6876 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.61
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17374454/ft1_filtered_4FGL_J0809.5+5341_weekly_bin906.fits scfile=/lscratch/kocevski/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.fits outfile=/lscratch/kocevski/17374454/cmap_HighResolution_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.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=122.379 yref=53.6876 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.68
user 0.26
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17374454/ft1_filtered_4FGL_J0809.5+5341_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17374454/Model_4FGL_J0809.5+5341_weekly_bin906.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17374454/ft1_filtered_4FGL_J0809.5+5341_weekly_bin906.fits....................!
real 83.11
user 79.83
sys 0.86

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17374454/ft1_filtered_4FGL_J0809.5+5341_weekly_bin906.fits', '/lscratch/kocevski/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.fits', expMap='/lscratch/kocevski/17374454/expmap_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.fits', expCube='/lscratch/kocevski/17374454/ltcube_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17374454/Model_4FGL_J0809.5+5341_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.5+5341'

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  2.091e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
328         beta:  1.129e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17374454/ft1_filtered_4FGL_J0809.5+5341_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17374454/ft2_4FGL_J0809.5+5341_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17374454/expmap_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17374454/ltcube_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17374454/Model_4FGL_J0809.5+5341_weekly_bin906.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) = 20787.6967662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8364       1.0000          .0000       .10000E+07
     2 'norm      '    1.1368       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.6351       1.0000          .0000       .10000E+07
     4 'Prefactor '    .28311E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.4358       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.2388       1.0000          .0000       .10000E+07
     7 'norm      '    8.3057       1.0000          .0000       .10000E+07
     8 'Prefactor '    31.731       1.0000          .0000       .10000E+07
     9 'Prefactor '    37.366       1.0000          .0000       .10000E+07
    10 'norm      '    6.0951       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.5893       1.0000          .0000       .10000E+07
    12 'Prefactor '    .43159E-02   1.0000          .0000       .10000E+07
    13 'norm      '    1.4276       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17853E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .64918E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .40495E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .80041       1.0000          .0000       .10000E+07
    18 'norm      '    1.4239       1.0000          .0000       .10000E+07
    19 'norm      '    1.8454       1.0000          .0000       .10000E+07
    20 'Prefactor '    .10114E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .75839       1.0000          .0000       .10000E+07
    22 'norm      '    1.3673       1.0000          .0000       .10000E+07
    23 'Prefactor '    17.397       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.2893       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.0715       1.0000          .0000       .10000E+07
    26 'Prefactor '    5.5184       1.0000          .0000       .10000E+07
    27 'norm      '    .86764       1.0000          .0000       .10000E+07
    28 'norm      '    .41030E-03   1.0000          .0000       .10000E+07
    29 'Prefactor '    18.994       1.0000          .0000       .10000E+07
    30 'Prefactor '    5.3568       1.0000          .0000       .10000E+07
    31 'Normalizat'    .79578       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20784.65     FROM MIGRAD    STATUS=CONVERGED    222 CALLS     1881 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8348        2.1216       -.13924E-07   -.57237E-04
   2  norm          1.1107        2.6169       -.26020E-07   -.95053E-04
   3  Prefactor     8.6244        6.1108       -.49249E-07   -.18811E-02
   4  Prefactor      .0000        3.0661       -.16908E-06** at limit **
   5  Prefactor     6.5515        10.179        .21192E-06    .56953E-04
   6  Prefactor     2.2720        8.2161        .17368E-06    .85250E-02
   7  norm          8.3016        4.6346       -.67168E-07    .41757E-03
   8  Prefactor     31.616        15.798        .11080E-06   -.25715E-02
   9  Prefactor     37.399        18.092       -.14366E-07    .90685E-02
  10  norm          6.0937        .84609       -.56173E-08    .65987E-03
  11  Prefactor     2.5691        4.0820       -.30228E-07   -.11503E-03
  12  Prefactor     .11102E-09    12.688       -.34539E-06** at limit **
  13  norm          1.4285        1.1060        .21793E-07   -.81480E-03
  14  Prefactor      .0000        2.1904        .50427E-07** at limit **
  15  Prefactor      .0000        95.576        .55022E-07** at limit **
  16  norm           .0000        .98220        .35383E-07** at limit **
  17  Prefactor     .53291E-08    1308.0        .36997E-05** at limit **
  18  norm          1.4233        1.3027        .90894E-08   -.47031E-03
  19  norm          1.8454        .85834        .18944E-07   -.92494E-03
  20  Prefactor      .0000        .37315       -.33739E-07** at limit **
  21  Prefactor     .73494        1.6279        .51617E-07   -.32694E-01
  22  norm          1.3686        .43262       -.75849E-08    .28647E-02
  23  Prefactor     17.409        4.4331       -.26667E-07    .79680E-02
  24  Prefactor     2.4173        7.1062       -.43151E-07    .34708E-03
  25  Prefactor     1.0747        4.5340        .64091E-08   -.80637E-04
  26  Prefactor     5.5203        3.5110       -.12926E-07   -.31772E-03
  27  norm          .87529        3.1707        .73235E-07    .60109E-03
  28  norm           .0000        9.0697        .28677E-07** at limit **
  29  Prefactor     18.852        7.5060        .86870E-08    .96929E-02
  30  Prefactor     5.3278        7.2472        .44429E-07   -.45861E-02
  31  Normalizat    .79647        .12476       -.22105E-05   -.67120E-05
  32  Prefactor     1.1185        .91572E-01    .15168E-05   -.57089E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83476
  norm       = 1.11065
  Prefactor  = 8.62437
  Prefactor  = 0
  Prefactor  = 6.55154
  Prefactor  = 2.27205
  norm       = 8.30162
  Prefactor  = 31.6161
  Prefactor  = 37.3994
  norm       = 6.09372
  Prefactor  = 2.56915
  Prefactor  = 1.11022e-10
  norm       = 1.42846
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.32907e-09
  norm       = 1.42331
  norm       = 1.84545
  Prefactor  = 0
  Prefactor  = 0.734944
  norm       = 1.36855
  Prefactor  = 17.4087
  Prefactor  = 2.41726
  Prefactor  = 1.07469
  Prefactor  = 5.52027
  norm       = 0.875292
  norm       = 0
  Prefactor  = 18.8519
  Prefactor  = 5.32778
  Normalizat = 0.796471
  Prefactor  = 1.11852
 **********
 **   18 **HESSE 
 **********

 FCN=   20784.65     FROM HESSE     STATUS=OK           751 CALLS     2632 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8348        2.1322        .60354E-03   -1.5674    
   2  norm          1.1107        2.6704        .10919E-02   -1.5687    
   3  Prefactor     8.6244        6.1246        .34088E-03   -1.5649    
   4  Prefactor      .0000        3.0594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5515        10.349        .39539E-03   -1.5657    
   6  Prefactor     2.2720        8.6973        .68665E-03   -1.5678    
   7  norm          8.3016        4.6505        .34762E-03   -1.5650    
   8  Prefactor     31.616        15.912        .17755E-03   -1.5596    
   9  Prefactor     37.399        19.544        .16361E-03   -1.5586    
  10  norm          6.0937        .84995        .40643E-03   -1.5659    
  11  Prefactor     2.5691        4.1248        .63387E-03   -1.5676    
  12  Prefactor     .11102E-09    12.753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4285        1.1095        .90416E-04   -1.5684    
  14  Prefactor      .0000        2.1969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        92.929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .97036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .53291E-08    19.879        .11284E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4233        1.3120        .90581E-03   -1.5684    
  19  norm          1.8454        .85964        .76738E-03   -1.5681    
  20  Prefactor      .0000        .36600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .73494        5.3087        .56090E-03   -1.5691    
  22  norm          1.3686        .44192        .93257E-03   -1.5685    
  23  Prefactor     17.409        4.5031        .23986E-03   -1.5625    
  24  Prefactor     2.4173        42.469        .67818E-03   -1.5677    
  25  Prefactor     1.0747        4.8371        .11719E-02   -1.5687    
  26  Prefactor     5.5203        3.5343        .42746E-03   -1.5661    
  27  norm          .87529        3.2280        .48023E-03   -1.5689    
  28  norm           .0000        1.2097        .59581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     18.852        7.5586        .22954E-03   -1.5621    
  30  Prefactor     5.3278        7.3078        .43397E-03   -1.5662    
  31  Normalizat    .79647        .11339        .73236E-01   -1.0020    
  32  Prefactor     1.1185        .81757E-01    .36921E-01   -.88877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27101e-06
Minuit parameter uncertainties:
  1  2.13216
  2  2.67042
  3  6.12457
  4  2.52304e-06
  5  10.3487
  6  8.69738
  7  4.65049
  8  15.9117
  9  19.5437
  10  0.849946
  11  4.1248
  12  7.10522e-05
  13  1.10954
  14  2.92489e-06
  15  8.9334e-07
  16  1.22472e-06
  17  0.000650563
  18  1.31201
  19  0.859636
  20  9.3837e-07
  21  3.9505
  22  0.441921
  23  4.5031
  24  20.2643
  25  4.56
  26  3.53425
  27  3.22802
  28  1.59673e-06
  29  7.55865
  30  7.30781
  31  0.113421
  32  0.081766
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.423e+00  1.312e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
328         beta:  1.129e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.119e+00  8.177e-02  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  7.965e-01  1.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.34
Ra Dec: 122.379 53.688
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 9.83e-09 +/- 9.06e-09
Energy Flux (Fixed Index): 4.33e-06 +/- 3.99e-06

TS (Fixed Index): 3.34
Ra Dec: 122.379 53.688
Photon Flux Upper Limit: 3.49581942846e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.53899334745e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17374454/likelihoodResults_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.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) = 20784.6251131
delta logL = 0.0236750296499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20784.6238588
delta logL = 0.0249293462621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3580       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9241       1.0000          .0000       5.0000    
     3 'Normalizat'    .79877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1179       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20784.62     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      204 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3580        1.6607        .93724E-03    .59505E-02
   2  alpha         1.9241        1.0478        .42624       -.14837E-03
   3  Normalizat    .79877        .10696        .73148E-01    .75017E-04
   4  Prefactor     1.1179        .80499E-01    .36945E-01    .70402E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35801
  alpha      = 1.92413
  Normalizat = 0.798766
  Prefactor  = 1.11786
 **********
 **   18 **HESSE 
 **********

 FCN=   20784.62     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3580        1.3178        .15310E-04   -1.5685    
   2  alpha         1.9241        .98166        .47295E-01   -.23243    
   3  Normalizat    .79877        .11843        .32373E-03   -1.0011    
   4  Prefactor     1.1179        .89859E-01    .21006E-03   -.88898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26312e-10
Minuit parameter uncertainties:
  1  1.31782
  2  1.01047
  3  0.118469
  4  0.0898715
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) = 20784.6238588
delta logL = 0.0249293497909

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.358e+00  1.318e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        alpha:  1.924e+00  1.010e+00  0.000e+00  5.000e+00 ( 1.000e+00)
328         beta:  1.129e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.118e+00  8.987e-02  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  7.988e-01  1.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.39
Ra Dec: 122.379 53.688
Photon Index (Free Index): 1.92 +/- 1.01
Photon Flux (Free Index): 7.19e-09 +/- 1.14e-08
Energy Flux (Free Index): 4.56e-06 +/- 4.76e-06

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/17374454/cmap_HighResolution_786931201_787536001_4FGL_J0809.5+5341_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-05', comment='SUCCESS', photon_flux='9.83e-09', energy_flux2='4.56e-06', photon_flux_error='9.06e-09', dlogl='2.49e-02', energy_flux='4.33e-06', photon_flux2='7.19e-09', job_status='DONE', time_completed='2025-12-16 02:07:31.696335', photon_index_error2='1.01', photon_index2='1.92', ts='3.34', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='3.50e-08', energy_flux_error2='4.76e-06', EG='0.80', time_epoch_completed='1765879651.7', return_code='0', job_id='17374454', GAL2='1.12', EG2='0.80', return_code2='0', energy_flux_error='3.99e-06', photon_flux_error2='1.14e-08', ts2='3.39', photon_index='2.16' WHERE bin_id='906' AND source_name='4FGL J0809.5+5341' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:07:32 PST 2025

