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

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

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

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

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

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

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


Performing analysis on: 4FGL_J2209.8-5028_weekly_bin892
RA = 332.474, Dec = -50.4702
tmin = 778464001, tmax = 779068801
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='14158724', job_status='RUN', time_executed='2025-10-21 13:52:53.976248', time_epoch_executed='1761079973.98' WHERE source_name='4FGL J2209.8-5028' and cadence='weekly' and bin_id='892'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/14158724

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/14158724/ft1_4FGL_J2209.8-5028_weekly_bin892.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/14158724/ft1_4FGL_J2209.8-5028_weekly_bin892.fits outfile=/lscratch/kocevski/14158724/ft1_filteredMKT_4FGL_J2209.8-5028_weekly_bin892.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=778464001.0 tmax=779068801.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.84
user 4.30
sys 0.34

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.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/14158724/ft1_filteredMKT_4FGL_J2209.8-5028_weekly_bin892.fits evtable="EVENTS" outfile="/lscratch/kocevski/14158724/ft1_filtered_4FGL_J2209.8-5028_weekly_bin892.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.60
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1121

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/14158724/ft1_filtered_4FGL_J2209.8-5028_weekly_bin892.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14158724/ltcube_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.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/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.fits
.....................!
real 19.52
user 18.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/14158724/ft1_filtered_4FGL_J2209.8-5028_weekly_bin892.fits evtable="EVENTS" scfile=/lscratch/kocevski/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14158724/ltcube_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.fits outfile=/lscratch/kocevski/14158724/expmap_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.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/14158724/ltcube_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.fits
.....................!
real 71.64
user 67.05
sys 4.05

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2209.8-5028 @ 332.474 -50.4702

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/14158724/ft1_filtered_4FGL_J2209.8-5028_weekly_bin892.fits scfile=/lscratch/kocevski/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.fits outfile=/lscratch/kocevski/14158724/cmap_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.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=332.474 yref=-50.4702 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.58
user 0.25
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/14158724/ft1_filtered_4FGL_J2209.8-5028_weekly_bin892.fits scfile=/lscratch/kocevski/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.fits outfile=/lscratch/kocevski/14158724/cmap_HighResolution_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.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=332.474 yref=-50.4702 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.75
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/14158724/ft1_filtered_4FGL_J2209.8-5028_weekly_bin892.fits evtable="EVENTS" scfile=/lscratch/kocevski/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14158724/Model_4FGL_J2209.8-5028_weekly_bin892.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/14158724/ft1_filtered_4FGL_J2209.8-5028_weekly_bin892.fits.....................!
real 34.38
user 33.11
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/14158724/ft1_filtered_4FGL_J2209.8-5028_weekly_bin892.fits', '/lscratch/kocevski/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.fits', expMap='/lscratch/kocevski/14158724/expmap_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.fits', expCube='/lscratch/kocevski/14158724/ltcube_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14158724/Model_4FGL_J2209.8-5028_weekly_bin892.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2209.8-5028'

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.258e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/14158724/ft1_filtered_4FGL_J2209.8-5028_weekly_bin892.fits
Spacecraft file(s): /lscratch/kocevski/14158724/ft2_4FGL_J2209.8-5028_weekly_bin892.fits
Exposure map: /lscratch/kocevski/14158724/expmap_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.fits
Exposure cube: /lscratch/kocevski/14158724/ltcube_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/14158724/Model_4FGL_J2209.8-5028_weekly_bin892.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) = 12294.8573302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6146       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.8951       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.361       1.0000          .0000       .10000E+07
     4 'Prefactor '    25.093       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.2196       1.0000          .0000       .10000E+07
     6 'norm      '    3.0362       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16981E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    10.896       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.6335       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.4149       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18739E-01   1.0000          .0000       .10000E+07
    12 'norm      '    1.3301       1.0000          .0000       .10000E+07
    13 'Prefactor '    .19807E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .35726E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19756E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    25.464       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20184E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .31938E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .12134E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .20665E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    .77606       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0716       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12294.81     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1748 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6446        1.0518       -.39773E-08    .88784E-03
   2  Prefactor     7.8410        6.3729        .18870E-06    .20575E-02
   3  Prefactor     13.358        1.1740       -.21314E-08   -.42167E-02
   4  Prefactor     25.127        2.3631       -.48195E-07   -.13956E-01
   5  Prefactor     6.2208        3.0675        .11435E-06    .34066E-03
   6  norm          3.0355        2.5598        .62558E-07    .39578E-04
   7  Prefactor     .55511E-10    1.6629       -.63353E-06** at limit **
   8  Prefactor     10.742        13.868       -.59717E-06    .33239E-01
   9  Prefactor     4.6566        5.7696       -.23036E-06   -.30893E-02
  10  Prefactor     4.4104        2.7860       -.14367E-06    .29711E-03
  11  Prefactor      .0000        14.107       -.77007E-06** at limit **
  12  norm          1.3229        2.9009        .33656E-06    .24850E-04
  13  Prefactor     .72164E-09    4.4089        .30696E-06** at limit **
  14  Prefactor     .17208E-07    9.3194       -.51338E-06** at limit **
  15  Prefactor     .27756E-09    5.0259       -.20637E-07** at limit **
  16  Prefactor     25.722        13.620        .33871E-06    .41640E-01
  17  Prefactor      .0000        1.4714        .18030E-06** at limit **
  18  Prefactor     .42910E-07    5.6175       -.90873E-06** at limit **
  19  Prefactor      .0000        1.5968        .53898E-07** at limit **
  20  norm          .77216E-07    3.5447       -.37443E-06** at limit **
  21  Normalizat    .77543        .14403       -.51911E-05   -.21969E-04
  22  Prefactor     1.0720        .11728        .43733E-05   -.54934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.64459
  Prefactor  = 7.84102
  Prefactor  = 13.3582
  Prefactor  = 25.1265
  Prefactor  = 6.2208
  norm       = 3.03547
  Prefactor  = 5.55112e-11
  Prefactor  = 10.742
  Prefactor  = 4.65656
  Prefactor  = 4.4104
  Prefactor  = 0
  norm       = 1.32289
  Prefactor  = 7.21645e-10
  Prefactor  = 1.72085e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 25.7222
  Prefactor  = 0
  Prefactor  = 4.29101e-08
  Prefactor  = 0
  norm       = 7.7216e-08
  Normalizat = 0.775429
  Prefactor  = 1.07198
 **********
 **   18 **HESSE 
 **********

 FCN=   12294.81     FROM HESSE     STATUS=OK           396 CALLS     2144 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6446        13.946        .63054E-03   -1.5675    
   2  Prefactor     7.8410        6.4515        .35662E-03   -1.5652    
   3  Prefactor     13.358        16.716        .27377E-03   -1.5635    
   4  Prefactor     25.127        17.695        .19967E-03   -1.5608    
   5  Prefactor     6.2208        3.0763        .40229E-03   -1.5658    
   6  norm          3.0355        2.6129        .58208E-03   -1.5673    
   7  Prefactor     .55511E-10    1.6652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.742        22.219        .30327E-03   -1.5642    
   9  Prefactor     4.6566        5.9174        .46732E-03   -1.5665    
  10  Prefactor     4.4104        2.7997        .47905E-03   -1.5666    
  11  Prefactor      .0000        14.119        .17121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3229        2.9531        .95191E-03   -1.5685    
  13  Prefactor     .72164E-09    4.2718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17208E-07    9.7583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .27756E-09    4.9665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.722        18.359        .19821E-03   -1.5607    
  17  Prefactor      .0000        1.4748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .42910E-07    7.7119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        1.5972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .77216E-07    1.4936        .70641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .77543        .12741        .63570E-01   -1.0099    
  22  Prefactor     1.0720        .10181        .38783E-01   -.90367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33679e-07
