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


Performing analysis on: 4FGL_J1058.6+5627_daily_bin2114
RA = 164.665, Dec = 56.4634
tmin = 787276801, 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='17371862', job_status='RUN', time_executed='2025-12-16 00:50:05.011185', time_epoch_executed='1765875005.01' WHERE source_name='4FGL J1058.6+5627' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17371862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17371862/ft1_4FGL_J1058.6+5627_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17371862/ft1_4FGL_J1058.6+5627_daily_bin2114.fits outfile=/lscratch/kocevski/17371862/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin2114.fits ra=164.665 dec=56.4634 rad=12.0 tmin=787276801.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 3.06
user 1.90
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.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/17371862/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin2114.fits evtable="EVENTS" outfile="/lscratch/kocevski/17371862/ft1_filtered_4FGL_J1058.6+5627_daily_bin2114.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.07
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 631

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17371862/ft1_filtered_4FGL_J1058.6+5627_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17371862/ltcube_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.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/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.fits
.....................!
real 8.81
user 7.81
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17371862/ft1_filtered_4FGL_J1058.6+5627_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17371862/ltcube_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.fits outfile=/lscratch/kocevski/17371862/expmap_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.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/17371862/ltcube_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.fits
.....................!
real 70.41
user 65.44
sys 4.04

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

