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

 FCN=   22722.39     FROM HESSE     STATUS=OK           428 CALLS     1951 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49960E-09    4.2388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.131        8.6676        .27596E-03   -1.5635    
   3  norm          .14427E-06    6.5579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3775        12.712        .55311E-03   -1.5671    
   5  Prefactor     .21649E-08    1.8486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2456        4.0312        .56085E-03   -1.5672    
   7  Prefactor     24.759        11.347        .20120E-03   -1.5608    
   8  Prefactor     1.0540        5.5039        .12082E-02   -1.5687    
   9  Prefactor     21.233        24.328        .21634E-03   -1.5616    
  10  norm          .72164E-09    1.4015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .71743E-06    .72861        .67041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7833        .45941        .78339E-03   -1.5681    
  13  Prefactor     5.0486        5.1439        .44793E-03   -1.5663    
  14  Prefactor     .17276        2.9948        .73664E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.500        22.217        .21265E-03   -1.5615    
  16  norm          .80433        1.0689        .52763E-03   -1.5690    
  17  Prefactor     .26867E-06    20.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .59619E-07    7.8778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .61062E-09    2.6312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.3016        32.538        .66482E-03   -1.5678    
  21  Prefactor     9.0187        15.851        .33356E-03   -1.5648    
  22  Normalizat    .99137        .93918E-01    .46054E-01   -.93320    
  23  Prefactor     .92285        .55643E-01    .45296E-01   -.95347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58775e-06
Minuit parameter uncertainties:
  1  9.03584e-05
  2  8.66764
  3  0.00194527
  4  12.7118
  5  0.000126102
  6  4.03123
  7  11.3469
  8  4.81714
  9  24.3282
  10  6.3083e-05
  11  0.00144598
  12  0.459415
  13  5.14395
  14  1.43859
  15  22.2175
  16  1.06888
  17  0.00472569
  18  0.00137059
  19  8.11182e-05
  20  17.308
  21  15.851
  22  0.0939336
  23  0.055646
/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).

Done.

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

Extracting fit parameters...

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  1.054e+00  4.817e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.340e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.203e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.228e-01  5.565e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.914e-01  9.393e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 156.923 82.861
Photon Flux Upper Limit: 3.40665654809e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00262172349486 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/14025288/likelihoodResults_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.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) = 22722.376686
delta logL = 0.00948350901308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22722.3742946
delta logL = 0.0118749768189

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22722.37     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      260 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4206        5.6361        .18153E-03   -.14261E-02
   2  Index         2.0339        1.7112        .32951E-01    .26286E-04
   3  Normalizat    .99218        .98045E-01    .28109E-03    .51446E-04
   4  Prefactor     .92250        .61198E-01    .18057E-03    .33363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.42062
  Index      = 2.03392
  Normalizat = 0.992176
  Prefactor  = 0.922496
 **********
 **   18 **HESSE 
 **********

 FCN=   22722.37     FROM HESSE     STATUS=OK            27 CALLS      287 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4206        5.4187        .72612E-05   -1.5684    
   2  Index         2.0339        1.6535        .13181E-02   -.63505    
   3  Normalizat    .99218        .98072E-01    .11244E-04   -.93293    
   4  Prefactor     .92250        .61213E-01    .36115E-04   -.95359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01903e-10
Minuit parameter uncertainties:
  1  5.41871
  2  1.70389
  3  0.0980901
  4  0.0612177
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) = 22722.374293
delta logL = 0.0118765090228

Extracting fit parameters...

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  1.421e+00  5.419e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.034e+00  1.704e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.203e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.225e-01  6.122e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.922e-01  9.809e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 156.923 82.861

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/14025288/cmap_HighResolution_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.41e-08', time_completed='2025-10-19 14:06:29.830037', job_id='14025288', GAL2='0.92', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1760907989.83', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.19e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='891' AND source_name='4FGL J1027.6+8251' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Oct 19 14:06:30 PDT 2025

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


Performing analysis on: 4FGL_J1027.6+8251_weekly_bin891
RA = 156.923, Dec = 82.8611
tmin = 777859201, tmax = 778464001
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='14026047', job_status='RUN', time_executed='2025-10-19 14:04:58.219758', time_epoch_executed='1760907898.22' WHERE source_name='4FGL J1027.6+8251' and cadence='weekly' and bin_id='891'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/14026047

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/14026047/ft1_4FGL_J1027.6+8251_weekly_bin891.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/14026047/ft1_4FGL_J1027.6+8251_weekly_bin891.fits outfile=/lscratch/kocevski/14026047/ft1_filteredMKT_4FGL_J1027.6+8251_weekly_bin891.fits ra=156.923 dec=82.8611 rad=12.0 tmin=777859201.0 tmax=778464001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.12
user 5.44
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.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/14026047/ft1_filteredMKT_4FGL_J1027.6+8251_weekly_bin891.fits evtable="EVENTS" outfile="/lscratch/kocevski/14026047/ft1_filtered_4FGL_J1027.6+8251_weekly_bin891.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2153

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/14026047/ft1_filtered_4FGL_J1027.6+8251_weekly_bin891.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14026047/ltcube_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.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/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.fits
.....................!
real 18.96
user 18.24
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/14026047/ft1_filtered_4FGL_J1027.6+8251_weekly_bin891.fits evtable="EVENTS" scfile=/lscratch/kocevski/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14026047/ltcube_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.fits outfile=/lscratch/kocevski/14026047/expmap_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.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/14026047/ltcube_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.fits
.....................!
real 59.50
user 55.63
sys 3.30

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

