 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33456814/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:02:49.331808', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785272569.33', return_code='0', job_id='33456814', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:02:49 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   31299.50     FROM HESSE     STATUS=OK           126 CALLS      882 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.600        27.716        .11499E-03   -1.5534    
   2  Prefactor     .44542E-06    22.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    13.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.574        11.193        .21530E-03   -1.5615    
   5  Prefactor     .34872E-06    18.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62249E-01    .93192        .97009E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.074        14.273        .31533E-03   -1.5644    
   8  Prefactor     42.070        98.573        .15421E-03   -1.5578    
   9  Normalizat    1.2814        .20118        .14290       -.84125    
  10  Prefactor     .97664        .36047E-01    .29806E-01   -.93512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09615e-07
Minuit parameter uncertainties:
  1  27.7156
  2  0.00637466
  3  0.000130871
  4  11.193
  5  0.00509418
  6  0.48171
  7  14.2728
  8  98.577
  9  0.2013
  10  0.0360477
/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).

Done.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33456831/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:03:36.407761', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785272616.41', return_code='0', job_id='33456831', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:03:36 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33456875/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:03:58.308937', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785272638.31', return_code='0', job_id='33456875', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:03:58 PDT 2026

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


Performing analysis on: 4FGL_J1641.9-0621_weekly_bin938
RA = 250.489, Dec = -6.3529
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='33457288', job_status='RUN', time_executed='2026-07-28 13:56:17.933349', time_epoch_executed='1785272177.93' WHERE source_name='4FGL J1641.9-0621' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33457288

Creating custom pfile directory:
/lscratch/kocevski/33457288/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/33457288/ft1_4FGL_J1641.9-0621_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/33457288/ft2_4FGL_J1641.9-0621_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33457288/ft1_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457288/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits ra=250.489 dec=-6.3529 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 6.42
user 5.31
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33457288/ft2_4FGL_J1641.9-0621_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33457288/ft2_4FGL_J1641.9-0621_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/33457288/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33457288/ft1_filtered_4FGL_J1641.9-0621_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.23
user 0.29
sys 0.13

Number of photons that the gtmktime cut: 2974

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33457288/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33457288/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA"ch/kocevski/33457069/Model_4FGL_J1641.9-0621_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 source FHES J1626.9-2431
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/33457069/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits.....................!
real 99.52
user 96.92
sys 0.84

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33457069/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits', '/lscratch/kocevski/33457069/ft2_4FGL_J1641.9-0621_weekly_bin938.fits', expMap='/lscratch/kocevski/33457069/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', expCube='/lscratch/kocevski/33457069/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33457069/Model_4FGL_J1641.9-0621_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1641.9-0621'

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  5.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33457069/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33457069/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33457069/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33457069/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33457069/Model_4FGL_J1641.9-0621_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) = 31299.4989453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.634       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20450E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .38806E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10258       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.082       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.061       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    10 'Prefactor '    .97669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31299.50     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      756 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.600        16.010        .18970E-05   -.21116    
   2  Prefactor     .44542E-06    22.000        .41303E-06** at limit **
   3  Prefactor     .33307E-09    13.393       -.64044E-06** at limit **
   4  Prefactor     21.574        11.164        .35268E-06    .22408E-02
   5  Prefactor     .34872E-06    18.010        .87265E-06** at limit **
   6  Prefactor     .62249E-01    36.885       -.25499E-05** at limit **
   7  Prefactor     10.074        12.099       -.40921E-05   -.95002E-01
   8  Prefactor     42.070        1.2029       -.11166E-06    .12447E-01
   9  Normalizat    1.2814        .21281        .81967E-05    .38242E-04
  10  Prefactor     .97664        .38817E-01   -.21532E-05    .34833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5996
  Prefactor  = 4.45421e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 21.5743
  Prefactor  = 3.48721e-07
  Prefactor  = 0.0622494
  Prefactor  = 10.0743
  Prefactor  = 42.0705
  Normalizat = 1.28136
  Prefactor  = 0.976641
 **********
 **   18 **HESSE 
 **********

 FCN=   31299.50     FROM HESSE     STATUS=OK           126 CALLS      882 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.600        27.716        .11499E-03   -1.5534    
   2  Prefactor     .44542E-06    22.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    13.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.574        11.193        .21530E-03   -1.5615    
   5  Prefactor     .34872E-06    18.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62249E-01    .93192        .97009E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.074        14.273        .31533E-03   -1.5644    
   8  Prefactor     42.070        98.573        .15421E-03   -1.5578    
   9  Normalizat    1.2814        .20118        .14290       -.84125    
  10  Prefactor     .97664        .36047E-01    .29806E-01   -.93512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09615e-07
Minuit parameter uncertainties:
  1  27.7156
  2  0.00637466
  3  0.000130871
  4  11.193
  5  0.00509418
  6  0.48171
  7  14.2728
  8  98.577
  9  0.2013
  10  0.0360477
