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


Performing analysis on: 4FGL_J2237.0-3921_weekly_bin938
RA = 339.269, Dec = -39.357
tmin = 806284801, tmax = 806889601
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='33484961', job_status='RUN', time_executed='2026-07-28 20:12:30.576799', time_epoch_executed='1785294750.58' WHERE source_name='4FGL J2237.0-3921' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33484961

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33484961/ft1_4FGL_J2237.0-3921_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33484961/ft1_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33484961/ft1_filteredMKT_4FGL_J2237.0-3921_weekly_bin938.fits ra=339.269 dec=-39.357 rad=12.0 tmin=806284801.0 tmax=806889601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.25
user 4.35
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.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/33484961/ft1_filteredMKT_4FGL_J2237.0-3921_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33484961/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.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.02
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1057

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33484961/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.fits sctable="SC_DATA"/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).

 outfile=/lscratch/kocevski/33484961/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.fits
.....................!
real 16.18
user 15.25
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33484961/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33484961/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33484961/expmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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/33484961/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits
.....................!
real 60.19
user 55.76
sys 3.55

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

Setting source of interest to:
4FGL J2237.0-3921 @ 339.269 -39.357

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33484961/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits scfile=/lscratch/kocevski/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33484961/cmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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=339.269 yref=-39.357 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.14
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33484961/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits scfile=/lscratch/kocevski/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33484961/cmap_HighResolution_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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=339.269 yref=-39.357 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.20
user 0.20
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33484961/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33484961/Model_4FGL_J2237.0-3921_weekly_bin938.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 sourcnumber of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2237.0-3921_weekly_bin938
RA = 339.269, Dec = -39.357
tmin = 806284801, tmax = 806889601
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='33485127', job_status='RUN', time_executed='2026-07-28 20:15:31.873093', time_epoch_executed='1785294931.87' WHERE source_name='4FGL J2237.0-3921' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33485127

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33485127/ft1_4FGL_J2237.0-3921_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33485127/ft1_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33485127/ft1_filteredMKT_4FGL_J2237.0-3921_weekly_bin938.fits ra=339.269 dec=-39.357 rad=12.0 tmin=806284801.0 tmax=806889601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.37
user 4.25
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.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/33485127/ft1_filteredMKT_4FGL_J2237.0-3921_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33485127/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.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.96
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 1057

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33485127/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.fits sctable="SC_DATA"e GAL_V02
Working on...
/lscratch/kocevski/33484961/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits.....................!
real 27.76
user 25.64
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33484961/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits', '/lscratch/kocevski/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.fits', expMap='/lscratch/kocevski/33484961/expmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits', expCube='/lscratch/kocevski/33484961/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33484961/Model_4FGL_J2237.0-3921_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2237.0-3921'

4FGL J2237.0-3921
   Spectrum: PowerLaw
