/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).

   .10000E+07
    13 'norm      '    7.7574       1.0000          .0000       .10000E+07
    14 'norm      '    .37049E-03   1.0000          .0000       .10000E+07
    15 'norm      '    16.048       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.5137       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .93447       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=   34159.42     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1229 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3303       -.13057E-06** at limit **
   2  Prefactor      .0000        7.2358       -.14724E-06** at limit **
   3  Prefactor     9.6744        3.3477       -.10074E-06   -.20128E-01
   4  Prefactor      .0000        23.676        .40798E-06** at limit **
   5  Prefactor     3.0894        5.1154        .14568E-06    .96052E-04
   6  Prefactor     59.354        2.0070        .22072E-07   -.46272E-01
   7  Prefactor     .55511E-10    7.7818       -.20259E-06** at limit **
   8  norm          6.3679        5.4689       -.23734E-07    .40703E-03
   9  Prefactor     .75939E-07    431.84       -.41317E-05** at limit **
  10  Prefactor     7.1559        2.0662       -.13395E-07    .18442E-02
  11  norm          3.7000        5.8144       -.17678E-07    .13324E-03
  12  norm           .0000        .90941       -.33983E-07** at limit **
  13  norm          7.7575        .89607        .10191E-07   -.34496E-03
  14  norm          .11102E-09    10.924       -.28217E-07** at limit **
  15  norm          16.044        10.294       -.18627E-07    .53557E-03
  16  Normalizat    1.5143        .21947       -.59029E-06    .42279E-04
  17  Prefactor     .93440        .38731E-01   -.40765E-06    .10288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.67442
  Prefactor  = 0
  Prefactor  = 3.08943
  Prefactor  = 59.3545
  Prefactor  = 5.55112e-11
  norm       = 6.36791
  Prefactor  = 7.59393e-08
  Prefactor  = 7.15593
  norm       = 3.69999
  norm       = 0
  norm       = 7.75752
  norm       = 1.11022e-10
  norm       = 16.0443
  Normalizat = 1.51427
  Prefactor  = 0.934404
/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).

 **********
 **   18 **HESSE 
 **********

 FCN=   34159.42     FROM HESSE     STATUS=OK           261 CALLS     1490 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        7.1395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6744        42.645        .32080E-03   -1.5646    
   4  Prefactor      .0000        23.786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0894        5.1942        .57743E-03   -1.5673    
   6  Prefactor     59.354        72.676        .12987E-03   -1.5554    
   7  Prefactor     .55511E-10    7.7848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3679        5.4809        .39690E-03   -1.5657    
   9  Prefactor     .75939E-07    421.96        .84882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1559        2.0662        .37480E-03   -1.5654    
  11  norm          3.7000        5.8411        .52623E-03   -1.5669    
  12  norm           .0000        .91209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.7575        .89925        .35979E-03   -1.5652    
  14  norm          .11102E-09    10.448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.044        10.289        .24975E-03   -1.5628    
  16  Normalizat    1.5143        .20344        .13665       -.77378    
  17  Prefactor     .93440        .35393E-01    .31359E-01   -.94949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65009e-07
Minuit parameter uncertainties:
  1  3.35927e-06
  2  1.60867e-05
  3  40.6237
  4  3.02811e-05
  5  5.19424
  6  72.6773
  7  3.05136e-05
  8  5.48089
  9  0.0113241
  10  2.06623
  11  5.84107
  12  1.599e-07
  13  0.899252
  14  6.71674e-05
  15  10.2885
  16  0.203554
  17  0.0353941
number of points = 17392
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1728.4+0427_weekly_bin936
RA = 262.122, Dec = 4.4606
tmin = 805075201, tmax = 805680001
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='31673149', job_status='RUN', time_executed='2026-07-14 14:49:10.946332', time_epoch_executed='1784065750.95' WHERE source_name='4FGL J1728.4+0427' and cadence='weekly' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31673149

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31673149/ft1_4FGL_J1728.4+0427_weekly_bin936.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31673149/ft2_4FGL_J1728.4+0427_weekly_bin936.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31673149/ft1_4FGL_J1728.4+0427_weekly_bin936.fits outfile=/lscratch/kocevski/31673149/ft1_filteredMKT_4FGL_J1728.4+0427_weekly_bin936.fits ra=262.122 dec=4.4606 rad=12.0 tmin=805075201.0 tmax=805680001.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.10
user 4.45
sys 0.24

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

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

