Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  5.551e-10  1.212e-04  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.049e+00  5.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.084e-01  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 2.74292591756e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00203028142443 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40074036/likelihoodResults_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24924.0856859
delta logL = -0.0718869658376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24923.757968
delta logL = 0.255830854301

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24923.76     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      255 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81684E-01    .63565        .13778E-02** at limit **
   2  Index         3.7426        1.4689        .75195E-01    .97937E-03
   3  Normalizat    .78053        .16758E-01    .98748E-01   -.21761E-04
   4  Prefactor     1.0540        .66841E-02    .39680E-01   -.19427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0816844
  Index      = 3.74265
  Normalizat = 0.780532
  Prefactor  = 1.05398
 **********
 **   18 **HESSE 
 **********

 FCN=   24923.76     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81684E-01    7.1382        .50865E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7426        6.8382        .98375E-02   -.25420    
   3  Normalizat    .78053        .78512E-01    .43760E-03   -1.0079    
   4  Prefactor     1.0540        .31048E-01    .15149E-03   -.90951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.12788e-09
Minuit parameter uncertainties:
  1  1.52719
  2  5.58334
  3  0.0785234
  4  0.0310489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24923.7579669
delta logL = 0.255832004754

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  8.168e-02  1.527e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  3.743e+00  5.583e+00  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.054e+00  3.105e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.805e-01  7.852e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.173 37.083

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/40074036/cmap_HighResolution_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-03', job_status='DONE', photon_flux_upper_limit='2.74e-08', time_completed='2026-10-06 19:40:21.708505', job_id='40074036', GAL2='1.05', fit_tolerance='1e-08', EG2='0.78', EG='0.81', time_epoch_completed='1791340821.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.56e-01', ts2='0.57', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='948' AND source_name='4FGL J2304.6+3704' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:40:22 PDT 2026

/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)
 outfile=/lscratch/kocevski/40074321/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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/40074321/ft2_4FGL_J2304.6+3704_weekly_bin948.fits
.....................!
real 51.54
user 50.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40074321/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40074321/ft2_4FGL_J2304.6+3704_weekly_bin948.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40074321/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074321/expmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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/40074321/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits
.....................!
real 84.84
user 79.36
sys 4.82

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 J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 155 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 J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/40074321/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits scfile=/lscratch/kocevski/40074321/ft2_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074321/cmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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=346.173 yref=37.0826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.84
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40074321/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits scfile=/lscratch/kocevski/40074321/ft2_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074321/cmap_HighResolution_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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=346.173 yref=37.0826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.83
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40074321/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40074321/ft2_4FGL_J2304.6+3704_weekly_bin948.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  5.551e-10  1.212e-04  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.049e+00  5.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.084e-01  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 2.74292591756e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00203028142443 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40074063/likelihoodResults_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24924.0856859
delta logL = -0.0718869658376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24923.757968
delta logL = 0.255830854301

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24923.76     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      255 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81684E-01    .63565        .13778E-02** at limit **
   2  Index         3.7426        1.4689        .75195E-01    .97937E-03
   3  Normalizat    .78053        .16758E-01    .98748E-01   -.21761E-04
   4  Prefactor     1.0540        .66841E-02    .39680E-01   -.19427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0816844
  Index      = 3.74265
  Normalizat = 0.780532
  Prefactor  = 1.05398
 **********
 **   18 **HESSE 
 **********

 FCN=   24923.76     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81684E-01    7.1382        .50865E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7426        6.8382        .98375E-02   -.25420    
   3  Normalizat    .78053        .78512E-01    .43760E-03   -1.0079    
   4  Prefactor     1.0540        .31048E-01    .15149E-03   -.90951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.12788e-09
Minuit parameter uncertainties:
  1  1.52719
  2  5.58334
  3  0.0785234
  4  0.0310489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24923.7579669
delta logL = 0.255832004754

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  8.168e-02  1.527e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  3.743e+00  5.583e+00  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.054e+00  3.105e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.805e-01  7.852e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.173 37.083

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/40074063/cmap_HighResolution_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-03', job_status='DONE', photon_flux_upper_limit='2.74e-08', time_completed='2026-10-06 19:41:06.067711', job_id='40074063', GAL2='1.05', fit_tolerance='1e-08', EG2='0.78', EG='0.81', time_epoch_completed='1791340866.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.56e-01', ts2='0.57', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='948' AND source_name='4FGL J2304.6+3704' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:41:06 PDT 2026

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


