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


Performing analysis on: 4FGL_J2207.6+0053_weekly_bin906
RA = 331.914, Dec = 0.8907
tmin = 786931201, tmax = 787536001
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='17381194', job_status='RUN', time_executed='2025-12-16 03:19:36.996401', time_epoch_executed='1765883977.0' WHERE source_name='4FGL J2207.6+0053' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17381194

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17381194/ft1_4FGL_J2207.6+0053_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17381194/ft1_4FGL_J2207.6+0053_weekly_bin906.fits outfile=/lscratch/kocevski/17381194/ft1_filteredMKT_4FGL_J2207.6+0053_weekly_bin906.fits ra=331.914 dec=0.8907 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.11
user 5.29
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.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/17381194/ft1_filteredMKT_4FGL_J2207.6+0053_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17381194/ft1_filtered_4FGL_J2207.6+0053_weekly_bin906.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.86
user 0.23
sys 0.11

Number of photons that the gtmktime cut: 1232

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17381194/ft1_filtered_4FGL_J2207.6+0053_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17381194/ltcube_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.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/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.fits
.....................!
real 20.30
user 19.07
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17381194/ft1_filtered_4FGL_J2207.6+0053_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17381194/ltcube_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.fits outfile=/lscratch/kocevski/17381194/expmap_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.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/17381194/ltcube_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.fits
.....................!
real 73.27
user 67.27
sys 3.99

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2207.6+0053 @ 331.914 0.8907

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17381194/ft1_filtered_4FGL_J2207.6+0053_weekly_bin906.fits scfile=/lscratch/kocevski/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.fits outfile=/lscratch/kocevski/17381194/cmap_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.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=331.914 yref=0.8907 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.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17381194/ft1_filtered_4FGL_J2207.6+0053_weekly_bin906.fits scfile=/lscratch/kocevski/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.fits outfile=/lscratch/kocevski/17381194/cmap_HighResolution_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.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=331.914 yref=0.8907 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.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17381194/ft1_filtered_4FGL_J2207.6+0053_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17381194/Model_4FGL_J2207.6+0053_weekly_bin906.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/17381194/ft1_filtered_4FGL_J2207.6+0053_weekly_bin906.fits.....................!
real 51.50
user 48.04
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17381194/ft1_filtered_4FGL_J2207.6+0053_weekly_bin906.fits', '/lscratch/kocevski/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.fits', expMap='/lscratch/kocevski/17381194/expmap_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.fits', expCube='/lscratch/kocevski/17381194/ltcube_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17381194/Model_4FGL_J2207.6+0053_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2207.6+0053'

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.216e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17381194/ft1_filtered_4FGL_J2207.6+0053_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17381194/ft2_4FGL_J2207.6+0053_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17381194/expmap_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17381194/ltcube_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17381194/Model_4FGL_J2207.6+0053_weekly_bin906.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) = 13438.5018009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68699       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.8481       1.0000          .0000       .10000E+07
     3 'Prefactor '    .40079E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.4886       1.0000          .0000       .10000E+07
     5 'Prefactor '    .77421E-06   1.0000          .0000       .10000E+07
     6 'norm      '    1.4875       1.0000          .0000       .10000E+07
     7 'norm      '    .20129E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .45186E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.109       1.0000          .0000       .10000E+07
    10 'Prefactor '    .66339E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    21.216       1.0000          .0000       .10000E+07
    12 'Prefactor '    14.235       1.0000          .0000       .10000E+07
    13 'Prefactor '    .41395E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .32002E-06   1.0000          .0000       .10000E+07
    15 'norm      '    3.8924       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.7425       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.854       1.0000          .0000       .10000E+07
    18 'Normalizat'    .40756       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13438.50     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1427 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22697        403.78        .20142E-05** at limit **
   2  Prefactor     6.7604        3.1531        .13454E-06   -.33298E-01
   3  Prefactor      .0000        .47287       -.17473E-06** at limit **
   4  Prefactor     7.6934        5.9698       -.26047E-06    .12089E-01
   5  Prefactor     .78271E-08    12.230       -.36723E-06** at limit **
   6  norm          1.4882        1.3640       -.36430E-07    .98220E-03
   7  norm           .0000        10.981        .22641E-06** at limit **
   8  Prefactor     .54012E-07    20.541        .98361E-06** at limit **
   9  Prefactor     11.148        9.2622        .26699E-07   -.19589E-02
  10  Prefactor     .11102E-09    6.5974       -.38349E-06** at limit **
  11  Prefactor     21.205        12.518       -.62745E-07    .79334E-02
  12  Prefactor     14.255        7.1897        .37652E-07   -.63214E-03
  13  Prefactor      .0000        2.6274        .21475E-07** at limit **
  14  Prefactor      .0000        1.2303       -.20441E-09** at limit **
  15  norm          3.8897        2.6084       -.35487E-07    .18018E-03
  16  Prefactor     1.7440        2.8059        .42143E-06   -.30693E-04
  17  Prefactor     48.020        10.700       -.65195E-07   -.33823E-01
  18  Normalizat    .40737        .16672        .30839E-05   -.21617E-05
  19  Prefactor     1.1597        .96898E-01   -.13624E-05    .18145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.22697
  Prefactor  = 6.76041
  Prefactor  = 0
  Prefactor  = 7.6934
  Prefactor  = 7.82707e-09
  norm       = 1.48824
  norm       = 0
  Prefactor  = 5.40124e-08
  Prefactor  = 11.1479
  Prefactor  = 1.11022e-10
  Prefactor  = 21.2051
  Prefactor  = 14.2554
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.88969
  Prefactor  = 1.74402
  Prefactor  = 48.0198
  Normalizat = 0.407369
  Prefactor  = 1.15971
 **********
 **   18 **HESSE 
 **********

 FCN=   13438.50     FROM HESSE     STATUS=OK           316 CALLS     1743 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22697        18.092        .10605E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.7604        19.256        .38316E-03   -1.5656    
   3  Prefactor      .0000        .47116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.6934        21.348        .36625E-03   -1.5652    
   5  Prefactor     .78271E-08    12.377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4882        1.3857        .87897E-03   -1.5684    
   7  norm           .0000        11.020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .54012E-07    21.417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.148        9.3302        .30033E-03   -1.5641    
  10  Prefactor     .11102E-09    6.5893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.205        12.640        .21717E-03   -1.5616    
  12  Prefactor     14.255        7.2351        .26521E-03   -1.5632    
  13  Prefactor      .0000        2.6428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.2291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8897        2.6679        .51117E-03   -1.5669    
  16  Prefactor     1.7440        2.8261        .79446E-02   -1.5444    
  17  Prefactor     48.020        61.867        .14457E-03   -1.5569    
  18  Normalizat    .40737        .16895        .10038       -1.1692    
  19  Prefactor     1.1597        .92612E-01    .35665E-01   -.87580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72198e-07
