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


Performing analysis on: 4FGL_J1058.4+0133_weekly_bin908
RA = 164.624, Dec = 1.5641
tmin = 788140801, tmax = 788745601
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='18158259', job_status='RUN', time_executed='2025-12-30 01:17:38.120611', time_epoch_executed='1767086258.12' WHERE source_name='4FGL J1058.4+0133' and cadence='weekly' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18158259

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18158259/ft1_4FGL_J1058.4+0133_weekly_bin908.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18158259/ft1_4FGL_J1058.4+0133_weekly_bin908.fits outfile=/lscratch/kocevski/18158259/ft1_filteredMKT_4FGL_J1058.4+0133_weekly_bin908.fits ra=164.624 dec=1.5641 rad=12.0 tmin=788140801.0 tmax=788745601.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.33
user 4.53
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.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/18158259/ft1_filteredMKT_4FGL_J1058.4+0133_weekly_bin908.fits evtable="EVENTS" outfile="/lscratch/kocevski/18158259/ft1_filtered_4FGL_J1058.4+0133_weekly_bin908.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.95
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 1261

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18158259/ft1_filtered_4FGL_J1058.4+0133_weekly_bin908.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18158259/ltcube_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.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/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.fits
.....................!
real 19.42
user 18.53
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18158259/ft1_filtered_4FGL_J1058.4+0133_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18158259/ltcube_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.fits outfile=/lscratch/kocevski/18158259/expmap_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.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/18158259/ltcube_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.fits
.....................!
real 74.15
user 69.00
sys 4.26

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

Setting source of interest to:
4FGL J1058.4+0133 @ 164.624 1.5641

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18158259/ft1_filtered_4FGL_J1058.4+0133_weekly_bin908.fits scfile=/lscratch/kocevski/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.fits outfile=/lscratch/kocevski/18158259/cmap_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.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.624 yref=1.5641 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.85
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18158259/ft1_filtered_4FGL_J1058.4+0133_weekly_bin908.fits scfile=/lscratch/kocevski/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.fits outfile=/lscratch/kocevski/18158259/cmap_HighResolution_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.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.624 yref=1.5641 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.81
user 0.27
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18158259/ft1_filtered_4FGL_J1058.4+0133_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18158259/Model_4FGL_J1058.4+0133_weekly_bin908.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/18158259/ft1_filtered_4FGL_J1058.4+0133_weekly_bin908.fits.....................!
real 52.05
user 49.37
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18158259/ft1_filtered_4FGL_J1058.4+0133_weekly_bin908.fits', '/lscratch/kocevski/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.fits', expMap='/lscratch/kocevski/18158259/expmap_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.fits', expCube='/lscratch/kocevski/18158259/ltcube_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18158259/Model_4FGL_J1058.4+0133_weekly_bin908.xml', optimizer='MINUIT')

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

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.247e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
235        alpha:  2.190e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.785e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18158259/ft1_filtered_4FGL_J1058.4+0133_weekly_bin908.fits
Spacecraft file(s): /lscratch/kocevski/18158259/ft2_4FGL_J1058.4+0133_weekly_bin908.fits
Exposure map: /lscratch/kocevski/18158259/expmap_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.fits
Exposure cube: /lscratch/kocevski/18158259/ltcube_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18158259/Model_4FGL_J1058.4+0133_weekly_bin908.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) = 14139.0669567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25202E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    84.789       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.461       1.0000          .0000       .10000E+07
     4 'Prefactor '    .28787E-04   1.0000          .0000       .10000E+07
     5 'norm      '    2.6885       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.5659       1.0000          .0000       .10000E+07
     7 'Prefactor '    .67245       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.0974       1.0000          .0000       .10000E+07
     9 'norm      '    .31771       1.0000          .0000       .10000E+07
    10 'norm      '    .54500       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20752E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    19.593       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.0430       1.0000          .0000       .10000E+07
    14 'norm      '    23.325       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10324E-03   1.0000          .0000       .10000E+07
    16 'norm      '    5.4853       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.4608       1.0000          .0000       .10000E+07
    18 'Prefactor '    .15557E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    .78283       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0709       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14138.99     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1247 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    3.2445       -.16491E-06** at limit **
   2  Prefactor     83.559        41.907       -.94806E-07   -.22625E-03
   3  Prefactor     13.973        18.148       -.23353E-06    .20644E-03
   4  Prefactor      .0000        3.1945       -.77522E-06** at limit **
   5  norm          2.6889        .99101        .35351E-07    .16102E-02
   6  Prefactor     4.5684        2.9981        .40177E-07    .52147E-03
   7  Prefactor     .66785        1.8850        .58501E-07    .40567E-04
   8  Prefactor     7.1780        5.1291        .13700E-06   -.18558E-04
   9  norm          .31752        .21465       -.25609E-07    .80664E-03
  10  norm          .54497        .54296       -.70603E-07   -.31030E-02
  11  Prefactor     .11102E-09    9.9058        .79041E-06** at limit **
  12  Prefactor     19.600        2.6012        .58661E-07    .32308E-01
  13  Prefactor     1.0503        2.9198       -.58314E-06   -.31334E-04
  14  norm          23.304        8.0669        .21898E-06   -.10469E-01
  15  Prefactor      .0000        3.3716        .43951E-07** at limit **
  16  norm          5.5131        11.805       -.84621E-06   -.20238E-03
  17  Prefactor     4.4613        1.5620        .13432E-06    .82550E-03
  18  Prefactor     .11102E-09    7.0730        .33779E-06** at limit **
  19  Normalizat    .78287        .14409       -.10943E-04    .11024E-04
  20  Prefactor     1.0708        .11642        .77632E-05    .19071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 83.5585
  Prefactor  = 13.973
  Prefactor  = 0
  norm       = 2.68886
  Prefactor  = 4.56836
  Prefactor  = 0.667846
  Prefactor  = 7.17804
  norm       = 0.317521
  norm       = 0.544969
  Prefactor  = 1.11022e-10
  Prefactor  = 19.5999
  Prefactor  = 1.05031
  norm       = 23.3044
  Prefactor  = 0
  norm       = 5.51313
  Prefactor  = 4.46126
  Prefactor  = 1.11022e-10
  Normalizat = 0.782869
  Prefactor  = 1.0708
 **********
 **   18 **HESSE 
 **********

 FCN=   14138.99     FROM HESSE     STATUS=OK           337 CALLS     1584 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.2354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     83.559        41.908        .10861E-03   -1.5525    
   3  Prefactor     13.973        18.186        .27275E-03   -1.5633    
   4  Prefactor      .0000        3.1835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6889        .99150        .62113E-03   -1.5675    
   6  Prefactor     4.5684        2.9998        .47086E-03   -1.5665    
   7  Prefactor     .66785        1.9054        .62974E-03   -1.5692    
   8  Prefactor     7.1780        5.1762        .37630E-03   -1.5654    
   9  norm          .31752        .22394        .98936E-03   -1.5697    
  10  norm          .54497        .54223        .74306E-04   -1.5693    
  11  Prefactor     .11102E-09    9.8691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.600        12.353        .22599E-03   -1.5619    
  13  Prefactor     1.0503        3.0752        .12219E-02   -1.5687    
  14  norm          23.304        9.1002        .20711E-03   -1.5611    
  15  Prefactor      .0000        3.3505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5131        11.853        .42877E-03   -1.5661    
  17  Prefactor     4.4613        1.5622        .47651E-03   -1.5666    
  18  Prefactor     .11102E-09    7.0837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .78287        .12547        .65963E-01   -1.0071    
  20  Prefactor     1.0708        .10034        .38813E-01   -.90405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2154e-06
