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

 FCN=   815.8061     FROM HESSE     STATUS=OK           398 CALLS     2425 TOTAL
                     EDM=   .30E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        58.392        .16149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        76.013        .13885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57176E-08    45.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38303E-07    76.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91038E-07    100.85        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.0656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        19.944        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .28311E-08    39.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61981E-01    1984.0        .42118E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          44956.        6183.6        .54526E-05   -1.1435    
  11  norm          .29973E-01    3498.8        .42118E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    34.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10968        4545.9        .42118E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        16.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .76065E-05    351.54        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        4.4026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    13.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        15.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.5375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        12.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6829        3.4140        .46481E-03   -1.5665    
  22  Normalizat    .10000E-01    .65855E-01    .11038       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .27935        .14607        .52272E-01   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0296039
Minuit parameter uncertainties:
  1  3.49985e-05
  2  4.21347e-06
  3  0.00102391
  4  0.00342381
  5  0.00606108
  6  7.07121e-06
  7  1.68535e-05
  8  0.000672307
  9  22.1858
  10  6184.52
  11  20.4932
  12  0.000151619
  13  44.6917
  14  3.42822e-05
  15  0.103427
  16  2.47012e-06
  17  6.48712e-05
  18  3.97583e-05
  19  1.53584e-06
  20  2.65077e-05
  21  3.41403
  22  1.30387e-07
  23  0.146259
/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
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  7.606e-06  1.034e-01  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  1.463e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  1.304e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 3.40633794642e-06 ph cm-2 s-1
Energy Flux Upper Limit: 0.263958853203 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38730651/likelihoodResults_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.80748413
delta logL = -0.00135600539329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.806128432
delta logL = -3.0743399293e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      222 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        473.11        .34209E-05** at limit **
   2  Index         1.8676        5.8862        .57321E-04     .0000    
   3  Normalizat    .10000E-01    .78043E-01    .13743E-04** at limit **
   4  Prefactor     .27935        .13617       -.11768E-04    .11678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.86763
  Normalizat = 0.01
  Prefactor  = 0.279345

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).

 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   815.8061     FROM HESSE     STATUS=FAILED        11 CALLS      233 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        473.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .36371        1.5801        .57321E-04   -.67702    
   3  Normalizat    .10000E-01    .25505        .13743E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27935        .58790       -.11768E-04   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.47708e-12
Minuit parameter uncertainties:
/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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/38730688/ft2_4FGL_J1158.5+4824_daily_bin2207.fits
.....................!
real 9.03
user 8.56
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38730688/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits evtable="EVENTS" scfile=/lscratch/kocevski/38730688/ft2_4FGL_J1158.5+4824_daily_bin2207.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38730688/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730688/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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/38730688/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
.....................!
real 71.86
user 66.99
sys 4.24

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

Setting source of interest to:
4FGL J1158.5+4824 @ 179.637 48.4161

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38730688/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits scfile=/lscratch/kocevski/38730688/ft2_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730688/cmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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=179.637 yref=48.4161 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.68
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38730688/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits scfile=/lscratch/kocevski/38730688/ft2_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730688/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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=179.637 yref=48.4161 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.55
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38730688/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits evtable="EVENTS" scfile=/lscratch/kocevski/38730688/ft2_4FGL_J1158.5+4824_daily_bin2207.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38730688/Model_4FGL_J1158.5+4824_daily_bin2207.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_  1  9.92621e-05
  2  0.861504
  3  5.3571e-07
  4  0.601141
/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)
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 815.806128114
delta logL = 1.08171889224e-08

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  9.926e-05  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  1.868e+00  8.615e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  6.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  5.357e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/38730651/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-01', job_status='DONE', photon_flux_upper_limit='3.41e-06', time_completed='2026-09-21 09:10:12.913484', job_id='38730651', GAL2='0.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1790007012.91', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='1.08e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='2207' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 21 09:10:13 PDT 2026


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

file=/lscratch/kocevski/38730703/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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/38730703/ft2_4FGL_J1158.5+4824_daily_bin2207.fits
.....................!
real 9.13
user 8.42
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38730703/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits evtable="EVENTS" scfile=/lscratch/kocevski/38730703/ft2_4FGL_J1158.5+4824_daily_bin2207.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38730703/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730703/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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/38730703/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
.....................!
real 71.77
user 66.72
sys 4.15

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