Performing analysis on: 4FGL_J2304.6+3704_weekly_bin948
RA = 346.173, Dec = 37.0826
tmin = 812332801, tmax = 812937601
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='40074560', job_status='RUN', time_executed='2026-10-06 19:38:30.849241', time_epoch_executed='1791340710.85' WHERE source_name='4FGL J2304.6+3704' and cadence='weekly' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40074560

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40074560/ft1_4FGL_J2304.6+3704_weekly_bin948.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40074560/ft1_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074560/ft1_filteredMKT_4FGL_J2304.6+3704_weekly_bin948.fits ra=346.173 dec=37.0826 rad=12.0 tmin=812332801.0 tmax=812937601.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.73
user 5.09
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.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/40074560/ft1_filteredMKT_4FGL_J2304.6+3704_weekly_bin948.fits evtable="EVENTS" outfile="/lscratch/kocevski/40074560/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2355

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40074560/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.fits sctable="SC_DATA" outfile=/lscratch/kocevski/40074560/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.fits
.....................!
real 18.42
user 17.76
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40074560/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40074560/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074560/expmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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/40074560/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits
.....................!
real 66.19
user 61.85
sys 3.75

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 J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 155 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 J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/40074560/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits scfile=/lscratch/kocevski/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074560/cmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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=346.173 yref=37.0826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.65
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40074560/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits scfile=/lscratch/kocevski/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074560/cmap_HighResolution_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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=346.173 yref=37.0826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.71
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40074560/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40number of points = 17454
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2304.6+3704_weekly_bin948
RA = 346.173, Dec = 37.0826
tmin = 812332801, tmax = 812937601
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='40074679', job_status='RUN', time_executed='2026-10-06 19:40:32.079522', time_epoch_executed='1791340832.08' WHERE source_name='4FGL J2304.6+3704' and cadence='weekly' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40074679

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40074679/ft1_4FGL_J2304.6+3704_weekly_bin948.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40074679/ft1_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074679/ft1_filteredMKT_4FGL_J2304.6+3704_weekly_bin948.fits ra=346.173 dec=37.0826 rad=12.0 tmin=812332801.0 tmax=812937601.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.74
user 5.10
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.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/40074679/ft1_filteredMKT_4FGL_J2304.6+3704_weekly_bin948.fits evtable="EVENTS" outfile="/lscratch/kocevski/40074679/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2355

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40074679/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.fits sctable="SC_DATA" outfile=/lscratch/kocevski/40074679/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.fits
.....................!
real 17.93
user 17.35
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40074679/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40074679/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074679/expmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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/40074679/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits
.....................!
real 67.39
user 63.12
sys 3.68

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 J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 155 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 J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/40074679/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits scfile=/lscratch/kocevski/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074679/cmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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=346.173 yref=37.0826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.65
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40074679/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits scfile=/lscratch/kocevski/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.fits outfile=/lscratch/kocevski/40074679/cmap_HighResolution_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.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=346.173 yref=37.0826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.65
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40074679/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40074321/Model_4FGL_J2304.6+3704_weekly_bin948.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/40074321/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits.....................!
real 128.22
user 125.87
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40074321/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits', '/lscratch/kocevski/40074321/ft2_4FGL_J2304.6+3704_weekly_bin948.fits', expMap='/lscratch/kocevski/40074321/expmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits', expCube='/lscratch/kocevski/40074321/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40074321/Model_4FGL_J2304.6+3704_weekly_bin948.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/40074321/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits
Spacecraft file(s): /lscratch/kocevski/40074321/ft2_4FGL_J2304.6+3704_weekly_bin948.fits
Exposure map: /lscratch/kocevski/40074321/expmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits
Exposure cube: /lscratch/kocevski/40074321/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40074321/Model_4FGL_J2304.6+3704_weekly_bin948.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) = 24924.1452028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5882       1.0000          .0000       .10000E+07
     2 'norm      '    .42023       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3807       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.6494       1.0000          .0000       .10000E+07
     5 'Prefactor '    .41591E-05   1.0000          .0000       .10000E+07
     6 'norm      '    1.4159       1.0000          .0000       .10000E+07
     7 'Prefactor '    21.182       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.9397       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13244E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .26588       1.0000          .0000       .10000E+07
    11 'norm      '    3.9177       1.0000          .0000       .10000E+07
    12 'Prefactor '    12.293       1.0000          .0000       .10000E+07
    13 'norm      '    1.4090       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.3573       1.0000          .0000       .10000E+07
    15 'Prefactor '    20.809       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.1057       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44520E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    .80852       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24924.01     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1159 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5885        .79465       -.12009E-07    .16644E-01
   2  norm          .42069        1.5567       -.41433E-07    .16163E-02
   3  Prefactor     4.4746        7.8390       -.59432E-06   -.26498E-02
   4  Prefactor     3.6498        2.8340       -.15303E-06    .10692E-01
   5  Prefactor     .55511E-09    6.7166        .16213E-05** at limit **
   6  norm          1.4170        .78554        .33153E-07    .72679E-02
   7  Prefactor     21.335        1.7245        .32183E-06    .11858E-01
   8  Prefactor     5.9439        5.8686        .30099E-06   -.32535E-02
   9  Prefactor     .27756E-09    8.4672       -.27244E-05** at limit **
  10  norm          .27855        4.1548        .62005E-06    .83364E-04
  11  norm          3.9156        3.7511        .44969E-07   -.69904E-02
  12  Prefactor     12.121        10.057       -.13206E-05    .47667E-02
  13  norm          1.4096        1.2327       -.11621E-06    .21189E-01
  14  Prefactor     6.4162        5.1633        .31431E-05   -.89825E-02
  15  Prefactor     21.159        25.899        .81383E-05    .37930E-02
  16  Prefactor     3.3737        22.131       -.98122E-05   -.14036E-02
  17  Prefactor     .49960E-09    2.3868       -.22519E-06** at limit **
  18  Normalizat    .80843        .15359       -.20823E-04    .34110E-03
  19  Prefactor     1.0490        .58338E-01    .63418E-05   -.71624E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.58852
  norm       = 0.420695
  Prefactor  = 4.47459
  Prefactor  = 3.64983
  Prefactor  = 5.55112e-10
  norm       = 1.41698
  Prefactor  = 21.3353
  Prefactor  = 5.94392
  Prefactor  = 2.77556e-10
  norm       = 0.278552
  norm       = 3.91564
  Prefactor  = 12.121
  norm       = 1.40958
  Prefactor  = 6.41616
  Prefactor  = 21.1586
  Prefactor  = 3.37365
  Prefactor  = 4.996e-10
  Normalizat = 0.808431
  Prefactor  = 1.04895
 **********
 **   18 **HESSE 
 **********

 FCN=   24924.01     FROM HESSE     STATUS=OK           320 CALLS     1479 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5885        .79568        .63402E-03   -1.5676    
   2  norm          .42069        1.5675        .87180E-03   -1.5695    
   3  Prefactor     4.4746        7.8465        .48097E-03   -1.5666    
   4  Prefactor     3.6498        2.8485        .52855E-03   -1.5670    
   5  Prefactor     .55511E-09    6.7063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4170        .79299        .90940E-03   -1.5684    
   7  Prefactor     21.335        13.062        .21734E-03   -1.5616    
   8  Prefactor     5.9439        5.8925        .41179E-03   -1.5659    
   9  Prefactor     .27756E-09    8.4831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .27855        1.3621        .53331E-02   -1.5697    
  11  norm          3.9156        3.7473        .50946E-03   -1.5668    
  12  Prefactor     12.121        10.534        .28546E-03   -1.5638    
  13  norm          1.4096        1.2496        .91255E-03   -1.5684    
  14  Prefactor     6.4162        29.670        .39785E-03   -1.5657    
  15  Prefactor     21.159        26.129        .21928E-03   -1.5616    
  16  Prefactor     3.3737        22.212        .57515E-03   -1.5671    
  17  Prefactor     .49960E-09    2.3704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .80843        .13733        .97175E-01   -.99757    
  19  Prefactor     1.0490        .51613E-01    .39966E-01   -.91115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6148e-05