290    Prefactor:  5.768e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  2.381e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  9.499e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33484961/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33484961/ft2_4FGL_J2237.0-3921_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33484961/expmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33484961/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33484961/Model_4FGL_J2237.0-3921_weekly_bin938.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) = 11377.1964745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7483       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.3334       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.6047       1.0000          .0000       .10000E+07
     4 'norm      '    .49960E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    32.957       1.0000          .0000       .10000E+07
     6 'Prefactor '    .76624       1.0000          .0000       .10000E+07
     7 'Prefactor '    .64282E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    19.731       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.8807       1.0000          .0000       .10000E+07
    10 'Prefactor '    15.352       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.4963       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.4874       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.6601       1.0000          .0000       .10000E+07
    14 'norm      '    .78806       1.0000          .0000       .10000E+07
    15 'Prefactor '    8.4803       1.0000          .0000       .10000E+07
    16 'norm      '     .0000       1.0000          .0000       .10000E+07
    17 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
    18 'norm      '    32.916       1.0000          .0000       .10000E+07
    19 'Prefactor '    .37748E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    .80491E-08   1.0000          .0000       .10000E+07
    21 'norm      '    4.6678       1.0000          .0000       .10000E+07
    22 'norm      '    1.6144       1.0000          .0000       .10000E+07
    23 'Normalizat'    .94530       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11377.19     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2331 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7482        3.2645       -.80994E-08    .39337E-02
   2  Prefactor     3.3334        3.4508       -.10332E-05   -.10340E-01
   3  Prefactor     4.6044        3.1620        .55250E-06   -.92728E-02
   4  norm           .0000        2.6893       -.16418E-07** at limit **
   5  Prefactor     32.959        1.0200       -.17460E-07    .21862E-01
   6  Prefactor     .76619        .55382       -.12538E-06    .45215E-02
   7  Prefactor     .55511E-10    2.1395       -.11145E-06** at limit **
   8  Prefactor     19.713        1.6426        .16606E-06   -.13636    
   9  Prefactor     6.8811        3.8286        .17429E-06    .40840E-02
  10  Prefactor     15.351        1.0427        .36234E-07   -.23772E-01
  11  Prefactor     5.4985        1.0161       -.67139E-08    .32697E-02
  12  Prefactor     2.4871        3.6606        .21511E-06    .10169E-01
  13  Prefactor     2.6609        3.8385        .69754E-06    .17298E-01
  14  norm          .78819        1.9750        .77203E-06    .54156E-02
  15  Prefactor     8.4813        1.0153       -.15134E-07    .58080E-02
  16  norm           .0000        1.9508        .17269E-08** at limit **
  17  norm           .0000        1.2441       -.12437E-07** at limit **
  18  norm          32.914        1.0772       -.12501E-07    .24208E-02
  19  Prefactor     .55511E-10    7.7151        .18863E-07** at limit **
  20  Prefactor     .18874E-08    13.280        .21850E-07** at limit **
  21  norm          4.6681        2.4857       -.11182E-08    .39589E-02
  22  norm          1.6145        1.9494       -.39338E-07   -.24458E-03
  23  Normalizat    .94527        .13826       -.30968E-05   -.30385E-03
  24  Prefactor     .76483        .13560        .15291E-05   -.22781E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.74823
  Prefactor  = 3.33335
  Prefactor  = 4.60438
  norm       = 0
  Prefactor  = 32.9588
  Prefactor  = 0.766191
  Prefactor  = 5.55112e-11
  Prefactor  = 19.7132
  Prefactor  = 6.88114
  Prefactor  = 15.3509
  Prefactor  = 5.49845
  Prefactor  = 2.48711
  Prefactor  = 2.6609
  norm       = 0.788191
  Prefactor  = 8.48126
  norm       = 0
  norm       = 0
  norm       = 32.9142
  Prefactor  = 5.55112e-11
  Prefactor  = 1.88738e-09
  norm       = 4.66809
  norm       = 1.61455
  Normalizat = 0.945269
  Prefactor  = 0.764834
 **********
 **   18 **HESSE 
 **********

 FCN=   11377.19     FROM HESSE     STATUS=OK           453 CALLS     2784 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7482        3.2919        .32071E-03   -1.5646    
   2  Prefactor     3.3334        4.6879        .55413E-03   -1.5671    
   3  Prefactor     4.6044        4.6543        .46882E-03   -1.5665    
   4  norm           .0000        2.6917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.959        18.909        .17421E-03   -1.5593    
   6  Prefactor     .76619        3.3721        .55486E-03   -1.5690    
   7  Prefactor     .55511E-10    2.1092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.713        27.580        .22520E-03   -1.5619    
   9  Prefactor     6.8811        4.1823        .38224E-03   -1.5655    
  10  Prefactor     15.351        12.946        .25536E-03   -1.5630    
  11  Prefactor     5.4985        14.585        .42834E-03   -1.5661    
  12  Prefactor     2.4871        4.7263        .64787E-03   -1.5676    
  13  Prefactor     2.6609        4.5547        .62469E-03   -1.5675    
  14  norm          .78819        2.0732        .53829E-03   -1.5690    
  15  Prefactor     8.4813        17.546        .34400E-03   -1.5650    
  16  norm           .0000        1.9593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.2438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          32.914        7.7311        .17432E-03   -1.5593    
  19  Prefactor     .55511E-10    7.7171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .18874E-08    13.291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6681        2.5065        .46556E-03   -1.5665    
  22  norm          1.6145        1.9781        .83306E-03   -1.5683    
  23  Normalizat    .94527        .12122        .45478E-01   -.94887    
  24  Prefactor     .76483        .11538        .43257E-01   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03522e-07
