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


Performing analysis on: 4FGL_J0226.5+0938_weekly_bin910
RA = 36.6313, Dec = 9.6351
tmin = 789350401, tmax = 789955201
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='18859882', job_status='RUN', time_executed='2026-01-13 00:07:01.055681', time_epoch_executed='1768291621.06' WHERE source_name='4FGL J0226.5+0938' and cadence='weekly' and bin_id='910'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18859882

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18859882/ft1_4FGL_J0226.5+0938_weekly_bin910.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18859882/ft1_4FGL_J0226.5+0938_weekly_bin910.fits outfile=/lscratch/kocevski/18859882/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin910.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=789350401.0 tmax=789955201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.82
user 2.90
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.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/18859882/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin910.fits evtable="EVENTS" outfile="/lscratch/kocevski/18859882/ft1_filtered_4FGL_J0226.5+0938_weekly_bin910.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.08
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 2183

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18859882/ft1_filtered_4FGL_J0226.5+0938_weekly_bin910.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18859882/ltcube_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.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/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.fits
.....................!
real 36.77
user 34.33
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18859882/ft1_filtered_4FGL_J0226.5+0938_weekly_bin910.fits evtable="EVENTS" scfile=/lscratch/kocevski/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18859882/ltcube_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.fits outfile=/lscratch/kocevski/18859882/expmap_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.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/18859882/ltcube_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.fits
.....................!
real 74.27
user 67.90
sys 4.03

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