number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1641.9-0621_weekly_bin938
RA = 250.489, Dec = -6.3529
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='33457419', job_status='RUN', time_executed='2026-07-28 13:58:18.796356', time_epoch_executed='1785272298.8' WHERE source_name='4FGL J1641.9-0621' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33457419

Creating custom pfile directory:
/lscratch/kocevski/33457419/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/33457419/ft1_4FGL_J1641.9-0621_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/33457419/ft2_4FGL_J1641.9-0621_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33457419/ft1_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457419/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits ra=250.489 dec=-6.3529 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.80
user 4.90
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33457419/ft2_4FGL_J1641.9-0621_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33457419/ft2_4FGL_J1641.9-0621_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/33457419/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33457419/ft1_filtered_4FGL_J1641.9-0621_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.21
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2974

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33457419/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33457419/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA"  outfile=/lscratch/kocevski/33457288/ltcube_806284801_806889601_4FGL_J1641.9-0621_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/33457288/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 20.35
user 18.86
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33457288/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457288/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33457288/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457288/expmap_806284801_806889601_4FGL_J1641.9-0621_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/33457288/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 78.23
user 72.24
sys 4.54

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 200 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1641.9-0621 @ 250.489 -6.3529

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33457288/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457288/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457288/cmap_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.18
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33457288/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457288/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457288/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.23
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33457288/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457288/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratDone.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33457069/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:06:38.427338', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785272798.43', return_code='0', job_id='33457069', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:06:39 PDT 2026

outfile=/lscratch/kocevski/33457419/ltcube_806284801_806889601_4FGL_J1641.9-0621_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/33457419/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 18.62
user 17.44
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33457419/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457419/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33457419/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457419/expmap_806284801_806889601_4FGL_J1641.9-0621_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/33457419/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 68.63
user 63.64
sys 3.90

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 200 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1641.9-0621 @ 250.489 -6.3529

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33457419/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457419/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457419/cmap_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.11
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33457419/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457419/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457419/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.15
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33457419/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457419/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratcnumber of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1641.9-0621_weekly_bin938
RA = 250.489, Dec = -6.3529
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='33457540', job_status='RUN', time_executed='2026-07-28 14:00:26.019461', time_epoch_executed='1785272426.02' WHERE source_name='4FGL J1641.9-0621' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33457540

Creating custom pfile directory:
/lscratch/kocevski/33457540/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/33457540/ft1_4FGL_J1641.9-0621_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/33457540/ft2_4FGL_J1641.9-0621_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33457540/ft1_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457540/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits ra=250.489 dec=-6.3529 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.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33457540/ft2_4FGL_J1641.9-0621_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33457540/ft2_4FGL_J1641.9-0621_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/33457540/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33457540/ft1_filtered_4FGL_J1641.9-0621_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.15
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 2974

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33457540/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33457540/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1641.9-0621_weekly_bin938
RA = 250.489, Dec = -6.3529
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='33457538', job_status='RUN', time_executed='2026-07-28 14:00:24.384160', time_epoch_executed='1785272424.38' WHERE source_name='4FGL J1641.9-0621' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33457538

Creating custom pfile directory:
/lscratch/kocevski/33457538/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/33457538/ft1_4FGL_J1641.9-0621_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/33457538/ft2_4FGL_J1641.9-0621_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33457538/ft1_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457538/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits ra=250.489 dec=-6.3529 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.97
user 4.92
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33457538/ft2_4FGL_J1641.9-0621_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33457538/ft2_4FGL_J1641.9-0621_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/33457538/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33457538/ft1_filtered_4FGL_J1641.9-0621_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.04
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2974

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33457538/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33457538/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1641.9-0621_weekly_bin938
RA = 250.489, Dec = -6.3529
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='33457564', job_status='RUN', time_executed='2026-07-28 14:01:21.106372', time_epoch_executed='1785272481.11' WHERE source_name='4FGL J1641.9-0621' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33457564

Creating custom pfile directory:
/lscratch/kocevski/33457564/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/33457564/ft1_4FGL_J1641.9-0621_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/33457564/ft2_4FGL_J1641.9-0621_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33457564/ft1_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457564/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits ra=250.489 dec=-6.3529 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.77
user 4.83
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33457564/ft2_4FGL_J1641.9-0621_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33457564/ft2_4FGL_J1641.9-0621_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/33457564/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33457564/ft1_filtered_4FGL_J1641.9-0621_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.09
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2974

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33457564/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33457564/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1641.9-0621_weekly_bin938
RA = 250.489, Dec = -6.3529
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='33457581', job_status='RUN', time_executed='2026-07-28 14:01:19.615067', time_epoch_executed='1785272479.62' WHERE source_name='4FGL J1641.9-0621' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33457581

Creating custom pfile directory:
/lscratch/kocevski/33457581/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/33457581/ft1_4FGL_J1641.9-0621_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/33457581/ft2_4FGL_J1641.9-0621_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33457581/ft1_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457581/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits ra=250.489 dec=-6.3529 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.44
user 4.23
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33457581/ft2_4FGL_J1641.9-0621_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33457581/ft2_4FGL_J1641.9-0621_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/33457581/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33457581/ft1_filtered_4FGL_J1641.9-0621_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.19
sys 0.13

