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


Performing analysis on: 4FGL_J1728.4+0427_weekly_bin860
RA = 262.122, Dec = 4.4606
tmin = 759110401, tmax = 759715201
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='62887065', job_status='RUN', time_executed='2025-01-28 01:01:34.831579', time_epoch_executed='1738054894.83' WHERE source_name='4FGL J1728.4+0427' and cadence='weekly' and bin_id='860'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/62887065

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/62887065/ft1_4FGL_J1728.4+0427_weekly_bin860.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/62887065/ft2_4FGL_J1728.4+0427_weekly_bin860.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/62887065/ft1_4FGL_J1728.4+0427_weekly_bin860.fits outfile=/lscratch/kocevski/62887065/ft1_filteredMKT_4FGL_J1728.4+0427_weekly_bin860.fits ra=262.122 dec=4.4606 rad=12.0 tmin=759110401.0 tmax=759715201.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.49
user 4.98
sys 0.36

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

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

Number of photons that the gtmktime cut: 4786

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/62887065/ft1_filtered_4FGL_J1728.4+0427_weekly_bin860.fits" evtable="EVENTS" scfile=/lscratch/kocevski/62887065/ft2_4FGL_J1728.4+0427_weekly_bin860.fits sctable="SC_DATA" outfile=/lscratch/kocevski/62887065/ltcube_759110401_759715201_4FGL_J1728.4+0427_weekly_bin860.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/62887065/ft2_4FGL_J1728.4+0427_weekly_bin860.fits
.....................!
real 19.18
user 18.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/62887065/ft1_filtered_4FGL_J1728.4+0427_weekly_bin860.fits evtable="EVENTS" scfile=/lscratch/kocevski/62887065/ft2_4FGL_J1728.4+0427_weekly_bin860.fits sctable="SC_DATA" expcube=/lscratch/kocevski/62887065/ltcube_759110401_759715201_4FGL_J1728.4+0427_weekly_bin860.fits outfile=/lscratch/kocevski/62887065/expmap_759110401_759715201_4FGL_J1728.4+0427_weekly_bin860.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/62887065/ltcube_759110401_759715201_4FGL_J1728.4+0427_weekly_bin860.fits
.....................!
real 69.38
user 65.25
sys 3.68

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/62887065/ft1_filtered_4FGL_J1728.4+0427_weekly_bin860.fits scfile=/lscratch/kocevski/62887065/ft2_4FGL_J1728.4+0427_weekly_bin860.fits outfile=/lscratch/kocevski/62887065/cmap_759110401_759715201_4FGL_J1728.4+0427_weekly_bin860.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.41
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/62887065/ft1_filtered_4FGL_J1728.4+0427_weekly_bin860.fits scfile=/lscratch/kocevski/62887065/ft2_4FGL_J1728.4+0427_weekly_bin860.fits outfile=/lscratch/kocevski/62887065/cmap_HighResolution_759110401_759715201_4FGL_J1728.4+0427_weekly_bin860.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.43
user 0.24
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25002E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .32114       1.0000          .0000       .10000E+07
     3 'Prefactor '    .98657E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    49.960       1.0000          .0000       .10000E+07
     5 'Prefactor '    .67885E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11447E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .98033E-07   1.0000          .0000       .10000E+07
     8 'norm      '    5.2374       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16029E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.8323       1.0000          .0000       .10000E+07
    11 'norm      '    7.4053       1.0000          .0000       .10000E+07
    12 'norm      '    .44109       1.0000          .0000       .10000E+07
    13 'norm      '    .62784       1.0000          .0000       .10000E+07
    14 'norm      '    7.9291       1.0000          .0000       .10000E+07
    15 'norm      '    12.446       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.4688       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0127       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=   48801.63     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      974 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0631       -.26390E-07** at limit **
   2  Prefactor     .33125        9.4710       -.11055E-06   -.30165E-03
   3  Prefactor     .81823E-07    22.674       -.20773E-06** at limit **
   4  Prefactor     48.639        6.2355       -.18578E-07   -.62738E-01
   5  Prefactor      .0000        5.1538        .73023E-09** at limit **
   6  Prefactor     .61062E-09    39.830       -.23980E-06** at limit **
   7  Prefactor      .0000        3.6470       -.87243E-07** at limit **
   8  norm          5.2550        3.7392        .22464E-07   -.45125E-05
   9  Prefactor     .78826E-08    24.737        .59598E-07** at limit **
  10  Prefactor     4.8299        1.7285        .17969E-08    .40733E-04
  11  norm          7.4568        5.0783       -.41394E-07   -.60411E-04
  12  norm          .44052        .70591        .32065E-07   -.11641E-03
  13  norm          .62798        .37593        .45517E-09    .74670E-04
  14  norm          7.9225        3.8465        .13694E-07   -.81536E-04
  15  norm          12.298        5.0255        .68197E-08    .69743E-02
  16  Normalizat    1.4684        .18259        .20683E-05   -.48893E-06
  17  Prefactor     1.0128        .33277E-01   -.32237E-06    .39684E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0.331251
  Prefactor  = 8.18234e-08
  Prefactor  = 48.6388
  Prefactor  = 0
  Prefactor  = 6.10623e-10
  Prefactor  = 0
  norm       = 5.25497
  Prefactor  = 7.88258e-09
  Prefactor  = 4.82987
  norm       = 7.45677
  norm       = 0.440517
  norm       = 0.627977
  norm       = 7.9225
  norm       = 12.2984
  Normalizat = 1.4684
  Prefactor  = 1.01283
 **********
 **   18 **HESSE 
 **********

 FCN=   48801.63     FROM HESSE     STATUS=OK           265 CALLS     1239 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33125        1.0897        .99259E-02   -1.5696    
   3  Prefactor     .81823E-07    24.375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.639        23.149        .14149E-03   -1.5568    
   5  Prefactor      .0000        5.0778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .61062E-09    39.861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.6378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2550        3.7420        .43898E-03   -1.5662    
   9  Prefactor     .78826E-08    42.329        .17313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8299        1.7265        .45739E-03   -1.5664    
  11  norm          7.4568        5.0889        .36832E-03   -1.5653    
  12  norm          .44052        .72340        .54123E-02   -1.5695    
  13  norm          .62798        .37588        .66770E-03   -1.5692    
  14  norm          7.9225        3.8459        .35584E-03   -1.5652    
  15  norm          12.298        7.5461        .28368E-03   -1.5638    
  16  Normalizat    1.4684        .16943        .14030       -.78670    
  17  Prefactor     1.0128        .30589E-01    .31087E-01   -.92303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35693e-08
