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


Performing analysis on: 4FGL_J1727.2+0644_weekly_bin897
RA = 261.806, Dec = 6.7445
tmin = 781488001, tmax = 782092801
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='14112631', job_status='RUN', time_executed='2025-10-20 20:47:26.307730', time_epoch_executed='1761018446.31' WHERE source_name='4FGL J1727.2+0644' and cadence='weekly' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/14112631

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/14112631/ft1_4FGL_J1727.2+0644_weekly_bin897.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/14112631/ft2_4FGL_J1727.2+0644_weekly_bin897.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/14112631/ft1_4FGL_J1727.2+0644_weekly_bin897.fits outfile=/lscratch/kocevski/14112631/ft1_filteredMKT_4FGL_J1727.2+0644_weekly_bin897.fits ra=261.806 dec=6.7445 rad=12.0 tmin=781488001.0 tmax=782092801.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.56
user 4.57
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/14112631/ft2_4FGL_J1727.2+0644_weekly_bin897.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/14112631/ft1_filteredMKT_4FGL_J1727.2+0644_weekly_bin897.fits evtable="EVENTS" outfile="/lscratch/kocevski/14112631/ft1_filtered_4FGL_J1727.2+0644_weekly_bin897.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.77
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 4637

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/14112631/ft1_filtered_4FGL_J1727.2+0644_weekly_bin897.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14112631/ft2_4FGL_J1727.2+0644_weekly_bin897.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14112631/ltcube_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.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/14112631/ft2_4FGL_J1727.2+0644_weekly_bin897.fits
.....................!
real 20.73
user 19.82
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/14112631/ft1_filtered_4FGL_J1727.2+0644_weekly_bin897.fits evtable="EVENTS" scfile=/lscratch/kocevski/14112631/ft2_4FGL_J1727.2+0644_weekly_bin897.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14112631/ltcube_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.fits outfile=/lscratch/kocevski/14112631/expmap_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.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/14112631/ltcube_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.fits
.....................!
real 74.00
user 69.18
sys 4.08

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/14112631/ft1_filtered_4FGL_J1727.2+0644_weekly_bin897.fits scfile=/lscratch/kocevski/14112631/ft2_4FGL_J1727.2+0644_weekly_bin897.fits outfile=/lscratch/kocevski/14112631/cmap_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.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.62
user 0.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/14112631/ft1_filtered_4FGL_J1727.2+0644_weekly_bin897.fits scfile=/lscratch/kocevski/14112631/ft2_4FGL_J1727.2+0644_weekly_bin897.fits outfile=/lscratch/kocevski/14112631/cmap_HighResolution_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.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.52
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/14112631/ft1_filtered_4FGL_J1727.2+0644_weekly_bin897.fits evtable="EVENTS" scfile=/lscratch/kocevski/14112631/ft2_4FGL_J1727.2+0644_weekly_bin897.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14112631/Model_4FGL_J1727.2+0644_weekly_bin897.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/14112631/ft1_filtered_4FGL_J1727.2+0644_weekly_bin897.fits.....................!
real 164.19
user 161.66
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/14112631/ft1_filtered_4FGL_J1727.2+0644_weekly_bin897.fits', '/lscratch/kocevski/14112631/ft2_4FGL_J1727.2+0644_weekly_bin897.fits', expMap='/lscratch/kocevski/14112631/expmap_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.fits', expCube='/lscratch/kocevski/14112631/ltcube_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14112631/Model_4FGL_J1727.2+0644_weekly_bin897.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/14112631/ft1_filtered_4FGL_J1727.2+0644_weekly_bin897.fits
Spacecraft file(s): /lscratch/kocevski/14112631/ft2_4FGL_J1727.2+0644_weekly_bin897.fits
Exposure map: /lscratch/kocevski/14112631/expmap_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.fits
Exposure cube: /lscratch/kocevski/14112631/ltcube_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/14112631/Model_4FGL_J1727.2+0644_weekly_bin897.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) = 47137.4956116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10908       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.9469       1.0000          .0000       .10000E+07
     3 'Prefactor '    .88099E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .45806E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.4592       1.0000          .0000       .10000E+07
     6 'Prefactor '    .12464E-01   1.0000          .0000       .10000E+07
     7 'norm      '    1.8966       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.4683       1.0000          .0000       .10000E+07
     9 'norm      '    12.722       1.0000          .0000       .10000E+07
    10 'Prefactor '    .94438E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.008       1.0000          .0000       .10000E+07
    12 'norm      '    30.935       1.0000          .0000       .10000E+07
    13 'norm      '    .52571E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .21364E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .53919E-04   1.0000          .0000       .10000E+07
    16 'norm      '    8.9622       1.0000          .0000       .10000E+07
    17 'Normalizat'    .75702       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0825       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=   47136.51     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1153 TOTAL
                     EDM=   .48E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65704E-01    38.073        .26801E-06** at limit **
   2  Prefactor     2.9563        3.7996        .62869E-07    .12061E-04
   3  Prefactor      .0000        26.055        .15064E-06** at limit **
   4  Prefactor      .0000        8.7051        .88082E-07** at limit **
   5  Prefactor     3.4072        4.9561       -.94405E-08   -.43947E-04
   6  Prefactor      .0000        28.743       -.52407E-08** at limit **
   7  norm          1.8972        1.1372       -.11487E-07   -.25553E-03
   8  Prefactor     3.4820        3.3674       -.35257E-08    .53170E-04
   9  norm          12.791        6.3110        .11520E-07    .80548E-04
  10  Prefactor      .0000        15.376       -.12913E-06** at limit **
  11  Prefactor     24.999        2.6007       -.12005E-07   -.36368E-04
  12  norm          31.064        6.4860       -.19320E-07   -.37383E-03
  13  norm           .0000        .38624       -.36427E-07** at limit **
  14  norm           .0000        2.2997       -.74231E-07** at limit **
  15  norm           .0000        10.032        .35590E-07** at limit **
  16  norm          8.9592        5.9069        .72054E-08    .74484E-05
  17  Normalizat    .75758        .18452        .44096E-06   -.74352E-05
  18  Prefactor     1.0824        .37703E-01   -.16433E-06   -.22008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0657039
  Prefactor  = 2.95629
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.4072
  Prefactor  = 0
  norm       = 1.89721
  Prefactor  = 3.48199
  norm       = 12.7909
  Prefactor  = 0
  Prefactor  = 24.9985
  norm       = 31.064
  norm       = 0
  norm       = 0
  norm       = 0
  norm       = 8.95921
  Normalizat = 0.757581
  Prefactor  = 1.08235
 **********
 **   18 **HESSE 
 **********

 FCN=   47136.51     FROM HESSE     STATUS=OK           296 CALLS     1449 TOTAL
                     EDM=   .86E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65704E-01    .67907        .10422E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9563        3.8403        .59136E-03   -1.5674    
   3  Prefactor      .0000        26.048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        8.5625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4072        4.9852        .54350E-03   -1.5671    
   6  Prefactor      .0000        28.751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8972        1.1409        .75504E-03   -1.5680    
   8  Prefactor     3.4820        3.3668        .54276E-03   -1.5671    
   9  norm          12.791        6.3061        .28058E-03   -1.5636    
  10  Prefactor      .0000        15.391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.999        2.6168        .20001E-03   -1.5608    
  12  norm          31.064        6.5027        .17982E-03   -1.5596    
  13  norm           .0000        .38576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .12843        .25351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        9.7416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.9592        5.9118        .33456E-03   -1.5648    
  17  Normalizat    .75758        .18424        .16557       -1.0166    
  18  Prefactor     1.0824        .36780E-01    .38294E-01   -.90033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61771e-07