Minuit parameter uncertainties:
  1  12.1463
  2  6.45148
  3  16.7161
  4  17.6947
  5  3.07634
  6  2.6129
  7  2.28971e-05
  8  22.2189
  9  5.91736
  10  2.79974
  11  8.92356e-06
  12  2.95311
  13  0.000109661
  14  0.000819714
  15  7.5325e-05
  16  18.359
  17  1.5651e-06
  18  0.0011504
  19  5.56536e-06
  20  0.000679314
  21  0.127457
  22  0.101827
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  0.000e+00  8.924e-06  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.072e+00  1.018e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  7.754e-01  1.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 2.71617691737e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00209489483647 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/14158724/likelihoodResults_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12294.8477229
delta logL = -0.033787934346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12294.8139398
delta logL = -4.8171114031e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12294.81     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      199 TOTAL
                     EDM=   .92E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.900        .79995E-06** at limit **
   2  Index         2.3898        6.0290       -.68523E-04     .0000    
   3  Normalizat    .77543        .13769       -.10130E-05   -.64056E-06
   4  Prefactor     1.0720        .11387       -.26151E-06    .10249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.38977
  Normalizat = 0.775429
  Prefactor  = 1.07198
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12294.81     FROM HESSE     STATUS=FAILED        11 CALLS      210 TOTAL
                     EDM=   .92E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        13.904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .64006        1.9879       -.68523E-04   -.54925    
   3  Normalizat    .77543        1.1147       -.10130E-05   -1.0099    
   4  Prefactor     1.0720        1.1697       -.26151E-06   -.90367    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.23275e-14
Minuit parameter uncertainties:
  1  5.69569e-07
  2  1.83586
  3  1.15029
  4  1.19952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 12294.813935
delta logL = 0.0

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  0.000e+00  5.696e-07  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  2.390e+00  1.836e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.072e+00  1.200e+00  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  7.754e-01  1.150e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 332.474 -50.470

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/14158724/cmap_HighResolution_778464001_779068801_4FGL_J2209.8-5028_weekly_bin892.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-03', job_status='DONE', photon_flux_upper_limit='2.72e-08', time_completed='2025-10-21 14:01:12.936075', job_id='14158724', GAL2='1.07', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1761080472.94', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='892' AND source_name='4FGL J2209.8-5028' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 21 14:01:13 PDT 2025

