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

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).

Done.


Performing analysis on: 4FGL_J2321.9+3204_weekly_bin946
RA = 350.478, Dec = 32.0737
tmin = 811123201, tmax = 811728001
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='38841038', job_status='RUN', time_executed='2026-09-22 19:40:42.942783', time_epoch_executed='1790131242.94' WHERE source_name='4FGL J2321.9+3204' and cadence='weekly' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38841038

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38841038/ft1_4FGL_J2321.9+3204_weekly_bin946.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38841038/ft1_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841038/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin946.fits ra=350.478 dec=32.0737 rad=12.0 tmin=811123201.0 tmax=811728001.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.04
user 4.27
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.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/38841038/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" outfile="/lscratch/kocevski/38841038/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.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.80
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 2433

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38841038/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA"/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).

e GAL_V02
Working on...
/lscratch/kocevski/38840753/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 93.19
user 91.25
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38840753/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38840753/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38840753/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38840753/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38840753/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38840753/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38840753/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38840753/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38840753/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38840753/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
e GAL_V02
Working on...
/lscratch/kocevski/38840723/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 103.56
user 101.60
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38840723/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38840723/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38840723/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38840723/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38840723/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38840723/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38840723/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38840723/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38840723/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38840723/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
e GAL_V02
Working on...
/lscratch/kocevski/38840797/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 93.01
user 91.27
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38840797/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38840797/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38840797/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38840797/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38840797/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38840797/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38840797/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38840797/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38840797/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38840797/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
 outfile=/lscratch/kocevski/38840911/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38840911/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 19.28
user 18.57
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38840911/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38840911/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38840911/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38840911/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38840911/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 69.82
user 65.08
sys 4.04

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

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38840911/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38840911/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38840911/cmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.81
user 0.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38840911/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38840911/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38840911/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.74
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38840911/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38840911/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38840911/Model_4FGL_J2321.9+3204_weekly_bin946.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 sourc **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
 **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
 outfile=/lscratch/kocevski/38840913/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38840913/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 19.62
user 18.84
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38840913/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38840913/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38840913/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38840913/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38840913/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 72.06
user 67.06
sys 4.14

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

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38840913/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38840913/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38840913/cmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.81
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38840913/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38840913/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38840913/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.27
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38840913/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38840913/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38840913/Model_4FGL_J2321.9+3204_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcnumber of points = 17371
number of fields = 31
RA_SUN column already exists. File will not be modified.
 outfile=/lscratch/kocevski/38840979/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38840979/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 16.73
user 16.10
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38840979/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38840979/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38840979/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38840979/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38840979/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 59.56
user 55.71
sys 3.23

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

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38840979/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38840979/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38840979/cmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.72
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38840979/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38840979/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38840979/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.81
user 0.19
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38840979/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38840979/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38840979/Model_4FGL_J2321.9+3204_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcDone.


Performing analysis on: 4FGL_J2321.9+3204_weekly_bin946
RA = 350.478, Dec = 32.0737
tmin = 811123201, tmax = 811728001
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='38841086', job_status='RUN', time_executed='2026-09-22 19:41:32.623780', time_epoch_executed='1790131292.62' WHERE source_name='4FGL J2321.9+3204' and cadence='weekly' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38841086

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38841086/ft1_4FGL_J2321.9+3204_weekly_bin946.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38841086/ft1_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841086/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin946.fits ra=350.478 dec=32.0737 rad=12.0 tmin=811123201.0 tmax=811728001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.81
user 4.01
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.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/38841086/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" outfile="/lscratch/kocevski/38841086/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.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.74
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2433

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38841086/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA"e GAL_V02
Working on...
/lscratch/kocevski/38840785/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 104.37
user 102.46
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38840785/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38840785/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38840785/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38840785/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38840785/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38840785/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38840785/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38840785/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38840785/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38840785/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
 **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
