/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J1558.8+5625_weekly_bin907
RA = 239.718, Dec = 56.4268
tmin = 787536001, tmax = 788140801
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='17775027', job_status='RUN', time_executed='2025-12-23 02:00:28.356167', time_epoch_executed='1766484028.36' WHERE source_name='4FGL J1558.8+5625' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17775027

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17775027/ft1_4FGL_J1558.8+5625_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17775027/ft1_4FGL_J1558.8+5625_weekly_bin907.fits outfile=/lscratch/kocevski/17775027/ft1_filteredMKT_4FGL_J1558.8+5625_weekly_bin907.fits ra=239.718 dec=56.4268 rad=12.0 tmin=787536001.0 tmax=788140801.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 4.91
user 4.16
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.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/17775027/ft1_filteredMKT_4FGL_J1558.8+5625_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17775027/ft1_filtered_4FGL_J1558.8+5625_weekly_bin907.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.83
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1372

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17775027/ft1_filtered_4FGL_J1558.8+5625_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17775027/ltcube_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.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/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.fits
.....................!
real 18.43
user 17.43
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17775027/ft1_filtered_4FGL_J1558.8+5625_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17775027/ltcube_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.fits outfile=/lscratch/kocevski/17775027/expmap_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.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/17775027/ltcube_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.fits
.....................!
real 67.09
user 62.41
sys 3.99

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