Minuit parameter uncertainties:
  1  4.05281
  2  19.256
  3  4.50207e-06
  4  21.3485
  5  0.00062158
  6  1.38569
  7  1.31613e-05
  8  0.00215128
  9  9.33016
  10  5.17959e-05
  11  12.6399
  12  7.23507
  13  7.65519e-06
  14  3.1784e-07
  15  2.66791
  16  2.82634
  17  61.8678
  18  0.169163
  19  0.0926251
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.121e+01  1.264e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  1.160e+00  9.263e-02  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  4.074e-01  1.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.00
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 9.08e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13438.4962588
delta logL = 0.000143258581375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13438.4961425
delta logL = 0.000259598462435

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13438.50     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      242 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.446        197.24        .21604E-03    .24575E-03
   2  Index         2.4716        2.6346        .19099        .16623E-03
   3  Normalizat    .40808        .55303E-01    .10029        .11382E-03
   4  Prefactor     1.1594        .26160E-01    .35664E-01   -.13236E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4462
  Index      = 2.4716
  Normalizat = 0.408079
  Prefactor  = 1.15945
 **********
 **   18 **HESSE 
 **********

 FCN=   13438.50     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.446        17.390        .86417E-05   -1.5615    
   2  Index         2.4716        .57714        .69710E-02   -.53017    
   3  Normalizat    .40808        .16688        .44435E-03   -1.1689    
   4  Prefactor     1.1594        .97269E-01    .16058E-03   -.87588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22398e-11
Minuit parameter uncertainties:
  1  17.3896
  2  0.578877
  3  0.167084
  4  0.0972836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13438.4961347
delta logL = 0.000267359653662

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.145e+01  1.739e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.472e+00  5.789e-01  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  1.159e+00  9.728e-02  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  4.081e-01  1.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.00
Ra Dec: 331.914 0.891
Photon Index (Free Index): 2.47 +/- 0.58
Photon Flux (Free Index): 5.10e-08 +/- 3.68e-08
Energy Flux (Free Index): 1.53e-05 +/- 9.79e-06

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/17381194/cmap_HighResolution_786931201_787536001_4FGL_J2207.6+0053_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='1.53e-05', photon_flux_error='3.07e-08', dlogl='2.67e-04', energy_flux='1.52e-05', photon_flux2='5.10e-08', job_status='DONE', time_completed='2025-12-16 03:30:05.147284', photon_index_error2='0.58', photon_index2='2.47', ts='5.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='9.79e-06', EG='0.41', time_epoch_completed='1765884605.15', return_code='0', job_id='17381194', GAL2='1.16', EG2='0.41', return_code2='0', energy_flux_error='9.08e-06', photon_flux_error2='3.68e-08', ts2='5.00', photon_index='2.48' WHERE bin_id='906' AND source_name='4FGL J2207.6+0053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:30:05 PST 2025