Setting source of interest to:
4FGL J1058.6+5627 @ 164.665 56.4634

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17371862/ft1_filtered_4FGL_J1058.6+5627_daily_bin2114.fits scfile=/lscratch/kocevski/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.fits outfile=/lscratch/kocevski/17371862/cmap_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.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=164.665 yref=56.4634 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.30
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17371862/ft1_filtered_4FGL_J1058.6+5627_daily_bin2114.fits scfile=/lscratch/kocevski/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.fits outfile=/lscratch/kocevski/17371862/cmap_HighResolution_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.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=164.665 yref=56.4634 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.33
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17371862/ft1_filtered_4FGL_J1058.6+5627_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17371862/Model_4FGL_J1058.6+5627_daily_bin2114.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/17371862/ft1_filtered_4FGL_J1058.6+5627_daily_bin2114.fits.....................!
real 27.36
user 25.34
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17371862/ft1_filtered_4FGL_J1058.6+5627_daily_bin2114.fits', '/lscratch/kocevski/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.fits', expMap='/lscratch/kocevski/17371862/expmap_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.fits', expCube='/lscratch/kocevski/17371862/ltcube_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17371862/Model_4FGL_J1058.6+5627_daily_bin2114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+5627'

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  2.525e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
400        alpha:  1.858e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
401         beta:  4.581e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17371862/ft1_filtered_4FGL_J1058.6+5627_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17371862/ft2_4FGL_J1058.6+5627_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17371862/expmap_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17371862/ltcube_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17371862/Model_4FGL_J1058.6+5627_daily_bin2114.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) = 6889.33430552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13735E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    7.8770       1.0000          .0000       .10000E+07
     3 'norm      '    .51176E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    29.554       1.0000          .0000       .10000E+07
     5 'norm      '    2.1810       1.0000          .0000       .10000E+07
     6 'Prefactor '    .81282       1.0000          .0000       .10000E+07
     7 'norm      '    1.8111       1.0000          .0000       .10000E+07
     8 'norm      '    .12224E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5880       1.0000          .0000       .10000E+07
    10 'norm      '    17.265       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11112E-04   1.0000          .0000       .10000E+07
    12 'norm      '    3.2104       1.0000          .0000       .10000E+07
    13 'norm      '    1.7542       1.0000          .0000       .10000E+07
    14 'Prefactor '    .88558E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .36556E-02   1.0000          .0000       .10000E+07
    16 'norm      '    1.6252       1.0000          .0000       .10000E+07
    17 'Prefactor '    .31836       1.0000          .0000       .10000E+07
    18 'Prefactor '    36.763       1.0000          .0000       .10000E+07
    19 'Prefactor '    .20092E-02   1.0000          .0000       .10000E+07
    20 'norm      '    20.102       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.7973       1.0000          .0000       .10000E+07
    22 'Prefactor '    .55964E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    48.001       1.0000          .0000       .10000E+07
    24 'norm      '    .21899E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.9259       1.0000          .0000       .10000E+07
    26 'norm      '    7.2140       1.0000          .0000       .10000E+07
    27 'Prefactor '    .79122E-05   1.0000          .0000       .10000E+07
    28 'Prefactor '    .11903E-01   1.0000          .0000       .10000E+07
    29 'norm      '    .19512       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.0840       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .67701       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6889.331     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     3097 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.0176       -.62752E-07** at limit **
   2  Prefactor     7.8849        3.4828        .34433E-07   -.19264E-01
   3  norm          .21094E-08    2.6480       -.85962E-07** at limit **
   4  Prefactor     29.542        1.0279        .76426E-08   -.70398E-03
   5  norm          2.1805        .58722        .92419E-08    .95407E-03
   6  Prefactor     .82140        2.9134        .59549E-07    .35761E-02
   7  norm          1.8115        .81409       -.32543E-08    .10196E-02
   8  norm           .0000        .80949        .32144E-07** at limit **
   9  Prefactor     1.7388        1.4566       -.42614E-08   -.31922E-01
  10  norm          17.246        1.0082       -.62070E-08    .28708E-02
  11  Prefactor     .73774E-07    16.772       -.64935E-06** at limit **
  12  norm          3.2059        1.8459       -.28894E-07   -.21812E-02
  13  norm          1.7526        1.2842        .91675E-09    .44410E-03
  14  Prefactor     .13130E-04    23.468       -.15779E-05** at limit **
  15  Prefactor     .22463E-05    16.194       -.15480E-05** at limit **
  16  norm          1.6251        1.7386        .31745E-07    .10866E-02
  17  Prefactor     .98852E-04    11.354       -.68877E-06** at limit **
  18  Prefactor     36.767        1.1154        .40865E-08    .99903E-02
  19  Prefactor     .14606E-04    11.977       -.14318E-05** at limit **
  20  norm          20.095        1.0037       -.30021E-08   -.41470E-03
  21  Prefactor     1.7899        5.7233        .19843E-06   -.33575E-03
  22  Prefactor     .19429E-08    9.0544        .17597E-06** at limit **
  23  Prefactor     48.063        1.0183        .44467E-08   -.22525E-02
  24  norm          .26645E-08    2.6819        .22436E-07** at limit **
  25  Prefactor     3.9349        3.5729        .49138E-06    .27350E-02
  26  norm          7.2138        4.4158        .34097E-07   -.43106E-03
  27  Prefactor     .55511E-10    3.2619        .10315E-06** at limit **
  28  Prefactor     .19190E-05    18.496       -.12249E-05** at limit **
  29  norm          .19772        2.4439        .76048E-07** at limit **
  30  Normalizat    1.0839        .16864       -.19948E-05    .10417E-03
  31  Prefactor     .67697        .20435       -.24920E-05    .51092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 7.88489
  norm       = 2.10942e-09
  Prefactor  = 29.5423
  norm       = 2.18045
  Prefactor  = 0.821404
  norm       = 1.81152
  norm       = 0
  Prefactor  = 1.73879
  norm       = 17.2456
  Prefactor  = 7.37743e-08
  norm       = 3.2059
  norm       = 1.75257
  Prefactor  = 1.31304e-05
  Prefactor  = 2.24626e-06
  norm       = 1.62508
  Prefactor  = 9.88524e-05
  Prefactor  = 36.767
  Prefactor  = 1.46059e-05
  norm       = 20.0952
  Prefactor  = 1.78985
  Prefactor  = 1.94289e-09
  Prefactor  = 48.0627
  norm       = 2.66454e-09
  Prefactor  = 3.93489
  norm       = 7.21384
  Prefactor  = 5.55112e-11
  Prefactor  = 1.91902e-06
  norm       = 0.197719
  Normalizat = 1.08391
  Prefactor  = 0.676973
 **********
 **   18 **HESSE 
 **********

 FCN=   6889.331     FROM HESSE     STATUS=OK           692 CALLS     3789 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.0210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.8849        7.9405        .35703E-03   -1.5652    
   3  norm          .21094E-08    2.8198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.542        29.077        .18398E-03   -1.5599    
   5  norm          2.1805        .59677        .69679E-03   -1.5678    
   6  Prefactor     .82140        3.1576        .51984E-03   -1.5690    
   7  norm          1.8115        .81935        .77603E-03   -1.5681    
   8  norm           .0000        .81001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7388        34.251        .84191E-03   -1.5682    
  10  norm          17.246        17.019        .24077E-03   -1.5625    
  11  Prefactor     .73774E-07    16.612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2059        1.8438        .56519E-03   -1.5672    
  13  norm          1.7526        1.2868        .79113E-03   -1.5681    
  14  Prefactor     .13130E-04    42.802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22463E-05    40.249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6251        1.8497        .82955E-03   -1.5682    
  17  Prefactor     .98852E-04    129.97        .99629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.767        26.054        .16495E-03   -1.5587    
  19  Prefactor     .14606E-04    32.666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.095        27.897        .22311E-03   -1.5618    
  21  Prefactor     1.7899        5.7988        .77960E-03   -1.5681    
  22  Prefactor     .19429E-08    9.0647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     48.063        35.113        .14435E-03   -1.5569    
  24  norm          .26645E-08    2.8490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.9349        3.5796        .50891E-03   -1.5668    
  26  norm          7.2138        4.4296        .37322E-03   -1.5654    
  27  Prefactor     .55511E-10    3.2693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .19190E-05    30.391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .19772        1.1835        .29550E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0839        .15040        .38692E-01   -.90270    
  31  Prefactor     .67697        .18036        .72490E-01   -1.0444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71907e-06