Setting source of interest to:
4FGL J1558.8+5625 @ 239.718 56.4268

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17775027/ft1_filtered_4FGL_J1558.8+5625_weekly_bin907.fits scfile=/lscratch/kocevski/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.fits outfile=/lscratch/kocevski/17775027/cmap_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.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=239.718 yref=56.4268 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.65
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17775027/ft1_filtered_4FGL_J1558.8+5625_weekly_bin907.fits scfile=/lscratch/kocevski/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.fits outfile=/lscratch/kocevski/17775027/cmap_HighResolution_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.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=239.718 yref=56.4268 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.67
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17775027/ft1_filtered_4FGL_J1558.8+5625_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17775027/Model_4FGL_J1558.8+5625_weekly_bin907.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/17775027/ft1_filtered_4FGL_J1558.8+5625_weekly_bin907.fits.....................!
real 40.93
user 39.77
sys 0.67

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17775027/ft1_filtered_4FGL_J1558.8+5625_weekly_bin907.fits', '/lscratch/kocevski/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.fits', expMap='/lscratch/kocevski/17775027/expmap_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.fits', expCube='/lscratch/kocevski/17775027/ltcube_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17775027/Model_4FGL_J1558.8+5625_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1558.8+5625'

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  3.885e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
319        Index:  2.116e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17775027/ft1_filtered_4FGL_J1558.8+5625_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17775027/ft2_4FGL_J1558.8+5625_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17775027/expmap_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17775027/ltcube_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17775027/Model_4FGL_J1558.8+5625_weekly_bin907.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) = 14853.688073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.991       1.0000          .0000       .10000E+07
     2 'Prefactor '    .41354E-04   1.0000          .0000       .10000E+07
     3 'norm      '    1.3720       1.0000          .0000       .10000E+07
     4 'Prefactor '    .29031E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .36253E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .18929E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .49625       1.0000          .0000       .10000E+07
     8 'norm      '    1.1627       1.0000          .0000       .10000E+07
     9 'Prefactor '    26.660       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7795       1.0000          .0000       .10000E+07
    11 'norm      '    .21289E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    31.985       1.0000          .0000       .10000E+07
    13 'Prefactor '    .91699E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .23261E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    5.4661       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.3704       1.0000          .0000       .10000E+07
    17 'norm      '    5.8495       1.0000          .0000       .10000E+07
    18 'Prefactor '    .79366       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.2935       1.0000          .0000       .10000E+07
    20 'norm      '    2.6143       1.0000          .0000       .10000E+07
    21 'Prefactor '    .84574       1.0000          .0000       .10000E+07
    22 'Prefactor '    5.9459       1.0000          .0000       .10000E+07
    23 'Prefactor '    .11760E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    7.6451       1.0000          .0000       .10000E+07
    25 'Prefactor '    .41580E-04   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0998       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83719       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14853.55     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1912 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.543        6.2710       -.46258E-08   -.63292E-01
   2  Prefactor     .17764E-08    2.6033        .14297E-07** at limit **
   3  norm          1.3726        .71081        .83000E-09    .16209E-04
   4  Prefactor      .0000        7.6471       -.10443E-06** at limit **
   5  Prefactor     .67113E-07    .83965        .36351E-08** at limit **
   6  Prefactor     .81601E-08    .76954        .10431E-07** at limit **
   7  Prefactor     .73971        45.799       -.14981E-06    .15591E-02
   8  norm          1.1595        1.0810        .66871E-08    .75328E-03
   9  Prefactor     27.400        45.921        .21347E-07   -.13865E-02
  10  Prefactor     2.7805        2.4933       -.28889E-07   -.20434E-02
  11  norm          .39968E-07    2.2172        .44532E-07** at limit **
  12  Prefactor     31.917        1.3427       -.13530E-08   -.73355E-02
  13  Prefactor     .12046E-07    19.919        .91359E-07** at limit **
  14  Prefactor      .0000        1.3551       -.62026E-07** at limit **
  15  Prefactor     5.3402        8.9521        .98999E-07    .49832E-02
  16  Prefactor     2.3713        2.6198        .29681E-08   -.14981E-03
  17  norm          5.8482        7.1025       -.16229E-07   -.37958E-02
  18  Prefactor     .80373        2.5157       -.31323E-07   -.91234E-03
  19  Prefactor     4.2382        3.9581       -.38932E-07   -.21834E-02
  20  norm          2.6112        5.2809        .11733E-07   -.15190E-03
  21  Prefactor     .84302        1.5345        .42835E-07    .18430E-02
  22  Prefactor     5.9595        5.3756       -.44454E-07   -.15561E-02
  23  Prefactor     .27756E-09    8.4316       -.14851E-06** at limit **
  24  Prefactor     7.6815        5.8513       -.71381E-09   -.54606E-03
  25  Prefactor     .13878E-07    2.7710        .15427E-07** at limit **
  26  Normalizat    1.1000        .12458       -.29605E-06   -.18703E-03
  27  Prefactor     .83703        .12577       -.29522E-07   -.14559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.5429
  Prefactor  = 1.77636e-09
  norm       = 1.37264
  Prefactor  = 0
  Prefactor  = 6.7113e-08
  Prefactor  = 8.16014e-09
  Prefactor  = 0.739705
  norm       = 1.15952
  Prefactor  = 27.4003
  Prefactor  = 2.78046
  norm       = 3.9968e-08
  Prefactor  = 31.9168
  Prefactor  = 1.20459e-08
  Prefactor  = 0
  Prefactor  = 5.34016
  Prefactor  = 2.37128
  norm       = 5.84815
  Prefactor  = 0.803734
  Prefactor  = 4.23819
  norm       = 2.61119
  Prefactor  = 0.843024
  Prefactor  = 5.95949
  Prefactor  = 2.77556e-10
  Prefactor  = 7.6815
  Prefactor  = 1.38778e-08
  Normalizat = 1.09996
  Prefactor  = 0.837025
 **********
 **   18 **HESSE 
 **********

 FCN=   14853.55     FROM HESSE     STATUS=OK           546 CALLS     2458 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.543        22.139        .15815E-03   -1.5582    
   2  Prefactor     .17764E-08    2.6450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3726        .70368        .93023E-03   -1.5685    
   4  Prefactor      .0000        7.5508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .67113E-07    2.9464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .81601E-08    3.2855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .73971        48.242        .79088E-03   -1.5691    
   8  norm          1.1595        1.0897        .10673E-02   -1.5686    
   9  Prefactor     27.400        45.933        .19371E-03   -1.5603    
  10  Prefactor     2.7805        2.4933        .61011E-03   -1.5675    
  11  norm          .39968E-07    3.2018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.917        18.849        .17684E-03   -1.5595    
  13  Prefactor     .12046E-07    20.183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.3551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.3402        9.0175        .42954E-03   -1.5662    
  16  Prefactor     2.3713        2.6325        .66523E-03   -1.5677    
  17  norm          5.8482        7.1179        .41500E-03   -1.5660    
  18  Prefactor     .80373        2.5259        .53409E-03   -1.5690    
  19  Prefactor     4.2382        3.9673        .48596E-03   -1.5667    
  20  norm          2.6112        5.2989        .63058E-03   -1.5676    
  21  Prefactor     .84302        1.5492        .49586E-03   -1.5690    
  22  Prefactor     5.9595        5.3882        .41157E-03   -1.5659    
  23  Prefactor     .27756E-09    8.4353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.6815        5.8590        .36245E-03   -1.5653    
  25  Prefactor     .13878E-07    3.0810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1000        .10751        .38008E-01   -.89753    
  27  Prefactor     .83703        .10826        .44199E-01   -.98378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84152e-06
