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


Performing analysis on: 4FGL_J1728.3+5013_weekly_bin854
RA = 262.078, Dec = 50.2267
tmin = 755481601, tmax = 756086401
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='60352522', job_status='RUN', time_executed='2024-12-17 00:57:02.128171', time_epoch_executed='1734425822.13' WHERE source_name='4FGL J1728.3+5013' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352522

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60352522/ft1_4FGL_J1728.3+5013_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352522/ft1_4FGL_J1728.3+5013_weekly_bin854.fits outfile=/lscratch/kocevski/60352522/ft1_filteredMKT_4FGL_J1728.3+5013_weekly_bin854.fits ra=262.078 dec=50.2267 rad=12.0 tmin=755481601.0 tmax=756086401.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.88
user 4.40
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.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/60352522/ft1_filteredMKT_4FGL_J1728.3+5013_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352522/ft1_filtered_4FGL_J1728.3+5013_weekly_bin854.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.54
user 0.22
sys 0.16

Number of photons that the gtmktime cut: 1610

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352522/ft1_filtered_4FGL_J1728.3+5013_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352522/ltcube_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.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/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.fits
.....................!
real 16.25
user 15.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352522/ft1_filtered_4FGL_J1728.3+5013_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352522/ltcube_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.fits outfile=/lscratch/kocevski/60352522/expmap_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.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/60352522/ltcube_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.fits
.....................!
real 67.54
user 63.31
sys 3.86

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
Added 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J1728.3+5013 @ 262.078 50.2267

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352522/ft1_filtered_4FGL_J1728.3+5013_weekly_bin854.fits scfile=/lscratch/kocevski/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.fits outfile=/lscratch/kocevski/60352522/cmap_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.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.078 yref=50.2267 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.39
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352522/ft1_filtered_4FGL_J1728.3+5013_weekly_bin854.fits scfile=/lscratch/kocevski/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.fits outfile=/lscratch/kocevski/60352522/cmap_HighResolution_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.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.078 yref=50.2267 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.46
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352522/ft1_filtered_4FGL_J1728.3+5013_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352522/Model_4FGL_J1728.3+5013_weekly_bin854.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 GAL_V02
Working on...
/lscratch/kocevski/60352522/ft1_filtered_4FGL_J1728.3+5013_weekly_bin854.fits.....................!
real 49.58
user 48.13
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352522/ft1_filtered_4FGL_J1728.3+5013_weekly_bin854.fits', '/lscratch/kocevski/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.fits', expMap='/lscratch/kocevski/60352522/expmap_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.fits', expCube='/lscratch/kocevski/60352522/ltcube_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352522/Model_4FGL_J1728.3+5013_weekly_bin854.xml', optimizer='MINUIT')

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

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  1.850e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
342        Index:  1.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352522/ft1_filtered_4FGL_J1728.3+5013_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352522/ft2_4FGL_J1728.3+5013_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352522/expmap_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352522/ltcube_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352522/Model_4FGL_J1728.3+5013_weekly_bin854.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) = 17047.3487618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6067       1.0000          .0000       .10000E+07
     2 'norm      '    5.5896       1.0000          .0000       .10000E+07
     3 'norm      '    .34274E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.6563       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19298E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11990E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .50626E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    5.6067       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.4750       1.0000          .0000       .10000E+07
    10 'norm      '    .59730E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.5687       1.0000          .0000       .10000E+07
    12 'norm      '    .39907       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.2166       1.0000          .0000       .10000E+07
    14 'norm      '    20.500       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.3238       1.0000          .0000       .10000E+07
    16 'norm      '    3.2144       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.4343       1.0000          .0000       .10000E+07
    18 'Prefactor '    .88246E-05   1.0000          .0000       .10000E+07
    19 'norm      '    2.9613       1.0000          .0000       .10000E+07
    20 'Prefactor '    43.411       1.0000          .0000       .10000E+07
    21 'norm      '     .0000       1.0000          .0000       .10000E+07
    22 'Prefactor '    .69647E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.5859       1.0000          .0000       .10000E+07
    24 'Prefactor '    33.573       1.0000          .0000       .10000E+07
    25 'Prefactor '    5.2458       1.0000          .0000       .10000E+07
    26 'Prefactor '    .14208E-05   1.0000          .0000       .10000E+07
    27 'norm      '    .85330       1.0000          .0000       .10000E+07
    28 'Prefactor '    .47880E-03   1.0000          .0000       .10000E+07
    29 'norm      '    52.117       1.0000          .0000       .10000E+07
    30 'norm      '    .70439E-05   1.0000          .0000       .10000E+07
    31 'norm      '    .52524E-04   1.0000          .0000       .10000E+07
    32 'Normalizat'    .95897       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17047.34     FROM MIGRAD    STATUS=CONVERGED    207 CALLS     3294 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5853        3.5360        .12330E-07    .53255E-03
   2  norm          5.5896        1.1136       -.85805E-09   -.15041E-01
   3  norm          .16653E-09    2.2748       -.60252E-07** at limit **
   4  Prefactor     3.6545        2.3118       -.46687E-07   -.48387E-02
   5  Prefactor     .11102E-09    10.616        .17261E-06** at limit **
   6  Prefactor      .0000        .81297        .16926E-07** at limit **
   7  Prefactor      .0000        .64105        .45335E-07** at limit **
   8  Prefactor     5.5824        4.8461        .71506E-08   -.31284E-03
   9  Prefactor     3.4675        3.8630        .42984E-07   -.35964E-01
  10  norm           .0000        .13048        .18749E-07** at limit **
  11  Prefactor     3.5477        4.3736       -.68957E-08   -.10962E-02
  12  norm          .39873        .37814       -.78466E-12    .15366E-02
  13  Prefactor     6.1988        3.9435        .41281E-07    .48592E-02
  14  norm          20.492        6.2143        .90874E-08   -.69478E-02
  15  Prefactor     5.3095        5.1996       -.29347E-08    .98815E-03
  16  norm          3.2136        1.1621        .25549E-07    .11233E-01
  17  Prefactor     1.4337        1.6359       -.10385E-07   -.55281E-03
  18  Prefactor     .26146E-07    35.837       -.29706E-06** at limit **
  19  norm          2.9390        2.7857       -.24329E-09   -.34081E-03
  20  Prefactor     43.622        5.7532       -.98432E-08    .10822    
  21  norm           .0000        1.9998        .14571E-07** at limit **
  22  Prefactor     .33307E-09    14.864       -.19165E-06** at limit **
  23  Prefactor     5.5735        2.9804       -.22863E-07   -.11866E-02
  24  Prefactor     33.340        2.3987       -.79366E-09   -.76465E-01
  25  Prefactor     4.5038        130.11        .20093E-06    .56456E-02
  26  Prefactor     .11102E-09    2.9381        .80068E-07** at limit **
  27  norm          .85709        4.4270        .48372E-07    .10405E-01
  28  Prefactor     .99920E-09    3.2553       -.10409E-06** at limit **
  29  norm          52.126        2.1276       -.16776E-08   -.19733    
  30  norm          .22204E-09    5.4958        .11535E-06** at limit **
  31  norm          .55511E-10    1.8742       -.38781E-07** at limit **
  32  Normalizat    .95962        .15167        .83595E-06    .28989E-03
  33  Prefactor     1.0052        .11037        .32540E-07    .34877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.58526
  norm       = 5.58964
  norm       = 1.66533e-10
  Prefactor  = 3.65452
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.58239
  Prefactor  = 3.46749
  norm       = 0
  Prefactor  = 3.54768
  norm       = 0.398734
  Prefactor  = 6.19881
  norm       = 20.4917
  Prefactor  = 5.30954
  norm       = 3.21362
  Prefactor  = 1.43367
  Prefactor  = 2.61458e-08
  norm       = 2.93896
  Prefactor  = 43.622
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 5.57347
  Prefactor  = 33.3396
  Prefactor  = 4.5038
  Prefactor  = 1.11022e-10
  norm       = 0.857087
  Prefactor  = 9.99201e-10
  norm       = 52.126
  norm       = 2.22045e-10
  norm       = 5.55112e-11
  Normalizat = 0.959616
  Prefactor  = 1.00522
 **********
 **   18 **HESSE 
 **********

 FCN=   17047.34     FROM HESSE     STATUS=OK           771 CALLS     4065 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5853        3.5564        .53179E-03   -1.5670    
   2  norm          5.5896        8.1334        .42469E-03   -1.5661    
   3  norm          .16653E-09    2.2779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6545        2.3113        .52803E-03   -1.5670    
   5  Prefactor     .11102E-09    10.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        .80445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        .63731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5824        4.8502        .42403E-03   -1.5661    
   9  Prefactor     3.4675        10.368        .54221E-03   -1.5671    
  10  norm           .0000        .12951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5477        4.4662        .53474E-03   -1.5670    
  12  norm          .39873        .44240        .17612E-02   -1.5695    
  13  Prefactor     6.1988        3.9716        .40239E-03   -1.5658    
  14  norm          20.492        6.2558        .22093E-03   -1.5617    
  15  Prefactor     5.3095        5.2257        .43534E-03   -1.5662    
  16  norm          3.2136        1.1672        .56482E-03   -1.5672    
  17  Prefactor     1.4337        1.6498        .90122E-03   -1.5684    
  18  Prefactor     .26146E-07    35.984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9390        2.8677        .58984E-03   -1.5674    
  20  Prefactor     43.622        36.818        .15179E-03   -1.5576    
  21  norm           .0000        1.9951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .33307E-09    14.851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.5735        3.0674        .42483E-03   -1.5661    
  24  Prefactor     33.340        29.729        .17261E-03   -1.5592    
  25  Prefactor     4.5038        137.44        .43863E-03   -1.5666    
  26  Prefactor     .11102E-09    2.9401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .85709        5.2506        .49044E-03   -1.5689    
  28  Prefactor     .99920E-09    3.2729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          52.126        8.0478        .13853E-03   -1.5564    
  30  norm          .22204E-09    5.4149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .55511E-10    1.8791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .95962        .13016        .67030E-01   -.94396    
  33  Prefactor     1.0052        .93719E-01    .44134E-01   -.92556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00083e-06