number of points = 17371
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2321.9+3204_weekly_bin946
RA = 350.478, Dec = 32.0737
tmin = 811123201, tmax = 811728001
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='38841125', job_status='RUN', time_executed='2026-09-22 19:42:20.074901', time_epoch_executed='1790131340.07' WHERE source_name='4FGL J2321.9+3204' and cadence='weekly' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38841125

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38841125/ft1_4FGL_J2321.9+3204_weekly_bin946.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38841125/ft1_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841125/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin946.fits ra=350.478 dec=32.0737 rad=12.0 tmin=811123201.0 tmax=811728001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.48
user 3.70
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.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/38841125/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" outfile="/lscratch/kocevski/38841125/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.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.76
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 2433

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38841125/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38841009/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841009/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 17.49
user 16.81
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38841009/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841009/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38841009/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841009/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841009/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 63.44
user 58.89
sys 3.79

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

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38841009/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841009/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841009/cmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.76
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38841009/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841009/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841009/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.75
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38841009/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841009/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38841009/Model_4FGL_J2321.9+3204_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcDone.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38840753/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38840753/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:47:44.150304', job_id='38840753', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790131664.15', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:47:44 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38840723/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38840723/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:47:49.301547', job_id='38840723', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790131669.3', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:47:49 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38840797/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38840797/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:48:15.843228', job_id='38840797', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790131695.84', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:48:16 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38840785/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38840785/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:48:40.446536', job_id='38840785', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790131720.45', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:48:40 PDT 2026

 outfile=/lscratch/kocevski/38841038/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 20.59
user 19.70
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38841038/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38841038/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841038/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841038/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 71.93
user 66.95
sys 4.18

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

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38841038/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841038/cmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.87
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38841038/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841038/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.27
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38841038/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38841038/Model_4FGL_J2321.9+3204_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/38840979/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 89.04
user 87.30
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38840979/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38840979/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38840979/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38840979/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38840979/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38840979/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38840979/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38840979/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38840979/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38840979/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
e GAL_V02
Working on...
/lscratch/kocevski/38840911/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 104.40
user 102.30
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38840911/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38840911/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38840911/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38840911/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38840911/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38840911/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38840911/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38840911/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38840911/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38840911/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
e GAL_V02
Working on...
/lscratch/kocevski/38840913/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 110.14
user 108.20
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38840913/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38840913/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38840913/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38840913/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38840913/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38840913/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38840913/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38840913/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38840913/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38840913/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
 outfile=/lscratch/kocevski/38841086/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 19.34
user 18.54
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38841086/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38841086/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841086/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841086/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 72.22
user 67.01
sys 4.38

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

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38841086/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841086/cmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.79
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38841086/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841086/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.85
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38841086/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38841086/Model_4FGL_J2321.9+3204_weekly_bin946.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 sourc **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
 outfile=/lscratch/kocevski/38841125/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 17.04
user 16.31
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38841125/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38841125/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841125/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841125/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 61.41
user 57.17
sys 3.48

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

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38841125/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841125/cmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.81
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38841125/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841125/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.85
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38841125/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38841125/Model_4FGL_J2321.9+3204_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcnumber of points = 17371
number of fields = 31
RA_SUN column already exists. File will not be modified.
e GAL_V02
Working on...
/lscratch/kocevski/38841009/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 94.90
user 93.02
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38841009/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38841009/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38841009/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38841009/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38841009/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38841009/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38841009/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38841009/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38841009/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38841009/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
Done.


Performing analysis on: 4FGL_J2321.9+3204_weekly_bin946
RA = 350.478, Dec = 32.0737
tmin = 811123201, tmax = 811728001
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='38841273', job_status='RUN', time_executed='2026-09-22 19:44:47.555064', time_epoch_executed='1790131487.56' WHERE source_name='4FGL J2321.9+3204' and cadence='weekly' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38841273

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38841273/ft1_4FGL_J2321.9+3204_weekly_bin946.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38841273/ft1_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841273/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin946.fits ra=350.478 dec=32.0737 rad=12.0 tmin=811123201.0 tmax=811728001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.36
user 3.70
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.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/38841273/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" outfile="/lscratch/kocevski/38841273/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.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.82
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2433

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38841273/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
 **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38840979/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38840979/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:51:08.663733', job_id='38840979', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790131868.66', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:51:09 PDT 2026

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


