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


Performing analysis on: 4FGL_J1728.0+1216_weekly_bin859
RA = 262.02, Dec = 12.2756
tmin = 758505601, tmax = 759110401
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='62411425', job_status='RUN', time_executed='2025-01-21 01:07:12.541733', time_epoch_executed='1737450432.54' WHERE source_name='4FGL J1728.0+1216' and cadence='weekly' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/62411425

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/62411425/ft1_4FGL_J1728.0+1216_weekly_bin859.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/62411425/ft1_4FGL_J1728.0+1216_weekly_bin859.fits outfile=/lscratch/kocevski/62411425/ft1_filteredMKT_4FGL_J1728.0+1216_weekly_bin859.fits ra=262.02 dec=12.2756 rad=12.0 tmin=758505601.0 tmax=759110401.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 3.70
user 3.30
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.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/62411425/ft1_filteredMKT_4FGL_J1728.0+1216_weekly_bin859.fits evtable="EVENTS" outfile="/lscratch/kocevski/62411425/ft1_filtered_4FGL_J1728.0+1216_weekly_bin859.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.44
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 3303

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/62411425/ft1_filtered_4FGL_J1728.0+1216_weekly_bin859.fits" evtable="EVENTS" scfile=/lscratch/kocevski/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.fits sctable="SC_DATA" outfile=/lscratch/kocevski/62411425/ltcube_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.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/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.fits
.....................!
real 22.44
user 21.89
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/62411425/ft1_filtered_4FGL_J1728.0+1216_weekly_bin859.fits evtable="EVENTS" scfile=/lscratch/kocevski/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.fits sctable="SC_DATA" expcube=/lscratch/kocevski/62411425/ltcube_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.fits outfile=/lscratch/kocevski/62411425/expmap_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.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/62411425/ltcube_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.fits
.....................!
real 79.65
user 74.31
sys 4.70

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.
Added 176 point sources and 1 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.0+1216 @ 262.02 12.2756

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/62411425/ft1_filtered_4FGL_J1728.0+1216_weekly_bin859.fits scfile=/lscratch/kocevski/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.fits outfile=/lscratch/kocevski/62411425/cmap_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.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.02 yref=12.2756 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.44
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/62411425/ft1_filtered_4FGL_J1728.0+1216_weekly_bin859.fits scfile=/lscratch/kocevski/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.fits outfile=/lscratch/kocevski/62411425/cmap_HighResolution_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.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.02 yref=12.2756 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.27
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/62411425/ft1_filtered_4FGL_J1728.0+1216_weekly_bin859.fits evtable="EVENTS" scfile=/lscratch/kocevski/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/62411425/Model_4FGL_J1728.0+1216_weekly_bin859.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 GAL_V02
Working on...
/lscratch/kocevski/62411425/ft1_filtered_4FGL_J1728.0+1216_weekly_bin859.fits.....................!
real 120.62
user 118.39
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/62411425/ft1_filtered_4FGL_J1728.0+1216_weekly_bin859.fits', '/lscratch/kocevski/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.fits', expMap='/lscratch/kocevski/62411425/expmap_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.fits', expCube='/lscratch/kocevski/62411425/ltcube_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/62411425/Model_4FGL_J1728.0+1216_weekly_bin859.xml', optimizer='MINUIT')

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

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.205e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.455e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.003e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/62411425/ft1_filtered_4FGL_J1728.0+1216_weekly_bin859.fits
Spacecraft file(s): /lscratch/kocevski/62411425/ft2_4FGL_J1728.0+1216_weekly_bin859.fits
Exposure map: /lscratch/kocevski/62411425/expmap_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.fits
Exposure cube: /lscratch/kocevski/62411425/ltcube_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/62411425/Model_4FGL_J1728.0+1216_weekly_bin859.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) = 34850.4205195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13596       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.4797       1.0000          .0000       .10000E+07
     3 'Prefactor '    .50211E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.8155       1.0000          .0000       .10000E+07
     5 'Prefactor '    .81268E-07   1.0000          .0000       .10000E+07
     6 'norm      '    .88837       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.4247       1.0000          .0000       .10000E+07
     8 'norm      '    2.2323       1.0000          .0000       .10000E+07
     9 'Prefactor '    37.647       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9436       1.0000          .0000       .10000E+07
    11 'norm      '    .84586       1.0000          .0000       .10000E+07
    12 'norm      '    3.2238       1.0000          .0000       .10000E+07
    13 'norm      '    .48873E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .65551       1.0000          .0000       .10000E+07
    15 'Prefactor '    12.435       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1432       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34850.41     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1222 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13151        19.724        .22674E-05** at limit **
   2  Prefactor     3.4973        10.832        .44373E-07    .88607E-02
   3  Prefactor     .38858E-08    42.486        .30372E-05** at limit **
   4  Prefactor     7.8257        4.1409        .17987E-06   -.22369E-02
   5  Prefactor     .55511E-10    2.4377       -.28616E-06** at limit **
   6  norm          .88825        .86205        .10491E-06   -.51024E-02
   7  Prefactor     5.4450        7.2479       -.15457E-06    .14860E-02
   8  norm          2.2325        3.5198       -.74691E-07    .25292E-03
   9  Prefactor     37.316        44.533       -.10341E-05   -.17501E-02
  10  Prefactor     1.9425        1.7108        .77495E-07   -.71125E-04
  11  norm          .85890        2.4986        .23460E-06   -.20559E-01
  12  norm          3.2243        1.9528        .16668E-06   -.50505E-02
  13  norm          .49960E-09    7.8682        .10949E-05** at limit **
  14  norm          .65559        .40095        .50328E-07   -.65201E-02
  15  Prefactor     12.332        10.129       -.50999E-06    .10619E-02
  16  Normalizat    1.1432        .17135       -.85331E-05    .32642E-03
  17  Prefactor     .98101        .48109E-01    .21027E-06    .91508E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.131512
  Prefactor  = 3.49731
  Prefactor  = 3.88578e-09
  Prefactor  = 7.82568
  Prefactor  = 5.55112e-11
  norm       = 0.88825
  Prefactor  = 5.44504
  norm       = 2.23252
  Prefactor  = 37.3163
  Prefactor  = 1.94251
  norm       = 0.858896
  norm       = 3.22429
  norm       = 4.996e-10
  norm       = 0.655586
  Prefactor  = 12.3323
  Normalizat = 1.14323
  Prefactor  = 0.981007
 **********
 **   18 **HESSE 
 **********

 FCN=   34850.41     FROM HESSE     STATUS=OK           273 CALLS     1495 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13151        .75002        .97913E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4973        11.939        .54182E-03   -1.5671    
   3  Prefactor     .38858E-08    42.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8257        4.1525        .35844E-03   -1.5652    
   5  Prefactor     .55511E-10    2.4487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .88825        .86288        .46567E-03   -1.5689    
   7  Prefactor     5.4450        7.2941        .43120E-03   -1.5661    
   8  norm          2.2325        3.5578        .68776E-03   -1.5678    
   9  Prefactor     37.316        44.893        .16300E-03   -1.5586    
  10  Prefactor     1.9425        1.7444        .74431E-03   -1.5680    
  11  norm          .85890        8.2376        .49577E-03   -1.5689    
  12  norm          3.2243        1.9489        .56395E-03   -1.5672    
  13  norm          .49960E-09    7.8961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .65559        .40003        .64396E-03   -1.5692    
  15  Prefactor     12.332        10.144        .28381E-03   -1.5638    
  16  Normalizat    1.1432        .15153        .10731       -.88376    
  17  Prefactor     .98101        .42326E-01    .33048E-01   -.93365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14593e-08