Minuit parameter uncertainties:
  1  3.29189
  2  4.68795
  3  4.65428
  4  1.26753e-05
  5  18.9087
  6  3.21477
  7  2.49356e-05
  8  27.5802
  9  4.1823
  10  12.9462
  11  14.5849
  12  4.72632
  13  4.55468
  14  2.07323
  15  17.5457
  16  2.23505e-07
  17  5.19264e-06
  18  7.73114
  19  3.69917e-05
  20  0.00031908
  21  2.50651
  22  1.97805
  23  0.121255
  24  0.115413
Done.

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

Extracting fit parameters...

4FGL J2237.0-3921
   Spectrum: PowerLaw
290    Prefactor:  5.498e+00  1.458e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  2.381e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  9.499e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  7.648e-01  1.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.453e-01  1.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 339.269 -39.357
Photon Flux Upper Limit: 5.73533961559e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00442606575405 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33484961/likelihoodResults_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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) = 11376.883721
delta logL = 0.303393715994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11376.8835493
delta logL = 0.30356542172

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11376.88     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      394 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1847        23.687        .10490E-02    .24858E-01
   2  Index         3.8951        2.8815        .15379        .16220E-03
   3  Normalizat    .91604        .23528E-01    .45106E-01   -.22900E-03
   4  Prefactor     .78453        .23277E-01    .43516E-01   -.15344E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18471
  Index      = 3.89514
  Normalizat = 0.916042
  Prefactor  = 0.784525
 **********
 **   18 **HESSE 
 **********

 FCN=   11376.88     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      427 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1847        78.805        .13043E-04   -1.5686    
   2  Index         3.8951        6.8108        .84703E-02   -.22281    
   3  Normalizat    .91604        .10884        .22795E-03   -.95899    
   4  Prefactor     .78453        .10680        .24080E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5896e-06
Minuit parameter uncertainties:
  1  19.325
  2  8.1936
  3  0.10887
  4  0.106828
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) = 11376.8835433
delta logL = 0.303571435335

Extracting fit parameters...

4FGL J2237.0-3921
   Spectrum: PowerLaw
290    Prefactor:  1.185e+00  1.933e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  3.895e+00  8.194e+00  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  9.499e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  7.845e-01  1.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.160e-01  1.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 339.269 -39.357

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/33484961/cmap_HighResolution_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2026-07-28 20:23:50.582179', job_id='33484961', GAL2='0.78', fit_tolerance='1e-08', EG2='0.92', EG='0.95', time_epoch_completed='1785295430.58', return_code2='102', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.04e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='938' AND source_name='4FGL J2237.0-3921' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 20:23:51 PDT 2026

 outfile=/lscratch/kocevski/33485127/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.fits
.....................!
real 16.23
user 15.08
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33485127/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33485127/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33485127/expmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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/33485127/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits
.....................!
real 60.10
user 55.64
sys 3.51

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

