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


Performing analysis on: 4FGL_J2359.2-3134_weekly_bin934
RA = 359.817, Dec = -31.5832
tmin = 803865601, tmax = 804470401
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='31304284', job_status='RUN', time_executed='2026-07-11 00:47:51.388295', time_epoch_executed='1783756071.39' WHERE source_name='4FGL J2359.2-3134' and cadence='weekly' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31304284

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31304284/ft1_4FGL_J2359.2-3134_weekly_bin934.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31304284/ft1_4FGL_J2359.2-3134_weekly_bin934.fits outfile=/lscratch/kocevski/31304284/ft1_filteredMKT_4FGL_J2359.2-3134_weekly_bin934.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=803865601.0 tmax=804470401.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.16
user 3.20
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.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/31304284/ft1_filteredMKT_4FGL_J2359.2-3134_weekly_bin934.fits evtable="EVENTS" outfile="/lscratch/kocevski/31304284/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.03
user 0.25
sys 0.12

Number of photons that the gtmktime cut: 986

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31304284/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.fits sctable="SC_DATA
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).

" outfile=/lscratch/kocevski/31304284/ltcube_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.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/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.fits
.....................!
real 21.70
user 20.56
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31304284/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits evtable="EVENTS" scfile=/lscratch/kocevski/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31304284/ltcube_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits outfile=/lscratch/kocevski/31304284/expmap_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.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/31304284/ltcube_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits
.....................!
real 76.50
user 70.90
sys 4.43

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