Minuit parameter uncertainties:
  1  22.1386
  2  0.000136579
  3  0.703684
  4  9.36097e-06
  5  0.000889332
  6  0.000327005
  7  11.9475
  8  1.08969
  9  45.9338
  10  2.4933
  11  0.000715557
  12  18.8488
  13  0.000986537
  14  4.04381e-06
  15  9.01754
  16  2.63255
  17  7.11786
  18  2.52586
  19  3.96729
  20  5.2989
  21  1.54916
  22  5.38824
  23  9.86245e-05
  24  5.85896
  25  0.000413296
  26  0.107527
  27  0.108287
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  2.780e+00  2.493e+00  0.000e+00  1.000e+06 ( 1.000e-13)
319        Index:  2.116e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  8.370e-01  1.083e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  1.100e+00  1.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 239.718 56.427
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.33e-09 +/- 8.36e-09
Energy Flux (Fixed Index): 4.95e-06 +/- 4.44e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14853.1759117
delta logL = 0.369907441191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14853.1736128
delta logL = 0.372206343474

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14853.17     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      198 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9630        149.52        .58989E-03   -.31723E-02
   2  Index         1.5231        5.7796        .29560       -.54257E-04
   3  Normalizat    1.1057        .99040E-01    .37773E-01   -.12039E-04
   4  Prefactor     .83461        .70050E-01    .44167E-01    .91101E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.96305
  Index      = 1.5231
  Normalizat = 1.10574
  Prefactor  = 0.834611
 **********
 **   18 **HESSE 
 **********

 FCN=   14853.17     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9630        3.0778        .19846E-04   -1.5674    
   2  Index         1.5231        .66617        .15972E-01   -.76895    
   3  Normalizat    1.1057        .12079        .21681E-03   -.89568    
   4  Prefactor     .83461        .12406        .25158E-03   -.98465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55334e-12
Minuit parameter uncertainties:
  1  3.07776
  2  0.67005
  3  0.120819
  4  0.124106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14853.1736118
delta logL = 0.372207366219

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  2.963e+00  3.078e+00  0.000e+00  1.000e+06 ( 1.000e-13)
319        Index:  1.523e+00  6.701e-01  0.000e+00  1.000e+01 (-1.000e+00)
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  8.346e-01  1.241e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  1.106e+00  1.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.26
Ra Dec: 239.718 56.427
Photon Index (Free Index): 1.52 +/- 0.67
Photon Flux (Free Index): 3.92e-09 +/- 5.73e-09
Energy Flux (Free Index): 1.15e-05 +/- 1.74e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17775027/cmap_HighResolution_787536001_788140801_4FGL_J1558.8+5625_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.33e-09', energy_flux2='1.15e-05', photon_flux_error='8.36e-09', dlogl='3.72e-01', energy_flux='4.95e-06', photon_flux2='3.92e-09', job_status='DONE', time_completed='2025-12-23 02:15:25.194064', photon_index_error2='0.67', photon_index2='1.52', ts='4.52', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='1.10', time_epoch_completed='1766484925.19', return_code='0', job_id='17775027', GAL2='0.83', EG2='1.11', return_code2='0', energy_flux_error='4.44e-06', photon_flux_error2='5.73e-09', ts2='5.26', photon_index='2.12' WHERE bin_id='907' AND source_name='4FGL J1558.8+5625' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:15:25 PST 2025

