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

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

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

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

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

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

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


Performing analysis on: 4FGL_J2321.7-6438_daily_bin2115
RA = 350.433, Dec = -64.6453
tmin = 787536001, tmax = 787795201
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='17561274', job_status='RUN', time_executed='2025-12-19 01:12:27.405771', time_epoch_executed='1766135547.41' WHERE source_name='4FGL J2321.7-6438' and cadence='daily' and bin_id='2115'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17561274

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17561274/ft1_4FGL_J2321.7-6438_daily_bin2115.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17561274/ft1_4FGL_J2321.7-6438_daily_bin2115.fits outfile=/lscratch/kocevski/17561274/ft1_filteredMKT_4FGL_J2321.7-6438_daily_bin2115.fits ra=350.433 dec=-64.6453 rad=12.0 tmin=787536001.0 tmax=787795201.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 2.47
user 1.95
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.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/17561274/ft1_filteredMKT_4FGL_J2321.7-6438_daily_bin2115.fits evtable="EVENTS" outfile="/lscratch/kocevski/17561274/ft1_filtered_4FGL_J2321.7-6438_daily_bin2115.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.20
sys 0.12

Number of photons that the gtmktime cut: 557

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17561274/ft1_filtered_4FGL_J2321.7-6438_daily_bin2115.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17561274/ltcube_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.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/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.fits
.....................!
real 9.23
user 8.73
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17561274/ft1_filtered_4FGL_J2321.7-6438_daily_bin2115.fits evtable="EVENTS" scfile=/lscratch/kocevski/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17561274/ltcube_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.fits outfile=/lscratch/kocevski/17561274/expmap_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.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/17561274/ltcube_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.fits
.....................!
real 70.32
user 65.79
sys 3.98

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source SMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 181 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2321.7-6438 @ 350.433 -64.6453

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17561274/ft1_filtered_4FGL_J2321.7-6438_daily_bin2115.fits scfile=/lscratch/kocevski/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.fits outfile=/lscratch/kocevski/17561274/cmap_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.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.433 yref=-64.6453 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.52
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17561274/ft1_filtered_4FGL_J2321.7-6438_daily_bin2115.fits scfile=/lscratch/kocevski/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.fits outfile=/lscratch/kocevski/17561274/cmap_HighResolution_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.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.433 yref=-64.6453 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.49
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17561274/ft1_filtered_4FGL_J2321.7-6438_daily_bin2115.fits evtable="EVENTS" scfile=/lscratch/kocevski/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17561274/Model_4FGL_J2321.7-6438_daily_bin2115.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
adding source SMC-Galaxy
Working on...
/lscratch/kocevski/17561274/ft1_filtered_4FGL_J2321.7-6438_daily_bin2115.fits.....................!
real 612.64
user 606.39
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17561274/ft1_filtered_4FGL_J2321.7-6438_daily_bin2115.fits', '/lscratch/kocevski/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.fits', expMap='/lscratch/kocevski/17561274/expmap_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.fits', expCube='/lscratch/kocevski/17561274/ltcube_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17561274/Model_4FGL_J2321.7-6438_daily_bin2115.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.7-6438'

4FGL J2321.7-6438
   Spectrum: PowerLaw