Setting source of interest to:
4FGL J0226.5+0938 @ 36.6313 9.6351

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18859882/ft1_filtered_4FGL_J0226.5+0938_weekly_bin910.fits scfile=/lscratch/kocevski/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.fits outfile=/lscratch/kocevski/18859882/cmap_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.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=36.6313 yref=9.6351 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.67
user 0.27
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18859882/ft1_filtered_4FGL_J0226.5+0938_weekly_bin910.fits scfile=/lscratch/kocevski/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.fits outfile=/lscratch/kocevski/18859882/cmap_HighResolution_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.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=36.6313 yref=9.6351 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.92
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18859882/ft1_filtered_4FGL_J0226.5+0938_weekly_bin910.fits evtable="EVENTS" scfile=/lscratch/kocevski/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18859882/Model_4FGL_J0226.5+0938_weekly_bin910.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/18859882/ft1_filtered_4FGL_J0226.5+0938_weekly_bin910.fits.....................!
real 113.33
user 111.43
sys 0.73

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18859882/ft1_filtered_4FGL_J0226.5+0938_weekly_bin910.fits', '/lscratch/kocevski/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.fits', expMap='/lscratch/kocevski/18859882/expmap_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.fits', expCube='/lscratch/kocevski/18859882/ltcube_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18859882/Model_4FGL_J0226.5+0938_weekly_bin910.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0226.5+0938'

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  8.451e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18859882/ft1_filtered_4FGL_J0226.5+0938_weekly_bin910.fits
Spacecraft file(s): /lscratch/kocevski/18859882/ft2_4FGL_J0226.5+0938_weekly_bin910.fits
Exposure map: /lscratch/kocevski/18859882/expmap_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.fits
Exposure cube: /lscratch/kocevski/18859882/ltcube_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18859882/Model_4FGL_J0226.5+0938_weekly_bin910.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) = 23764.2188235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83267E-08   1.0000          .0000       .10000E+07
     2 'norm      '    3.1246       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.0361       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.3587       1.0000          .0000       .10000E+07
     5 'norm      '    21.864       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.6042       1.0000          .0000       .10000E+07
     7 'norm      '    1.9802       1.0000          .0000       .10000E+07
     8 'Prefactor '    46.602       1.0000          .0000       .10000E+07
     9 'Prefactor '    11.701       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11901E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .46074E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    12.025       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.2453       1.0000          .0000       .10000E+07
    14 'norm      '    .16211       1.0000          .0000       .10000E+07
    15 'Prefactor '    .41506E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    30.427       1.0000          .0000       .10000E+07
    17 'norm      '    5.6709       1.0000          .0000       .10000E+07
    18 'Prefactor '    8.9970       1.0000          .0000       .10000E+07
    19 'Prefactor '    .26681E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.6090       1.0000          .0000       .10000E+07
    21 'Prefactor '    .32145E-04   1.0000          .0000       .10000E+07
    22 'norm      '    2.2804       1.0000          .0000       .10000E+07
    23 'norm      '    .39116       1.0000          .0000       .10000E+07
    24 'Prefactor '    5.2166       1.0000          .0000       .10000E+07
    25 'norm      '    .17641E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .73829       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0704       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23763.06     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1412 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .80660        .86441E-08** at limit **
   2  norm          3.0947        3.8651       -.11055E-06   -.61387E-02
   3  Prefactor     4.0320        2.7910       -.29140E-07   -.26581E-02
   4  Prefactor     4.3573        1.5927       -.71299E-07   -.70079E-02
   5  norm          21.891        3.9817       -.26337E-07    .11927E-01
   6  Prefactor     3.6036        1.5828       -.22687E-07   -.21853E-03
   7  norm          1.9800        .48894       -.14238E-07   -.33448E-02
   8  Prefactor     46.495        1.5811        .21109E-07   -.31009    
   9  Prefactor     11.514        1.5372        .38198E-07   -.25620E-01
  10  Prefactor     .32363E-07    24.031        .95433E-06** at limit **
  11  Prefactor     .16653E-09    1.4969        .23445E-06** at limit **
  12  Prefactor     12.098        1.1636       -.24802E-07    .79837E-01
  13  Prefactor     7.3102        5.4830       -.74967E-07   -.18567E-01
  14  norm          .16169        .21188        .15502E-07** at limit **
  15  Prefactor     .11102E-09    4.1525        .20132E-06** at limit **
  16  Prefactor     30.448        1.0104        .17865E-09    .18693E-01
  17  norm          5.5626        1.2256        .40010E-07   -.32201E-01
  18  Prefactor     8.9654        1.1414       -.11802E-09   -.19024E-01
  19  Prefactor     .88818E-09    6.1021       -.18283E-06** at limit **
  20  Prefactor     2.4612        1.1085        .34227E-07   -.14171E-01
  21  Prefactor     .11102E-09    2.0107        .11791E-06** at limit **
  22  norm          2.2800        2.3154        .66781E-07    .21567E-02
  23  norm          .39165        2.8745       -.28932E-06   -.14948E-01
  24  Prefactor     5.2173        3.3527       -.13119E-06   -.19653E-02
  25  norm          .22204E-09    2.4901        .11511E-06** at limit **
  26  Normalizat    .73834        .11738        .31999E-05    .92948E-04
  27  Prefactor     1.0706        .63631E-01   -.32872E-06    .91499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 3.09471
  Prefactor  = 4.03201
  Prefactor  = 4.3573
  norm       = 21.8911
  Prefactor  = 3.60364
  norm       = 1.98
  Prefactor  = 46.4949
  Prefactor  = 11.5142
  Prefactor  = 3.2363e-08
  Prefactor  = 1.66533e-10
  Prefactor  = 12.0976
  Prefactor  = 7.31015
  norm       = 0.161688
  Prefactor  = 1.11022e-10
  Prefactor  = 30.4484
  norm       = 5.56259
  Prefactor  = 8.96537
  Prefactor  = 8.88178e-10
  Prefactor  = 2.46118
  Prefactor  = 1.11022e-10
  norm       = 2.28001
  norm       = 0.391651
  Prefactor  = 5.21732
  norm       = 2.22045e-10
  Normalizat = 0.738342
  Prefactor  = 1.07061
 **********
 **   18 **HESSE 
 **********

 FCN=   23763.06     FROM HESSE     STATUS=OK           558 CALLS     1970 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .80328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0947        3.8764        .57331E-03   -1.5673    
   3  Prefactor     4.0320        2.8029        .50169E-03   -1.5668    
   4  Prefactor     4.3573        1.5992        .48221E-03   -1.5666    
   5  norm          21.891        3.9946        .21392E-03   -1.5614    
   6  Prefactor     3.6036        1.6426        .53199E-03   -1.5670    
   7  norm          1.9800        .49147        .73627E-03   -1.5680    
   8  Prefactor     46.495        18.375        .14650E-03   -1.5572    
   9  Prefactor     11.514        22.207        .29261E-03   -1.5640    
  10  Prefactor     .32363E-07    24.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16653E-09    1.4986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.098        13.136        .28863E-03   -1.5638    
  13  Prefactor     7.3102        5.9507        .37241E-03   -1.5654    
  14  norm          .16169        .26537        .18821E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-09    4.1647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.448        11.479        .18132E-03   -1.5598    
  17  norm          5.5626        5.9744        .42158E-03   -1.5661    
  18  Prefactor     8.9654        12.318        .33391E-03   -1.5648    
  19  Prefactor     .88818E-09    6.1066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4612        9.6047        .63127E-03   -1.5677    
  21  Prefactor     .11102E-09    2.0013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2800        2.3053        .67964E-03   -1.5678    
  23  norm          .39165        1.2735        .47010E-02   -1.5695    
  24  Prefactor     5.2173        3.3596        .43988E-03   -1.5662    
  25  norm          .22204E-09    2.4725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .73834        .11434        .86308E-01   -1.0240    
  27  Prefactor     1.0706        .59337E-01    .38837E-01   -.90412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04474e-06