Performing analysis on: 4FGL_J2321.9+3204_weekly_bin946
RA = 350.478, Dec = 32.0737
tmin = 811123201, tmax = 811728001
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='38841346', job_status='RUN', time_executed='2026-09-22 19:45:41.184208', time_epoch_executed='1790131541.18' WHERE source_name='4FGL J2321.9+3204' and cadence='weekly' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38841346

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38841346/ft1_4FGL_J2321.9+3204_weekly_bin946.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38841346/ft1_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841346/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin946.fits ra=350.478 dec=32.0737 rad=12.0 tmin=811123201.0 tmax=811728001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.76
user 4.05
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.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/38841346/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" outfile="/lscratch/kocevski/38841346/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.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.78
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 2433

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38841346/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA"Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38840911/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38840911/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:51:43.359076', job_id='38840911', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790131903.36', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:51:43 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38840913/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38840913/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:52:05.487805', job_id='38840913', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790131925.49', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:52:05 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/38841038/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 107.73
user 105.67
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38841038/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38841038/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38841038/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38841038/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38841038/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38841038/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38841038/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38841038/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38841038/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38841009/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38841009/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:52:23.364345', job_id='38841009', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790131943.36', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:52:23 PDT 2026

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

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
e GAL_V02
Working on...
/lscratch/kocevski/38841086/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 107.53
user 105.39
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38841086/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38841086/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38841086/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38841086/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38841086/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38841086/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38841086/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38841086/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38841086/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
e GAL_V02
Working on...
/lscratch/kocevski/38841125/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 93.80
user 91.93
sys 0.79

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38841125/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38841125/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38841125/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38841125/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38841125/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38841125/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38841125/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38841125/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38841125/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
 outfile=/lscratch/kocevski/38841273/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 17.05
user 16.35
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38841273/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38841273/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841273/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841273/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 63.49
user 58.90
sys 3.66

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

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38841273/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841273/cmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38841273/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841273/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.87
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38841273/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38841273/Model_4FGL_J2321.9+3204_weekly_bin946.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 sourc **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
 **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38841038/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38841038/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:54:25.700812', job_id='38841038', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790132065.7', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:54:26 PDT 2026

 outfile=/lscratch/kocevski/38841346/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 19.35
user 18.65
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38841346/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38841346/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841346/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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/38841346/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
.....................!
real 72.03
user 66.94
sys 4.10

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

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38841346/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841346/cmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.88
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38841346/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits scfile=/lscratch/kocevski/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.fits outfile=/lscratch/kocevski/38841346/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.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=350.478 yref=32.0737 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.79
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38841346/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits evtable="EVENTS" scfile=/lscratch/kocevski/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38841346/Model_4FGL_J2321.9+3204_weekly_bin946.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding sourcDone.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38841086/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38841086/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:55:03.232608', job_id='38841086', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790132103.23', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:55:03 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38841125/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38841125/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:55:07.782699', job_id='38841125', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790132107.78', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:55:08 PDT 2026