Number of photons that the gtmktime cut: 2974

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33457581/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33457581/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" outfile=/lscratch/kocevski/33457540/ltcube_806284801_806889601_4FGL_J1641.9-0621_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/33457540/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 16.43
user 15.20
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33457540/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457540/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33457540/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457540/expmap_806284801_806889601_4FGL_J1641.9-0621_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/33457540/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 60.18
user 55.78
sys 3.39

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 200 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1641.9-0621 @ 250.489 -6.3529

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33457540/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457540/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457540/cmap_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.04
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33457540/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457540/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457540/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.05
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33457540/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457540/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscrat outfile=/lscratch/kocevski/33457538/ltcube_806284801_806889601_4FGL_J1641.9-0621_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/33457538/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 19.62
user 18.34
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33457538/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457538/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33457538/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457538/expmap_806284801_806889601_4FGL_J1641.9-0621_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/33457538/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 70.39
user 65.04
sys 4.03

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 200 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1641.9-0621 @ 250.489 -6.3529

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33457538/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457538/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457538/cmap_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.36
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33457538/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457538/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457538/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.04
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33457538/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457538/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscrat outfile=/lscratch/kocevski/33457564/ltcube_806284801_806889601_4FGL_J1641.9-0621_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/33457564/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 18.55
user 17.44
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33457564/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457564/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33457564/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457564/expmap_806284801_806889601_4FGL_J1641.9-0621_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/33457564/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 70.29
user 64.66
sys 4.16

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 200 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1641.9-0621 @ 250.489 -6.3529

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33457564/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457564/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457564/cmap_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.30
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33457564/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457564/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457564/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.44
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33457564/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457564/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscrat outfile=/lscratch/kocevski/33457581/ltcube_806284801_806889601_4FGL_J1641.9-0621_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/33457581/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 16.13
user 15.22
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33457581/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457581/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33457581/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457581/expmap_806284801_806889601_4FGL_J1641.9-0621_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/33457581/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 60.19
user 55.48
sys 3.52

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 200 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1641.9-0621 @ 250.489 -6.3529

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33457581/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457581/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457581/cmap_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.16
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33457581/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457581/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457581/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.18
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33457581/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457581/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratnumber of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1641.9-0621_weekly_bin938
RA = 250.489, Dec = -6.3529
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='33457588', job_status='RUN', time_executed='2026-07-28 14:01:26.137328', time_epoch_executed='1785272486.14' WHERE source_name='4FGL J1641.9-0621' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33457588

Creating custom pfile directory:
/lscratch/kocevski/33457588/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/33457588/ft1_4FGL_J1641.9-0621_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/33457588/ft2_4FGL_J1641.9-0621_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33457588/ft1_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457588/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits ra=250.489 dec=-6.3529 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 8.27
user 6.65
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33457588/ft2_4FGL_J1641.9-0621_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33457588/ft2_4FGL_J1641.9-0621_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/33457588/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33457588/ft1_filtered_4FGL_J1641.9-0621_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.38
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2974

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33457588/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33457588/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA"number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1641.9-0621_weekly_bin938
RA = 250.489, Dec = -6.3529
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='33457641', job_status='RUN', time_executed='2026-07-28 14:03:21.429722', time_epoch_executed='1785272601.43' WHERE source_name='4FGL J1641.9-0621' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33457641

Creating custom pfile directory:
/lscratch/kocevski/33457641/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/33457641/ft1_4FGL_J1641.9-0621_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/33457641/ft2_4FGL_J1641.9-0621_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33457641/ft1_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457641/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits ra=250.489 dec=-6.3529 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.58
user 4.36
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33457641/ft2_4FGL_J1641.9-0621_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33457641/ft2_4FGL_J1641.9-0621_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/33457641/ft1_filteredMKT_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33457641/ft1_filtered_4FGL_J1641.9-0621_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.09
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 2974

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33457641/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33457641/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA"ch/kocevski/33457288/Model_4FGL_J1641.9-0621_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 source FHES J1626.9-2431
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/33457288/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits.....................!
real 130.85
user 127.67
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33457288/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits', '/lscratch/kocevski/33457288/ft2_4FGL_J1641.9-0621_weekly_bin938.fits', expMap='/lscratch/kocevski/33457288/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', expCube='/lscratch/kocevski/33457288/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33457288/Model_4FGL_J1641.9-0621_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1641.9-0621'

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  5.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33457288/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33457288/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33457288/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33457288/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33457288/Model_4FGL_J1641.9-0621_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) = 31299.4989453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.634       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20450E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .38806E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10258       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.082       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.061       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    10 'Prefactor '    .97669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31299.50     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      756 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.600        16.010        .18970E-05   -.21116    
   2  Prefactor     .44542E-06    22.000        .41303E-06** at limit **
   3  Prefactor     .33307E-09    13.393       -.64044E-06** at limit **
   4  Prefactor     21.574        11.164        .35268E-06    .22408E-02
   5  Prefactor     .34872E-06    18.010        .87265E-06** at limit **
   6  Prefactor     .62249E-01    36.885       -.25499E-05** at limit **
   7  Prefactor     10.074        12.099       -.40921E-05   -.95002E-01
   8  Prefactor     42.070        1.2029       -.11166E-06    .12447E-01
   9  Normalizat    1.2814        .21281        .81967E-05    .38242E-04
  10  Prefactor     .97664        .38817E-01   -.21532E-05    .34833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5996
  Prefactor  = 4.45421e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 21.5743
  Prefactor  = 3.48721e-07
  Prefactor  = 0.0622494
  Prefactor  = 10.0743
  Prefactor  = 42.0705
  Normalizat = 1.28136
  Prefactor  = 0.976641
 **********
 **   18 **HESSE 
 **********

 FCN=   31299.50     FROM HESSE     STATUS=OK           126 CALLS      882 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.600        27.716        .11499E-03   -1.5534    
   2  Prefactor     .44542E-06    22.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    13.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.574        11.193        .21530E-03   -1.5615    
   5  Prefactor     .34872E-06    18.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62249E-01    .93192        .97009E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.074        14.273        .31533E-03   -1.5644    
   8  Prefactor     42.070        98.573        .15421E-03   -1.5578    
   9  Normalizat    1.2814        .20118        .14290       -.84125    
  10  Prefactor     .97664        .36047E-01    .29806E-01   -.93512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09615e-07