Setting source of interest to:
4FGL J1158.5+4824 @ 179.637 48.4161

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38730703/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits scfile=/lscratch/kocevski/38730703/ft2_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730703/cmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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=179.637 yref=48.4161 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.60
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38730703/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits scfile=/lscratch/kocevski/38730703/ft2_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730703/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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=179.637 yref=48.4161 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.52
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38730703/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits evtable="EVENTS" scfile=/lscratch/kocevski/38730703/ft2_4FGL_J1158.5+4824_daily_bin2207.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38730703/Model_4FGL_J1158.5+4824_daily_bin2207.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/38730685/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits.....................!
real 9.59
user 8.17
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38730685/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits', '/lscratch/kocevski/38730685/ft2_4FGL_J1158.5+4824_daily_bin2207.fits', expMap='/lscratch/kocevski/38730685/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', expCube='/lscratch/kocevski/38730685/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38730685/Model_4FGL_J1158.5+4824_daily_bin2207.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1158.5+4824'

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.005e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38730685/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits
Spacecraft file(s): /lscratch/kocevski/38730685/ft2_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure map: /lscratch/kocevski/38730685/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure cube: /lscratch/kocevski/38730685/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38730685/Model_4FGL_J1158.5+4824_daily_bin2207.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) = 816.067500767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36012E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10166       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46687E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20709E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .27094E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .88297E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17692E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .23909E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .41412E-02   1.0000          .0000       .10000E+07
    10 'norm      '    44958.       1.0000          .0000       .10000E+07
    11 'norm      '    .13929E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22312E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .93263E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .29944E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .44507E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .23791E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .69480E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .35081E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .43132E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .40729E-02   1.0000          .0000       .10000E+07
    21 'norm      '    4.6826       1.0000          .0000       .10000E+07
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .27930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED    205 CALLS     2027 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        58.381       -.17388E-05** at limit **
   2  Prefactor      .0000        76.006       -.40903E-06** at limit **
   3  Prefactor     .57176E-08    45.851        .13674E-05** at limit **
   4  Prefactor     .38303E-07    76.460       -.23778E-05** at limit **
   5  norm          .91038E-07    100.84       -.37999E-05** at limit **
   6  Prefactor      .0000        5.0667       -.11029E-05** at limit **
   7  Prefactor      .0000        19.922       -.11527E-05** at limit **
   8  norm          .28311E-08    39.716        .26485E-05** at limit **
   9  Prefactor     .61981E-01    1429.6       -.18549E-05** at limit **
  10  norm          44956.        71.289       -.75721E-08    5.7585    
  11  norm          .29973E-01    650.80       -.11865E-05** at limit **
  12  Prefactor     .16653E-09    34.989       -.69747E-06** at limit **
  13  Prefactor     .10968        426.60       -.94720E-06** at limit **
  14  norm           .0000        16.055        .31351E-05** at limit **
  15  Prefactor     .76065E-05    351.50       -.37029E-05** at limit **
  16  norm           .0000        4.4073       -.43137E-06** at limit **
  17  norm          .55511E-10    13.181        .59718E-05** at limit **
  18  Prefactor      .0000        15.500        .31994E-05** at limit **
  19  Prefactor      .0000        2.5334        .25502E-06** at limit **
  20  Prefactor      .0000        12.213       -.26107E-05** at limit **
  21  norm          4.6829        3.4050        .95952E-07   -.20085E-03
  22  Normalizat    .10000E-01    .78344E-01    .43760E-04** at limit **
  23  Prefactor     .27935        .13817        .16219E-04   -.85624E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.71765e-09
  Prefactor  = 3.83027e-08
  norm       = 9.10383e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.83107e-09
  Prefactor  = 0.0619811
  norm       = 44955.6
  norm       = 0.0299728
  Prefactor  = 1.66533e-10
  Prefactor  = 0.109677
  norm       = 0
  Prefactor  = 7.60647e-06
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.68291
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********

 FCN=   815.8061     FROM HESSE     STATUS=OK           398 CALLS     2425 TOTAL
                     EDM=   .30E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        58.392        .16149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        76.013        .13885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57176E-08    45.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38303E-07    76.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91038E-07    100.85        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.0656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        19.944        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .28311E-08    39.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61981E-01    1984.0        .42118E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          44956.        6183.6        .54526E-05   -1.1435    
  11  norm          .29973E-01    3498.8        .42118E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    34.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10968        4545.9        .42118E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        16.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .76065E-05    351.54        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        4.4026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    13.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        15.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.5375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        12.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6829        3.4140        .46481E-03   -1.5665    
  22  Normalizat    .10000E-01    .65855E-01    .11038       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .27935        .14607        .52272E-01   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0296039
Minuit parameter uncertainties:
  1  3.49985e-05
  2  4.21347e-06
  3  0.00102391
  4  0.00342381
  5  0.00606108
  6  7.07121e-06
  7  1.68535e-05
02
Working on...
/lscratch/kocevski/38730680/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits.....................!
real 9.75
user 8.44
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38730680/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits', '/lscratch/kocevski/38730680/ft2_4FGL_J1158.5+4824_daily_bin2207.fits', expMap='/lscratch/kocevski/38730680/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', expCube='/lscratch/kocevski/38730680/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38730680/Model_4FGL_J1158.5+4824_daily_bin2207.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1158.5+4824'

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.005e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38730680/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits
Spacecraft file(s): /lscratch/kocevski/38730680/ft2_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure map: /lscratch/kocevski/38730680/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure cube: /lscratch/kocevski/38730680/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38730680/Model_4FGL_J1158.5+4824_daily_bin2207.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) = 816.067500767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36012E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10166       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46687E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20709E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .27094E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .88297E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17692E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .23909E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .41412E-02   1.0000          .0000       .10000E+07
    10 'norm      '    44958.       1.0000          .0000       .10000E+07
    11 'norm      '    .13929E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22312E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .93263E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .29944E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .44507E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .23791E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .69480E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .35081E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .43132E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .40729E-02   1.0000          .0000       .10000E+07
    21 'norm      '    4.6826       1.0000          .0000       .10000E+07
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .27930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED    205 CALLS  8  0.000672307
  9  22.1858
     2027 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        58.381       -.17388E-05** at limit **
   2  Prefactor      .0000        76.006       -.40903E-06** at limit **
   3  Prefactor     .57176E-08    45.851        .13674E-05** at limit **
   4  Prefactor     .38303E-07    76.460       -.23778E-05** at limit **
   5  norm          .91038E-07    100.84       -.37999E-05** at limit **
   6  Prefactor      .0000        5.0667       -.11029E-05** at limit **
   7  Prefactor      .0000        19.922       -.11527E-05** at limit **
   8  norm          .28311E-08    39.716        .26485E-05** at limit **
   9  Prefactor     .61981E-01    1429.6       -.18549E-05** at limit **
  10  norm          44956.        71.289       -.75721E-08    5.7585    
  11  norm          .29973E-01    650.80       -.11865E-05** at limit **
  12  Prefactor     .16653E-09    34.989       -.69747E-06** at limit **
  13  Prefactor     .10968        426.60       -.94720E-06** at limit **
  14  norm           .0000        16.055        .31351E-05** at limit **
  15  Prefactor     .76065E-05    351.50       -.37029E-05** at limit **
  16  norm           .0000        4.4073       -.43137E-06** at limit **
  17  norm          .55511E-10    13.181        .59718E-05** at limit **
  18  Prefactor      .0000        15.500        .31994E-05** at limit **
  19  Prefactor      .0000        2.5334        .25502E-06** at limit **
  20  Prefactor      .0000        12.213       -.26107E-05** at limit **
  21  norm          4.6829        3.4050        .95952E-07   -.20085E-03
  22  Normalizat    .10000E-01    .78344E-01    .43760E-04** at limit **
  23  Prefactor     .27935        .13817        .16219E-04   -.85624E-05
                               ERR DEF=  .500    