Minuit parameter uncertainties:
  1  3.55639
  2  8.1334
  3  4.04041e-05
  4  2.31133
  5  7.36151e-05
  6  1.35e-06
  7  5.01129e-06
  8  4.85023
  9  10.3679
  10  1.04288e-06
  11  4.46618
  12  0.4424
  13  3.97158
  14  6.25583
  15  5.22573
  16  1.16715
  17  1.64977
  18  0.00194017
  19  2.86772
  20  36.8181
  21  9.47637e-06
  22  0.000144429
  23  3.06744
  24  29.7295
  25  49.7608
  26  3.73595e-05
  27  4.24275
  28  0.00011356
  29  8.04776
  30  7.31552e-05
  31  2.19371e-05
  32  0.130206
  33  0.0937341
Done.

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

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  1.434e+00  1.650e+00  0.000e+00  1.000e+06 ( 1.000e-13)
342        Index:  1.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  1.005e+00  9.373e-02  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  9.596e-01  1.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 262.078 50.227
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 7.98e-09 +/- 9.18e-09
Energy Flux (Fixed Index): 1.03e-05 +/- 1.18e-05

TS (Fixed Index): 1.58
Ra Dec: 262.078 50.227
Photon Flux Upper Limit: 3.29736001747e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00242399360004 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60352522/likelihoodResults_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.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) = 17047.1634389
delta logL = 0.17872568607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17047.1625566
delta logL = 0.1796079993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1028       1.0000          .0000       .10000E+07
     2 'Index     '    2.1796       1.0000          .0000       10.000    
     3 'Normalizat'    .95246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0064       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+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=   17047.16     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      297 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1028        1.7122        .12903E-04   -.25375E-03
   2  Index         2.1796        .77244        .10877E-01    .56173E-04
   3  Normalizat    .95245        .14340        .29750E-03    .25986E-05
   4  Prefactor     1.0064        .10928        .22138E-03   -.12325E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10278
  Index      = 2.17957
  Normalizat = 0.952455
  Prefactor  = 1.00636
 **********
 **   18 **HESSE 
 **********

 FCN=   17047.16     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1028        1.4426        .51612E-06   -1.5687    
   2  Index         2.1796        .65206        .43509E-03   -.59933    
   3  Normalizat    .95245        .14315        .11900E-04   -.94641    
   4  Prefactor     1.0064        .10928        .88552E-05   -.92518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03655e-13