Number of photons that the gtmktime cut: 3375

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31673149/ft1_filtered_4FGL_J1728.4+0427_weekly_bin936.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31673149/ft2_4FGL_J1728.4+0427_weekly_bin936.fits sctable="SC_DATA" oDone.

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

Extracting fit parameters...

4FGL J1728.4+0427
   Spectrum: LogParabola
261         norm:  3.700e+00  5.841e+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:  9.344e-01  3.539e-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:  1.514e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/31672334/likelihoodResults_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.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) = 34159.3818714
delta logL = 0.0362482844357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 34159.37654
delta logL = 0.041579694036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1496       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9391       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93546       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   34159.38     FROM MIGRAD    STATUS=FAILED       101 CALLS      263 TOTAL
                     EDM=   .36E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1436        310.09        .11418E-03   -.35023E-02
   2  alpha         2.9386        3.9383        .72590E-01    .75577E-03
   3  Normalizat    1.5032        .33612        .60846E-03   -.28370E-03
   4  Prefactor     .93540        .50302E-01    .13850E-03   -.72127E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   34159.38     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      351 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1436        310.09        .15649E-04   -.35023E-02
   2  alpha         2.9386        3.9383        .17680E-02    .75577E-03
   3  Normalizat    1.5032        .33612        .16636E-03   -.28370E-03
   4  Prefactor     .93540        .50302E-01    .29436E-04   -.72127E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   34159.38     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      388 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1436        6.7383        .45673E-05   -.46000E-02
   2  alpha         2.9387        1.8462        .14518E-01   -.20673E-04
   3  Normalizat    1.5032        .21011        .24338E-04   -.28625E-03
   4  Prefactor     .93540        .38378E-01    .27701E-04   -.73086E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.14358
  alpha      = 2.93866
  Normalizat = 1.50316
  Prefactor  = 0.935397
 **********
 **   18 **HESSE 
 **********

 FCN=   34159.38     FROM HESSE     STATUS=OK            25 CALLS      413 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1436        6.2450        .18269E-06   -1.5673    
   2  alpha         2.9387        1.7387        .58072E-03    .17638    
   3  Normalizat    1.5032        .20951        .48677E-05   -.77690    
   4  Prefactor     .93540        .38313E-01    .55401E-05   -.94915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10918e-10
Minuit parameter uncertainties:
  1  6.24502
  2  1.93073
  3  0.209636
  4  0.0383137
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) = 34159.3765329
delta logL = 0.041586774285

Extracting fit parameters...

4FGL J1728.4+0427
   Spectrum: LogParabola
261         norm:  3.144e+00  6.245e+00  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.939e+00  1.931e+00  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:  9.354e-01  3.831e-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:  1.503e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
Ra Dec: 262.122 4.461

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/31672334/cmap_HighResolution_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2026-07-14 14:53:49.399297', job_id='31672334', GAL2='0.94', fit_tolerance='1e-08', EG2='1.50', EG='1.51', time_epoch_completed='1784066029.4', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.16e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='936' AND source_name='4FGL J1728.4+0427' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 14 14:53:49 PDT 2026

