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


Performing analysis on: 4FGL_J1727.2+0644_weekly_bin892
RA = 261.806, Dec = 6.7445
tmin = 778464001, tmax = 779068801
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='14112523', job_status='RUN', time_executed='2025-10-20 20:42:32.088927', time_epoch_executed='1761018152.09' WHERE source_name='4FGL J1727.2+0644' and cadence='weekly' and bin_id='892'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/14112523

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/14112523/ft1_4FGL_J1727.2+0644_weekly_bin892.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/14112523/ft1_4FGL_J1727.2+0644_weekly_bin892.fits outfile=/lscratch/kocevski/14112523/ft1_filteredMKT_4FGL_J1727.2+0644_weekly_bin892.fits ra=261.806 dec=6.7445 rad=12.0 tmin=778464001.0 tmax=779068801.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.26
user 4.64
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.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/14112523/ft1_filteredMKT_4FGL_J1727.2+0644_weekly_bin892.fits evtable="EVENTS" outfile="/lscratch/kocevski/14112523/ft1_filtered_4FGL_J1727.2+0644_weekly_bin892.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 3138

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/14112523/ft1_filtered_4FGL_J1727.2+0644_weekly_bin892.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14112523/ltcube_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.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/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.fits
.....................!
real 20.48
user 19.85
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/14112523/ft1_filtered_4FGL_J1727.2+0644_weekly_bin892.fits evtable="EVENTS" scfile=/lscratch/kocevski/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14112523/ltcube_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.fits outfile=/lscratch/kocevski/14112523/expmap_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.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/14112523/ltcube_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.fits
.....................!
real 75.63
user 70.59
sys 4.40

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Added 208 point sources and 3 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 J1727.2+0644 @ 261.806 6.7445

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/14112523/ft1_filtered_4FGL_J1727.2+0644_weekly_bin892.fits scfile=/lscratch/kocevski/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.fits outfile=/lscratch/kocevski/14112523/cmap_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.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=261.806 yref=6.7445 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.66
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/14112523/ft1_filtered_4FGL_J1727.2+0644_weekly_bin892.fits scfile=/lscratch/kocevski/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.fits outfile=/lscratch/kocevski/14112523/cmap_HighResolution_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.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=261.806 yref=6.7445 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.65
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/14112523/ft1_filtered_4FGL_J1727.2+0644_weekly_bin892.fits evtable="EVENTS" scfile=/lscratch/kocevski/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14112523/Model_4FGL_J1727.2+0644_weekly_bin892.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source FHES J1723.5-0501
adding source G24.7+0.6
adding source GAL_V02
adding source Kes 73
Working on...
/lscratch/kocevski/14112523/ft1_filtered_4FGL_J1727.2+0644_weekly_bin892.fits.....................!
real 109.11
user 107.53
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/14112523/ft1_filtered_4FGL_J1727.2+0644_weekly_bin892.fits', '/lscratch/kocevski/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.fits', expMap='/lscratch/kocevski/14112523/expmap_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.fits', expCube='/lscratch/kocevski/14112523/ltcube_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14112523/Model_4FGL_J1727.2+0644_weekly_bin892.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1727.2+0644'

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  8.444e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  6.438e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/14112523/ft1_filtered_4FGL_J1727.2+0644_weekly_bin892.fits
Spacecraft file(s): /lscratch/kocevski/14112523/ft2_4FGL_J1727.2+0644_weekly_bin892.fits
Exposure map: /lscratch/kocevski/14112523/expmap_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.fits
Exposure cube: /lscratch/kocevski/14112523/ltcube_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/14112523/Model_4FGL_J1727.2+0644_weekly_bin892.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) = 31746.0474119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7024       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5992       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6337       1.0000          .0000       .10000E+07
     4 'Prefactor '    .24149E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .43926E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    104.32       1.0000          .0000       .10000E+07
     7 'norm      '    .82581       1.0000          .0000       .10000E+07
     8 'Prefactor '    .81135E-06   1.0000          .0000       .10000E+07
     9 'norm      '    6.3051       1.0000          .0000       .10000E+07
    10 'Prefactor '    .29027E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    39.683       1.0000          .0000       .10000E+07
    12 'norm      '    .11330E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .56621E-08   1.0000          .0000       .10000E+07
    14 'norm      '    .91881       1.0000          .0000       .10000E+07
    15 'norm      '    3.4818       1.0000          .0000       .10000E+07
    16 'norm      '    .19012E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    .68361       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0751       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31746.01     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1100 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6999        2.7947        .97520E-07   -.25186E-03
   2  Prefactor     6.5426        4.5696       -.50531E-07    .25054E-03
   3  Prefactor     .56545        523.02        .33920E-06    .40726E-04
   4  Prefactor      .0000        2.0168        .56847E-06** at limit **
   5  Prefactor      .0000        3.6590        .21658E-06** at limit **
   6  Prefactor     98.384        84.733       -.11650E-05   -.33708E-04
   7  norm          .82482        .79824       -.50805E-07    .54951E-03
   8  Prefactor      .0000        2.6693        .27046E-06** at limit **
   9  norm          6.3783        5.7328       -.32448E-06    .65582E-03
  10  Prefactor     .11102E-09    47.678        .26588E-06** at limit **
  11  Prefactor     39.663        3.3845        .22801E-07   -.58132E-03
  12  norm           .0000        4.3633       -.80470E-07** at limit **
  13  norm           .0000        .88968       -.30828E-07** at limit **
  14  norm          .91747        .47693       -.22310E-07    .95058E-03
  15  norm          3.4576        4.0226        .10270E-06   -.32820E-03
  16  norm           .0000        5.8324       -.74202E-07** at limit **
  17  Normalizat    .68581        .21425       -.56323E-05   -.92374E-05
  18  Prefactor     1.0750        .45878E-01    .14115E-05   -.11325E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69988
  Prefactor  = 6.54261
  Prefactor  = 0.565447
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 98.3844
  norm       = 0.824823
  Prefactor  = 0
  norm       = 6.3783
  Prefactor  = 1.11022e-10
  Prefactor  = 39.6629
  norm       = 0
  norm       = 0
  norm       = 0.917473
  norm       = 3.45759
  norm       = 0
  Normalizat = 0.685808
  Prefactor  = 1.07503
 **********
 **   18 **HESSE 
 **********

 FCN=   31746.01     FROM HESSE     STATUS=OK           288 CALLS     1388 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6999        2.8198        .61940E-03   -1.5675    
   2  Prefactor     6.5426        4.6171        .39040E-03   -1.5657    
   3  Prefactor     .56545        17.749        .18170E-01   -1.5693    
   4  Prefactor      .0000        2.0138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.6496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     98.384        84.799        .97912E-04   -1.5510    
   7  norm          .82482        .79169        .51031E-03   -1.5690    
   8  Prefactor      .0000        2.6661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.3783        5.7348        .39951E-03   -1.5657    
  10  Prefactor     .11102E-09    47.722        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.663        3.4095        .15876E-03   -1.5582    
  12  norm           .0000        4.3457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .88205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .91747        .48032        .44468E-03   -1.5689    
  15  norm          3.4576        4.0352        .54165E-03   -1.5671    
  16  norm           .0000        5.8058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .68581        .21904        .16810       -1.0446    
  18  Prefactor     1.0750        .45716E-01    .38621E-01   -.90268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5692e-07
