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


Performing analysis on: 4FGL_J2358.0-4601_weekly_bin925
RA = 359.522, Dec = -46.0176
tmin = 798422401, tmax = 799027201
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='25874749', job_status='RUN', time_executed='2026-04-28 01:52:08.066998', time_epoch_executed='1777366328.07' WHERE source_name='4FGL J2358.0-4601' and cadence='weekly' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/25874749

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/25874749/ft1_4FGL_J2358.0-4601_weekly_bin925.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/25874749/ft1_4FGL_J2358.0-4601_weekly_bin925.fits outfile=/lscratch/kocevski/25874749/ft1_filteredMKT_4FGL_J2358.0-4601_weekly_bin925.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=798422401.0 tmax=799027201.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.75
user 4.30
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.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/25874749/ft1_filteredMKT_4FGL_J2358.0-4601_weekly_bin925.fits evtable="EVENTS" outfile="/lscratch/kocevski/25874749/ft1_filtered_4FGL_J2358.0-4601_weekly_bin925.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.45
user 0.18
sys 0.12

Number of photons that the gtmktime cut: 1356

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/25874749/ft1_filtered_4FGL_J2358.0-4601_weekly_bin925.fits" evtable="EVENTS" scfile=/lscratch/kocevski/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.fits sctable="SC_DATA" outfile=/lscratch/kocevski/25874749/ltcube_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.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/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.fits
.....................!
real 19.48
user 18.96
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/25874749/ft1_filtered_4FGL_J2358.0-4601_weekly_bin925.fits evtable="EVENTS" scfile=/lscratch/kocevski/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.fits sctable="SC_DATA" expcube=/lscratch/kocevski/25874749/ltcube_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.fits outfile=/lscratch/kocevski/25874749/expmap_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.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/25874749/ltcube_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.fits
.....................!
real 61.91
user 57.85
sys 3.53

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