Setting source of interest to:
4FGL J1027.6+8251 @ 156.923 82.8611

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/14026047/ft1_filtered_4FGL_J1027.6+8251_weekly_bin891.fits scfile=/lscratch/kocevski/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.fits outfile=/lscratch/kocevski/14026047/cmap_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.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=156.923 yref=82.8611 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.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/14026047/ft1_filtered_4FGL_J1027.6+8251_weekly_bin891.fits scfile=/lscratch/kocevski/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.fits outfile=/lscratch/kocevski/14026047/cmap_HighResolution_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.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=156.923 yref=82.8611 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.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/14026047/ft1_filtered_4FGL_J1027.6+8251_weekly_bin891.fits evtable="EVENTS" scfile=/lscratch/kocevski/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14026047/Model_4FGL_J1027.6+8251_weekly_bin891.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/14026047/ft1_filtered_4FGL_J1027.6+8251_weekly_bin891.fits.....................!
real 91.06
user 89.70
sys 0.54

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/14026047/ft1_filtered_4FGL_J1027.6+8251_weekly_bin891.fits', '/lscratch/kocevski/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.fits', expMap='/lscratch/kocevski/14026047/expmap_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.fits', expCube='/lscratch/kocevski/14026047/ltcube_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14026047/Model_4FGL_J1027.6+8251_weekly_bin891.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1027.6+8251'

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  2.038e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.340e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.203e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/14026047/ft1_filtered_4FGL_J1027.6+8251_weekly_bin891.fits
Spacecraft file(s): /lscratch/kocevski/14026047/ft2_4FGL_J1027.6+8251_weekly_bin891.fits
Exposure map: /lscratch/kocevski/14026047/expmap_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.fits
Exposure cube: /lscratch/kocevski/14026047/ltcube_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/14026047/Model_4FGL_J1027.6+8251_weekly_bin891.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) = 22722.4640428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36758E-05   1.0000          .0000       .10000E+07
     2 'norm      '    13.151       1.0000          .0000       .10000E+07
     3 'norm      '    .84976E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3452       1.0000          .0000       .10000E+07
     5 'Prefactor '    .69666E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.2578       1.0000          .0000       .10000E+07
     7 'Prefactor '    24.714       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.0500       1.0000          .0000       .10000E+07
     9 'Prefactor '    21.378       1.0000          .0000       .10000E+07
    10 'norm      '    .16354E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .43988E-04   1.0000          .0000       .10000E+07
    12 'norm      '    1.7829       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0342       1.0000          .0000       .10000E+07
    14 'Prefactor '    .19770       1.0000          .0000       .10000E+07
    15 'Prefactor '    22.125       1.0000          .0000       .10000E+07
    16 'norm      '    .80231       1.0000          .0000       .10000E+07
    17 'Prefactor '    .59128E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .84793E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .22193E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.3730       1.0000          .0000       .10000E+07
    21 'Prefactor '    9.0158       1.0000          .0000       .10000E+07
    22 'Normalizat'    .99102       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22722.39     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1523 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49960E-09    4.2014       -.22668E-06** at limit **
   2  norm          13.131        1.0037        .67178E-08   -.46414E-02
   3  norm          .14427E-06    5.7609       -.53117E-07** at limit **
   4  Prefactor     3.3775        1.1937       -.13745E-07   -.34195E-02
   5  Prefactor     .21649E-08    1.8606       -.21842E-06** at limit **
   6  Prefactor     3.2456        4.0202        .32707E-06    .18734E-02
   7  Prefactor     24.759        7.5105        .10307E-05    .10791    
   8  Prefactor     1.0540        5.3970        .10502E-05   -.14016E-02
   9  Prefactor     21.233        1.7837       -.30173E-08    .16034    
  10  norm          .72164E-09    1.3938       -.52164E-07** at limit **
  11  Prefactor     .71743E-06    2.1487       -.12281E-05** at limit **
  12  norm          1.7833        .43600        .34669E-07    .19189E-01
  13  Prefactor     5.0486        4.7640       -.45983E-06    .78173E-03
  14  Prefactor     .17276        1.9361        .10561E-05** at limit **
  15  Prefactor     21.500        4.7144       -.44434E-06    .12237    
  16  norm          .80433        1.0259       -.66139E-08    .17262E-02
  17  Prefactor     .26867E-06    20.151       -.37399E-06** at limit **
  18  Prefactor     .59619E-07    7.6313       -.10159E-06** at limit **
  19  Prefactor     .61062E-09    2.6167       -.21480E-06** at limit **
  20  Prefactor     2.3016        1.3232        .28305E-06   -.88366E-02
  21  Prefactor     9.0187        1.0276        .23242E-07   -.36355E-02
  22  Normalizat    .99137        .10104       -.44437E-05    .89512E-04
  23  Prefactor     .92285        .61463E-01    .34496E-06    .17783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.996e-10
  norm       = 13.1308
  norm       = 1.44273e-07
  Prefactor  = 3.37754
  Prefactor  = 2.16493e-09
  Prefactor  = 3.24563
  Prefactor  = 24.7593
  Prefactor  = 1.05401
  Prefactor  = 21.2327
  norm       = 7.21645e-10
  Prefactor  = 7.17426e-07
  norm       = 1.78333
  Prefactor  = 5.04861
  Prefactor  = 0.172761
  Prefactor  = 21.4995
  norm       = 0.804333
  Prefactor  = 2.68674e-07
  Prefactor  = 5.9619e-08
  Prefactor  = 6.10623e-10
  Prefactor  = 2.30161
  Prefactor  = 9.01872
  Normalizat = 0.991373
  Prefactor  = 0.922847
 **********
 **   18 **HESSE 
 **********

 FCN=   22722.39     FROM HESSE     STATUS=OK           428 CALLS     1951 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49960E-09    4.2388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.131        8.6676        .27596E-03   -1.5635    
   3  norm          .14427E-06    6.5579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3775        12.712        .55311E-03   -1.5671    
   5  Prefactor     .21649E-08    1.8486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2456        4.0312        .56085E-03   -1.5672    
   7  Prefactor     24.759        11.347        .20120E-03   -1.5608    
   8  Prefactor     1.0540        5.5039        .12082E-02   -1.5687    
   9  Prefactor     21.233        24.328        .21634E-03   -1.5616    
  10  norm          .72164E-09    1.4015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .71743E-06    .72861        .67041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7833        .45941        .78339E-03   -1.5681    
  13  Prefactor     5.0486        5.1439        .44793E-03   -1.5663    
  14  Prefactor     .17276        2.9948        .73664E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.500        22.217        .21265E-03   -1.5615    
  16  norm          .80433        1.0689        .52763E-03   -1.5690    
  17  Prefactor     .26867E-06    20.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .59619E-07    7.8778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .61062E-09    2.6312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.3016        32.538        .66482E-03   -1.5678    
  21  Prefactor     9.0187        15.851        .33356E-03   -1.5648    
  22  Normalizat    .99137        .93918E-01    .46054E-01   -.93320    
  23  Prefactor     .92285        .55643E-01    .45296E-01   -.95347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58775e-06