Minuit parameter uncertainties:
  1  27.7156
  2  0.00637466
  3  0.000130871
  4  11.193
  5  0.00509418
  6  0.48171
  7  14.2728
  8  98.577
  9  0.2013
  10  0.0360477
h/kocevski/33457419/Model_4FGL_J1641.9-0621_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 source FHES J1626.9-2431
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/33457419/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits.....................!
real 114.81
user 112.68
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33457419/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits', '/lscratch/kocevski/33457419/ft2_4FGL_J1641.9-0621_weekly_bin938.fits', expMap='/lscratch/kocevski/33457419/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', expCube='/lscratch/kocevski/33457419/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33457419/Model_4FGL_J1641.9-0621_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1641.9-0621'

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  5.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33457419/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33457419/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33457419/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33457419/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33457419/Model_4FGL_J1641.9-0621_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) = 31299.4989453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.634       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20450E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .38806E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10258       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.082       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.061       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    10 'Prefactor '    .97669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31299.50     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      756 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.600        16.010        .18970E-05   -.21116    
   2  Prefactor     .44542E-06    22.000        .41303E-06** at limit **
   3  Prefactor     .33307E-09    13.393       -.64044E-06** at limit **
   4  Prefactor     21.574        11.164        .35268E-06    .22408E-02
   5  Prefactor     .34872E-06    18.010        .87265E-06** at limit **
   6  Prefactor     .62249E-01    36.885       -.25499E-05** at limit **
   7  Prefactor     10.074        12.099       -.40921E-05   -.95002E-01
   8  Prefactor     42.070        1.2029       -.11166E-06    .12447E-01
   9  Normalizat    1.2814        .21281        .81967E-05    .38242E-04
  10  Prefactor     .97664        .38817E-01   -.21532E-05    .34833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5996
  Prefactor  = 4.45421e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 21.5743
  Prefactor  = 3.48721e-07
  Prefactor  = 0.0622494
  Prefactor  = 10.0743
  Prefactor  = 42.0705
  Normalizat = 1.28136
  Prefactor  = 0.976641
 outfile=/lscratch/kocevski/33457641/ltcube_806284801_806889601_4FGL_J1641.9-0621_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/33457641/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 16.29
user 15.11
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33457641/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457641/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33457641/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457641/expmap_806284801_806889601_4FGL_J1641.9-0621_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/33457641/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 60.20
user 55.66
sys 3.52

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 200 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1641.9-0621 @ 250.489 -6.3529

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33457641/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457641/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457641/cmap_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.21
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33457641/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457641/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457641/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.31
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33457641/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457641/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscrat **********
 **   18 **HESSE 
 **********

 FCN=   31299.50     FROM HESSE     STATUS=OK           126 CALLS      882 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.600        27.716        .11499E-03   -1.5534    
   2  Prefactor     .44542E-06    22.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    13.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.574        11.193        .21530E-03   -1.5615    
   5  Prefactor     .34872E-06    18.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62249E-01    .93192        .97009E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.074        14.273        .31533E-03   -1.5644    
   8  Prefactor     42.070        98.573        .15421E-03   -1.5578    
   9  Normalizat    1.2814        .20118        .14290       -.84125    
  10  Prefactor     .97664        .36047E-01    .29806E-01   -.93512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09615e-07
Minuit parameter uncertainties:
  1  27.7156
  2  0.00637466
  3  0.000130871
  4  11.193
  5  0.00509418
  6  0.48171
  7  14.2728
  8  98.577
  9  0.2013
  10  0.0360477
 outfile=/lscratch/kocevski/33457588/ltcube_806284801_806889601_4FGL_J1641.9-0621_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/33457588/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 22.23