Minuit parameter uncertainties:
  1  1.86744e-06
  2  3.87644
  3  2.80288
  4  1.59919
  5  3.99458
  6  1.64258
  7  0.491473
  8  18.3755
  9  22.207
  10  0.00176724
  11  2.97181e-05
  12  13.1364
  13  5.95067
  14  0.265368
  15  3.96991e-05
  16  11.4794
  17  5.97444
  18  12.3178
  19  0.00014549
  20  9.60474
  21  3.05585e-05
  22  2.30527
  23  1.27347
  24  3.35957
  25  4.67323e-05
  26  0.11438
  27  0.0593404
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  3.236e-08  1.767e-03  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.071e+00  5.934e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  7.383e-01  1.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: 3.41524510541e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00259244912451 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18859882/likelihoodResults_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23763.0808917
delta logL = -0.0200697019609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23759.4454281
delta logL = 3.6153939324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20695E-03   1.0000          .0000       .10000E+07
     2 'Index     '    7.3534       1.0000          .0000       10.000    
     3 'Normalizat'    .65852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   23763.06     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      399 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.815        .42118E-03** at limit **
   2  Index         1.9008        .89646        .18261E-06     .0000    
   3  Normalizat    .73834        1.0527        .16062E-04    .95265E-04
   4  Prefactor     1.0706        1.1414        .52589E-05   -.36680E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.9008
  Normalizat = 0.738342
  Prefactor  = 1.07061
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   23763.06     FROM HESSE     STATUS=FAILED         9 CALLS      408 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .37976        1.6030        .18261E-06   -5982.3    
   3  Normalizat    .73834        1.0527        .16062E-04   -90.082    
   4  Prefactor     1.0706        1.1414        .52589E-05   -390.46    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.44636e-11
Minuit parameter uncertainties:
  1  2.99785e-05
  2  0.904447
  3  1.08393
  4  1.16909
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) = 23763.060822
delta logL = 6.62112142891e-10

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  0.000e+00  2.998e-05  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  1.901e+00  9.044e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.071e+00  1.169e+00  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  7.383e-01  1.084e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.631 9.635

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/18859882/cmap_HighResolution_789350401_789955201_4FGL_J0226.5+0938_weekly_bin910.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-03', job_status='DONE', photon_flux_upper_limit='3.42e-08', time_completed='2026-01-13 00:27:04.801769', job_id='18859882', GAL2='1.07', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1768292824.8', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.62e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='910' AND source_name='4FGL J0226.5+0938' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 13 00:27:05 PST 2026