Final values: 
  10  6184.52
  11  20.4932
  Prefactor  = 0
  Prefactor  = 0
  12  0.000151619
  13  44.6917
  Prefactor  = 5.71765e-09
  Prefactor  = 3.83027e-08
  14  3.42822e-05
  15  0.103427
  norm       = 9.10383e-08
  Prefactor  = 0
  16  2.47012e-06
  17  6.48712e-05
  Prefactor  = 0
  norm       = 2.83107e-09
  18  3.97583e-05
  19  1.53584e-06
  Prefactor  = 0.0619811
  norm       = 44955.6
  20  2.65077e-05
  21  3.41403
  norm       = 0.0299728
  Prefactor  = 1.66533e-10
  22  1.30387e-07
  23  0.146259
  Prefactor  = 0.109677
  norm       = 0
  Prefactor  = 7.60647e-06
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.68291
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********

 FCN=   815.8061     FROM HESSE     STATUS=OK           398 CALLS     2425 TOTAL
                     EDM=   .30E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        58.392        .16149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        76.013        .13885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57176E-08    45.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38303E-07    76.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91038E-07    100.85        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.0656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        19.944        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .28311E-08    39.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61981E-01    1984.0        .42118E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          44956.        6183.6        .54526E-05   -1.1435    
  11  norm          .29973E-01    3498.8        .42118E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    34.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10968        4545.9        .42118E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        16.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .76065E-05    351.54        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        4.4026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    13.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        15.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.5375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        12.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6829        3.4140        .46481E-03   -1.5665    
  22  Normalizat    .10000E-01    .65855E-01    .11038       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .27935        .14607        .52272E-01   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0296039
Minuit parameter uncertainties:
  1  3.49985e-05
  2  4.21347e-06
  3  0.00102391
  4  0.00342381
  5  0.00606108
  6  7.07121e-06
  7  1.68535e-05
  8  0.000672307
  9  22.1858
  10  6184.52
  11  20.4932
  12  0.000151619
  13  44.6917
  14  3.42822e-05
  15  0.103427
  16  2.47012e-06
  17  6.48712e-05
  18  3.97583e-05
  19  1.53584e-06
  20  2.65077e-05
  21  3.41403
  22  1.30387e-07
  23  0.146259
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  7.606e-06  1.034e-01  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  1.463e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  1.304e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 3.40633794642e-06 ph cm-2 s-1
Energy Flux Upper Limit: 0.263958853203 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38730685/likelihoodResults_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.80748413
delta logL = -0.00135600539329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.806128432
delta logL = -3.0743399293e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      222 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        473.11        .34209E-05** at limit **
   2  Index         1.8676        5.8862        .57321E-04     .0000    
   3  Normalizat    .10000E-01    .78043E-01    .13743E-04** at limit **
   4  Prefactor     .27935        .13617       -.11768E-04    .11678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.86763
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   815.8061     FROM HESSE     STATUS=FAILED        11 CALLS      233 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        473.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .36371        1.5801        .57321E-04   -.67702    
   3  Normalizat    .10000E-01    .25505        .13743E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27935        .58790       -.11768E-04   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.47708e-12
Minuit parameter uncertainties:
  1  9.92621e-05
  2  0.861504
  3  5.3571e-07
  4  0.601141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
number of points = 7465
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 815.806128114
delta logL = 1.08171889224e-08

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  9.926e-05  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  1.868e+00  8.615e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  6.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  5.357e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/38730685/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-01', job_status='DONE', photon_flux_upper_limit='3.41e-06', time_completed='2026-09-21 09:10:50.641073', job_id='38730685', GAL2='0.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1790007050.64', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='1.08e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='2207' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 21 09:10:50 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  7.606e-06  1.034e-01  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  1.463e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  1.304e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 3.40633794642e-06 ph cm-2 s-1
Energy Flux Upper Limit: 0.263958853203 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38730680/likelihoodResults_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.80748413
delta logL = -0.00135600539329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.806128432
delta logL = -3.0743399293e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      222 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        473.11        .34209E-05** at limit **
   2  Index         1.8676        5.8862        .57321E-04     .0000    
   3  Normalizat    .10000E-01    .78043E-01    .13743E-04** at limit **
   4  Prefactor     .27935        .13617       -.11768E-04    .11678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.86763
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   815.8061     FROM HESSE     STATUS=FAILED        11 CALLS      233 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        473.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .36371        1.5801        .57321E-04   -.67702    
   3  Normalizat    .10000E-01    .25505        .13743E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27935        .58790       -.11768E-04   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.47708e-12