Setting source of interest to:
4FGL J2237.0-3921 @ 339.269 -39.357

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33485127/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits scfile=/lscratch/kocevski/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33485127/cmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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=339.269 yref=-39.357 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.09
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33485127/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits scfile=/lscratch/kocevski/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33485127/cmap_HighResolution_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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=339.269 yref=-39.357 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.19
user 0.20
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33485127/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33485127/Model_4FGL_J2237.0-3921_weekly_bin938.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 sourcnumber of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2237.0-3921_weekly_bin938
RA = 339.269, Dec = -39.357
tmin = 806284801, tmax = 806889601
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='33485384', job_status='RUN', time_executed='2026-07-28 20:18:34.038413', time_epoch_executed='1785295114.04' WHERE source_name='4FGL J2237.0-3921' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33485384

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33485384/ft1_4FGL_J2237.0-3921_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33485384/ft1_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33485384/ft1_filteredMKT_4FGL_J2237.0-3921_weekly_bin938.fits ra=339.269 dec=-39.357 rad=12.0 tmin=806284801.0 tmax=806889601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.55
user 4.50
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.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/33485384/ft1_filteredMKT_4FGL_J2237.0-3921_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33485384/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.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.90
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1057

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33485384/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.fits sctable="SC_DATA"e GAL_V02
Working on...
/lscratch/kocevski/33485127/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits.....................!
real 27.28
user 25.77
sys 0.51

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33485127/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits', '/lscratch/kocevski/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.fits', expMap='/lscratch/kocevski/33485127/expmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits', expCube='/lscratch/kocevski/33485127/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33485127/Model_4FGL_J2237.0-3921_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2237.0-3921'

4FGL J2237.0-3921
   Spectrum: PowerLaw
