/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_J1027.6+8251_weekly_bin906
RA = 156.923, Dec = 82.8611
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='17377865', job_status='RUN', time_executed='2025-12-16 02:01:09.319268', time_epoch_executed='1765879269.32' WHERE source_name='4FGL J1027.6+8251' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17377865

Creating custom pfile directory:
/lscratch/kocevski/17377865/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/17377865/ft1_4FGL_J1027.6+8251_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/17377865/ft2_4FGL_J1027.6+8251_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17377865/ft1_4FGL_J1027.6+8251_weekly_bin906.fits outfile=/lscratch/kocevski/17377865/ft1_filteredMKT_4FGL_J1027.6+8251_weekly_bin906.fits ra=156.923 dec=82.8611 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 5.44
user 4.49
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17377865/ft2_4FGL_J1027.6+8251_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/17377865/ft1_filteredMKT_4FGL_J1027.6+8251_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17377865/ft1_filtered_4FGL_J1027.6+8251_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 0.84
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2292

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17377865/ft1_filtered_4FGL_J1027.6+8251_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17377865/ft2_4FGL_J1027.6+8251_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17377865/ltcube_786931201_787536001_4FGL_J1027.6+8251_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/17377865/ft2_4FGL_J1027.6+8251_weekly_bin906.fits
.....................!
real 16.44
user 15.70
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17377865/ft1_filtered_4FGL_J1027.6+8251_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377865/ft2_4FGL_J1027.6+8251_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17377865/ltcube_786931201_787536001_4FGL_J1027.6+8251_weekly_bin906.fits outfile=/lscratch/kocevski/17377865/expmap_786931201_787536001_4FGL_J1027.6+8251_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/17377865/ltcube_786931201_787536001_4FGL_J1027.6+8251_weekly_bin906.fits
.....................!
real 60.86
user 56.78
sys 3.27

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/17377865/ft1_filtered_4FGL_J1027.6+8251_weekly_bin906.fits scfile=/lscratch/kocevski/17377865/ft2_4FGL_J1027.6+8251_weekly_bin906.fits outfile=/lscratch/kocevski/17377865/cmap_786931201_787536001_4FGL_J1027.6+8251_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=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.80
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17377865/ft1_filtered_4FGL_J1027.6+8251_weekly_bin906.fits scfile=/lscratch/kocevski/17377865/ft2_4FGL_J1027.6+8251_weekly_bin906.fits outfile=/lscratch/kocevski/17377865/cmap_HighResolution_786931201_787536001_4FGL_J1027.6+8251_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=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.86
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17377865/ft1_filtered_4FGL_J1027.6+8251_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377865/ft2_4FGL_J1027.6+8251_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17377865/Model_4FGL_J1027.6+8251_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/17377865/ft1_filtered_4FGL_J1027.6+8251_weekly_bin906.fits.....................!
real 98.82
user 96.81
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17377865/ft1_filtered_4FGL_J1027.6+8251_weekly_bin906.fits', '/lscratch/kocevski/17377865/ft2_4FGL_J1027.6+8251_weekly_bin906.fits', expMap='/lscratch/kocevski/17377865/expmap_786931201_787536001_4FGL_J1027.6+8251_weekly_bin906.fits', expCube='/lscratch/kocevski/17377865/ltcube_786931201_787536001_4FGL_J1027.6+8251_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17377865/Model_4FGL_J1027.6+8251_weekly_bin906.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/17377865/ft1_filtered_4FGL_J1027.6+8251_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17377865/ft2_4FGL_J1027.6+8251_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17377865/expmap_786931201_787536001_4FGL_J1027.6+8251_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17377865/ltcube_786931201_787536001_4FGL_J1027.6+8251_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17377865/Model_4FGL_J1027.6+8251_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) = 24336.9349069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36499E-03   1.0000          .0000       .10000E+07
     2 'norm      '    29.534       1.0000          .0000       .10000E+07
     3 'norm      '    .55130E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .15705E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.3406       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.5558       1.0000          .0000       .10000E+07
     7 'Prefactor '    .36985E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    13.008       1.0000          .0000       .10000E+07
     9 'Prefactor '    156.07       1.0000          .0000       .10000E+07
    10 'norm      '    8.6713       1.0000          .0000       .10000E+07
    11 'Prefactor '    .84344E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .88521       1.0000          .0000       .10000E+07
    13 'Prefactor '    .20377E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .11297E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18866E-01   1.0000          .0000       .10000E+07
    16 'norm      '    1.1302       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.307       1.0000          .0000       .10000E+07
    18 'Prefactor '    14.018       1.0000          .0000       .10000E+07
    19 'Prefactor '    .74858E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .24886E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .69024E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    .94557       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97545       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=   24336.72     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1489 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    3.3034       -.65846E-07** at limit **
   2  norm          29.310        1.4621       -.43081E-07   -.73048E-02
   3  norm          .33307E-09    3.5302        .50613E-07** at limit **
   4  Prefactor     .10991E-07    3.2537        .22474E-06** at limit **
   5  Prefactor     4.3395        2.1786        .22969E-08    .77165E-02
   6  Prefactor     3.5457        3.9498       -.90786E-07    .15518E-02
   7  Prefactor     .19929E-07    4.5510       -.60044E-06** at limit **
   8  Prefactor     13.003        6.0469        .64872E-06    .21254E-01
   9  Prefactor     154.92        24.589       -.29150E-06    .62424E-02
  10  norm          8.6720        2.8841       -.75156E-07    .18772E-01
  11  Prefactor      .0000        .72197       -.14695E-07** at limit **
  12  norm          .88659        .37330        .41493E-08    .43405E-02
  13  Prefactor     .16653E-09    2.1602       -.40275E-07** at limit **
  14  Prefactor     .18152E-07    6.5250        .11723E-05** at limit **
  15  Prefactor     .55511E-10    13.546       -.34961E-07** at limit **
  16  norm          1.1299        1.2555       -.26533E-08    .16116E-01
  17  Prefactor     14.184        4.1655       -.12117E-06   -.34645E-02
  18  Prefactor     14.000        4.4754       -.31248E-06    .22945E-01
  19  Prefactor     .81046E-08    30.181        .85968E-06** at limit **
  20  Prefactor     .77716E-09    8.1983       -.73820E-06** at limit **
  21  Prefactor     .83267E-09    19.249        .36979E-06** at limit **
  22  Normalizat    .94668        .10696        .39221E-06    .11550E-02
  23  Prefactor     .97527        .64716E-01    .65578E-07    .17129E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  norm       = 29.3097
  norm       = 3.33067e-10
  Prefactor  = 1.09912e-08
  Prefactor  = 4.33954
  Prefactor  = 3.54568
  Prefactor  = 1.99285e-08
  Prefactor  = 13.0028
  Prefactor  = 154.916
  norm       = 8.67199
  Prefactor  = 0
  norm       = 0.886585
  Prefactor  = 1.66533e-10
  Prefactor  = 1.81521e-08
  Prefactor  = 5.55112e-11
  norm       = 1.12992
  Prefactor  = 14.1844
  Prefactor  = 13.9995
  Prefactor  = 8.10463e-09
  Prefactor  = 7.77156e-10
  Prefactor  = 8.32667e-10
  Normalizat = 0.94668
  Prefactor  = 0.975269
 **********
 **   18 **HESSE 
 **********

 FCN=   24336.72     FROM HESSE     STATUS=OK           418 CALLS     1907 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    3.3080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          29.310        11.434        .18404E-03   -1.5600    
   3  norm          .33307E-09    3.5358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10991E-07    6.3068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3395        2.1787        .48325E-03   -1.5666    
   6  Prefactor     3.5457        3.9496        .53575E-03   -1.5670    
   7  Prefactor     .19929E-07    6.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.003        6.9827        .27748E-03   -1.5636    
   9  Prefactor     154.92        24.947        .80054E-04   -1.5459    
  10  norm          8.6720        2.9050        .34016E-03   -1.5649    
  11  Prefactor      .0000        .72154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .88659        .37554        .46788E-03   -1.5689    
  13  Prefactor     .16653E-09    2.1533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18152E-07    8.1450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    13.466        .17112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1299        1.2823        .10987E-02   -1.5687    
  17  Prefactor     14.184        22.029        .26455E-03   -1.5633    
  18  Prefactor     14.000        7.6539        .26726E-03   -1.5633    
  19  Prefactor     .81046E-08    3.6645        .14661E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .77716E-09    8.3866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .83267E-09    19.260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94668        .96879E-01    .68974E-01   -.94839    
  23  Prefactor     .97527        .57430E-01    .45960E-01   -.93558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44703e-08