Minuit parameter uncertainties:
  1  5.06322e-06
  2  7.94055
  3  0.000154181
  4  29.077
  5  0.596766
  6  3.15762
  7  0.819348
  8  4.17622e-07
  9  15.4345
  10  17.0186
  11  0.00221451
  12  1.8438
  13  1.28679
  14  0.0474136
  15  0.019017
  16  1.84969
  17  0.226705
  18  26.0536
  19  0.0436862
  20  27.8969
  21  5.79878
  22  0.000265954
  23  35.1136
  24  0.000174702
  25  3.57964
  26  4.42961
  27  2.0795e-05
  28  0.0152735
  29  0.967477
  30  0.150454
  31  0.180516
Done.

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

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  1.625e+00  1.850e+00  0.000e+00  1.000e+06 ( 1.000e-12)
400        alpha:  1.858e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
401         beta:  4.581e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
753    Prefactor:  6.770e-01  1.805e-01  0.000e+00  1.000e+01 ( 1.000e+00)
754        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
755        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
752   Normalization:  1.084e+00  1.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 164.665 56.463
Photon Index (Fixed Index): 1.86 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.45e-05

TS (Fixed Index): 1.43
Ra Dec: 164.665 56.463
Photon Flux Upper Limit: 5.36677263361e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.74933986313e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17371862/likelihoodResults_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.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) = 6889.12704405
delta logL = 0.204028278552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6889.12084473
delta logL = 0.210227600251

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6889.121     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5056        32.890        .87126E-03    .54398E-02
   2  alpha         2.3648        3.5005        .31030        .44930E-04
   3  Normalizat    1.0685        .48901E-01    .39483E-01   -.67274E-04
   4  Prefactor     .68756        .54455E-01    .71957E-01    .11372E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50559
  alpha      = 2.36483
  Normalizat = 1.06846
  Prefactor  = 0.687557
 **********
 **   18 **HESSE 
 **********

 FCN=   6889.121     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5056        1.7105        .89137E-05   -1.5683    
   2  alpha         2.3648        .80565        .16002E-01   -.54095E-01
   3  Normalizat    1.0685        .16559        .20930E-03   -.90771    
   4  Prefactor     .68756        .20440        .31848E-03   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60191e-09
Minuit parameter uncertainties:
  1  1.71055
  2  0.820337
  3  0.165673
  4  0.204618
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) = 6889.12083825
delta logL = 0.210234078839

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  1.506e+00  1.711e+00  0.000e+00  1.000e+06 ( 1.000e-12)
400        alpha:  2.365e+00  8.203e-01  0.000e+00  5.000e+00 ( 1.000e+00)
401         beta:  4.581e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
753    Prefactor:  6.876e-01  2.046e-01  0.000e+00  1.000e+01 ( 1.000e+00)
754        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
755        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
752   Normalization:  1.068e+00  1.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 164.665 56.463
Photon Index (Free Index): 2.36 +/- 0.82
Photon Flux (Free Index): 2.78e-08 +/- 3.07e-08
Energy Flux (Free Index): 9.76e-06 +/- 9.61e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/17371862/cmap_HighResolution_787276801_787536001_4FGL_J1058.6+5627_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-05', comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='9.76e-06', photon_flux_error='1.64e-08', dlogl='2.10e-01', energy_flux='1.28e-05', photon_flux2='2.78e-08', job_status='DONE', time_completed='2025-12-16 01:00:23.129445', photon_index_error2='0.82', photon_index2='2.36', ts='1.43', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='5.37e-08', energy_flux_error2='9.61e-06', EG='1.08', time_epoch_completed='1765875623.13', return_code='0', job_id='17371862', GAL2='0.69', EG2='1.07', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='3.07e-08', ts2='1.85', photon_index='1.86' WHERE bin_id='2114' AND source_name='4FGL J1058.6+5627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:00:23 PST 2025