Setting source of interest to:
4FGL J2359.2-3134 @ 359.817 -31.5832

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31304284/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits scfile=/lscratch/kocevski/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.fits outfile=/lscratch/kocevski/31304284/cmap_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.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.817 yref=-31.5832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.08
user 0.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31304284/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits scfile=/lscratch/kocevski/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.fits outfile=/lscratch/kocevski/31304284/cmap_HighResolution_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.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.817 yref=-31.5832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.64
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31304284/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits evtable="EVENTS" scfile=/lscratch/kocevski/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31304284/Model_4FGL_J2359.2-3134_weekly_bin934.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/31304284/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits.....................!
real 33.15
user 31.37
sys 0.62

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31304284/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits', '/lscratch/kocevski/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.fits', expMap='/lscratch/kocevski/31304284/expmap_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits', expCube='/lscratch/kocevski/31304284/ltcube_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31304284/Model_4FGL_J2359.2-3134_weekly_bin934.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.2-3134'

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  8.155e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31304284/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits
Spacecraft file(s): /lscratch/kocevski/31304284/ft2_4FGL_J2359.2-3134_weekly_bin934.fits
Exposure map: /lscratch/kocevski/31304284/expmap_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits
Exposure cube: /lscratch/kocevski/31304284/ltcube_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31304284/Model_4FGL_J2359.2-3134_weekly_bin934.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) = 10970.7488149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.665       1.0000          .0000       .10000E+07
     2 'Prefactor '    .53235E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    29.453       1.0000          .0000       .10000E+07
     4 'Prefactor '    11.178       1.0000          .0000       .10000E+07
     5 'norm      '    25.740       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10582       1.0000          .0000       .10000E+07
     7 'norm      '    3.9760       1.0000          .0000       .10000E+07
     8 'norm      '    4.0951       1.0000          .0000       .10000E+07
     9 'Prefactor '    .87618E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    31.652       1.0000          .0000       .10000E+07
    11 'norm      '    4.4362       1.0000          .0000       .10000E+07
    12 'norm      '    .40885       1.0000          .0000       .10000E+07
    13 'norm      '    .38858E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10142E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .10031E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    45.788       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84925       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10970.73     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     1527 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.663        1.0174       -.48696E-08    .17283E-02
   2  Prefactor     .55511E-10    .54596        .10537E-06** at limit **
   3  Prefactor     29.454        10.160        .20970E-06    .14572    
   4  Prefactor     11.179        2.4054        .21742E-06   -.23977E-01
   5  norm          25.739        5.6377       -.36278E-07   -.14759E-01
   6  Prefactor     .59903E-01    23.376        .30665E-05** at limit **
   7  norm          3.9758        3.1169        .11081E-06    .50787E-02
   8  norm          4.0926        5.5612       -.11607E-05   -.53949E-01
   9  Prefactor     .34084E-07    58.607       -.23534E-07** at limit **
  10  Prefactor     31.658        1.7957       -.92783E-07    .27466E-01
  11  norm          4.4329        3.2924        .25006E-07    .50510E-02
  12  norm          .40781        1.3623        .27715E-06    .92285E-02
  13  norm           .0000        1.6901       -.86570E-07** at limit **
  14  Prefactor     .34972E-08    9.3563        .61917E-06** at limit **
  15  Prefactor      .0000        1.1918        .54806E-07** at limit **
  16  Prefactor     45.803        6.0717       -.29709E-06    .17538    
  17  Normalizat    1.0690        .14576       -.65366E-06    .27458E-03
  18  Prefactor     .84956        .16337        .41178E-05    .33003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.6625
  Prefactor  = 5.55112e-11
  Prefactor  = 29.4536
  Prefactor  = 11.1786
  norm       = 25.7393
  Prefactor  = 0.0599029
  norm       = 3.97584
  norm       = 4.09261
  Prefactor  = 3.40838e-08
  Prefactor  = 31.6579
  norm       = 4.43289
  norm       = 0.407806
  norm       = 0
  Prefactor  = 3.4972e-09
  Prefactor  = 0
  Prefactor  = 45.8029
  Normalizat = 1.06896
  Prefactor  = 0.849559
 **********
 **   18 **HESSE 
 **********

 FCN=   10970.73     FROM HESSE     STATUS=OK           290 CALLS     1817 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.663        45.017        .14191E-03   -1.5567    
   2  Prefactor     .55511E-10    .55071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.454        11.026        .18429E-03   -1.5599    
   4  Prefactor     11.179        22.259        .29940E-03   -1.5641    
   5  norm          25.739        5.6586        .19714E-03   -1.5606    
   6  Prefactor     .59903E-01    2.2941        .10226E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9758        3.1216        .50559E-03   -1.5668    
   8  norm          4.0926        5.7922        .49794E-03   -1.5668    
   9  Prefactor     .34084E-07    58.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.658        35.106        .17777E-03   -1.5595    
  11  norm          4.4329        3.3004        .47787E-03   -1.5666    
  12  norm          .40781        1.3886        .88469E-03   -1.5695    
  13  norm           .0000        1.6993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .34972E-08    9.4080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.1887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.803        30.430        .14779E-03   -1.5573    
  17  Normalizat    1.0690        .12932        .39425E-01   -.90755    
  18  Prefactor     .84956        .13999        .44355E-01   -.97927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97886e-07
Minuit parameter uncertainties:
  1  45.017
  2  1.13239e-05
  3  11.0259
  4  22.2591
  5  5.65865
  6  0.741408
  7  3.12159
  8  5.7922
  9  0.00282658
  10  35.1066
  11  3.30039
  12  1.3886
  13  4.97901e-06
  14  0.000361494
  15  3.72824e-06
  16  30.4298
  17  0.129359
  18  0.14005
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  4.580e+01  3.043e+01  0.000e+00  1.000e+06 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.496e-01  1.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.069e+00  1.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.38
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 6.84e-06