Setting source of interest to:
4FGL J2358.0-4601 @ 359.522 -46.0176

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/25874749/ft1_filtered_4FGL_J2358.0-4601_weekly_bin925.fits scfile=/lscratch/kocevski/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.fits outfile=/lscratch/kocevski/25874749/cmap_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.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=359.522 yref=-46.0176 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.48
user 0.21
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/25874749/ft1_filtered_4FGL_J2358.0-4601_weekly_bin925.fits scfile=/lscratch/kocevski/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.fits outfile=/lscratch/kocevski/25874749/cmap_HighResolution_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.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=359.522 yref=-46.0176 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.46
user 0.20
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/25874749/ft1_filtered_4FGL_J2358.0-4601_weekly_bin925.fits evtable="EVENTS" scfile=/lscratch/kocevski/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/25874749/Model_4FGL_J2358.0-4601_weekly_bin925.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/25874749/ft1_filtered_4FGL_J2358.0-4601_weekly_bin925.fits.....................!
real 31.03
user 29.93
sys 0.63

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/25874749/ft1_filtered_4FGL_J2358.0-4601_weekly_bin925.fits', '/lscratch/kocevski/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.fits', expMap='/lscratch/kocevski/25874749/expmap_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.fits', expCube='/lscratch/kocevski/25874749/ltcube_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/25874749/Model_4FGL_J2358.0-4601_weekly_bin925.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.0-4601'

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.024e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
570        Index:  2.582e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
571        Scale:  6.628e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/25874749/ft1_filtered_4FGL_J2358.0-4601_weekly_bin925.fits
Spacecraft file(s): /lscratch/kocevski/25874749/ft2_4FGL_J2358.0-4601_weekly_bin925.fits
Exposure map: /lscratch/kocevski/25874749/expmap_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.fits
Exposure cube: /lscratch/kocevski/25874749/ltcube_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/25874749/Model_4FGL_J2358.0-4601_weekly_bin925.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 14686.9294722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 14682.2745233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.651       1.0000          .0000       .10000E+07
     2 'Prefactor '    .22769E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.3968       1.0000          .0000       .10000E+07
     4 'Prefactor '    .31336E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.1399       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.5499       1.0000          .0000       .10000E+07
     7 'Prefactor '    13.145       1.0000          .0000       .10000E+07
     8 'norm      '    4.0720       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20757E-02   1.0000          .0000       .10000E+07
    10 'norm      '    61.514       1.0000          .0000       .10000E+07
    11 'Prefactor '    51.432       1.0000          .0000       .10000E+07
    12 'Prefactor '    52.313       1.0000          .0000       .10000E+07
    13 'Prefactor '    .58366E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .11097E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .27965E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.2302       1.0000          .0000       .10000E+07
    17 'norm      '    11.401       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.8788       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29413E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .55494       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.2627       1.0000          .0000       .10000E+07
    22 'norm      '    .19530       1.0000          .0000       .10000E+07
    23 'norm      '    3.4830       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.8877       1.0000          .0000       .10000E+07
    25 'Prefactor '    2.9194       1.0000          .0000       .10000E+07
    26 'Prefactor '    .18375E-03   1.0000          .0000       .10000E+07
    27 'norm      '    6.5431       1.0000          .0000       .10000E+07
    28 'Prefactor '    6.6113       1.0000          .0000       .10000E+07
    29 'Prefactor '    .24103E-06   1.0000          .0000       .10000E+07
    30 'Normalizat'    .99816       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .71128       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14682.27     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     1842 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.854        33.801        .15857E-05   -.72988E-02
   2  Prefactor     1.2310        23.018        .42632E-05    .27301E-03
   3  Prefactor     8.9892        16.242       -.23147E-05   -.57731E-02
   4  Prefactor      .0000        4.7894       -.97149E-07** at limit **
   5  Prefactor     2.1441        2.3401        .24099E-06    .24507E-03
   6  Prefactor     1.5423        2.1227       -.68285E-07    .12605E-03
   7  Prefactor     13.168        3.6533        .73904E-07    .25100E-02
   8  norm          4.1159        2.4479       -.33432E-06   -.11796E-01
   9  Prefactor      .0000        6.4407        .15243E-05** at limit **
  10  norm          62.072        12.012        .78909E-06    .31615E-02
  11  Prefactor     52.901        53.187        .22691E-05   -.27859E-02
  12  Prefactor     52.196        4.8680       -.40415E-07    .80854E-01
  13  Prefactor      .0000        2.1600        .46556E-06** at limit **
  14  norm           .0000        1.9953        .54155E-06** at limit **
  15  norm           .0000        1.7631        .10772E-05** at limit **
  16  norm          1.2316        1.4238        .29248E-07   -.84566E-04
  17  norm          11.409        4.7851       -.80798E-07   -.27295E-03
  18  Prefactor     4.8646        3.2085        .38406E-06   -.13037E-02
  19  Prefactor     .44409E-09    15.340       -.32378E-06** at limit **
  20  norm          .56137        1.5015       -.41077E-06    .18006E-03
  21  Prefactor     1.2960        9.1637        .30852E-05    .12214E-03
  22  norm          .19740        .45443       -.11065E-06** at limit **
  23  norm          3.4877        2.1472       -.48872E-06    .13591E-02
  24  Prefactor     1.9148        5.3834       -.60825E-06    .44723E-03
  25  Prefactor     2.9172        1.6585       -.36654E-06   -.18486E-02
  26  Prefactor      .0000        12.841       -.19975E-05** at limit **
  27  norm          6.5223        7.0860        .12177E-05    .53278E-03
  28  Prefactor     6.6225        3.2436        .90481E-07   -.37974E-03
  29  Prefactor      .0000        1.9165        .52832E-06** at limit **
  30  Normalizat    .99625        .12112        .44341E-05    .10597E-04
  31  Prefactor     .71180        .13128       -.10257E-04    .18714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.8544
  Prefactor  = 1.23097
  Prefactor  = 8.98918
  Prefactor  = 0
  Prefactor  = 2.14406
  Prefactor  = 1.54235
  Prefactor  = 13.1679
  norm       = 4.11587
  Prefactor  = 0
  norm       = 62.0718
  Prefactor  = 52.901
  Prefactor  = 52.1963
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 1.23159
  norm       = 11.4094
  Prefactor  = 4.86462
  Prefactor  = 4.44089e-10
  norm       = 0.561368
  Prefactor  = 1.296
  norm       = 0.197404
  norm       = 3.48771
  Prefactor  = 1.91482
  Prefactor  = 2.91721
  Prefactor  = 0
  norm       = 6.52226
  Prefactor  = 6.62249
  Prefactor  = 0
  Normalizat = 0.99625
  Prefactor  = 0.711805
 **********
 **   18 **HESSE 
 **********

 FCN=   14682.27     FROM HESSE     STATUS=OK           700 CALLS     2542 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.854        33.901        .10743E-03   -1.5523    
   2  Prefactor     1.2310        7.3055        .99911E-02   -1.5686    
   3  Prefactor     8.9892        20.754        .32669E-03   -1.5648    
   4  Prefactor      .0000        4.7583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1441        2.3445        .70431E-03   -1.5679    
   6  Prefactor     1.5423        2.1450        .85529E-03   -1.5683    
   7  Prefactor     13.168        3.6532        .27602E-03   -1.5635    
   8  norm          4.1159        19.340        .49940E-03   -1.5667    
   9  Prefactor      .0000        6.4226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          62.072        21.253        .12751E-03   -1.5550    
  11  Prefactor     52.901        53.103        .13945E-03   -1.5562    
  12  Prefactor     52.196        23.830        .13827E-03   -1.5563    
  13  Prefactor      .0000        2.1579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.9946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.7495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2316        1.4372        .10136E-02   -1.5686    
  17  norm          11.409        4.7822        .29644E-03   -1.5640    
  18  Prefactor     4.8646        3.2975        .45516E-03   -1.5664    
  19  Prefactor     .44409E-09    15.448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .56137        1.5379        .73365E-03   -1.5693    
  21  Prefactor     1.2960        9.6969        .99169E-03   -1.5685    
  22  norm          .19740        .43000        .11860E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.4877        2.1723        .54156E-03   -1.5671    
  24  Prefactor     1.9148        5.4089        .75716E-03   -1.5680    
  25  Prefactor     2.9172        1.6654        .59432E-03   -1.5674    
  26  Prefactor      .0000        12.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.5223        7.0794        .39209E-03   -1.5657    
  28  Prefactor     6.6225        3.2502        .39004E-03   -1.5656    
  29  Prefactor      .0000        1.8942        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .99625        .10159        .46144E-01   -.93156    
  31  Prefactor     .71180        .10948        .62088E-01   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81462e-08