Minuit parameter uncertainties:
  1  0.795679
  2  1.56745
  3  7.84654
  4  2.84852
  5  0.00012117
  6  0.792989
  7  13.0615
  8  5.89248
  9  9.27322e-05
  10  1.23193
  11  3.74726
  12  10.5342
  13  1.24962
  14  27.5949
  15  26.1287
  16  17.313
  17  6.82704e-05
  18  0.137387
  19  0.0516158
074560/Model_4FGL_J2304.6+3704_weekly_bin948.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/40074560/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits.....................!
real 97.80
user 95.82
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40074560/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits', '/lscratch/kocevski/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.fits', expMap='/lscratch/kocevski/40074560/expmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits', expCube='/lscratch/kocevski/40074560/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40074560/Model_4FGL_J2304.6+3704_weekly_bin948.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/40074560/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits
Spacecraft file(s): /lscratch/kocevski/40074560/ft2_4FGL_J2304.6+3704_weekly_bin948.fits
Exposure map: /lscratch/kocevski/40074560/expmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits
Exposure cube: /lscratch/kocevski/40074560/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40074560/Model_4FGL_J2304.6+3704_weekly_bin948.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) = 24924.1452028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5882       1.0000          .0000       .10000E+07
     2 'norm      '    .42023       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3807       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.6494       1.0000          .0000       .10000E+07
     5 'Prefactor '    .41591E-05   1.0000          .0000       .10000E+07
     6 'norm      '    1.4159       1.0000          .0000       .10000E+07
     7 'Prefactor '    21.182       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.9397       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13244E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .26588       1.0000          .0000       .10000E+07
    11 'norm      '    3.9177       1.0000          .0000       .10000E+07
    12 'Prefactor '    12.293       1.0000          .0000       .10000E+07
    13 'norm      '    1.4090       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.3573       1.0000          .0000       .10000E+07
    15 'Prefactor '    20.809       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.1057       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44520E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    .80852       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24924.01     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1159 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5885        .79465       -.12009E-07    .16644E-01
   2  norm          .42069        1.5567       -.41433E-07    .16163E-02
   3  Prefactor     4.4746        7.8390       -.59432E-06   -.26498E-02
   4  Prefactor     3.6498        2.8340       -.15303E-06    .10692E-01
   5  Prefactor     .55511E-09    6.7166        .16213E-05** at limit **
   6  norm          1.4170        .78554        .33153E-07    .72679E-02
   7  Prefactor     21.335        1.7245        .32183E-06    .11858E-01
   8  Prefactor     5.9439        5.8686        .30099E-06   -.32535E-02
   9  Prefactor     .27756E-09    8.4672       -.27244E-05** at limit **
  10  norm          .27855        4.1548        .62005E-06    .83364E-04
  11  norm          3.9156        3.7511        .44969E-07   -.69904E-02
  12  Prefactor     12.121        10.057       -.13206E-05    .47667E-02
  13  norm          1.4096        1.2327       -.11621E-06    .21189E-01
  14  Prefactor     6.4162        5.1633        .31431E-05   -.89825E-02
  15  Prefactor     21.159        25.899        .81383E-05    .37930E-02
  16  Prefactor     3.3737        22.131       -.98122E-05   -.14036E-02
  17  Prefactor     .49960E-09    2.3868       -.22519E-06** at limit **
  18  Normalizat    .80843        .15359       -.20823E-04    .34110E-03
  19  Prefactor     1.0490        .58338E-01    .63418E-05   -.71624E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.58852
  norm       = 0.420695
  Prefactor  = 4.47459
  Prefactor  = 3.64983
  Prefactor  = 5.55112e-10
  norm       = 1.41698
  Prefactor  = 21.3353
  Prefactor  = 5.94392
  Prefactor  = 2.77556e-10
  norm       = 0.278552
  norm       = 3.91564
  Prefactor  = 12.121
  norm       = 1.40958
  Prefactor  = 6.41616
  Prefactor  = 21.1586
  Prefactor  = 3.37365
  Prefactor  = 4.996e-10
  Normalizat = 0.808431
  Prefactor  = 1.04895
 **********
 **   18 **HESSE 
 **********

 FCN=   24924.01     FROM HESSE     STATUS=OK           320 CALLS     1479 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5885        .79568        .63402E-03   -1.5676    
   2  norm          .42069        1.5675        .87180E-03   -1.5695    
   3  Prefactor     4.4746        7.8465        .48097E-03   -1.5666    
   4  Prefactor     3.6498        2.8485        .52855E-03   -1.5670    
   5  Prefactor     .55511E-09    6.7063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4170        .79299        .90940E-03   -1.5684    
   7  Prefactor     21.335        13.062        .21734E-03   -1.5616    
   8  Prefactor     5.9439        5.8925        .41179E-03   -1.5659    
   9  Prefactor     .27756E-09    8.4831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .27855        1.3621        .53331E-02   -1.5697    
  11  norm          3.9156        3.7473        .50946E-03   -1.5668    
  12  Prefactor     12.121        10.534        .28546E-03   -1.5638    
  13  norm          1.4096        1.2496        .91255E-03   -1.5684    
  14  Prefactor     6.4162        29.670        .39785E-03   -1.5657    
  15  Prefactor     21.159        26.129        .21928E-03   -1.5616    
  16  Prefactor     3.3737        22.212        .57515E-03   -1.5671    
  17  Prefactor     .49960E-09    2.3704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .80843        .13733        .97175E-01   -.99757    
  19  Prefactor     1.0490        .51613E-01    .39966E-01   -.91115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6148e-05