TS (Fixed Index): 3.38
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 9.19524598785e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00719831980648 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31304284/likelihoodResults_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10970.7289996
delta logL = 7.70691076468e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10970.7289946
delta logL = 1.26675549836e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10970.73     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      241 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.693        36.130        .59176E-05    .71068E-02
   2  Index         2.6077        .60902        .82952E-02    .34172E-03
   3  Normalizat    1.0689        .14809        .22113E-03   -.83955E-03
   4  Prefactor     .84964        .16426        .27469E-03   -.70569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.6931
  Index      = 2.60769
  Normalizat = 1.06886
  Prefactor  = 0.849645
 **********
 **   18 **HESSE 
 **********

 FCN=   10970.73     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.693        34.946        .11835E-05   -1.5573    
   2  Index         2.6077        .58865        .33181E-03   -.49890    
   3  Normalizat    1.0689        .14817        .44225E-04   -.90758    
   4  Prefactor     .84964        .16432        .54939E-04   -.97923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39106e-09
Minuit parameter uncertainties:
  1  34.9461
  2  0.590425
  3  0.148227
  4  0.164418
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) = 10970.7289943
delta logL = 1.30036132759e-05

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  4.569e+01  3.495e+01  0.000e+00  1.000e+06 ( 1.000e-13)
591        Index:  2.608e+00  5.904e-01  0.000e+00  1.000e+01 (-1.000e+00)
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.496e-01  1.644e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.069e+00  1.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 2.61 +/- 0.59
Photon Flux (Free Index): 3.95e-08 +/- 3.00e-08
Energy Flux (Free Index): 1.03e-05 +/- 7.05e-06

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/31304284/cmap_HighResolution_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='1.03e-05', photon_flux_error='2.62e-08', dlogl='1.30e-05', energy_flux='1.03e-05', photon_flux2='3.95e-08', job_status='DONE', time_completed='2026-07-11 01:00:31.314086', photon_index_error2='0.59', photon_index2='2.61', ts='3.38', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='9.20e-08', energy_flux_error2='7.05e-06', EG='1.07', time_epoch_completed='1783756831.31', return_code='0', job_id='31304284', GAL2='0.85', EG2='1.07', return_code2='0', energy_flux_error='6.84e-06', photon_flux_error2='3.00e-08', ts2='3.36', photon_index='2.60' WHERE bin_id='934' AND source_name='4FGL J2359.2-3134' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 11 01:00:31 PDT 2026

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