Minuit parameter uncertainties:
  1  2.81975
  2  4.61712
  3  6.33599
  4  9.99217e-06
  5  4.88558e-06
  6  84.8001
  7  0.791689
  8  5.56116e-06
  9  5.73479
  10  0.000160225
  11  3.40952
  12  2.4068e-06
  13  4.63319e-07
  14  0.480318
  15  4.03515
  16  2.35055e-06
  17  0.219322
  18  0.0457181
Done.

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

Extracting fit parameters...

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  1.110e-10  1.602e-04  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  6.438e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.075e+00  4.572e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  6.858e-01  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 261.806 6.745
Photon Flux Upper Limit: 7.66409150419e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0060541133924 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/14112523/likelihoodResults_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.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) = 31746.0180453
delta logL = -0.0102277278456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 31746.007825
delta logL = -7.38316884963e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19717E-03   1.0000          .0000       .10000E+07
     2 'Index     '    3.1340       1.0000          .0000       10.000    
     3 'Normalizat'    .68516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0751       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   31746.01     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      238 TOTAL
                     EDM=   .33E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.1923        .42118E-03** at limit **
   2  Index         1.2517        .71622       -.89351E-08     .0000    
   3  Normalizat    .68581        1.0251        .44564E-06   -.23393E-07
   4  Prefactor     1.0750        1.1667       -.42771E-07   -.34258E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.25169
  Normalizat = 0.685807
  Prefactor  = 1.07503
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   31746.01     FROM HESSE     STATUS=FAILED         9 CALLS      247 TOTAL
                     EDM=   .33E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.1923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11325        1.2273       -.89351E-08   -.84755    
   3  Normalizat    .68581        1.0251        .44564E-06   -1.0446    
   4  Prefactor     1.0750        1.1667       -.42771E-07   -.90268    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.25687e-14
Minuit parameter uncertainties:
  1  8.53686e-11
  2  0.721931
  3  1.05605
  4  1.1962
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) = 31746.0078176
delta logL = 0.0

Extracting fit parameters...

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  0.000e+00  8.537e-11  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  1.252e+00  7.219e-01  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  6.438e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.075e+00  1.196e+00  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  6.858e-01  1.056e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 261.806 6.745

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/14112523/cmap_HighResolution_778464001_779068801_4FGL_J1727.2+0644_weekly_bin892.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2025-10-20 20:56:07.521882', job_id='14112523', GAL2='1.08', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1761018967.52', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='892' AND source_name='4FGL J1727.2+0644' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Oct 20 20:56:07 PDT 2025