Minuit parameter uncertainties:
  1  0.795679
  2  1.56745
  3  7.84654
  4  2.84852
  5  0.00012117
  6  0.792989
  7  13.0615
  8  5.89248
  9  9.27322e-05
  10  1.23193
  11  3.74726
  12  10.5342
  13  1.24962
  14  27.5949
  15  26.1287
  16  17.313
  17  6.82704e-05
  18  0.137387
  19  0.0516158
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  5.551e-10  1.212e-04  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.049e+00  5.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.084e-01  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 2.74292591756e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00203028142443 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40074321/likelihoodResults_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24924.0856859
delta logL = -0.0718869658376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24923.757968
delta logL = 0.255830854301

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24923.76     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      255 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81684E-01    .63565        .13778E-02** at limit **
   2  Index         3.7426        1.4689        .75195E-01    .97937E-03
   3  Normalizat    .78053        .16758E-01    .98748E-01   -.21761E-04
   4  Prefactor     1.0540        .66841E-02    .39680E-01   -.19427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0816844
  Index      = 3.74265
  Normalizat = 0.780532
  Prefactor  = 1.05398
 **********
 **   18 **HESSE 
 **********

 FCN=   24923.76     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81684E-01    7.1382        .50865E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7426        6.8382        .98375E-02   -.25420    
   3  Normalizat    .78053        .78512E-01    .43760E-03   -1.0079    
   4  Prefactor     1.0540        .31048E-01    .15149E-03   -.90951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.12788e-09