Performing analysis on: 4FGL_J2359.2-3134_weekly_bin934
RA = 359.817, Dec = -31.5832
tmin = 803865601, tmax = 804470401
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='31304745', job_status='RUN', time_executed='2026-07-11 00:55:15.912127', time_epoch_executed='1783756515.91' WHERE source_name='4FGL J2359.2-3134' and cadence='weekly' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31304745

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31304745/ft1_4FGL_J2359.2-3134_weekly_bin934.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31304745/ft1_4FGL_J2359.2-3134_weekly_bin934.fits outfile=/lscratch/kocevski/31304745/ft1_filteredMKT_4FGL_J2359.2-3134_weekly_bin934.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=803865601.0 tmax=804470401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.99
user 3.18
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.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/31304745/ft1_filteredMKT_4FGL_J2359.2-3134_weekly_bin934.fits evtable="EVENTS" outfile="/lscratch/kocevski/31304745/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.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.91
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 986

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31304745/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31304745/ltcube_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.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/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.fits
.....................!
real 20.99
user 20.14
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31304745/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits evtable="EVENTS" scfile=/lscratch/kocevski/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31304745/ltcube_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits outfile=/lscratch/kocevski/31304745/expmap_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.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/31304745/ltcube_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits
.....................!
real 73.31
user 68.34
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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J2359.2-3134 @ 359.817 -31.5832

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31304745/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits scfile=/lscratch/kocevski/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.fits outfile=/lscratch/kocevski/31304745/cmap_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.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.817 yref=-31.5832 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.77
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31304745/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits scfile=/lscratch/kocevski/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.fits outfile=/lscratch/kocevski/31304745/cmap_HighResolution_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.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.817 yref=-31.5832 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.88
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31304745/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits evtable="EVENTS" scfile=/lscratch/kocevski/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31304745/Model_4FGL_J2359.2-3134_weekly_bin934.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/31304745/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits.....................!
real 33.15
user 31.26
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31304745/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits', '/lscratch/kocevski/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.fits', expMap='/lscratch/kocevski/31304745/expmap_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits', expCube='/lscratch/kocevski/31304745/ltcube_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31304745/Model_4FGL_J2359.2-3134_weekly_bin934.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.2-3134'

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  8.155e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31304745/ft1_filtered_4FGL_J2359.2-3134_weekly_bin934.fits
Spacecraft file(s): /lscratch/kocevski/31304745/ft2_4FGL_J2359.2-3134_weekly_bin934.fits
Exposure map: /lscratch/kocevski/31304745/expmap_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits
Exposure cube: /lscratch/kocevski/31304745/ltcube_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31304745/Model_4FGL_J2359.2-3134_weekly_bin934.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) = 10970.7488149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.665       1.0000          .0000       .10000E+07
     2 'Prefactor '    .53235E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    29.453       1.0000          .0000       .10000E+07
     4 'Prefactor '    11.178       1.0000          .0000       .10000E+07
     5 'norm      '    25.740       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10582       1.0000          .0000       .10000E+07
     7 'norm      '    3.9760       1.0000          .0000       .10000E+07
     8 'norm      '    4.0951       1.0000          .0000       .10000E+07
     9 'Prefactor '    .87618E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    31.652       1.0000          .0000       .10000E+07
    11 'norm      '    4.4362       1.0000          .0000       .10000E+07
    12 'norm      '    .40885       1.0000          .0000       .10000E+07
    13 'norm      '    .38858E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10142E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .10031E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    45.788       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84925       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10970.73     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     1527 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.663        1.0174       -.48696E-08    .17283E-02
   2  Prefactor     .55511E-10    .54596        .10537E-06** at limit **
   3  Prefactor     29.454        10.160        .20970E-06    .14572    
   4  Prefactor     11.179        2.4054        .21742E-06   -.23977E-01
   5  norm          25.739        5.6377       -.36278E-07   -.14759E-01
   6  Prefactor     .59903E-01    23.376        .30665E-05** at limit **
   7  norm          3.9758        3.1169        .11081E-06    .50787E-02
   8  norm          4.0926        5.5612       -.11607E-05   -.53949E-01
   9  Prefactor     .34084E-07    58.607       -.23534E-07** at limit **
  10  Prefactor     31.658        1.7957       -.92783E-07    .27466E-01
  11  norm          4.4329        3.2924        .25006E-07    .50510E-02
  12  norm          .40781        1.3623        .27715E-06    .92285E-02
  13  norm           .0000        1.6901       -.86570E-07** at limit **
  14  Prefactor     .34972E-08    9.3563        .61917E-06** at limit **
  15  Prefactor      .0000        1.1918        .54806E-07** at limit **
  16  Prefactor     45.803        6.0717       -.29709E-06    .17538    
  17  Normalizat    1.0690        .14576       -.65366E-06    .27458E-03
  18  Prefactor     .84956        .16337        .41178E-05    .33003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.6625
  Prefactor  = 5.55112e-11
  Prefactor  = 29.4536
  Prefactor  = 11.1786
  norm       = 25.7393
  Prefactor  = 0.0599029
  norm       = 3.97584
  norm       = 4.09261
  Prefactor  = 3.40838e-08
  Prefactor  = 31.6579
  norm       = 4.43289
  norm       = 0.407806
  norm       = 0
  Prefactor  = 3.4972e-09
  Prefactor  = 0
  Prefactor  = 45.8029
  Normalizat = 1.06896
  Prefactor  = 0.849559
 **********
 **   18 **HESSE 
 **********

 FCN=   10970.73     FROM HESSE     STATUS=OK           290 CALLS     1817 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.663        45.017        .14191E-03   -1.5567    
   2  Prefactor     .55511E-10    .55071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.454        11.026        .18429E-03   -1.5599    
   4  Prefactor     11.179        22.259        .29940E-03   -1.5641    
   5  norm          25.739        5.6586        .19714E-03   -1.5606    
   6  Prefactor     .59903E-01    2.2941        .10226E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9758        3.1216        .50559E-03   -1.5668    
   8  norm          4.0926        5.7922        .49794E-03   -1.5668    
   9  Prefactor     .34084E-07    58.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.658        35.106        .17777E-03   -1.5595    
  11  norm          4.4329        3.3004        .47787E-03   -1.5666    
  12  norm          .40781        1.3886        .88469E-03   -1.5695    
  13  norm           .0000        1.6993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .34972E-08    9.4080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.1887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.803        30.430        .14779E-03   -1.5573    
  17  Normalizat    1.0690        .12932        .39425E-01   -.90755    
  18  Prefactor     .84956        .13999        .44355E-01   -.97927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97886e-07