Minuit parameter uncertainties:
  1  9.92621e-05
  2  0.861504
  3  5.3571e-07
  4  0.601141
Done.


Performing analysis on: 4FGL_J1158.5+4824_daily_bin2207
RA = 179.637, Dec = 48.4161
tmin = 811382401, tmax = 811641601
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='38730753', job_status='RUN', time_executed='2026-09-21 09:10:15.560301', time_epoch_executed='1790007015.56' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='2207'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38730753

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38730753/ft1_4FGL_J1158.5+4824_daily_bin2207.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38730753/ft1_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730753/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin2207.fits ra=179.637 dec=48.4161 rad=12.0 tmin=811382401.0 tmax=811641601.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 2.16
user 1.72
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.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/38730753/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin2207.fits evtable="EVENTS" outfile="/lscratch/kocevski/38730753/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.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.72
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 83

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38730753/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.fits sctable="SC_DATA" outV02
Working on...
/lscratch/kocevski/38730688/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits.....................!
real 9.59
user 8.15
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38730688/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits', '/lscratch/kocevski/38730688/ft2_4FGL_J1158.5+4824_daily_bin2207.fits', expMap='/lscratch/kocevski/38730688/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', expCube='/lscratch/kocevski/38730688/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38730688/Model_4FGL_J1158.5+4824_daily_bin2207.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1158.5+4824'

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.005e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38730688/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits
Spacecraft file(s): /lscratch/kocevski/38730688/ft2_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure map: /lscratch/kocevski/38730688/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure cube: /lscratch/kocevski/38730688/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38730688/Model_4FGL_J1158.5+4824_daily_bin2207.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) = 816.067500767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36012E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10166       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46687E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20709E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .27094E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .88297E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17692E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .23909E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .41412E-02   1.0000          .0000       .10000E+07
    10 'norm      '    44958.       1.0000          .0000       .10000E+07
    11 'norm      '    .13929E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22312E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .93263E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .29944E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .44507E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .23791E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .69480E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .35081E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .43132E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .40729E-02   1.0000          .0000       .10000E+07
    21 'norm      '    4.6826       1.0000          .0000       .10000E+07
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .27930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED    205 CALLS     2027 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        58.381       -.17388E-05** at limit **
   2  Prefactor      .0000        76.006       -.40903E-06** at limit **
   3  Prefactor     .57176E-08    45.851        .13674E-05** at limit **
   4  Prefactor     .38303E-07    76.460       -.23778E-05** at limit **
   5  norm          .91038E-07    100.84       -.37999E-05** at limit **
   6  Prefactor      .0000        5.0667       -.11029E-05** at limit **
   7  Prefactor      .0000        19.922       -.11527E-05** at limit **
   8  norm          .28311E-08    39.716        .26485E-05** at limit **
   9  Prefactor     .61981E-01    1429.6       -.18549E-05** at limit **
  10  norm          44956.        71.289       -.75721E-08    5.7585    
  11  norm          .29973E-01    650.80       -.11865E-05** at limit **
  12  Prefactor     .16653E-09    34.989       -.69747E-06** at limit **
  13  Prefactor     .10968        426.60       -.94720E-06** at limit **
  14  norm           .0000        16.055        .31351E-05** at limit **
  15  Prefactor     .76065E-05    351.50       -.37029E-05** at limit **
  16  norm           .0000        4.4073       -.43137E-06** at limit **
  17  norm          .55511E-10    13.181        .59718E-05** at limit **
  18  Prefactor      .0000        15.500        .31994E-05** at limit **
  19  Prefactor      .0000        2.5334        .25502E-06** at limit **
  20  Prefactor      .0000        12.213       -.26107E-05** at limit **
  21  norm          4.6829        3.4050        .95952E-07   -.20085E-03
  22  Normalizat    .10000E-01    .78344E-01    .43760E-04** at limit **
  23  Prefactor     .27935        .13817        .16219E-04   -.85624E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.71765e-09
  Prefactor  = 3.83027e-08
  norm       = 9.10383e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.83107e-09
  Prefactor  = 0.0619811
  norm       = 44955.6
  norm       = 0.0299728
  Prefactor  = 1.66533e-10
  Prefactor  = 0.109677
  norm       = 0
  Prefactor  = 7.60647e-06
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.68291
  Normalizat = 0.01
  Prefactor  = 0.279345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 815.806128114
delta logL = 1.08171889224e-08

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  9.926e-05  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  1.868e+00  8.615e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  6.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  5.357e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/38730680/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-01', job_status='DONE', photon_flux_upper_limit='3.41e-06', time_completed='2026-09-21 09:10:53.217811', job_id='38730680', GAL2='0.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1790007053.22', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='1.08e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='2207' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 21 09:10:53 PDT 2026

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

 FCN=   815.8061     FROM HESSE     STATUS=OK           398 CALLS     2425 TOTAL
                     EDM=   .30E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        58.392        .16149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        76.013        .13885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57176E-08    45.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38303E-07    76.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91038E-07    100.85        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.0656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        19.944        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .28311E-08    39.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61981E-01    1984.0        .42118E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          44956.        6183.6        .54526E-05   -1.1435    
  11  norm          .29973E-01    3498.8        .42118E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    34.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10968        4545.9        .42118E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        16.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .76065E-05    351.54        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        4.4026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    13.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        15.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.5375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        12.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6829        3.4140        .46481E-03   -1.5665    
  22  Normalizat    .10000E-01    .65855E-01    .11038       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .27935        .14607        .52272E-01   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0296039