Minuit parameter uncertainties:
  1  0.422457
  2  3.84026
  3  1.92162e-06
  4  1.92539e-06
  5  4.98517
  6  1.05497e-06
  7  1.14092
  8  3.36679
  9  6.30611
  10  9.97539e-06
  11  2.61681
  12  6.50273
  13  2.80132e-08
  14  1.13677e-07
  15  3.18535e-06
  16  5.91181
  17  0.184395
  18  0.0367812
Done.

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

Extracting fit parameters...

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  0.000e+00  9.975e-06  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.082e+00  3.678e-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:  7.576e-01  1.844e-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: 5.22941107156e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00413088069021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/14112631/likelihoodResults_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 47136.5148239
delta logL = -0.000114066031529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 47136.5147146
delta logL = -4.71015664516e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58168E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .58116       1.0000          .0000       10.000    
     3 'Normalizat'    .75749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   47136.51     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      252 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.853       -.13827E-05** at limit **
   2  Index         2.9535        6.2831        .47415E-04     .0000    
   3  Normalizat    .75758        .16779        .55647E-05   -.17416E-05
   4  Prefactor     1.0824        .36775E-01   -.20475E-06   -.18775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.95346
  Normalizat = 0.757581
  Prefactor  = 1.08235
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   47136.51     FROM HESSE     STATUS=FAILED        11 CALLS      263 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .98684        2.1346        .47415E-04   -.42170    
   3  Normalizat    .75758        1.0970        .55647E-05   -1.0166    
   4  Prefactor     1.0824        1.1610       -.20475E-06   -.90033    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.50003e-12
Minuit parameter uncertainties:
  1  1.34941e-06
  2  1.86113
  3  1.13168
  4  1.18986
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) = 47136.5147099
delta logL = 0.0

Extracting fit parameters...

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  0.000e+00  1.349e-06  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  2.953e+00  1.861e+00  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.082e+00  1.190e+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:  7.576e-01  1.132e+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/14112631/cmap_HighResolution_781488001_782092801_4FGL_J1727.2+0644_weekly_bin897.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.23e-08', time_completed='2025-10-20 21:06:53.943777', job_id='14112631', GAL2='1.08', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1761019613.94', 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='897' AND source_name='4FGL J1727.2+0644' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Oct 20 21:06:54 PDT 2025