290    Prefactor:  5.768e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  2.381e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  9.499e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33485127/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33485127/ft2_4FGL_J2237.0-3921_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33485127/expmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33485127/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33485127/Model_4FGL_J2237.0-3921_weekly_bin938.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) = 11377.1964745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7483       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.3334       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.6047       1.0000          .0000       .10000E+07
     4 'norm      '    .49960E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    32.957       1.0000          .0000       .10000E+07
     6 'Prefactor '    .76624       1.0000          .0000       .10000E+07
     7 'Prefactor '    .64282E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    19.731       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.8807       1.0000          .0000       .10000E+07
    10 'Prefactor '    15.352       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.4963       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.4874       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.6601       1.0000          .0000       .10000E+07
    14 'norm      '    .78806       1.0000          .0000       .10000E+07
    15 'Prefactor '    8.4803       1.0000          .0000       .10000E+07
    16 'norm      '     .0000       1.0000          .0000       .10000E+07
    17 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
    18 'norm      '    32.916       1.0000          .0000       .10000E+07
    19 'Prefactor '    .37748E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    .80491E-08   1.0000          .0000       .10000E+07
    21 'norm      '    4.6678       1.0000          .0000       .10000E+07
    22 'norm      '    1.6144       1.0000          .0000       .10000E+07
    23 'Normalizat'    .94530       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11377.19     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2331 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7482        3.2645       -.80994E-08    .39337E-02
   2  Prefactor     3.3334        3.4508       -.10332E-05   -.10340E-01
   3  Prefactor     4.6044        3.1620        .55250E-06   -.92728E-02
   4  norm           .0000        2.6893       -.16418E-07** at limit **
   5  Prefactor     32.959        1.0200       -.17460E-07    .21862E-01
   6  Prefactor     .76619        .55382       -.12538E-06    .45215E-02
   7  Prefactor     .55511E-10    2.1395       -.11145E-06** at limit **
   8  Prefactor     19.713        1.6426        .16606E-06   -.13636    
   9  Prefactor     6.8811        3.8286        .17429E-06    .40840E-02
  10  Prefactor     15.351        1.0427        .36234E-07   -.23772E-01
  11  Prefactor     5.4985        1.0161       -.67139E-08    .32697E-02
  12  Prefactor     2.4871        3.6606        .21511E-06    .10169E-01
  13  Prefactor     2.6609        3.8385        .69754E-06    .17298E-01
  14  norm          .78819        1.9750        .77203E-06    .54156E-02
  15  Prefactor     8.4813        1.0153       -.15134E-07    .58080E-02
  16  norm           .0000        1.9508        .17269E-08** at limit **
  17  norm           .0000        1.2441       -.12437E-07** at limit **
  18  norm          32.914        1.0772       -.12501E-07    .24208E-02
  19  Prefactor     .55511E-10    7.7151        .18863E-07** at limit **
  20  Prefactor     .18874E-08    13.280        .21850E-07** at limit **
  21  norm          4.6681        2.4857       -.11182E-08    .39589E-02
  22  norm          1.6145        1.9494       -.39338E-07   -.24458E-03
  23  Normalizat    .94527        .13826       -.30968E-05   -.30385E-03
  24  Prefactor     .76483        .13560        .15291E-05   -.22781E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.74823
  Prefactor  = 3.33335
  Prefactor  = 4.60438
  norm       = 0
  Prefactor  = 32.9588
  Prefactor  = 0.766191
  Prefactor  = 5.55112e-11
  Prefactor  = 19.7132
  Prefactor  = 6.88114
  Prefactor  = 15.3509
  Prefactor  = 5.49845
  Prefactor  = 2.48711
  Prefactor  = 2.6609
  norm       = 0.788191
  Prefactor  = 8.48126
  norm       = 0
  norm       = 0
  norm       = 32.9142
  Prefactor  = 5.55112e-11
  Prefactor  = 1.88738e-09
  norm       = 4.66809
  norm       = 1.61455
  Normalizat = 0.945269
  Prefactor  = 0.764834
 **********
 **   18 **HESSE 
 **********

 FCN=   11377.19     FROM HESSE     STATUS=OK           453 CALLS     2784 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7482        3.2919        .32071E-03   -1.5646    
   2  Prefactor     3.3334        4.6879        .55413E-03   -1.5671    
   3  Prefactor     4.6044        4.6543        .46882E-03   -1.5665    
   4  norm           .0000        2.6917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.959        18.909        .17421E-03   -1.5593    
   6  Prefactor     .76619        3.3721        .55486E-03   -1.5690    
   7  Prefactor     .55511E-10    2.1092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.713        27.580        .22520E-03   -1.5619    
   9  Prefactor     6.8811        4.1823        .38224E-03   -1.5655    
  10  Prefactor     15.351        12.946        .25536E-03   -1.5630    
  11  Prefactor     5.4985        14.585        .42834E-03   -1.5661    
  12  Prefactor     2.4871        4.7263        .64787E-03   -1.5676    
  13  Prefactor     2.6609        4.5547        .62469E-03   -1.5675    
  14  norm          .78819        2.0732        .53829E-03   -1.5690    
  15  Prefactor     8.4813        17.546        .34400E-03   -1.5650    
  16  norm           .0000        1.9593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.2438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          32.914        7.7311        .17432E-03   -1.5593    
  19  Prefactor     .55511E-10    7.7171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .18874E-08    13.291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6681        2.5065        .46556E-03   -1.5665    
  22  norm          1.6145        1.9781        .83306E-03   -1.5683    
  23  Normalizat    .94527        .12122        .45478E-01   -.94887    
  24  Prefactor     .76483        .11538        .43257E-01   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03522e-07
Minuit parameter uncertainties:
  1  3.29189
  2  4.68795
  3  4.65428
  4  1.26753e-05
  5  18.9087
  6  3.21477
  7  2.49356e-05
  8  27.5802
  9  4.1823
  10  12.9462
  11  14.5849
  12  4.72632
  13  4.55468
  14  2.07323
  15  17.5457
  16  2.23505e-07
  17  5.19264e-06
  18  7.73114
  19  3.69917e-05
  20  0.00031908
  21  2.50651
  22  1.97805
  23  0.121255
  24  0.115413
 outfile=/lscratch/kocevski/33485384/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.fits