Minuit parameter uncertainties:
  1  1.52719
  2  5.58334
  3  0.0785234
  4  0.0310489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24923.7579669
delta logL = 0.255832004754

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  8.168e-02  1.527e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  3.743e+00  5.583e+00  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.054e+00  3.105e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.805e-01  7.852e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.173 37.083

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/40074321/cmap_HighResolution_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-03', job_status='DONE', photon_flux_upper_limit='2.74e-08', time_completed='2026-10-06 19:48:58.634346', job_id='40074321', GAL2='1.05', fit_tolerance='1e-08', EG2='0.78', EG='0.81', time_epoch_completed='1791341338.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.56e-01', ts2='0.57', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='948' AND source_name='4FGL J2304.6+3704' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:48:58 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  5.551e-10  1.212e-04  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.049e+00  5.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.084e-01  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 2.74292591756e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00203028142443 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40074560/likelihoodResults_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24924.0856859
delta logL = -0.0718869658376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24923.757968
delta logL = 0.255830854301

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24923.76     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      255 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81684E-01    .63565        .13778E-02** at limit **
   2  Index         3.7426        1.4689        .75195E-01    .97937E-03
   3  Normalizat    .78053        .16758E-01    .98748E-01   -.21761E-04
   4  Prefactor     1.0540        .66841E-02    .39680E-01   -.19427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0816844
  Index      = 3.74265
  Normalizat = 0.780532
  Prefactor  = 1.05398
 **********
 **   18 **HESSE 
 **********

 FCN=   24923.76     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81684E-01    7.1382        .50865E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7426        6.8382        .98375E-02   -.25420    
   3  Normalizat    .78053        .78512E-01    .43760E-03   -1.0079    
   4  Prefactor     1.0540        .31048E-01    .15149E-03   -.90951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.12788e-09