Minuit parameter uncertainties:
  1  9.03584e-05
  2  8.66764
  3  0.00194527
  4  12.7118
  5  0.000126102
  6  4.03123
  7  11.3469
  8  4.81714
  9  24.3282
  10  6.3083e-05
  11  0.00144598
  12  0.459415
  13  5.14395
  14  1.43859
  15  22.2175
  16  1.06888
  17  0.00472569
  18  0.00137059
  19  8.11182e-05
  20  17.308
  21  15.851
  22  0.0939336
  23  0.055646
Done.

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

Extracting fit parameters...

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  1.054e+00  4.817e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.340e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.203e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.228e-01  5.565e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.914e-01  9.393e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 156.923 82.861
Photon Flux Upper Limit: 3.40665654809e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00262172349486 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/14026047/likelihoodResults_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.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) = 22722.376686
delta logL = 0.00948350901308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22722.3742946
delta logL = 0.0118749768189

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22722.37     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      260 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4206        5.6361        .18153E-03   -.14261E-02
   2  Index         2.0339        1.7112        .32951E-01    .26286E-04
   3  Normalizat    .99218        .98045E-01    .28109E-03    .51446E-04
   4  Prefactor     .92250        .61198E-01    .18057E-03    .33363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.42062
  Index      = 2.03392
  Normalizat = 0.992176
  Prefactor  = 0.922496
 **********
 **   18 **HESSE 
 **********

 FCN=   22722.37     FROM HESSE     STATUS=OK            27 CALLS      287 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4206        5.4187        .72612E-05   -1.5684    
   2  Index         2.0339        1.6535        .13181E-02   -.63505    
   3  Normalizat    .99218        .98072E-01    .11244E-04   -.93293    
   4  Prefactor     .92250        .61213E-01    .36115E-04   -.95359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01903e-10
Minuit parameter uncertainties:
  1  5.41871
  2  1.70389
  3  0.0980901
  4  0.0612177
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) = 22722.374293
delta logL = 0.0118765090228

Extracting fit parameters...

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  1.421e+00  5.419e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.034e+00  1.704e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.203e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.225e-01  6.122e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.922e-01  9.809e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 156.923 82.861

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/14026047/cmap_HighResolution_777859201_778464001_4FGL_J1027.6+8251_weekly_bin891.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.41e-08', time_completed='2025-10-19 14:19:17.996803', job_id='14026047', GAL2='0.92', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1760908758.0', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.19e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='891' AND source_name='4FGL J1027.6+8251' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Oct 19 14:19:18 PDT 2025