.....................!
real 17.05
user 16.18
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33485384/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33485384/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33485384/expmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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/33485384/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits
.....................!
real 61.86
user 57.33
sys 3.56

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

Setting source of interest to:
4FGL J2237.0-3921 @ 339.269 -39.357

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33485384/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits scfile=/lscratch/kocevski/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33485384/cmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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=339.269 yref=-39.357 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.02
user 0.23
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33485384/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits scfile=/lscratch/kocevski/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.fits outfile=/lscratch/kocevski/33485384/cmap_HighResolution_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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=339.269 yref=-39.357 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.07
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33485384/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33485384/Model_4FGL_J2237.0-3921_weekly_bin938.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 sourcDone.

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

Extracting fit parameters...

4FGL J2237.0-3921
   Spectrum: PowerLaw
290    Prefactor:  5.498e+00  1.458e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  2.381e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  9.499e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  7.648e-01  1.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.453e-01  1.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 339.269 -39.357
Photon Flux Upper Limit: 5.73533961559e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00442606575405 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33485127/likelihoodResults_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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) = 11376.883721
delta logL = 0.303393715994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11376.8835493
delta logL = 0.30356542172

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11376.88     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      394 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1847        23.687        .10490E-02    .24858E-01
   2  Index         3.8951        2.8815        .15379        .16220E-03
   3  Normalizat    .91604        .23528E-01    .45106E-01   -.22900E-03
   4  Prefactor     .78453        .23277E-01    .43516E-01   -.15344E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18471
  Index      = 3.89514
  Normalizat = 0.916042
  Prefactor  = 0.784525
 **********
 **   18 **HESSE 
 **********

 FCN=   11376.88     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      427 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1847        78.805        .13043E-04   -1.5686    
   2  Index         3.8951        6.8108        .84703E-02   -.22281    
   3  Normalizat    .91604        .10884        .22795E-03   -.95899    
   4  Prefactor     .78453        .10680        .24080E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5896e-06
Minuit parameter uncertainties:
  1  19.325
  2  8.1936
  3  0.10887
  4  0.106828
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) = 11376.8835433
delta logL = 0.303571435335

Extracting fit parameters...

4FGL J2237.0-3921
   Spectrum: PowerLaw
290    Prefactor:  1.185e+00  1.933e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  3.895e+00  8.194e+00  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  9.499e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  7.845e-01  1.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.160e-01  1.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 339.269 -39.357

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/33485127/cmap_HighResolution_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2026-07-28 20:27:53.651587', job_id='33485127', GAL2='0.78', fit_tolerance='1e-08', EG2='0.92', EG='0.95', time_epoch_completed='1785295673.65', return_code2='102', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.04e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='938' AND source_name='4FGL J2237.0-3921' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 20:27:54 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/33485384/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits.....................!
real 30.00
user 28.00
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33485384/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits', '/lscratch/kocevski/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.fits', expMap='/lscratch/kocevski/33485384/expmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits', expCube='/lscratch/kocevski/33485384/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33485384/Model_4FGL_J2237.0-3921_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2237.0-3921'

4FGL J2237.0-3921
   Spectrum: PowerLaw