Minuit parameter uncertainties:
  1  3.49985e-05
  2  4.21347e-06
  3  0.00102391
  4  0.00342381
  5  0.00606108
  6  7.07121e-06
  7  1.68535e-05
  8  0.000672307
  9  22.1858
  10  6184.52
  11  20.4932
  12  0.000151619
  13  44.6917
  14  3.42822e-05
  15  0.103427
  16  2.47012e-06
  17  6.48712e-05
  18  3.97583e-05
  19  1.53584e-06
  20  2.65077e-05
  21  3.41403
  22  1.30387e-07
  23  0.146259
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  7.606e-06  1.034e-01  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  1.463e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  1.304e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 3.40633794642e-06 ph cm-2 s-1
Energy Flux Upper Limit: 0.263958853203 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38730688/likelihoodResults_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.80748413
delta logL = -0.00135600539329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.806128432
delta logL = -3.0743399293e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      222 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        473.11        .34209E-05** at limit **
   2  Index         1.8676        5.8862        .57321E-04     .0000    
   3  Normalizat    .10000E-01    .78043E-01    .13743E-04** at limit **
   4  Prefactor     .27935        .13617       -.11768E-04    .11678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.86763
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   815.8061     FROM HESSE     STATUS=FAILED        11 CALLS      233 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        473.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .36371        1.5801        .57321E-04   -.67702    
   3  Normalizat    .10000E-01    .25505        .13743E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27935        .58790       -.11768E-04   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.47708e-12
Minuit parameter uncertainties:
  1  9.92621e-05
  2  0.861504
  3  5.3571e-07
  4  0.601141
file=/lscratch/kocevski/38730704/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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/38730704/ft2_4FGL_J1158.5+4824_daily_bin2207.fits
.....................!
real 9.94
user 9.43
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38730704/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits evtable="EVENTS" scfile=/lscratch/kocevski/38730704/ft2_4FGL_J1158.5+4824_daily_bin2207.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38730704/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730704/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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/38730704/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
.....................!
real 79.37
user 73.63
sys 4.60

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

Setting source of interest to:
4FGL J1158.5+4824 @ 179.637 48.4161

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38730704/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits scfile=/lscratch/kocevski/38730704/ft2_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730704/cmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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=179.637 yref=48.4161 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.79
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38730704/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits scfile=/lscratch/kocevski/38730704/ft2_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730704/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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=179.637 yref=48.4161 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.94
user 0.26
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38730704/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits evtable="EVENTS" scfile=/lscratch/kocevski/38730704/ft2_4FGL_J1158.5+4824_daily_bin2207.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38730704/Model_4FGL_J1158.5+4824_daily_bin2207.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_shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 815.806128114
delta logL = 1.08171889224e-08

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  9.926e-05  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  1.868e+00  8.615e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  6.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  5.357e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/38730688/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-01', job_status='DONE', photon_flux_upper_limit='3.41e-06', time_completed='2026-09-21 09:11:02.346613', job_id='38730688', GAL2='0.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1790007062.35', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='1.08e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='2207' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 21 09:11:02 PDT 2026

V02
Working on...
/lscratch/kocevski/38730703/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits.....................!
real 9.06
user 7.82
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38730703/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits', '/lscratch/kocevski/38730703/ft2_4FGL_J1158.5+4824_daily_bin2207.fits', expMap='/lscratch/kocevski/38730703/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', expCube='/lscratch/kocevski/38730703/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38730703/Model_4FGL_J1158.5+4824_daily_bin2207.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1158.5+4824'

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.005e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38730703/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits
Spacecraft file(s): /lscratch/kocevski/38730703/ft2_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure map: /lscratch/kocevski/38730703/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure cube: /lscratch/kocevski/38730703/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38730703/Model_4FGL_J1158.5+4824_daily_bin2207.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) = 816.067500767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36012E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10166       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46687E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20709E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .27094E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .88297E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17692E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .23909E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .41412E-02   1.0000          .0000       .10000E+07
    10 'norm      '    44958.       1.0000          .0000       .10000E+07
    11 'norm      '    .13929E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22312E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .93263E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .29944E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .44507E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .23791E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .69480E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .35081E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .43132E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .40729E-02   1.0000          .0000       .10000E+07
    21 'norm      '    4.6826       1.0000          .0000       .10000E+07
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .27930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED    205 CALLS     2027 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        58.381       -.17388E-05** at limit **
   2  Prefactor      .0000        76.006       -.40903E-06** at limit **
   3  Prefactor     .57176E-08    45.851        .13674E-05** at limit **
   4  Prefactor     .38303E-07    76.460       -.23778E-05** at limit **
   5  norm          .91038E-07    100.84       -.37999E-05** at limit **
   6  Prefactor      .0000        5.0667       -.11029E-05** at limit **
   7  Prefactor      .0000        19.922       -.11527E-05** at limit **
   8  norm          .28311E-08    39.716        .26485E-05** at limit **
   9  Prefactor     .61981E-01    1429.6       -.18549E-05** at limit **
  10  norm          44956.        71.289       -.75721E-08    5.7585    
  11  norm          .29973E-01    650.80       -.11865E-05** at limit **
  12  Prefactor     .16653E-09    34.989       -.69747E-06** at limit **
  13  Prefactor     .10968        426.60       -.94720E-06** at limit **
  14  norm           .0000        16.055        .31351E-05** at limit **
  15  Prefactor     .76065E-05    351.50       -.37029E-05** at limit **
  16  norm           .0000        4.4073       -.43137E-06** at limit **
  17  norm          .55511E-10    13.181        .59718E-05** at limit **
  18  Prefactor      .0000        15.500        .31994E-05** at limit **
  19  Prefactor      .0000        2.5334        .25502E-06** at limit **
  20  Prefactor      .0000        12.213       -.26107E-05** at limit **
  21  norm          4.6829        3.4050        .95952E-07   -.20085E-03
  22  Normalizat    .10000E-01    .78344E-01    .43760E-04** at limit **
  23  Prefactor     .27935        .13817        .16219E-04   -.85624E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.71765e-09
  Prefactor  = 3.83027e-08
  norm       = 9.10383e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.83107e-09
  Prefactor  = 0.0619811
  norm       = 44955.6
  norm       = 0.0299728
  Prefactor  = 1.66533e-10
  Prefactor  = 0.109677
  norm       = 0
  Prefactor  = 7.60647e-06
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.68291
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********

 FCN=   815.8061     FROM HESSE     STATUS=OK           398 CALLS     2425 TOTAL
                     EDM=   .30E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        58.392        .16149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        76.013        .13885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57176E-08    45.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38303E-07    76.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91038E-07    100.85        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.0656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        19.944        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .28311E-08    39.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61981E-01    1984.0        .42118E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          44956.        6183.6        .54526E-05   -1.1435    
  11  norm          .29973E-01    3498.8        .42118E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    34.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10968        4545.9        .42118E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        16.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .76065E-05    351.54        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        4.4026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    13.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        15.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.5375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        12.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6829        3.4140        .46481E-03   -1.5665    
  22  Normalizat    .10000E-01    .65855E-01    .11038       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .27935        .14607        .52272E-01   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0296039