Minuit parameter uncertainties:
  1  45.017
  2  1.13239e-05
  3  11.0259
  4  22.2591
  5  5.65865
  6  0.741408
  7  3.12159
  8  5.7922
  9  0.00282658
  10  35.1066
  11  3.30039
  12  1.3886
  13  4.97901e-06
  14  0.000361494
  15  3.72824e-06
  16  30.4298
  17  0.129359
  18  0.14005
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  4.580e+01  3.043e+01  0.000e+00  1.000e+06 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.496e-01  1.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.069e+00  1.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.38
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 6.84e-06

TS (Fixed Index): 3.38
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 9.19524598785e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00719831980648 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31304745/likelihoodResults_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10970.7289996
delta logL = 7.70691076468e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10970.7289946
delta logL = 1.26675549836e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10970.73     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      241 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.693        36.130        .59176E-05    .71068E-02
   2  Index         2.6077        .60902        .82952E-02    .34172E-03
   3  Normalizat    1.0689        .14809        .22113E-03   -.83955E-03
   4  Prefactor     .84964        .16426        .27469E-03   -.70569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.6931
  Index      = 2.60769
  Normalizat = 1.06886
  Prefactor  = 0.849645
 **********
 **   18 **HESSE 
 **********

 FCN=   10970.73     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.693        34.946        .11835E-05   -1.5573    
   2  Index         2.6077        .58865        .33181E-03   -.49890    
   3  Normalizat    1.0689        .14817        .44225E-04   -.90758    
   4  Prefactor     .84964        .16432        .54939E-04   -.97923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39106e-09
Minuit parameter uncertainties:
  1  34.9461
  2  0.590425
  3  0.148227
  4  0.164418
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) = 10970.7289943
delta logL = 1.30036132759e-05

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  4.569e+01  3.495e+01  0.000e+00  1.000e+06 ( 1.000e-13)
591        Index:  2.608e+00  5.904e-01  0.000e+00  1.000e+01 (-1.000e+00)
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.496e-01  1.644e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.069e+00  1.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 2.61 +/- 0.59
Photon Flux (Free Index): 3.95e-08 +/- 3.00e-08
Energy Flux (Free Index): 1.03e-05 +/- 7.05e-06

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/31304745/cmap_HighResolution_803865601_804470401_4FGL_J2359.2-3134_weekly_bin934.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='1.03e-05', photon_flux_error='2.62e-08', dlogl='1.30e-05', energy_flux='1.03e-05', photon_flux2='3.95e-08', job_status='DONE', time_completed='2026-07-11 01:06:46.688704', photon_index_error2='0.59', photon_index2='2.61', ts='3.38', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='9.20e-08', energy_flux_error2='7.05e-06', EG='1.07', time_epoch_completed='1783757206.69', return_code='0', job_id='31304745', GAL2='0.85', EG2='1.07', return_code2='0', energy_flux_error='6.84e-06', photon_flux_error2='3.00e-08', ts2='3.36', photon_index='2.60' WHERE bin_id='934' AND source_name='4FGL J2359.2-3134' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 11 01:06:47 PDT 2026