user 20.37
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33457588/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457588/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33457588/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457588/expmap_806284801_806889601_4FGL_J1641.9-0621_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/33457588/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
.....................!
real 78.64
user 72.07
sys 4.49

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 200 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1641.9-0621 @ 250.489 -6.3529

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33457588/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457588/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457588/cmap_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.51
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33457588/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits scfile=/lscratch/kocevski/33457588/ft2_4FGL_J1641.9-0621_weekly_bin938.fits outfile=/lscratch/kocevski/33457588/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_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=250.489 yref=-6.3529 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.58
user 0.32
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33457588/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33457588/ft2_4FGL_J1641.9-0621_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratDone.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33457288/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:12:59.636669', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785273179.64', return_code='0', job_id='33457288', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:13:00 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
ch/kocevski/33457540/Model_4FGL_J1641.9-0621_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 source FHES J1626.9-2431
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/33457540/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits.....................!
real 100.63
user 98.38
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33457540/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits', '/lscratch/kocevski/33457540/ft2_4FGL_J1641.9-0621_weekly_bin938.fits', expMap='/lscratch/kocevski/33457540/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', expCube='/lscratch/kocevski/33457540/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33457540/Model_4FGL_J1641.9-0621_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1641.9-0621'

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  5.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33457540/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33457540/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33457540/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33457540/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33457540/Model_4FGL_J1641.9-0621_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) = 31299.4989453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.634       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20450E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .38806E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10258       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.082       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.061       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    10 'Prefactor '    .97669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31299.50     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      756 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.600        16.010        .18970E-05   -.21116    
   2  Prefactor     .44542E-06    22.000        .41303E-06** at limit **
   3  Prefactor     .33307E-09    13.393       -.64044E-06** at limit **
   4  Prefactor     21.574        11.164        .35268E-06    .22408E-02
   5  Prefactor     .34872E-06    18.010        .87265E-06** at limit **
   6  Prefactor     .62249E-01    36.885       -.25499E-05** at limit **
   7  Prefactor     10.074        12.099       -.40921E-05   -.95002E-01
   8  Prefactor     42.070        1.2029       -.11166E-06    .12447E-01
   9  Normalizat    1.2814        .21281        .81967E-05    .38242E-04
  10  Prefactor     .97664        .38817E-01   -.21532E-05    .34833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5996
  Prefactor  = 4.45421e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 21.5743
  Prefactor  = 3.48721e-07
  Prefactor  = 0.0622494
  Prefactor  = 10.0743
  Prefactor  = 42.0705
  Normalizat = 1.28136
  Prefactor  = 0.976641
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33457419/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:13:35.731077', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785273215.73', return_code='0', job_id='33457419', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:13:36 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   31299.50     FROM HESSE     STATUS=OK           126 CALLS      882 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.600        27.716        .11499E-03   -1.5534    
   2  Prefactor     .44542E-06    22.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    13.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.574        11.193        .21530E-03   -1.5615    
   5  Prefactor     .34872E-06    18.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62249E-01    .93192        .97009E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.074        14.273        .31533E-03   -1.5644    
   8  Prefactor     42.070        98.573        .15421E-03   -1.5578    
   9  Normalizat    1.2814        .20118        .14290       -.84125    
  10  Prefactor     .97664        .36047E-01    .29806E-01   -.93512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09615e-07
Minuit parameter uncertainties:
  1  27.7156
  2  0.00637466
  3  0.000130871
  4  11.193
  5  0.00509418
  6  0.48171
  7  14.2728
  8  98.577
  9  0.2013
  10  0.0360477
ch/kocevski/33457581/Model_4FGL_J1641.9-0621_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 source FHES J1626.9-2431
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/33457581/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits.....................!
real 99.98
user 97.74
sys 0.86

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33457581/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits', '/lscratch/kocevski/33457581/ft2_4FGL_J1641.9-0621_weekly_bin938.fits', expMap='/lscratch/kocevski/33457581/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', expCube='/lscratch/kocevski/33457581/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33457581/Model_4FGL_J1641.9-0621_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1641.9-0621'

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  5.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33457581/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33457581/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33457581/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33457581/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33457581/Model_4FGL_J1641.9-0621_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) = 31299.4989453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.634       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20450E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .38806E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10258       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.082       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.061       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    10 'Prefactor '    .97669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31299.50     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      756 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.600        16.010        .18970E-05   -.21116    
   2  Prefactor     .44542E-06    22.000        .41303E-06** at limit **
   3  Prefactor     .33307E-09    13.393       -.64044E-06** at limit **
   4  Prefactor     21.574        11.164        .35268E-06    .22408E-02
   5  Prefactor     .34872E-06    18.010        .87265E-06** at limit **
   6  Prefactor     .62249E-01    36.885       -.25499E-05** at limit **
   7  Prefactor     10.074        12.099       -.40921E-05   -.95002E-01
   8  Prefactor     42.070        1.2029       -.11166E-06    .12447E-01
   9  Normalizat    1.2814        .21281        .81967E-05    .38242E-04
  10  Prefactor     .97664        .38817E-01   -.21532E-05    .34833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5996
  Prefactor  = 4.45421e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 21.5743
  Prefactor  = 3.48721e-07
  Prefactor  = 0.0622494
  Prefactor  = 10.0743
  Prefactor  = 42.0705
  Normalizat = 1.28136
  Prefactor  = 0.976641