Minuit parameter uncertainties:
  1  3.49985e-05
  2  4.21347e-06
  3  0.00102391
  4  0.00342381
  5  0.00606108
  6  7.07121e-06
  7  1.68535e-05
  8  0.000672307
  9  22.1858
  10  6184.52
  11  20.4932
  12  0.000151619
  13  44.6917
  14  3.42822e-05
  15  0.103427
  16  2.47012e-06
  17  6.48712e-05
  18  3.97583e-05
  19  1.53584e-06
  20  2.65077e-05
  21  3.41403
  22  1.30387e-07
  23  0.146259
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  7.606e-06  1.034e-01  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  1.463e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  1.304e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 3.40633794642e-06 ph cm-2 s-1
Energy Flux Upper Limit: 0.263958853203 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38730703/likelihoodResults_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.80748413
delta logL = -0.00135600539329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.806128432
delta logL = -3.0743399293e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      222 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        473.11        .34209E-05** at limit **
   2  Index         1.8676        5.8862        .57321E-04     .0000    
   3  Normalizat    .10000E-01    .78043E-01    .13743E-04** at limit **
   4  Prefactor     .27935        .13617       -.11768E-04    .11678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.86763
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   815.8061     FROM HESSE     STATUS=FAILED        11 CALLS      233 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        473.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .36371        1.5801        .57321E-04   -.67702    
   3  Normalizat    .10000E-01    .25505        .13743E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27935        .58790       -.11768E-04   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.47708e-12
Minuit parameter uncertainties:
  1  9.92621e-05
  2  0.861504
  3  5.3571e-07
  4  0.601141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 815.806128114
delta logL = 1.08171889224e-08

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  9.926e-05  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  1.868e+00  8.615e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  6.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  5.357e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/38730703/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-01', job_status='DONE', photon_flux_upper_limit='3.41e-06', time_completed='2026-09-21 09:11:29.752594', job_id='38730703', GAL2='0.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1790007089.75', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='1.08e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='2207' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 21 09:11:29 PDT 2026

V02
Working on...
/lscratch/kocevski/38730704/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits.....................!
real 10.66
user 9.04
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38730704/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits', '/lscratch/kocevski/38730704/ft2_4FGL_J1158.5+4824_daily_bin2207.fits', expMap='/lscratch/kocevski/38730704/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', expCube='/lscratch/kocevski/38730704/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38730704/Model_4FGL_J1158.5+4824_daily_bin2207.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1158.5+4824'

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.005e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38730704/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits
Spacecraft file(s): /lscratch/kocevski/38730704/ft2_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure map: /lscratch/kocevski/38730704/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure cube: /lscratch/kocevski/38730704/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38730704/Model_4FGL_J1158.5+4824_daily_bin2207.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) = 816.067500767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36012E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10166       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46687E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20709E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .27094E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .88297E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17692E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .23909E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .41412E-02   1.0000          .0000       .10000E+07
    10 'norm      '    44958.       1.0000          .0000       .10000E+07
    11 'norm      '    .13929E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22312E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .93263E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .29944E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .44507E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .23791E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .69480E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .35081E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .43132E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .40729E-02   1.0000          .0000       .10000E+07
    21 'norm      '    4.6826       1.0000          .0000       .10000E+07
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .27930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED    205 CALLS     2027 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        58.381       -.17388E-05** at limit **
   2  Prefactor      .0000        76.006       -.40903E-06** at limit **
   3  Prefactor     .57176E-08    45.851        .13674E-05** at limit **
   4  Prefactor     .38303E-07    76.460       -.23778E-05** at limit **
   5  norm          .91038E-07    100.84       -.37999E-05** at limit **
   6  Prefactor      .0000        5.0667       -.11029E-05** at limit **
   7  Prefactor      .0000        19.922       -.11527E-05** at limit **
   8  norm          .28311E-08    39.716        .26485E-05** at limit **
   9  Prefactor     .61981E-01    1429.6       -.18549E-05** at limit **
  10  norm          44956.        71.289       -.75721E-08    5.7585    
  11  norm          .29973E-01    650.80       -.11865E-05** at limit **
  12  Prefactor     .16653E-09    34.989       -.69747E-06** at limit **
  13  Prefactor     .10968        426.60       -.94720E-06** at limit **
  14  norm           .0000        16.055        .31351E-05** at limit **
  15  Prefactor     .76065E-05    351.50       -.37029E-05** at limit **
  16  norm           .0000        4.4073       -.43137E-06** at limit **
  17  norm          .55511E-10    13.181        .59718E-05** at limit **
  18  Prefactor      .0000        15.500        .31994E-05** at limit **
  19  Prefactor      .0000        2.5334        .25502E-06** at limit **
  20  Prefactor      .0000        12.213       -.26107E-05** at limit **
  21  norm          4.6829        3.4050        .95952E-07   -.20085E-03
  22  Normalizat    .10000E-01    .78344E-01    .43760E-04** at limit **
  23  Prefactor     .27935        .13817        .16219E-04   -.85624E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.71765e-09
  Prefactor  = 3.83027e-08
  norm       = 9.10383e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.83107e-09
  Prefactor  = 0.0619811
  norm       = 44955.6
  norm       = 0.0299728
  Prefactor  = 1.66533e-10
  Prefactor  = 0.109677
  norm       = 0
  Prefactor  = 7.60647e-06
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.68291
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********

 FCN=   815.8061     FROM HESSE     STATUS=OK           398 CALLS     2425 TOTAL
                     EDM=   .30E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        58.392        .16149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        76.013        .13885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57176E-08    45.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38303E-07    76.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91038E-07    100.85        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.0656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        19.944        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .28311E-08    39.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61981E-01    1984.0        .42118E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          44956.        6183.6        .54526E-05   -1.1435    
  11  norm          .29973E-01    3498.8        .42118E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    34.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10968        4545.9        .42118E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        16.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .76065E-05    351.54        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        4.4026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    13.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        15.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.5375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        12.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6829        3.4140        .46481E-03   -1.5665    
  22  Normalizat    .10000E-01    .65855E-01    .11038       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .27935        .14607        .52272E-01   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0296039
