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


Performing analysis on: 4FGL_J1728.4+0427_weekly_bin907
RA = 262.122, Dec = 4.4606
tmin = 787536001, tmax = 788140801
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='17775517', job_status='RUN', time_executed='2025-12-23 02:10:03.253321', time_epoch_executed='1766484603.25' WHERE source_name='4FGL J1728.4+0427' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17775517

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17775517/ft1_4FGL_J1728.4+0427_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17775517/ft1_4FGL_J1728.4+0427_weekly_bin907.fits outfile=/lscratch/kocevski/17775517/ft1_filteredMKT_4FGL_J1728.4+0427_weekly_bin907.fits ra=262.122 dec=4.4606 rad=12.0 tmin=787536001.0 tmax=788140801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.80
user 4.19
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.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/17775517/ft1_filteredMKT_4FGL_J1728.4+0427_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17775517/ft1_filtered_4FGL_J1728.4+0427_weekly_bin907.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.21
sys 0.13

Number of photons that the gtmktime cut: 3557

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17775517/ft1_filtered_4FGL_J1728.4+0427_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17775517/ltcube_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.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/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.fits
.....................!
real 18.85
user 18.12
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17775517/ft1_filtered_4FGL_J1728.4+0427_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17775517/ltcube_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.fits outfile=/lscratch/kocevski/17775517/expmap_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.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/17775517/ltcube_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.fits
.....................!
real 67.92
user 63.32
sys 3.97

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 W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Added 240 point sources and 8 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 J1728.4+0427 @ 262.122 4.4606

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17775517/ft1_filtered_4FGL_J1728.4+0427_weekly_bin907.fits scfile=/lscratch/kocevski/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.fits outfile=/lscratch/kocevski/17775517/cmap_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.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=262.122 yref=4.4606 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.63
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17775517/ft1_filtered_4FGL_J1728.4+0427_weekly_bin907.fits scfile=/lscratch/kocevski/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.fits outfile=/lscratch/kocevski/17775517/cmap_HighResolution_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.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=262.122 yref=4.4606 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.76
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17775517/ft1_filtered_4FGL_J1728.4+0427_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17775517/Model_4FGL_J1728.4+0427_weekly_bin907.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source FHES J1723.5-0501
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1841-055
adding source Kes 73
adding source Kes 79
adding source W 41
Working on...
/lscratch/kocevski/17775517/ft1_filtered_4FGL_J1728.4+0427_weekly_bin907.fits.....................!
real 178.59
user 176.13
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17775517/ft1_filtered_4FGL_J1728.4+0427_weekly_bin907.fits', '/lscratch/kocevski/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.fits', expMap='/lscratch/kocevski/17775517/expmap_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.fits', expCube='/lscratch/kocevski/17775517/ltcube_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17775517/Model_4FGL_J1728.4+0427_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1728.4+0427'

4FGL J1728.4+0427
   Spectrum: LogParabola
261         norm:  3.299e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.434e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  2.465e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  6.843e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17775517/ft1_filtered_4FGL_J1728.4+0427_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17775517/ft2_4FGL_J1728.4+0427_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17775517/expmap_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17775517/ltcube_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17775517/Model_4FGL_J1728.4+0427_weekly_bin907.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) = 35115.6907676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27900E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.0374       1.0000          .0000       .10000E+07
     3 'Prefactor '    40.650       1.0000          .0000       .10000E+07
     4 'Prefactor '    13.439       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1031       1.0000          .0000       .10000E+07
     6 'Prefactor '    .77693       1.0000          .0000       .10000E+07
     7 'Prefactor '    .19241E-02   1.0000          .0000       .10000E+07
     8 'norm      '    2.9638       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.774       1.0000          .0000       .10000E+07
    10 'Prefactor '    14.072       1.0000          .0000       .10000E+07
    11 'norm      '    7.1401       1.0000          .0000       .10000E+07
    12 'norm      '    2.7384       1.0000          .0000       .10000E+07
    13 'norm      '    9.3230       1.0000          .0000       .10000E+07
    14 'norm      '    .11102E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .12424E-03   1.0000          .0000       .10000E+07
    16 'Normalizat'    .97413       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0904       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35115.68     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1205 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .56652       -.34359E-07** at limit **
   2  Prefactor     6.0244        4.8504       -.25923E-06   -.89652E-03
   3  Prefactor     41.040        14.229       -.72638E-06   -.13676    
   4  Prefactor     13.542        6.7300       -.63369E-06   -.69692E-01
   5  Prefactor     1.0881        3.7702        .14257E-06    .19285E-02
   6  Prefactor     .20960E-05    94.197        .10429E-05** at limit **
   7  Prefactor     .11102E-08    31.178        .58265E-05** at limit **
   8  norm          2.9611        5.0887        .64428E-10    .14803E-02
   9  Prefactor     16.200        43.348        .34690E-05   -.38281E-01
  10  Prefactor     14.073        2.6197       -.33709E-06    .73530E-02
  11  norm          7.1354        6.8336       -.11619E-06    .13787E-02
  12  norm          2.7410        2.0597       -.16877E-07   -.30925E-03
  13  norm          9.3232        .94369       -.17109E-07    .18284E-02
  14  norm           .0000        1.9049       -.73738E-06** at limit **
  15  norm          .55511E-10    4.9070        .28230E-05** at limit **
  16  Normalizat    .97369        .23399       -.24916E-07    .17738E-03
  17  Prefactor     1.0905        .41536E-01    .32896E-06    .66783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 6.02437
  Prefactor  = 41.0402
  Prefactor  = 13.5423
  Prefactor  = 1.08812
  Prefactor  = 2.09605e-06
  Prefactor  = 1.11022e-09
  norm       = 2.96109
  Prefactor  = 16.1998
  Prefactor  = 14.0733
  norm       = 7.13542
  norm       = 2.74097
  norm       = 9.32323
  norm       = 0
  norm       = 5.55112e-11
  Normalizat = 0.973687
  Prefactor  = 1.09049
 **********
 **   18 **HESSE 
 **********

 FCN=   35115.68     FROM HESSE     STATUS=OK           263 CALLS     1468 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .56578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0244        4.8659        .40840E-03   -1.5659    
   3  Prefactor     41.040        33.330        .15686E-03   -1.5580    
   4  Prefactor     13.542        27.905        .27297E-03   -1.5634    
   5  Prefactor     1.0881        3.7891        .11291E-02   -1.5687    
   6  Prefactor     .20960E-05    96.668        .54671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-08    30.750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9611        5.1188        .58957E-03   -1.5674    
   9  Prefactor     16.200        49.901        .25192E-03   -1.5627    
  10  Prefactor     14.073        2.6308        .26675E-03   -1.5633    
  11  norm          7.1354        6.8696        .37517E-03   -1.5655    
  12  norm          2.7410        2.0612        .61501E-03   -1.5675    
  13  norm          9.3232        .94595        .32798E-03   -1.5647    
  14  norm           .0000        1.9098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    4.9309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97369        .23571        .17089       -.93917    
  17  Prefactor     1.0905        .40168E-01    .37962E-01   -.89771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1472e-06