493    Prefactor:  2.545e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
494        Index:  2.099e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
495        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17561274/ft1_filtered_4FGL_J2321.7-6438_daily_bin2115.fits
Spacecraft file(s): /lscratch/kocevski/17561274/ft2_4FGL_J2321.7-6438_daily_bin2115.fits
Exposure map: /lscratch/kocevski/17561274/expmap_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.fits
Exposure cube: /lscratch/kocevski/17561274/ltcube_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17561274/Model_4FGL_J2321.7-6438_daily_bin2115.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) = 6032.53884407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22480E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .26295E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    12.629       1.0000          .0000       .10000E+07
     4 'norm      '    5.8879       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.8896       1.0000          .0000       .10000E+07
     6 'norm      '    .94403E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .72471       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34595E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.165       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.4563       1.0000          .0000       .10000E+07
    11 'Normalizat'    .93625       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .96515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6032.534     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      758 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.3033       -.22400E-06** at limit **
   2  Prefactor      .0000        15.252        .46790E-07** at limit **
   3  Prefactor     12.562        10.542        .22584E-07    .28929E-03
   4  norm          5.8464        5.0505       -.32641E-07    .14881E-04
   5  Prefactor     3.8607        5.7591        .39300E-07    .32789E-05
   6  norm           .0000        5.2676       -.15643E-07** at limit **
   7  norm          .72500        .76131       -.30891E-08    .75122E-04
   8  Prefactor      .0000        18.251        .47805E-07** at limit **
   9  Prefactor     12.272        7.1484       -.36571E-07    .14212E-03
  10  Prefactor     6.4582        1.2175       -.13147E-08    .36493E-02
  11  Normalizat    .93642        .20722       -.18133E-05    .23679E-05
  12  Prefactor     .96507        .17984        .65269E-06    .15968E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 12.5619
  norm       = 5.8464
  Prefactor  = 3.86068
  norm       = 0
  norm       = 0.725001
  Prefactor  = 0
  Prefactor  = 12.2715
  Prefactor  = 6.45815
  Normalizat = 0.936417
  Prefactor  = 0.965075
 **********
 **   18 **HESSE 
 **********

 FCN=   6032.534     FROM HESSE     STATUS=OK           151 CALLS      909 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.2873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        15.214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.562        10.586        .28161E-03   -1.5637    
   4  norm          5.8464        5.0485        .41362E-03   -1.5660    
   5  Prefactor     3.8607        5.7744        .51136E-03   -1.5669    
   6  norm           .0000        5.2686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .72500        .77142        .58725E-03   -1.5691    
   8  Prefactor      .0000        18.153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.272        7.1501        .28695E-03   -1.5638    
  10  Prefactor     6.4582        13.010        .39475E-03   -1.5657    
  11  Normalizat    .93642        .17394        .45363E-01   -.95192    
  12  Prefactor     .96507        .14961        .45830E-01   -.93903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02387e-10
Minuit parameter uncertainties:
  1  1.73932e-06
  2  1.04489e-05
  3  10.5861
  4  5.04846
  5  5.7744
  6  3.24504e-06
  7  0.771419
  8  1.81248e-07
  9  7.15014
  10  13.01
  11  0.174046
  12  0.149671
Done.

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

Extracting fit parameters...

4FGL J2321.7-6438
   Spectrum: PowerLaw
493    Prefactor:  0.000e+00  1.812e-07  0.000e+00  1.000e+06 ( 1.000e-13)
494        Index:  2.099e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
495        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.364e-01  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 350.433 -64.645
Photon Flux Upper Limit: 7.24151153486e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00547468590574 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17561274/likelihoodResults_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.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) = 6032.5636254
delta logL = -0.0293533711756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 6029.96235846
delta logL = 2.57191357197

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6032.534     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      608 TOTAL
                     EDM=   .38E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.6499        .42118E-03** at limit **
   2  Index         1.6241        1.1629       -.20700E-08     .0000    
   3  Normalizat    .93642        1.2176       -.81962E-05   -.38790E-05
   4  Prefactor     .96507        1.1376       -.11185E-06    .54882E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.62414
  Normalizat = 0.936417
  Prefactor  = 0.965075
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6032.534     FROM HESSE     STATUS=FAILED         9 CALLS      617 TOTAL
                     EDM=   .38E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.6499        .42118E-03   -24952.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .25319        1.5431       -.20700E-08   -.61918E+06
   3  Normalizat    .93642        1.2176       -.81962E-05   -227.15    
   4  Prefactor     .96507        1.1376       -.11185E-06   -277.40    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.77084e-13
Minuit parameter uncertainties:
  1  9.68655e-06
  2  1.18313
  3  1.25661
  4  1.16775
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) = 6032.53427203
delta logL = 0.0

Extracting fit parameters...

4FGL J2321.7-6438
   Spectrum: PowerLaw
493    Prefactor:  0.000e+00  9.687e-06  0.000e+00  1.000e+06 ( 1.000e-13)
494        Index:  1.624e+00  1.183e+00  0.000e+00  1.000e+01 (-1.000e+00)
495        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.364e-01  1.257e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 350.433 -64.645

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/17561274/cmap_HighResolution_787536001_787795201_4FGL_J2321.7-6438_daily_bin2115.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2025-12-19 01:27:46.565526', job_id='17561274', GAL2='0.97', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1766136466.57', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='2115' AND source_name='4FGL J2321.7-6438' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 19 01:27:46 PST 2025