Minuit parameter uncertainties:
  1  3.49985e-05
  2  4.21347e-06
  3  0.00102391
  4  0.00342381
  5  0.00606108
  6  7.07121e-06
  7  1.68535e-05
  8  0.000672307
  9  22.1858
  10  6184.52
  11  20.4932
  12  0.000151619
  13  44.6917
  14  3.42822e-05
  15  0.103427
  16  2.47012e-06
  17  6.48712e-05
  18  3.97583e-05
  19  1.53584e-06
  20  2.65077e-05
  21  3.41403
  22  1.30387e-07
  23  0.146259
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  7.606e-06  1.034e-01  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  1.463e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  1.304e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 3.40633794642e-06 ph cm-2 s-1
Energy Flux Upper Limit: 0.263958853203 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38730704/likelihoodResults_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.80748413
delta logL = -0.00135600539329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.806128432
delta logL = -3.0743399293e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      222 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        473.11        .34209E-05** at limit **
   2  Index         1.8676        5.8862        .57321E-04     .0000    
   3  Normalizat    .10000E-01    .78043E-01    .13743E-04** at limit **
   4  Prefactor     .27935        .13617       -.11768E-04    .11678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.86763
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   815.8061     FROM HESSE     STATUS=FAILED        11 CALLS      233 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        473.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .36371        1.5801        .57321E-04   -.67702    
   3  Normalizat    .10000E-01    .25505        .13743E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27935        .58790       -.11768E-04   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.47708e-12
Minuit parameter uncertainties:
  1  9.92621e-05
  2  0.861504
  3  5.3571e-07
  4  0.601141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 815.806128114
delta logL = 1.08171889224e-08

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  9.926e-05  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  1.868e+00  8.615e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  6.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  5.357e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/38730704/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-01', job_status='DONE', photon_flux_upper_limit='3.41e-06', time_completed='2026-09-21 09:12:00.377584', job_id='38730704', GAL2='0.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1790007120.38', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='1.08e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='2207' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 21 09:12:00 PDT 2026

file=/lscratch/kocevski/38730753/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.fits
.....................!
real 8.62
user 8.12
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38730753/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits evtable="EVENTS" scfile=/lscratch/kocevski/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38730753/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730753/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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/38730753/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
.....................!
real 70.03
user 65.22
sys 4.13

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