ch/kocevski/33457538/Model_4FGL_J1641.9-0621_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 source FHES J1626.9-2431
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/33457538/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits.....................!
real 115.50
user 112.87
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33457538/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits', '/lscratch/kocevski/33457538/ft2_4FGL_J1641.9-0621_weekly_bin938.fits', expMap='/lscratch/kocevski/33457538/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', expCube='/lscratch/kocevski/33457538/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33457538/Model_4FGL_J1641.9-0621_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1641.9-0621'

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  5.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33457538/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33457538/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33457538/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33457538/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33457538/Model_4FGL_J1641.9-0621_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) = 31299.4989453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.634       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20450E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .38806E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10258       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.082       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.061       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    10 'Prefactor '    .97669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31299.50     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      756 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.600        16.010        .18970E-05   -.21116    
   2  Prefactor     .44542E-06    22.000        .41303E-06** at limit **
   3  Prefactor     .33307E-09    13.393       -.64044E-06** at limit **
   4  Prefactor     21.574        11.164        .35268E-06    .22408E-02
   5  Prefactor     .34872E-06    18.010        .87265E-06** at limit **
   6  Prefactor     .62249E-01    36.885       -.25499E-05** at limit **
   7  Prefactor     10.074        12.099       -.40921E-05   -.95002E-01
   8  Prefactor     42.070        1.2029       -.11166E-06    .12447E-01
   9  Normalizat    1.2814        .21281        .81967E-05    .38242E-04
  10  Prefactor     .97664        .38817E-01   -.21532E-05    .34833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5996
  Prefactor  = 4.45421e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 21.5743
  Prefactor  = 3.48721e-07
  Prefactor  = 0.0622494
  Prefactor  = 10.0743
  Prefactor  = 42.0705
  Normalizat = 1.28136
  Prefactor  = 0.976641
Done.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
 **********
 **   18 **HESSE 
 **********

 FCN=   31299.50     FROM HESSE     STATUS=OK           126 CALLS      882 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.600        27.716        .11499E-03   -1.5534    
   2  Prefactor     .44542E-06    22.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    13.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.574        11.193        .21530E-03   -1.5615    
   5  Prefactor     .34872E-06    18.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62249E-01    .93192        .97009E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.074        14.273        .31533E-03   -1.5644    
   8  Prefactor     42.070        98.573        .15421E-03   -1.5578    
   9  Normalizat    1.2814        .20118        .14290       -.84125    
  10  Prefactor     .97664        .36047E-01    .29806E-01   -.93512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09615e-07
Minuit parameter uncertainties:
  1  27.7156
  2  0.00637466
  3  0.000130871
  4  11.193
  5  0.00509418
  6  0.48171
  7  14.2728
  8  98.577
  9  0.2013
  10  0.0360477
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33457540/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:14:46.075548', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785273286.08', return_code='0', job_id='33457540', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:14:46 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   31299.50     FROM HESSE     STATUS=OK           126 CALLS      882 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.600        27.716        .11499E-03   -1.5534    
   2  Prefactor     .44542E-06    22.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    13.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.574        11.193        .21530E-03   -1.5615    
   5  Prefactor     .34872E-06    18.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62249E-01    .93192        .97009E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.074        14.273        .31533E-03   -1.5644    
   8  Prefactor     42.070        98.573        .15421E-03   -1.5578    
   9  Normalizat    1.2814        .20118        .14290       -.84125    
  10  Prefactor     .97664        .36047E-01    .29806E-01   -.93512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09615e-07
Minuit parameter uncertainties:
  1  27.7156
  2  0.00637466
  3  0.000130871
  4  11.193
  5  0.00509418
  6  0.48171
  7  14.2728
  8  98.577
  9  0.2013
  10  0.0360477