Minuit parameter uncertainties:
  1  1.89315e-07
  2  1.08968
  3  0.00282492
  4  23.1491
  5  3.238e-06
  6  0.000313642
  7  1.42493e-06
  8  3.74197
  9  0.00115334
  10  1.72654
  11  5.08895
  12  0.723398
  13  0.375876
  14  3.84592
  15  7.54607
  16  0.169493
  17  0.03059
Done.

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

Extracting fit parameters...

4FGL J1728.4+0427
   Spectrum: LogParabola
261         norm:  7.457e+00  5.089e+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.013e+00  3.059e-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.468e+00  1.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 262.122 4.461
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.58e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 7.91e-06

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

Saving results to:
/lscratch/kocevski/62887065/likelihoodResults_759110401_759715201_4FGL_J1728.4+0427_weekly_bin860.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) = 48801.2976098
delta logL = 0.328293126091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 48801.2901814
delta logL = 0.335721494135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9870       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9304       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0118       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.

 FCN=   48801.29     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      217 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9790        7.5379        .35454E-03    .25512E-02
   2  alpha         1.9297        .72648        .42590       -.87633E-04
   3  Normalizat    1.4808        .16156        .13982        .17626E-03
   4  Prefactor     1.0118        .30306E-01    .31100E-01    .16886E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.97898
  alpha      = 1.92972
  Normalizat = 1.4808
  Prefactor  = 1.01181
 **********
 **   18 **HESSE 
 **********

 FCN=   48801.29     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9790        5.3945        .14182E-04   -1.5651    
   2  alpha         1.9297        .59236        .45446E-01   -.23014    
   3  Normalizat    1.4808        .17396        .62084E-03   -.78319    
   4  Prefactor     1.0118        .32882E-01    .13743E-03   -.92337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5976e-11
Minuit parameter uncertainties:
  1  5.39455
  2  0.598366
  3  0.174026
  4  0.0328823
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) = 48801.2901748
delta logL = 0.335728049664

Extracting fit parameters...

4FGL J1728.4+0427
   Spectrum: LogParabola
261         norm:  7.979e+00  5.395e+00  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  1.930e+00  5.984e-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.012e+00  3.288e-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.481e+00  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.74
Ra Dec: 262.122 4.461
Photon Index (Free Index): 1.93 +/- 0.60
Photon Flux (Free Index): 2.39e-08 +/- 2.12e-08
Energy Flux (Free Index): 1.24e-05 +/- 8.31e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/62887065/cmap_HighResolution_759110401_759715201_4FGL_J1728.4+0427_weekly_bin860.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-05', comment='SUCCESS', photon_flux='3.58e-08', energy_flux2='1.24e-05', photon_flux_error='2.45e-08', dlogl='3.36e-01', energy_flux='1.16e-05', photon_flux2='2.39e-08', job_status='DONE', time_completed='2025-01-28 01:21:46.096408', photon_index_error2='0.60', photon_index2='1.93', ts='3.08', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.54e-08', energy_flux_error2='8.31e-06', EG='1.47', time_epoch_completed='1738056106.1', return_code='0', job_id='62887065', GAL2='1.01', EG2='1.48', return_code2='0', energy_flux_error='7.91e-06', photon_flux_error2='2.12e-08', ts2='3.74', photon_index='2.43' WHERE bin_id='860' AND source_name='4FGL J1728.4+0427' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 28 01:21:46 PST 2025