Minuit parameter uncertainties:
  1  33.901
  2  5.99765
  3  20.754
  4  4.26065e-06
  5  2.34453
  6  2.14496
  7  3.65317
  8  17.8439
  9  1.5633e-05
  10  21.2526
  11  53.1035
  12  23.8301
  13  2.58429e-06
  14  4.1691e-06
  15  2.19999e-06
  16  1.43724
  17  4.78223
  18  3.29754
  19  0.000160547
  20  1.53785
  21  7.09008
  22  0.430001
  23  2.1723
  24  5.40896
  25  1.66543
  26  1.54909e-05
  27  7.0794
  28  3.25019
  29  1.48125e-06
  30  0.101612
  31  0.109518
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  0.000e+00  1.481e-06  0.000e+00  1.000e+06 ( 1.000e-12)
570        Index:  2.582e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
571        Scale:  6.628e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.118e-01  1.095e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  9.962e-01  1.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 359.522 -46.018
Photon Flux Upper Limit: 3.6107865031e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0028227303728 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/25874749/likelihoodResults_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.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) = 14682.2786131
delta logL = -0.0121356474992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14682.2119297
delta logL = 0.0545477461874

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14682.21     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      285 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98159E-01    .75883        .13971E-02** at limit **
   2  Index         4.1991        .69732        .50000        .11962E-04
   3  Normalizat    .98420        .58329E-02    .45969E-01    .60079E-05
   4  Prefactor     .71996        .66476E-02    .61769E-01    .43200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0981591
  Index      = 4.19906
  Normalizat = 0.984203
  Prefactor  = 0.719959
 **********
 **   18 **HESSE 
 **********

 FCN=   14682.21     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      320 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98159E-01    40.410        .83255E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1991        7.8903        .67745E-02   -.16088    
   3  Normalizat    .98420        .77305E-01    .20906E-03   -.93562    
   4  Prefactor     .71996        .77055E-01    .27323E-03   -1.0275    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.16554e-06
Minuit parameter uncertainties:
  1  3.9833
  2  22.0182
  3  0.0773136
  4  0.0770662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14682.2119295
delta logL = 0.054547947153

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  9.816e-02  3.983e+00  0.000e+00  1.000e+06 ( 1.000e-12)
570        Index:  4.199e+00  2.202e+01  0.000e+00  1.000e+01 (-1.000e+00)
571        Scale:  6.628e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.200e-01  7.707e-02  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  9.842e-01  7.731e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 359.522 -46.018

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/25874749/cmap_HighResolution_798422401_799027201_4FGL_J2358.0-4601_weekly_bin925.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-03', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2026-04-28 02:00:12.433497', job_id='25874749', GAL2='0.72', fit_tolerance='1e-08', EG2='0.98', EG='1.00', time_epoch_completed='1777366812.43', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='5.45e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='925' AND source_name='4FGL J2358.0-4601' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 28 02:00:12 PDT 2026