Minuit parameter uncertainties:
  1  1.52719
  2  5.58334
  3  0.0785234
  4  0.0310489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24923.7579669
delta logL = 0.255832004754

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  8.168e-02  1.527e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  3.743e+00  5.583e+00  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.054e+00  3.105e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.805e-01  7.852e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.173 37.083

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/40074560/cmap_HighResolution_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-03', job_status='DONE', photon_flux_upper_limit='2.74e-08', time_completed='2026-10-06 19:49:25.991278', job_id='40074560', GAL2='1.05', fit_tolerance='1e-08', EG2='0.78', EG='0.81', time_epoch_completed='1791341365.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.56e-01', ts2='0.57', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='948' AND source_name='4FGL J2304.6+3704' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:49:26 PDT 2026

074679/Model_4FGL_J2304.6+3704_weekly_bin948.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/40074679/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits.....................!
real 100.57
user 98.81
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40074679/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits', '/lscratch/kocevski/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.fits', expMap='/lscratch/kocevski/40074679/expmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits', expCube='/lscratch/kocevski/40074679/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40074679/Model_4FGL_J2304.6+3704_weekly_bin948.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/40074679/ft1_filtered_4FGL_J2304.6+3704_weekly_bin948.fits
Spacecraft file(s): /lscratch/kocevski/40074679/ft2_4FGL_J2304.6+3704_weekly_bin948.fits
Exposure map: /lscratch/kocevski/40074679/expmap_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits
Exposure cube: /lscratch/kocevski/40074679/ltcube_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40074679/Model_4FGL_J2304.6+3704_weekly_bin948.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) = 24924.1452028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5882       1.0000          .0000       .10000E+07
     2 'norm      '    .42023       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3807       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.6494       1.0000          .0000       .10000E+07
     5 'Prefactor '    .41591E-05   1.0000          .0000       .10000E+07
     6 'norm      '    1.4159       1.0000          .0000       .10000E+07
     7 'Prefactor '    21.182       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.9397       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13244E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .26588       1.0000          .0000       .10000E+07
    11 'norm      '    3.9177       1.0000          .0000       .10000E+07
    12 'Prefactor '    12.293       1.0000          .0000       .10000E+07
    13 'norm      '    1.4090       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.3573       1.0000          .0000       .10000E+07
    15 'Prefactor '    20.809       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.1057       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44520E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    .80852       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24924.01     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1159 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5885        .79465       -.12009E-07    .16644E-01
   2  norm          .42069        1.5567       -.41433E-07    .16163E-02
   3  Prefactor     4.4746        7.8390       -.59432E-06   -.26498E-02
   4  Prefactor     3.6498        2.8340       -.15303E-06    .10692E-01
   5  Prefactor     .55511E-09    6.7166        .16213E-05** at limit **
   6  norm          1.4170        .78554        .33153E-07    .72679E-02
   7  Prefactor     21.335        1.7245        .32183E-06    .11858E-01
   8  Prefactor     5.9439        5.8686        .30099E-06   -.32535E-02
   9  Prefactor     .27756E-09    8.4672       -.27244E-05** at limit **
  10  norm          .27855        4.1548        .62005E-06    .83364E-04
  11  norm          3.9156        3.7511        .44969E-07   -.69904E-02
  12  Prefactor     12.121        10.057       -.13206E-05    .47667E-02
  13  norm          1.4096        1.2327       -.11621E-06    .21189E-01
  14  Prefactor     6.4162        5.1633        .31431E-05   -.89825E-02
  15  Prefactor     21.159        25.899        .81383E-05    .37930E-02
  16  Prefactor     3.3737        22.131       -.98122E-05   -.14036E-02
  17  Prefactor     .49960E-09    2.3868       -.22519E-06** at limit **
  18  Normalizat    .80843        .15359       -.20823E-04    .34110E-03
  19  Prefactor     1.0490        .58338E-01    .63418E-05   -.71624E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.58852
  norm       = 0.420695
  Prefactor  = 4.47459
  Prefactor  = 3.64983
  Prefactor  = 5.55112e-10
  norm       = 1.41698
  Prefactor  = 21.3353
  Prefactor  = 5.94392
  Prefactor  = 2.77556e-10
  norm       = 0.278552
  norm       = 3.91564
  Prefactor  = 12.121
  norm       = 1.40958
  Prefactor  = 6.41616
  Prefactor  = 21.1586
  Prefactor  = 3.37365
  Prefactor  = 4.996e-10
  Normalizat = 0.808431
  Prefactor  = 1.04895
 **********
 **   18 **HESSE 
 **********

 FCN=   24924.01     FROM HESSE     STATUS=OK           320 CALLS     1479 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5885        .79568        .63402E-03   -1.5676    
   2  norm          .42069        1.5675        .87180E-03   -1.5695    
   3  Prefactor     4.4746        7.8465        .48097E-03   -1.5666    
   4  Prefactor     3.6498        2.8485        .52855E-03   -1.5670    
   5  Prefactor     .55511E-09    6.7063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4170        .79299        .90940E-03   -1.5684    
   7  Prefactor     21.335        13.062        .21734E-03   -1.5616    
   8  Prefactor     5.9439        5.8925        .41179E-03   -1.5659    
   9  Prefactor     .27756E-09    8.4831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .27855        1.3621        .53331E-02   -1.5697    
  11  norm          3.9156        3.7473        .50946E-03   -1.5668    
  12  Prefactor     12.121        10.534        .28546E-03   -1.5638    
  13  norm          1.4096        1.2496        .91255E-03   -1.5684    
  14  Prefactor     6.4162        29.670        .39785E-03   -1.5657    
  15  Prefactor     21.159        26.129        .21928E-03   -1.5616    
  16  Prefactor     3.3737        22.212        .57515E-03   -1.5671    
  17  Prefactor     .49960E-09    2.3704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .80843        .13733        .97175E-01   -.99757    
  19  Prefactor     1.0490        .51613E-01    .39966E-01   -.91115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6148e-05