290    Prefactor:  5.768e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  2.381e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  9.499e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33485384/ft1_filtered_4FGL_J2237.0-3921_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33485384/ft2_4FGL_J2237.0-3921_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33485384/expmap_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33485384/ltcube_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33485384/Model_4FGL_J2237.0-3921_weekly_bin938.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) = 11377.1964745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7483       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.3334       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.6047       1.0000          .0000       .10000E+07
     4 'norm      '    .49960E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    32.957       1.0000          .0000       .10000E+07
     6 'Prefactor '    .76624       1.0000          .0000       .10000E+07
     7 'Prefactor '    .64282E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    19.731       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.8807       1.0000          .0000       .10000E+07
    10 'Prefactor '    15.352       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.4963       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.4874       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.6601       1.0000          .0000       .10000E+07
    14 'norm      '    .78806       1.0000          .0000       .10000E+07
    15 'Prefactor '    8.4803       1.0000          .0000       .10000E+07
    16 'norm      '     .0000       1.0000          .0000       .10000E+07
    17 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
    18 'norm      '    32.916       1.0000          .0000       .10000E+07
    19 'Prefactor '    .37748E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    .80491E-08   1.0000          .0000       .10000E+07
    21 'norm      '    4.6678       1.0000          .0000       .10000E+07
    22 'norm      '    1.6144       1.0000          .0000       .10000E+07
    23 'Normalizat'    .94530       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11377.19     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2331 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7482        3.2645       -.80994E-08    .39337E-02
   2  Prefactor     3.3334        3.4508       -.10332E-05   -.10340E-01
   3  Prefactor     4.6044        3.1620        .55250E-06   -.92728E-02
   4  norm           .0000        2.6893       -.16418E-07** at limit **
   5  Prefactor     32.959        1.0200       -.17460E-07    .21862E-01
   6  Prefactor     .76619        .55382       -.12538E-06    .45215E-02
   7  Prefactor     .55511E-10    2.1395       -.11145E-06** at limit **
   8  Prefactor     19.713        1.6426        .16606E-06   -.13636    
   9  Prefactor     6.8811        3.8286        .17429E-06    .40840E-02
  10  Prefactor     15.351        1.0427        .36234E-07   -.23772E-01
  11  Prefactor     5.4985        1.0161       -.67139E-08    .32697E-02
  12  Prefactor     2.4871        3.6606        .21511E-06    .10169E-01
  13  Prefactor     2.6609        3.8385        .69754E-06    .17298E-01
  14  norm          .78819        1.9750        .77203E-06    .54156E-02
  15  Prefactor     8.4813        1.0153       -.15134E-07    .58080E-02
  16  norm           .0000        1.9508        .17269E-08** at limit **
  17  norm           .0000        1.2441       -.12437E-07** at limit **
  18  norm          32.914        1.0772       -.12501E-07    .24208E-02
  19  Prefactor     .55511E-10    7.7151        .18863E-07** at limit **
  20  Prefactor     .18874E-08    13.280        .21850E-07** at limit **
  21  norm          4.6681        2.4857       -.11182E-08    .39589E-02
  22  norm          1.6145        1.9494       -.39338E-07   -.24458E-03
  23  Normalizat    .94527        .13826       -.30968E-05   -.30385E-03
  24  Prefactor     .76483        .13560        .15291E-05   -.22781E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.74823
  Prefactor  = 3.33335
  Prefactor  = 4.60438
  norm       = 0
  Prefactor  = 32.9588
  Prefactor  = 0.766191
  Prefactor  = 5.55112e-11
  Prefactor  = 19.7132
  Prefactor  = 6.88114
  Prefactor  = 15.3509
  Prefactor  = 5.49845
  Prefactor  = 2.48711
  Prefactor  = 2.6609
  norm       = 0.788191
  Prefactor  = 8.48126
  norm       = 0
  norm       = 0
  norm       = 32.9142
  Prefactor  = 5.55112e-11
  Prefactor  = 1.88738e-09
  norm       = 4.66809
  norm       = 1.61455
  Normalizat = 0.945269
  Prefactor  = 0.764834
 **********
 **   18 **HESSE 
 **********

 FCN=   11377.19     FROM HESSE     STATUS=OK           453 CALLS     2784 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7482        3.2919        .32071E-03   -1.5646    
   2  Prefactor     3.3334        4.6879        .55413E-03   -1.5671    
   3  Prefactor     4.6044        4.6543        .46882E-03   -1.5665    
   4  norm           .0000        2.6917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.959        18.909        .17421E-03   -1.5593    
   6  Prefactor     .76619        3.3721        .55486E-03   -1.5690    
   7  Prefactor     .55511E-10    2.1092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.713        27.580        .22520E-03   -1.5619    
   9  Prefactor     6.8811        4.1823        .38224E-03   -1.5655    
  10  Prefactor     15.351        12.946        .25536E-03   -1.5630    
  11  Prefactor     5.4985        14.585        .42834E-03   -1.5661    
  12  Prefactor     2.4871        4.7263        .64787E-03   -1.5676    
  13  Prefactor     2.6609        4.5547        .62469E-03   -1.5675    
  14  norm          .78819        2.0732        .53829E-03   -1.5690    
  15  Prefactor     8.4813        17.546        .34400E-03   -1.5650    
  16  norm           .0000        1.9593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.2438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          32.914        7.7311        .17432E-03   -1.5593    
  19  Prefactor     .55511E-10    7.7171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .18874E-08    13.291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6681        2.5065        .46556E-03   -1.5665    
  22  norm          1.6145        1.9781        .83306E-03   -1.5683    
  23  Normalizat    .94527        .12122        .45478E-01   -.94887    
  24  Prefactor     .76483        .11538        .43257E-01   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03522e-07