ch/kocevski/33457564/Model_4FGL_J1641.9-0621_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 source FHES J1626.9-2431
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/33457564/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits.....................!
real 116.92
user 113.93
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33457564/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits', '/lscratch/kocevski/33457564/ft2_4FGL_J1641.9-0621_weekly_bin938.fits', expMap='/lscratch/kocevski/33457564/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', expCube='/lscratch/kocevski/33457564/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33457564/Model_4FGL_J1641.9-0621_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1641.9-0621'

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  5.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33457564/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33457564/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33457564/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33457564/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33457564/Model_4FGL_J1641.9-0621_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) = 31299.4989453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.634       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20450E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .38806E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10258       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.082       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.061       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    10 'Prefactor '    .97669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31299.50     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      756 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.600        16.010        .18970E-05   -.21116    
   2  Prefactor     .44542E-06    22.000        .41303E-06** at limit **
   3  Prefactor     .33307E-09    13.393       -.64044E-06** at limit **
   4  Prefactor     21.574        11.164        .35268E-06    .22408E-02
   5  Prefactor     .34872E-06    18.010        .87265E-06** at limit **
   6  Prefactor     .62249E-01    36.885       -.25499E-05** at limit **
   7  Prefactor     10.074        12.099       -.40921E-05   -.95002E-01
   8  Prefactor     42.070        1.2029       -.11166E-06    .12447E-01
   9  Normalizat    1.2814        .21281        .81967E-05    .38242E-04
  10  Prefactor     .97664        .38817E-01   -.21532E-05    .34833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5996
  Prefactor  = 4.45421e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 21.5743
  Prefactor  = 3.48721e-07
  Prefactor  = 0.0622494
  Prefactor  = 10.0743
  Prefactor  = 42.0705
  Normalizat = 1.28136
  Prefactor  = 0.976641
 **********
 **   18 **HESSE 
 **********

 FCN=   31299.50     FROM HESSE     STATUS=OK           126 CALLS      882 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.600        27.716        .11499E-03   -1.5534    
   2  Prefactor     .44542E-06    22.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    13.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.574        11.193        .21530E-03   -1.5615    
   5  Prefactor     .34872E-06    18.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62249E-01    .93192        .97009E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.074        14.273        .31533E-03   -1.5644    
   8  Prefactor     42.070        98.573        .15421E-03   -1.5578    
   9  Normalizat    1.2814        .20118        .14290       -.84125    
  10  Prefactor     .97664        .36047E-01    .29806E-01   -.93512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09615e-07
Minuit parameter uncertainties:
  1  27.7156
  2  0.00637466
  3  0.000130871
  4  11.193
  5  0.00509418
  6  0.48171
  7  14.2728
  8  98.577
  9  0.2013
  10  0.0360477
Done.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33457581/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:15:39.308318', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785273339.31', return_code='0', job_id='33457581', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:15:39 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33457538/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:15:56.568402', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785273356.57', return_code='0', job_id='33457538', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:15:57 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33457564/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:16:22.672570', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785273382.67', return_code='0', job_id='33457564', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:16:23 PDT 2026

ch/kocevski/33457641/Model_4FGL_J1641.9-0621_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 source FHES J1626.9-2431
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/33457641/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits.....................!
real 99.63
user 97.32
sys 0.71

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33457641/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits', '/lscratch/kocevski/33457641/ft2_4FGL_J1641.9-0621_weekly_bin938.fits', expMap='/lscratch/kocevski/33457641/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', expCube='/lscratch/kocevski/33457641/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33457641/Model_4FGL_J1641.9-0621_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1641.9-0621'

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  5.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33457641/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33457641/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33457641/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33457641/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33457641/Model_4FGL_J1641.9-0621_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) = 31299.4989453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.634       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20450E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .38806E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10258       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.082       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.061       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    10 'Prefactor '    .97669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31299.50     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      756 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.600        16.010        .18970E-05   -.21116    
   2  Prefactor     .44542E-06    22.000        .41303E-06** at limit **
   3  Prefactor     .33307E-09    13.393       -.64044E-06** at limit **
   4  Prefactor     21.574        11.164        .35268E-06    .22408E-02
   5  Prefactor     .34872E-06    18.010        .87265E-06** at limit **
   6  Prefactor     .62249E-01    36.885       -.25499E-05** at limit **
   7  Prefactor     10.074        12.099       -.40921E-05   -.95002E-01
   8  Prefactor     42.070        1.2029       -.11166E-06    .12447E-01
   9  Normalizat    1.2814        .21281        .81967E-05    .38242E-04
  10  Prefactor     .97664        .38817E-01   -.21532E-05    .34833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5996
  Prefactor  = 4.45421e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 21.5743
  Prefactor  = 3.48721e-07
  Prefactor  = 0.0622494
  Prefactor  = 10.0743
  Prefactor  = 42.0705
  Normalizat = 1.28136
  Prefactor  = 0.976641
 **********
 **   18 **HESSE 
 **********

 FCN=   31299.50     FROM HESSE     STATUS=OK           126 CALLS      882 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.600        27.716        .11499E-03   -1.5534    
   2  Prefactor     .44542E-06    22.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    13.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.574        11.193        .21530E-03   -1.5615    
   5  Prefactor     .34872E-06    18.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62249E-01    .93192        .97009E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.074        14.273        .31533E-03   -1.5644    
   8  Prefactor     42.070        98.573        .15421E-03   -1.5578    
   9  Normalizat    1.2814        .20118        .14290       -.84125    
  10  Prefactor     .97664        .36047E-01    .29806E-01   -.93512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09615e-07
Minuit parameter uncertainties:
  1  27.7156
  2  0.00637466
  3  0.000130871
  4  11.193
  5  0.00509418
  6  0.48171
  7  14.2728
  8  98.577
  9  0.2013
  10  0.0360477