Minuit parameter uncertainties:
  1  1.4426
  2  0.6548
  3  0.143211
  4  0.1093
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) = 17047.1625566
delta logL = 0.179608007307

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  1.103e+00  1.443e+00  0.000e+00  1.000e+06 ( 1.000e-13)
342        Index:  2.180e+00  6.548e-01  0.000e+00  1.000e+01 (-1.000e+00)
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  1.006e+00  1.093e-01  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  9.525e-01  1.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 262.078 50.227
Photon Index (Free Index): 2.18 +/- 0.65
Photon Flux (Free Index): 1.61e-08 +/- 2.02e-08
Energy Flux (Free Index): 7.54e-06 +/- 8.01e-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/60352522/cmap_HighResolution_755481601_756086401_4FGL_J1728.3+5013_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-03', comment='SUCCESS', photon_flux='7.98e-09', energy_flux2='7.54e-06', photon_flux_error='9.18e-09', dlogl='1.80e-01', energy_flux='1.03e-05', photon_flux2='1.61e-08', job_status='DONE', time_completed='2024-12-17 01:10:46.366445', photon_index_error2='0.65', photon_index2='2.18', ts='1.58', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='3.30e-08', energy_flux_error2='8.01e-06', EG='0.96', time_epoch_completed='1734426646.37', return_code='0', job_id='60352522', GAL2='1.01', EG2='0.95', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.02e-08', ts2='1.93', photon_index='1.78' WHERE bin_id='854' AND source_name='4FGL J1728.3+5013' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:10:46 PST 2024