Minuit parameter uncertainties:
  1  3.29189
  2  4.68795
  3  4.65428
  4  1.26753e-05
  5  18.9087
  6  3.21477
  7  2.49356e-05
  8  27.5802
  9  4.1823
  10  12.9462
  11  14.5849
  12  4.72632
  13  4.55468
  14  2.07323
  15  17.5457
  16  2.23505e-07
  17  5.19264e-06
  18  7.73114
  19  3.69917e-05
  20  0.00031908
  21  2.50651
  22  1.97805
  23  0.121255
  24  0.115413
Done.

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

Extracting fit parameters...

4FGL J2237.0-3921
   Spectrum: PowerLaw
290    Prefactor:  5.498e+00  1.458e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  2.381e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  9.499e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  7.648e-01  1.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.453e-01  1.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 339.269 -39.357
Photon Flux Upper Limit: 5.73533961559e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00442606575405 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33485384/likelihoodResults_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.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) = 11376.883721
delta logL = 0.303393715994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11376.8835493
delta logL = 0.30356542172

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11376.88     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      394 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1847        23.687        .10490E-02    .24858E-01
   2  Index         3.8951        2.8815        .15379        .16220E-03
   3  Normalizat    .91604        .23528E-01    .45106E-01   -.22900E-03
   4  Prefactor     .78453        .23277E-01    .43516E-01   -.15344E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18471
  Index      = 3.89514
  Normalizat = 0.916042
  Prefactor  = 0.784525
 **********
 **   18 **HESSE 
 **********

 FCN=   11376.88     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      427 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1847        78.805        .13043E-04   -1.5686    
   2  Index         3.8951        6.8108        .84703E-02   -.22281    
   3  Normalizat    .91604        .10884        .22795E-03   -.95899    
   4  Prefactor     .78453        .10680        .24080E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5896e-06
Minuit parameter uncertainties:
  1  19.325
  2  8.1936
  3  0.10887
  4  0.106828
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) = 11376.8835433
delta logL = 0.303571435335

Extracting fit parameters...

4FGL J2237.0-3921
   Spectrum: PowerLaw
290    Prefactor:  1.185e+00  1.933e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  3.895e+00  8.194e+00  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  9.499e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  7.845e-01  1.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.160e-01  1.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 339.269 -39.357

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/33485384/cmap_HighResolution_806284801_806889601_4FGL_J2237.0-3921_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2026-07-28 20:31:50.832130', job_id='33485384', GAL2='0.78', fit_tolerance='1e-08', EG2='0.92', EG='0.95', time_epoch_completed='1785295910.83', return_code2='102', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.04e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='938' AND source_name='4FGL J2237.0-3921' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 20:31:51 PDT 2026