Done.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33457641/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:17:41.145180', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785273461.15', return_code='0', job_id='33457641', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:17:41 PDT 2026

ch/kocevski/33457588/Model_4FGL_J1641.9-0621_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 source FHES J1626.9-2431
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/33457588/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits.....................!
real 129.96
user 126.99
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33457588/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits', '/lscratch/kocevski/33457588/ft2_4FGL_J1641.9-0621_weekly_bin938.fits', expMap='/lscratch/kocevski/33457588/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', expCube='/lscratch/kocevski/33457588/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33457588/Model_4FGL_J1641.9-0621_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1641.9-0621'

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  5.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33457588/ft1_filtered_4FGL_J1641.9-0621_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33457588/ft2_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33457588/expmap_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33457588/ltcube_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33457588/Model_4FGL_J1641.9-0621_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) = 31299.4989453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.634       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20450E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .38806E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10258       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.082       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.061       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    10 'Prefactor '    .97669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31299.50     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      756 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.600        16.010        .18970E-05   -.21116    
   2  Prefactor     .44542E-06    22.000        .41303E-06** at limit **
   3  Prefactor     .33307E-09    13.393       -.64044E-06** at limit **
   4  Prefactor     21.574        11.164        .35268E-06    .22408E-02
   5  Prefactor     .34872E-06    18.010        .87265E-06** at limit **
   6  Prefactor     .62249E-01    36.885       -.25499E-05** at limit **
   7  Prefactor     10.074        12.099       -.40921E-05   -.95002E-01
   8  Prefactor     42.070        1.2029       -.11166E-06    .12447E-01
   9  Normalizat    1.2814        .21281        .81967E-05    .38242E-04
  10  Prefactor     .97664        .38817E-01   -.21532E-05    .34833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5996
  Prefactor  = 4.45421e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 21.5743
  Prefactor  = 3.48721e-07
  Prefactor  = 0.0622494
  Prefactor  = 10.0743
  Prefactor  = 42.0705
  Normalizat = 1.28136
  Prefactor  = 0.976641
 **********
 **   18 **HESSE 
 **********

 FCN=   31299.50     FROM HESSE     STATUS=OK           126 CALLS      882 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.600        27.716        .11499E-03   -1.5534    
   2  Prefactor     .44542E-06    22.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    13.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.574        11.193        .21530E-03   -1.5615    
   5  Prefactor     .34872E-06    18.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62249E-01    .93192        .97009E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.074        14.273        .31533E-03   -1.5644    
   8  Prefactor     42.070        98.573        .15421E-03   -1.5578    
   9  Normalizat    1.2814        .20118        .14290       -.84125    
  10  Prefactor     .97664        .36047E-01    .29806E-01   -.93512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09615e-07
Minuit parameter uncertainties:
  1  27.7156
  2  0.00637466
  3  0.000130871
  4  11.193
  5  0.00509418
  6  0.48171
  7  14.2728
  8  98.577
  9  0.2013
  10  0.0360477
Done.

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

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  2.157e+01  1.119e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.347e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.766e-01  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.281e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 250.489 -6.353
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.50e-05

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) = 31298.8012452
delta logL = 0.696577065537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115589657

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31298.80     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      329 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.115        16.163        .71719E-05   -.47555E-03
   2  Index         1.9404        .32266        .10585E-01    .56543E-03
   3  Normalizat    1.3049        .20796        .62995E-03    .12128E-04
   4  Prefactor     .97452        .38633E-01    .13183E-03    .62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1154
  Index      = 1.94043
  Normalizat = 1.30492
  Prefactor  = 0.974523
 **********
 **   18 **HESSE 
 **********

 FCN=   31298.80     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.115        16.021        .28688E-06   -1.5596    
   2  Index         1.9404        .31975        .21170E-02   -.65848    
   3  Normalizat    1.3049        .20798        .25198E-04   -.83420    
   4  Prefactor     .97452        .38647E-01    .52733E-05   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47076e-12
Minuit parameter uncertainties:
  1  16.0213
  2  0.320098
  3  0.208113
  4  0.0386482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31298.7997067
delta logL = 0.698115599018

Extracting fit parameters...

4FGL J1641.9-0621
   Spectrum: PowerLaw
275    Prefactor:  3.112e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.940e+00  3.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.745e-01  3.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.305e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 250.489 -6.353
Photon Index (Free Index): 1.94 +/- 0.32
Photon Flux (Free Index): 5.74e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.62e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/33457588/cmap_HighResolution_806284801_806889601_4FGL_J1641.9-0621_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='4.62e-05', photon_flux_error='4.25e-08', dlogl='6.98e-01', energy_flux='2.89e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2026-07-28 14:19:34.529268', photon_index_error2='0.32', photon_index2='1.94', ts='6.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.28', time_epoch_completed='1785273574.53', return_code='0', job_id='33457588', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.74e-08', ts2='7.66', photon_index='2.35' WHERE bin_id='938' AND source_name='4FGL J1641.9-0621' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 14:19:35 PDT 2026