Minuit parameter uncertainties:
  1  5.24887e-05
  2  11.4339
  3  7.04813e-05
  4  0.000526699
  5  2.17869
  6  3.9496
  7  0.000713483
  8  6.98266
  9  24.947
  10  2.90504
  11  4.86798e-06
  12  0.375538
  13  3.85809e-05
  14  0.000769242
  15  5.09991e-05
  16  1.2823
  17  22.0288
  18  7.6539
  19  0.000344968
  20  0.000163821
  21  0.000254994
  22  0.0968967
  23  0.057434
Done.

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

Extracting fit parameters...

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  1.300e+01  6.983e+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.753e-01  5.743e-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.467e-01  9.690e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.27
Ra Dec: 156.923 82.861
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 6.26e-06

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) = 24336.5836757
delta logL = 0.140715166261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24336.5822453
delta logL = 0.142145563488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.176       1.0000          .0000       .10000E+07
     2 'Index     '    2.5817       1.0000          .0000       10.000    
     3 'Normalizat'    .93915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97776       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   24336.58     FROM MIGRAD    STATUS=FAILED       105 CALLS      328 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.174        9.1328        .62773E-04   -.57665E-03
   2  Index         2.5820        .54757        .68845E-02    .12345E-02
   3  Normalizat    .93916        .10417        .30619E-03   -.12476E-04
   4  Prefactor     .97777        .64090E-01    .18649E-03    .75594E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   24336.58     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      399 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.174        9.1328        .12300E-04   -1.5644    
   2  Index         2.5820        .54757        .36438E-03   -.50477    
   3  Normalizat    .93916        .10417        .14394E-03   -.95098    
   4  Prefactor     .97777        .64090E-01    .10512E-03   -.93474    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24336.58     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      427 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.174        8.0065        .25109E-05   -.64837E-03
   2  Index         2.5820        .48008        .13769E-02   -.52183E-05
   3  Normalizat    .93916        .10406        .12248E-04   -.11881E-04
   4  Prefactor     .97777        .64062E-01    .74594E-05    .73155E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1743
  Index      = 2.58197
  Normalizat = 0.939158
  Prefactor  = 0.977774
 **********
 **   18 **HESSE 
 **********

 FCN=   24336.58     FROM HESSE     STATUS=OK            23 CALLS      450 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.174        7.8461        .50218E-06   -1.5644    
   2  Index         2.5820        .47037        .55076E-04   -.50477    
   3  Normalizat    .93916        .10396        .24495E-05   -.95098    
   4  Prefactor     .97777        .64003E-01    .14919E-05   -.93474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63638e-12