Minuit parameter uncertainties:
  1  1.21355e-06
  2  4.86588
  3  33.33
  4  27.9055
  5  3.78914
  6  0.0284694
  7  0.000372768
  8  5.11877
  9  49.9019
  10  2.63077
  11  6.86959
  12  2.06116
  13  0.945949
  14  7.81503e-06
  15  2.36126e-05
  16  0.235959
  17  0.0401691
Done.

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

Extracting fit parameters...

4FGL J1728.4+0427
   Spectrum: LogParabola
261         norm:  7.135e+00  6.870e+00  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.434e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  2.465e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  6.843e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
864    Prefactor:  1.090e+00  4.017e-02  0.000e+00  1.000e+01 ( 1.000e+00)
865        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
866        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
850   Normalization:  9.737e-01  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 262.122 4.461
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.07e-05

TS (Fixed Index): 1.46
Ra Dec: 262.122 4.461
Photon Flux Upper Limit: 9.9781592397e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.22563290906e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17775517/likelihoodResults_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.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) = 35115.5118368
delta logL = 0.163793789303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 35115.4974363
delta logL = 0.178194283508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0636       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9724       1.0000          .0000       5.0000    
     3 'Normalizat'    .95001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0925       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   35115.50     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      252 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0632        7.9059        .16300E-04    .31972E-02
   2  alpha         2.9724        1.0849        .38252E-01    .41920E-04
   3  Normalizat    .95001        .21535        .76827E-03   -.20551E-03
   4  Prefactor     1.0925        .40605E-01    .13786E-03   -.91830E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.06318
  alpha      = 2.97244
  Normalizat = 0.950011
  Prefactor  = 1.09248
 **********
 **   18 **HESSE 
 **********

 FCN=   35115.50     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0632        6.4173        .65200E-06   -1.5659    
   2  alpha         2.9724        .88944        .15301E-02    .19012    
   3  Normalizat    .95001        .21454        .30731E-04   -.94724    
   4  Prefactor     1.0925        .40507E-01    .55146E-05   -.89707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50438e-10
Minuit parameter uncertainties:
  1  6.41732
  2  0.91015
  3  0.214739
  4  0.0405082
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) = 35115.4974363
delta logL = 0.178194290456

Extracting fit parameters...

4FGL J1728.4+0427
   Spectrum: LogParabola
261         norm:  6.063e+00  6.417e+00  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.972e+00  9.102e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  2.465e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  6.843e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
864    Prefactor:  1.092e+00  4.051e-02  0.000e+00  1.000e+01 ( 1.000e+00)
865        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
866        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
850   Normalization:  9.500e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 262.122 4.461
Photon Index (Free Index): 2.97 +/- 0.91
Photon Flux (Free Index): 5.54e-08 +/- 5.28e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.05e-05

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/17775517/cmap_HighResolution_787536001_788140801_4FGL_J1728.4+0427_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-05', comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.29e-05', photon_flux_error='3.30e-08', dlogl='1.78e-01', energy_flux='1.11e-05', photon_flux2='5.54e-08', job_status='DONE', time_completed='2025-12-23 02:29:19.438392', photon_index_error2='0.91', photon_index2='2.97', ts='1.46', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='9.98e-08', energy_flux_error2='1.05e-05', EG='0.97', time_epoch_completed='1766485759.44', return_code='0', job_id='17775517', GAL2='1.09', EG2='0.95', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='5.28e-08', ts2='1.84', photon_index='2.43' WHERE bin_id='907' AND source_name='4FGL J1728.4+0427' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:29:19 PST 2025