e GAL_V02
Working on...
/lscratch/kocevski/38841273/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 92.25
user 90.44
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38841273/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38841273/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38841273/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38841273/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38841273/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38841273/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38841273/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38841273/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38841273/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
e GAL_V02
Working on...
/lscratch/kocevski/38841346/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits.....................!
real 107.73
user 105.46
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38841346/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits', '/lscratch/kocevski/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.fits', expMap='/lscratch/kocevski/38841346/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', expCube='/lscratch/kocevski/38841346/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38841346/Model_4FGL_J2321.9+3204_weekly_bin946.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38841346/ft1_filtered_4FGL_J2321.9+3204_weekly_bin946.fits
Spacecraft file(s): /lscratch/kocevski/38841346/ft2_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure map: /lscratch/kocevski/38841346/expmap_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
Exposure cube: /lscratch/kocevski/38841346/ltcube_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38841346/Model_4FGL_J2321.9+3204_weekly_bin946.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) = 26947.3121035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14426E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.1771       1.0000          .0000       .10000E+07
     3 'norm      '    1.9446       1.0000          .0000       .10000E+07
     4 'norm      '    1.5294       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14890E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16354E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15120E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .28622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55519E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21692E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12389E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16093E-06   1.0000          .0000       .10000E+07
    13 'norm      '    6.4192       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14587E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2479       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96589E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8660       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96758       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6026       -.10126E-06** at limit **
   2  Prefactor     6.2217        4.8024       -.14941E-07    .49422E-04
   3  norm          1.9448        .64845        .72074E-07    .82563E-03
   4  norm          1.5295        1.1027       -.22544E-07   -.25920E-03
   5  Prefactor      .0000        1.7971       -.25984E-06** at limit **
   6  Prefactor     .55511E-10    3.2361        .42972E-06** at limit **
   7  Prefactor      .0000        2.9815       -.28624E-06** at limit **
   8  norm           .0000        .62259       -.17115E-06** at limit **
   9  Prefactor     .68834E-08    14.144       -.86039E-06** at limit **
  10  Prefactor     .55511E-10    13.495       -.13348E-05** at limit **
  11  Prefactor      .0000        4.5370        .31299E-06** at limit **
  12  norm           .0000        .77649       -.15079E-06** at limit **
  13  norm          6.4421        4.3441        .48823E-08    .84367E-04
  14  Prefactor     .11102E-09    9.3304       -.21884E-07** at limit **
  15  norm          1.2485        .87307        .47584E-07    .42844E-04
  16  Prefactor     .25535E-08    11.533        .19907E-06** at limit **
  17  Prefactor     23.460        4.6951       -.13491E-06    .26680E-01
  18  Prefactor     2.8884        3.1969        .26957E-06   -.57127E-03
  19  Normalizat    .96749        .13487       -.19701E-05    .36993E-04
  20  Prefactor     1.0577        .63119E-01    .11982E-05    .53720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.22169
  norm       = 1.94477
  norm       = 1.52954
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.88338e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 6.44206
  Prefactor  = 1.11022e-10
  norm       = 1.24854
  Prefactor  = 2.55351e-09
  Prefactor  = 23.4604
  Prefactor  = 2.88835
  Normalizat = 0.967488
  Prefactor  = 1.05768
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38841273/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38841273/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 19:57:56.468661', job_id='38841273', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790132276.47', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 19:57:56 PDT 2026

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

 FCN=   26947.22     FROM HESSE     STATUS=OK           347 CALLS     1577 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2217        4.7975        .40369E-03   -1.5658    
   3  norm          1.9448        .65006        .74409E-03   -1.5680    
   4  norm          1.5295        1.1060        .86281E-03   -1.5683    
   5  Prefactor      .0000        1.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .63681        .71115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.1137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21812        .27102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68834E-08    14.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.2418        .11688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .77866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4421        4.3495        .39590E-03   -1.5657    
  14  Prefactor     .11102E-09    9.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2485        .87997        .10014E-02   -1.5686    
  16  Prefactor     .25535E-08    11.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.460        19.370        .20501E-03   -1.5611    
  18  Prefactor     2.8884        3.3301        .60019E-03   -1.5674    
  19  Normalizat    .96749        .11724        .83355E-01   -.94128    
  20  Prefactor     1.0577        .54367E-01    .39482E-01   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56549e-07
Minuit parameter uncertainties:
  1  6.28245e-06
  2  4.7975
  3  0.650061
  4  1.10601
  5  2.03971e-06
  6  1.35365e-05
  7  1.32547e-05
  8  5.7176e-08
  9  0.000634343
  10  1.60034e-05
  11  2.02968e-05
  12  1.02787e-06
  13  4.34953
  14  5.66897e-05
  15  0.879973
  16  0.000345443
  17  19.3698
  18  3.33015
  19  0.117272
  20  0.0543702
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.028e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  5.437e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 2.23093468456e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/38841346/likelihoodResults_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2238415
delta logL = -0.000183341951924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26947.2236611
delta logL = -2.93290941045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27373E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    2.7858       1.0000          .0000       5.0000    
     3 'Normalizat'    .96780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26947.22     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      254 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .71418       -.29501E-07** at limit **
   2  alpha         1.8622        .94930        .15229E-05     .0000    
   3  Normalizat    .96749        .13266       -.40719E-05   -.38718E-04
   4  Prefactor     1.0577        .62282E-01    .14891E-05    .48447E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.86221
  Normalizat = 0.967488
  Prefactor  = 1.05768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26947.22     FROM HESSE     STATUS=FAILED        11 CALLS      265 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .76331        1.1530        .15229E-05   -.25797    
   3  Normalizat    .96749        1.2993       -.40719E-05   -.94128    
   4  Prefactor     1.0577        1.1831        .14891E-05   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94339e-12
Minuit parameter uncertainties:
  1  5.44457e-07
  2  1.00308
  3  1.34579
  4  1.21438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  5.445e-07  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.862e+00  1.003e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.058e+00  1.214e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.675e-01  1.346e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.478 32.074

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/38841346/cmap_HighResolution_811123201_811728001_4FGL_J2321.9+3204_weekly_bin946.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.23e-08', time_completed='2026-09-22 20:00:06.475652', job_id='38841346', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1790132406.48', return_code2='101', ts='0.00', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='946' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 22 20:00:07 PDT 2026