Minuit parameter uncertainties:
  1  7.84606
  2  0.471282
  3  0.103982
  4  0.0640077
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) = 24336.5822448
delta logL = 0.142146069898

Extracting fit parameters...

4FGL J1027.6+8251
   Spectrum: PowerLaw
309    Prefactor:  1.017e+01  7.846e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.582e+00  4.713e-01  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.778e-01  6.401e-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.392e-01  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.58
Ra Dec: 156.923 82.861
Photon Index (Free Index): 2.58 +/- 0.47
Photon Flux (Free Index): 3.96e-08 +/- 2.29e-08
Energy Flux (Free Index): 1.06e-05 +/- 5.58e-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/17377865/cmap_HighResolution_786931201_787536001_4FGL_J1027.6+8251_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.06e-05', photon_flux_error='1.76e-08', dlogl='1.42e-01', energy_flux='1.17e-05', photon_flux2='3.96e-08', job_status='DONE', time_completed='2025-12-16 02:16:04.461146', photon_index_error2='0.47', photon_index2='2.58', ts='6.27', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='5.58e-06', EG='0.95', time_epoch_completed='1765880164.46', return_code='0', job_id='17377865', GAL2='0.98', EG2='0.94', return_code2='0', energy_flux_error='6.26e-06', photon_flux_error2='2.29e-08', ts2='6.58', photon_index='2.34' WHERE bin_id='906' AND source_name='4FGL J1027.6+8251' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:16:04 PST 2025