Minuit parameter uncertainties:
  1  0.62813
  2  11.9392
  3  0.000815236
  4  4.15249
  5  2.02745e-05
  6  0.862881
  7  7.2941
  8  3.55782
  9  44.8929
  10  1.74439
  11  5.31989
  12  1.94893
  13  0.00012554
  14  0.400028
  15  10.1439
  16  0.151586
  17  0.0423274
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.943e+00  1.744e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.455e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.003e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.810e-01  4.233e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.143e+00  1.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.84e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.05e-05

TS (Fixed Index): 1.61
Ra Dec: 262.020 12.276
Photon Flux Upper Limit: 9.97159371309e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0077332156579 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/62411425/likelihoodResults_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.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) = 34849.5585592
delta logL = 0.848067401108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 34849.5503587
delta logL = 0.856267876174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87553       1.0000          .0000       .10000E+07
     2 'Index     '    3.2763       1.0000          .0000       10.000    
     3 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98724       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   34849.55     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      269 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87546        9.4487        .97464E-05   -.29255E-01
   2  Index         3.2763        3.1885        .85674E-02   -.18794E-03
   3  Normalizat    1.1042        .17842        .48279E-03   -.66556E-03
   4  Prefactor     .98724        .51673E-01    .14558E-03   -.13790E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.875462
  Index      = 3.2763
  Normalizat = 1.10421
  Prefactor  = 0.987245
 **********
 **   18 **HESSE 
 **********

 FCN=   34849.55     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87546        1.1293        .38985E-06   -1.5689    
   2  Index         3.2763        .68462        .34270E-03   -.35196    
   3  Normalizat    1.1042        .16886        .19312E-04   -.89617    
   4  Prefactor     .98724        .47871E-01    .29116E-04   -.93156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93696e-10
Minuit parameter uncertainties:
  1  1.12934
  2  0.687071
  3  0.168941
  4  0.0478731
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) = 34849.5503587
delta logL = 0.856267880466

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  8.755e-01  1.129e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  3.276e+00  6.871e-01  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  1.003e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.872e-01  4.787e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.104e+00  1.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.43
Ra Dec: 262.020 12.276
Photon Index (Free Index): 3.28 +/- 0.69
Photon Flux (Free Index): 7.36e-08 +/- 4.50e-08
Energy Flux (Free Index): 1.31e-05 +/- 7.92e-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/62411425/cmap_HighResolution_758505601_759110401_4FGL_J1728.0+1216_weekly_bin859.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', comment='SUCCESS', photon_flux='3.84e-08', energy_flux2='1.31e-05', photon_flux_error='3.44e-08', dlogl='8.56e-01', energy_flux='1.17e-05', photon_flux2='7.36e-08', job_status='DONE', time_completed='2025-01-21 01:20:51.228195', photon_index_error2='0.69', photon_index2='3.28', ts='1.61', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='9.97e-08', energy_flux_error2='7.92e-06', EG='1.14', time_epoch_completed='1737451251.23', return_code='0', job_id='62411425', GAL2='0.99', EG2='1.10', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.50e-08', ts2='3.43', photon_index='2.45' WHERE bin_id='859' AND source_name='4FGL J1728.0+1216' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 21 01:20:51 PST 2025