Minuit parameter uncertainties:
  1  3.22374e-05
  2  41.908
  3  18.1865
  4  4.15376e-06
  5  0.991502
  6  2.99975
  7  1.90538
  8  5.17616
  9  0.223938
  10  0.542226
  11  7.3583e-05
  12  12.3532
  13  3.07516
  14  9.10023
  15  2.26488e-06
  16  11.8528
  17  1.56216
  18  6.21832e-05
  19  0.125515
  20  0.10036
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  3.175e-01  2.239e-01  0.000e+00  1.000e+06 ( 1.000e-11)
235        alpha:  2.190e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.785e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.071e+00  1.004e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  7.829e-01  1.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.84
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 9.90e-06 +/- 6.98e-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) = 14137.3141595
delta logL = 1.67614540714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14137.3083415
delta logL = 1.68196340361

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14137.31     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21669        .14580        .81481E-03** at limit **
   2  alpha         1.2560        .28622        .39927       -.89143E-04
   3  Normalizat    .79535        .11817        .65492E-01    .46000E-04
   4  Prefactor     1.0673        .99498E-01    .38987E-01    .67756E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.216691
  alpha      = 1.25602
  Normalizat = 0.795354
  Prefactor  = 1.06734
 **********
 **   18 **HESSE 
 **********

 FCN=   14137.31     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21669        .19386        .35314E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2560        .44005        .14942E-01   -.52082    
   3  Normalizat    .79535        .13648        .28973E-03   -1.0024    
   4  Prefactor     1.0673        .11515        .21235E-03   -.90517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52792e-12
Minuit parameter uncertainties:
  1  0.193859
  2  0.443128
  3  0.136543
  4  0.115178
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) = 14137.3083414
delta logL = 1.68196345458

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  2.167e-01  1.939e-01  0.000e+00  1.000e+06 ( 1.000e-11)
235        alpha:  1.256e+00  4.431e-01  0.000e+00  5.000e+00 ( 1.000e+00)
236         beta:  4.785e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.067e+00  1.152e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  7.954e-01  1.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.21
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.26 +/- 0.44
Photon Flux (Free Index): 8.28e-09 +/- 7.04e-09
Energy Flux (Free Index): 3.66e-05 +/- 3.77e-05

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/18158259/cmap_HighResolution_788140801_788745601_4FGL_J1058.4+0133_weekly_bin908.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='3.66e-05', photon_flux_error='1.62e-08', dlogl='1.68e+00', energy_flux='9.90e-06', photon_flux2='8.28e-09', job_status='DONE', time_completed='2025-12-30 01:28:12.113733', photon_index_error2='0.44', photon_index2='1.26', ts='5.84', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.77e-05', EG='0.78', time_epoch_completed='1767086892.11', return_code='0', job_id='18158259', GAL2='1.07', EG2='0.80', return_code2='0', energy_flux_error='6.98e-06', photon_flux_error2='7.04e-09', ts2='9.21', photon_index='2.19' WHERE bin_id='908' AND source_name='4FGL J1058.4+0133' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 30 01:28:12 PST 2025