utfile=/lscratch/kocevski/31673149/ltcube_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.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/31673149/ft2_4FGL_J1728.4+0427_weekly_bin936.fits
.....................!
real 18.37
user 17.71
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31673149/ft1_filtered_4FGL_J1728.4+0427_weekly_bin936.fits evtable="EVENTS" scfile=/lscratch/kocevski/31673149/ft2_4FGL_J1728.4+0427_weekly_bin936.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31673149/ltcube_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.fits outfile=/lscratch/kocevski/31673149/expmap_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.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/31673149/ltcube_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.fits
.....................!
real 70.93
user 65.78
sys 4.16

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/31673149/ft1_filtered_4FGL_J1728.4+0427_weekly_bin936.fits scfile=/lscratch/kocevski/31673149/ft2_4FGL_J1728.4+0427_weekly_bin936.fits outfile=/lscratch/kocevski/31673149/cmap_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.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.81
user 0.25
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31673149/ft1_filtered_4FGL_J1728.4+0427_weekly_bin936.fits scfile=/lscratch/kocevski/31673149/ft2_4FGL_J1728.4+0427_weekly_bin936.fits outfile=/lscratch/kocevski/31673149/cmap_HighResolution_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.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.79
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31673149/ft1_filtered_4FGL_J1728.4+0427_weekly_bin936.fits evtable="EVENTS" scfile=/lscratch/kocevski/31673149/ft2_4FGL_J1728.4+0427_weekly_bin936.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31673149/Model_4FGL_J1728.4+0427_weekly_bin936.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/31673149/ft1_filtered_4FGL_J1728.4+0427_weekly_bin936.fits.....................!
real 182.97
user 179.72
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31673149/ft1_filtered_4FGL_J1728.4+0427_weekly_bin936.fits', '/lscratch/kocevski/31673149/ft2_4FGL_J1728.4+0427_weekly_bin936.fits', expMap='/lscratch/kocevski/31673149/expmap_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.fits', expCube='/lscratch/kocevski/31673149/ltcube_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31673149/Model_4FGL_J1728.4+0427_weekly_bin936.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/31673149/ft1_filtered_4FGL_J1728.4+0427_weekly_bin936.fits
Spacecraft file(s): /lscratch/kocevski/31673149/ft2_4FGL_J1728.4+0427_weekly_bin936.fits
Exposure map: /lscratch/kocevski/31673149/expmap_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.fits
Exposure cube: /lscratch/kocevski/31673149/ltcube_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31673149/Model_4FGL_J1728.4+0427_weekly_bin936.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) = 34159.4193629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16604E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .35058E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.7427       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38896E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.0826       1.0000          .0000       .10000E+07
     6 'Prefactor '    59.296       1.0000          .0000       .10000E+07
     7 'Prefactor '    .31422E-02   1.0000          .0000       .10000E+07
     8 'norm      '    6.3875       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44101       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.1538       1.0000          .0000       .10000E+07
    11 'norm      '    3.6804       1.0000          .0000       .10000E+07
    12 'norm      '    .18008E-06   1.0000          .0000       .10000E+07
    13 'norm      '    7.7574       1.0000          .0000       .10000E+07
    14 'norm      '    .37049E-03   1.0000          .0000       .10000E+07
    15 'norm      '    16.048       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.5137       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .93447       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=   34159.42     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1229 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3303       -.13057E-06** at limit **
   2  Prefactor      .0000        7.2358       -.14724E-06** at limit **
   3  Prefactor     9.6744        3.3477       -.10074E-06   -.20128E-01
   4  Prefactor      .0000        23.676        .40798E-06** at limit **
   5  Prefactor     3.0894        5.1154        .14568E-06    .96052E-04
   6  Prefactor     59.354        2.0070        .22072E-07   -.46272E-01
   7  Prefactor     .55511E-10    7.7818       -.20259E-06** at limit **
   8  norm          6.3679        5.4689       -.23734E-07    .40703E-03
   9  Prefactor     .75939E-07    431.84       -.41317E-05** at limit **
  10  Prefactor     7.1559        2.0662       -.13395E-07    .18442E-02
  11  norm          3.7000        5.8144       -.17678E-07    .13324E-03
  12  norm           .0000        .90941       -.33983E-07** at limit **
  13  norm          7.7575        .89607        .10191E-07   -.34496E-03
  14  norm          .11102E-09    10.924       -.28217E-07** at limit **
  15  norm          16.044        10.294       -.18627E-07    .53557E-03
  16  Normalizat    1.5143        .21947       -.59029E-06    .42279E-04
  17  Prefactor     .93440        .38731E-01   -.40765E-06    .10288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.67442
  Prefactor  = 0
  Prefactor  = 3.08943
  Prefactor  = 59.3545
  Prefactor  = 5.55112e-11
  norm       = 6.36791
  Prefactor  = 7.59393e-08
  Prefactor  = 7.15593
  norm       = 3.69999
  norm       = 0
  norm       = 7.75752
  norm       = 1.11022e-10
  norm       = 16.0443
  Normalizat = 1.51427
  Prefactor  = 0.934404
 **********
 **   18 **HESSE 
 **********

 FCN=   34159.42     FROM HESSE     STATUS=OK           261 CALLS     1490 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        7.1395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6744        42.645        .32080E-03   -1.5646    
   4  Prefactor      .0000        23.786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0894        5.1942        .57743E-03   -1.5673    
   6  Prefactor     59.354        72.676        .12987E-03   -1.5554    
   7  Prefactor     .55511E-10    7.7848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3679        5.4809        .39690E-03   -1.5657    
   9  Prefactor     .75939E-07    421.96        .84882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1559        2.0662        .37480E-03   -1.5654    
  11  norm          3.7000        5.8411        .52623E-03   -1.5669    
  12  norm           .0000        .91209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.7575        .89925        .35979E-03   -1.5652    
  14  norm          .11102E-09    10.448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.044        10.289        .24975E-03   -1.5628    
  16  Normalizat    1.5143        .20344        .13665       -.77378    
  17  Prefactor     .93440        .35393E-01    .31359E-01   -.94949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65009e-07