Minuit parameter uncertainties:
  1  0.795679
  2  1.56745
  3  7.84654
  4  2.84852
  5  0.00012117
  6  0.792989
  7  13.0615
  8  5.89248
  9  9.27322e-05
  10  1.23193
  11  3.74726
  12  10.5342
  13  1.24962
  14  27.5949
  15  26.1287
  16  17.313
  17  6.82704e-05
  18  0.137387
  19  0.0516158
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  5.551e-10  1.212e-04  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.049e+00  5.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.084e-01  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 2.74292591756e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00203028142443 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40074679/likelihoodResults_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24924.0856859
delta logL = -0.0718869658376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24923.757968
delta logL = 0.255830854301

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24923.76     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      255 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81684E-01    .63565        .13778E-02** at limit **
   2  Index         3.7426        1.4689        .75195E-01    .97937E-03
   3  Normalizat    .78053        .16758E-01    .98748E-01   -.21761E-04
   4  Prefactor     1.0540        .66841E-02    .39680E-01   -.19427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0816844
  Index      = 3.74265
  Normalizat = 0.780532
  Prefactor  = 1.05398
 **********
 **   18 **HESSE 
 **********

 FCN=   24923.76     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81684E-01    7.1382        .50865E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7426        6.8382        .98375E-02   -.25420    
   3  Normalizat    .78053        .78512E-01    .43760E-03   -1.0079    
   4  Prefactor     1.0540        .31048E-01    .15149E-03   -.90951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.12788e-09
Minuit parameter uncertainties:
  1  1.52719
  2  5.58334
  3  0.0785234
  4  0.0310489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24923.7579669
delta logL = 0.255832004754

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  8.168e-02  1.527e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  3.743e+00  5.583e+00  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.054e+00  3.105e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.805e-01  7.852e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.173 37.083

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/40074679/cmap_HighResolution_812332801_812937601_4FGL_J2304.6+3704_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-03', job_status='DONE', photon_flux_upper_limit='2.74e-08', time_completed='2026-10-06 19:52:46.428937', job_id='40074679', GAL2='1.05', fit_tolerance='1e-08', EG2='0.78', EG='0.81', time_epoch_completed='1791341566.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.56e-01', ts2='0.57', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='948' AND source_name='4FGL J2304.6+3704' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:52:46 PDT 2026