Setting source of interest to:
4FGL J1158.5+4824 @ 179.637 48.4161

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38730753/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits scfile=/lscratch/kocevski/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730753/cmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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=179.637 yref=48.4161 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.63
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38730753/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits scfile=/lscratch/kocevski/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.fits outfile=/lscratch/kocevski/38730753/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.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=179.637 yref=48.4161 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.55
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38730753/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits evtable="EVENTS" scfile=/lscratch/kocevski/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38730753/Model_4FGL_J1158.5+4824_daily_bin2207.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/38730753/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits.....................!
real 9.51
user 8.19
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38730753/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits', '/lscratch/kocevski/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.fits', expMap='/lscratch/kocevski/38730753/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', expCube='/lscratch/kocevski/38730753/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38730753/Model_4FGL_J1158.5+4824_daily_bin2207.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1158.5+4824'

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.005e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38730753/ft1_filtered_4FGL_J1158.5+4824_daily_bin2207.fits
Spacecraft file(s): /lscratch/kocevski/38730753/ft2_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure map: /lscratch/kocevski/38730753/expmap_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
Exposure cube: /lscratch/kocevski/38730753/ltcube_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38730753/Model_4FGL_J1158.5+4824_daily_bin2207.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) = 816.067500767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36012E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10166       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46687E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20709E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .27094E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .88297E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17692E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .23909E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .41412E-02   1.0000          .0000       .10000E+07
    10 'norm      '    44958.       1.0000          .0000       .10000E+07
    11 'norm      '    .13929E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22312E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .93263E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .29944E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .44507E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .23791E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .69480E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .35081E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .43132E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .40729E-02   1.0000          .0000       .10000E+07
    21 'norm      '    4.6826       1.0000          .0000       .10000E+07
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .27930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED    205 CALLS     2027 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        58.381       -.17388E-05** at limit **
   2  Prefactor      .0000        76.006       -.40903E-06** at limit **
   3  Prefactor     .57176E-08    45.851        .13674E-05** at limit **
   4  Prefactor     .38303E-07    76.460       -.23778E-05** at limit **
   5  norm          .91038E-07    100.84       -.37999E-05** at limit **
   6  Prefactor      .0000        5.0667       -.11029E-05** at limit **
   7  Prefactor      .0000        19.922       -.11527E-05** at limit **
   8  norm          .28311E-08    39.716        .26485E-05** at limit **
   9  Prefactor     .61981E-01    1429.6       -.18549E-05** at limit **
  10  norm          44956.        71.289       -.75721E-08    5.7585    
  11  norm          .29973E-01    650.80       -.11865E-05** at limit **
  12  Prefactor     .16653E-09    34.989       -.69747E-06** at limit **
  13  Prefactor     .10968        426.60       -.94720E-06** at limit **
  14  norm           .0000        16.055        .31351E-05** at limit **
  15  Prefactor     .76065E-05    351.50       -.37029E-05** at limit **
  16  norm           .0000        4.4073       -.43137E-06** at limit **
  17  norm          .55511E-10    13.181        .59718E-05** at limit **
  18  Prefactor      .0000        15.500        .31994E-05** at limit **
  19  Prefactor      .0000        2.5334        .25502E-06** at limit **
  20  Prefactor      .0000        12.213       -.26107E-05** at limit **
  21  norm          4.6829        3.4050        .95952E-07   -.20085E-03
  22  Normalizat    .10000E-01    .78344E-01    .43760E-04** at limit **
  23  Prefactor     .27935        .13817        .16219E-04   -.85624E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.71765e-09
  Prefactor  = 3.83027e-08
  norm       = 9.10383e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.83107e-09
  Prefactor  = 0.0619811
  norm       = 44955.6
  norm       = 0.0299728
  Prefactor  = 1.66533e-10
  Prefactor  = 0.109677
  norm       = 0
  Prefactor  = 7.60647e-06
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.68291
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********

 FCN=   815.8061     FROM HESSE     STATUS=OK           398 CALLS     2425 TOTAL
                     EDM=   .30E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        58.392        .16149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        76.013        .13885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57176E-08    45.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38303E-07    76.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91038E-07    100.85        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.0656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        19.944        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .28311E-08    39.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61981E-01    1984.0        .42118E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          44956.        6183.6        .54526E-05   -1.1435    
  11  norm          .29973E-01    3498.8        .42118E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    34.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10968        4545.9        .42118E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        16.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .76065E-05    351.54        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        4.4026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    13.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        15.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.5375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        12.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6829        3.4140        .46481E-03   -1.5665    
  22  Normalizat    .10000E-01    .65855E-01    .11038       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .27935        .14607        .52272E-01   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0296039
Minuit parameter uncertainties:
  1  3.49985e-05
  2  4.21347e-06
  3  0.00102391
  4  0.00342381
  5  0.00606108
  6  7.07121e-06
  7  1.68535e-05
  8  0.000672307
  9  22.1858
  10  6184.52
  11  20.4932
  12  0.000151619
  13  44.6917
  14  3.42822e-05
  15  0.103427
  16  2.47012e-06
  17  6.48712e-05
  18  3.97583e-05
  19  1.53584e-06
  20  2.65077e-05
  21  3.41403
  22  1.30387e-07
  23  0.146259
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  7.606e-06  1.034e-01  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  1.463e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  1.304e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 3.40633794642e-06 ph cm-2 s-1
Energy Flux Upper Limit: 0.263958853203 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38730753/likelihoodResults_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.80748413
delta logL = -0.00135600539329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.806128432
delta logL = -3.0743399293e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.8061     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      222 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        473.11        .34209E-05** at limit **
   2  Index         1.8676        5.8862        .57321E-04     .0000    
   3  Normalizat    .10000E-01    .78043E-01    .13743E-04** at limit **
   4  Prefactor     .27935        .13617       -.11768E-04    .11678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.86763
  Normalizat = 0.01
  Prefactor  = 0.279345
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   815.8061     FROM HESSE     STATUS=FAILED        11 CALLS      233 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        473.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .36371        1.5801        .57321E-04   -.67702    
   3  Normalizat    .10000E-01    .25505        .13743E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27935        .58790       -.11768E-04   -1.2349    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.47708e-12
Minuit parameter uncertainties:
  1  9.92621e-05
  2  0.861504
  3  5.3571e-07
  4  0.601141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 815.806128114
delta logL = 1.08171889224e-08

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  9.926e-05  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  1.868e+00  8.615e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  2.793e-01  6.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.000e-02  5.357e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/38730753/cmap_HighResolution_811382401_811641601_4FGL_J1158.5+4824_daily_bin2207.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-01', job_status='DONE', photon_flux_upper_limit='3.41e-06', time_completed='2026-09-21 09:13:14.171122', job_id='38730753', GAL2='0.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1790007194.17', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='1.08e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='2207' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 21 09:13:14 PDT 2026