Minuit parameter uncertainties:
  1  3.35927e-06
  2  1.60867e-05
  3  40.6237
  4  3.02811e-05
  5  5.19424
  6  72.6773
  7  3.05136e-05
  8  5.48089
  9  0.0113241
  10  2.06623
  11  5.84107
  12  1.599e-07
  13  0.899252
  14  6.71674e-05
  15  10.2885
  16  0.203554
  17  0.0353941
Done.

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

Extracting fit parameters...

4FGL J1728.4+0427
   Spectrum: LogParabola
261         norm:  3.700e+00  5.841e+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:  9.344e-01  3.539e-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:  1.514e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/31673149/likelihoodResults_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.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) = 34159.3818714
delta logL = 0.0362482844357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 34159.37654
delta logL = 0.041579694036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1496       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9391       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93546       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   34159.38     FROM MIGRAD    STATUS=FAILED       101 CALLS      263 TOTAL
                     EDM=   .36E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1436        310.09        .11418E-03   -.35023E-02
   2  alpha         2.9386        3.9383        .72590E-01    .75577E-03
   3  Normalizat    1.5032        .33612        .60846E-03   -.28370E-03
   4  Prefactor     .93540        .50302E-01    .13850E-03   -.72127E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   34159.38     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      351 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1436        310.09        .15649E-04   -.35023E-02
   2  alpha         2.9386        3.9383        .17680E-02    .75577E-03
   3  Normalizat    1.5032        .33612        .16636E-03   -.28370E-03
   4  Prefactor     .93540        .50302E-01    .29436E-04   -.72127E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   34159.38     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      388 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1436        6.7383        .45673E-05   -.46000E-02
   2  alpha         2.9387        1.8462        .14518E-01   -.20673E-04
   3  Normalizat    1.5032        .21011        .24338E-04   -.28625E-03
   4  Prefactor     .93540        .38378E-01    .27701E-04   -.73086E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.14358
  alpha      = 2.93866
  Normalizat = 1.50316
  Prefactor  = 0.935397
 **********
 **   18 **HESSE 
 **********

 FCN=   34159.38     FROM HESSE     STATUS=OK            25 CALLS      413 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1436        6.2450        .18269E-06   -1.5673    
   2  alpha         2.9387        1.7387        .58072E-03    .17638    
   3  Normalizat    1.5032        .20951        .48677E-05   -.77690    
   4  Prefactor     .93540        .38313E-01    .55401E-05   -.94915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10918e-10
Minuit parameter uncertainties:
  1  6.24502
  2  1.93073
  3  0.209636
  4  0.0383137
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) = 34159.3765329
delta logL = 0.041586774285

Extracting fit parameters...

4FGL J1728.4+0427
   Spectrum: LogParabola
261         norm:  3.144e+00  6.245e+00  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.939e+00  1.931e+00  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:  9.354e-01  3.831e-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:  1.503e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
Ra Dec: 262.122 4.461

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/31673149/cmap_HighResolution_805075201_805680001_4FGL_J1728.4+0427_weekly_bin936.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2026-07-14 15:08:05.863607', job_id='31673149', GAL2='0.94', fit_tolerance='1e-08', EG2='1.50', EG='1.51', time_epoch_completed='1784066885.86', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.16e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='936' AND source_name='4FGL J1728.4+0427' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 14 15:08:06 PDT 2026

