aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 3 seconds before starting...
Proceeding.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7600
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1728.3+5013_daily_bin1709
RA = 262.078, Dec = 50.2267
tmin = 682300801, tmax = 682560001
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='178734', job_status='RUN', time_executed='2022-09-16 20:06:26.930943', time_epoch_executed='1663383986.93' WHERE source_name='4FGL J1728.3+5013' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178734

Creating custom pfile directory:
/scratch/kocevski/178734/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=682300801.0 && nMetStart<682560001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=682300801.0 && nMetStart<682560001.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178734/ft1_4FGL_J1728.3+5013_daily_bin1709.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=682300801.0 && nMetStart<682560001.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178734/ft1_4FGL_J1728.3+5013_daily_bin1709.fits outfile=/scratch/kocevski/178734/ft1_filteredMKT_4FGL_J1728.3+5013_daily_bin1709.fits ra=262.078 dec=50.2267 rad=12.0 tmin=682300801.0 tmax=682560001.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.79
user 3.54
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/178734/ft1_filteredMKT_4FGL_J1728.3+5013_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/178734/ft1_filtered_4FGL_J1728.3+5013_daily_bin1709.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 836

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/178734/ft1_filtered_4FGL_J1728.3+5013_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/178734/ltcube_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.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 /scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits
.....................!
real 15.09
user 14.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178734/ft1_filtered_4FGL_J1728.3+5013_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/178734/ltcube_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.fits outfile=/scratch/kocevski/178734/expmap_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.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 /scratch/kocevski/178734/ltcube_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.fits
.....................!
real 195.33
user 188.70
sys 5.96

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=/scratch/kocevski/178734/ft1_filtered_4FGL_J1728.3+5013_daily_bin1709.fits scfile=/scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits outfile=/scratch/kocevski/178734/cmap_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/178734/ft1_filtered_4FGL_J1728.3+5013_daily_bin1709.fits scfile=/scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits outfile=/scratch/kocevski/178734/cmap_HighResolution_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.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.63
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/178734/ft1_filtered_4FGL_J1728.3+5013_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/178734/Model_4FGL_J1728.3+5013_daily_bin1709.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...
/scratch/kocevski/178734/ft1_filtered_4FGL_J1728.3+5013_daily_bin1709.fits.....................!
real 74.27
user 72.75
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/178734/ft1_filtered_4FGL_J1728.3+5013_daily_bin1709.fits', '/scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits', expMap='/scratch/kocevski/178734/expmap_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.fits', expCube='/scratch/kocevski/178734/ltcube_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/178734/Model_4FGL_J1728.3+5013_daily_bin1709.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): /scratch/kocevski/178734/ft1_filtered_4FGL_J1728.3+5013_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/178734/ft2_4FGL_J1728.3+5013_daily_bin1709.fits
Exposure map: /scratch/kocevski/178734/expmap_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.fits
Exposure cube: /scratch/kocevski/178734/ltcube_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/178734/Model_4FGL_J1728.3+5013_daily_bin1709.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) = 8840.87172472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7293       1.0000          .0000       .10000E+07
     2 'norm      '    7.7404       1.0000          .0000       .10000E+07
     3 'norm      '    .81996E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .24764E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    14.472       1.0000          .0000       .10000E+07
     6 'Prefactor '    19.210       1.0000          .0000       .10000E+07
     7 'Prefactor '    .78180       1.0000          .0000       .10000E+07
     8 'Prefactor '    .35527E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.300       1.0000          .0000       .10000E+07
    10 'norm      '    .53999       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12087E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .38609       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49634E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .16468E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    5.7833       1.0000          .0000       .10000E+07
    16 'norm      '    3.5662       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.5811       1.0000          .0000       .10000E+07
    18 'Prefactor '    .19469E-01   1.0000          .0000       .10000E+07
    19 'norm      '    2.2465       1.0000          .0000       .10000E+07
    20 'Prefactor '    17.541       1.0000          .0000       .10000E+07
    21 'norm      '    5.0054       1.0000          .0000       .10000E+07
    22 'Prefactor '    .88987E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .37219E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .32530E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .35368E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    8.7162       1.0000          .0000       .10000E+07
    27 'norm      '    4.7243       1.0000          .0000       .10000E+07
    28 'Prefactor '    15.990       1.0000          .0000       .10000E+07
    29 'norm      '    3.8468       1.0000          .0000       .10000E+07
    30 'norm      '    16.166       1.0000          .0000       .10000E+07
    31 'norm      '    5.4807       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.0395       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0400       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=   8840.792     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     2586 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7560        6.1748        .83705E-07   -.84915E-01
   2  norm          7.7833        1.3755       -.17219E-07   -.82527E-02
   3  norm          .37748E-08    5.6731        .24166E-05** at limit **
   4  Prefactor      .0000        1.3458       -.11135E-06** at limit **
   5  Prefactor     14.470        4.9837       -.24856E-06    .12624    
   6  Prefactor     19.276        4.6193       -.26393E-07    .74224E-02
   7  Prefactor     .81608        2.6259       -.13866E-05   -.84416E-02
   8  Prefactor      .0000        3.2937       -.29113E-06** at limit **
   9  Prefactor     10.232        1.8335       -.13542E-06    .16239E-01
  10  norm          .53913        .65369        .11595E-06   -.36012E-03
  11  Prefactor     .33307E-09    7.7273       -.15255E-05** at limit **
  12  norm          .38611        .44631       -.12497E-06   -.15551E-02
  13  Prefactor     .11657E-08    5.2308       -.93539E-06** at limit **
  14  norm           .0000        1.7071       -.40273E-06** at limit **
  15  Prefactor     5.8085        6.8177       -.10272E-05   -.17338E-01
  16  norm          3.5642        1.9109       -.74784E-07   -.51196E-03
  17  Prefactor     3.5819        2.7626       -.19533E-07    .59142E-04
  18  Prefactor     .12312E-06    20.262        .44076E-05** at limit **
  19  norm          2.1222        5.7703       -.34212E-06    .44113E-03
  20  Prefactor     21.131        79.560       -.24187E-05   -.20173E-02
  21  norm          4.9962        5.2200       -.13328E-06   -.33455E-02
  22  Prefactor     .60008E-07    12.383        .23609E-06** at limit **
  23  Prefactor      .0000        3.0992       -.47203E-06** at limit **
  24  Prefactor     .48461E-07    13.488       -.85288E-06** at limit **
  25  Prefactor     .14433E-08    23.774       -.18932E-05** at limit **
  26  Prefactor     8.6756        2.2603        .22361E-06   -.48220E-01
  27  norm          4.7307        6.0800        .94081E-07    .57656E-02
  28  Prefactor     15.860        3.0124       -.65640E-07    .53890E-01
  29  norm          3.8461        3.9714        .15501E-06   -.40922E-03
  30  norm          16.164        1.6252        .10489E-06    .67912E-01
  31  norm          5.4324        1.1865        .58739E-07    .14547E-01
  32  Normalizat    1.0380        .23339        .49103E-05   -.85609E-05
  33  Prefactor     1.0404        .16357        .18214E-05   -.14615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.75597
  norm       = 7.7833
  norm       = 3.77476e-09
  Prefactor  = 0
  Prefactor  = 14.4702
  Prefactor  = 19.2759
  Prefactor  = 0.816085
  Prefactor  = 0
  Prefactor  = 10.2319
  norm       = 0.539128
  Prefactor  = 3.33067e-10
  norm       = 0.386109
  Prefactor  = 1.16573e-09
  norm       = 0
  Prefactor  = 5.8085
  norm       = 3.56425
  Prefactor  = 3.58189
  Prefactor  = 1.23124e-07
  norm       = 2.12221
  Prefactor  = 21.1311
  norm       = 4.99623
  Prefactor  = 6.00076e-08
  Prefactor  = 0
  Prefactor  = 4.84612e-08
  Prefactor  = 1.44329e-09
  Prefactor  = 8.67562
  norm       = 4.73072
  Prefactor  = 15.8598
  norm       = 3.84606
  norm       = 16.1641
  norm       = 5.43244
  Normalizat = 1.03796
  Prefactor  = 1.04042
 **********
 **   18 **HESSE 
 **********

 FCN=   8840.792     FROM HESSE     STATUS=OK           771 CALLS     3357 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7560        8.0629        .32102E-03   -1.5645    
   2  norm          7.7833        20.059        .36019E-03   -1.5652    
   3  norm          .37748E-08    5.7193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.3444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.470        7.9598        .26303E-03   -1.5632    
   6  Prefactor     19.276        4.6391        .22824E-03   -1.5620    
   7  Prefactor     .81608        2.6401        .54301E-03   -1.5690    
   8  Prefactor      .0000        3.3140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.232        19.662        .31196E-03   -1.5644    
  10  norm          .53913        .66972        .74784E-03   -1.5693    
  11  Prefactor     .33307E-09    7.6795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .38611        .54424        .15357E-02   -1.5696    
  13  Prefactor     .11657E-08    5.2227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.7055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8085        6.9348        .41740E-03   -1.5660    
  16  norm          3.5642        1.9211        .53493E-03   -1.5670    
  17  Prefactor     3.5819        2.7678        .53377E-03   -1.5670    
  18  Prefactor     .12312E-06    20.878        .17072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1222        5.9171        .68534E-03   -1.5679    
  20  Prefactor     21.131        81.199        .23887E-03   -1.5616    
  21  norm          4.9962        5.2331        .44925E-03   -1.5663    
  22  Prefactor     .60008E-07    12.790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        3.1034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .48461E-07    13.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .14433E-08    23.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.6756        8.6338        .33928E-03   -1.5649    
  27  norm          4.7307        6.1415        .46271E-03   -1.5664    
  28  Prefactor     15.860        14.754        .25020E-03   -1.5628    
  29  norm          3.8461        3.9739        .51430E-03   -1.5669    
  30  norm          16.164        10.859        .24883E-03   -1.5628    
  31  norm          5.4324        14.595        .42896E-03   -1.5661    
  32  Normalizat    1.0380        .20437        .70470E-01   -.91769    
  33  Prefactor     1.0404        .14168        .40532E-01   -.91394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16241e-06
Minuit parameter uncertainties:
  1  8.06296
  2  20.0595
  3  0.000293198
  4  5.25698e-06
  5  7.95979
  6  4.63915
  7  2.64014
  8  1.29095e-05
  9  19.6619
  10  0.669721
  11  0.000102702
  12  0.544245
  13  0.000156014
  14  6.2572e-06
  15  6.9348
  16  1.92111
  17  2.76776
  18  0.00320652
  19  5.91707
  20  81.2031
  21  5.23309
  22  0.00175236
  23  2.70615e-06
  24  0.00163613
  25  0.000373794
  26  8.63384
  27  6.1415
  28  14.7544
  29  3.97395
  30  10.859
  31  14.5952
  32  0.204529
  33  0.141733
Done.

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

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  3.582e+00  2.768e+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.040e+00  1.417e-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:  1.038e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.05
Ra Dec: 262.078 50.227
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.99e-08 +/- 1.54e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 1.99e-05

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) = 8839.56013065
delta logL = 1.23163567316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8839.55005305
delta logL = 1.24171327686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3040       1.0000          .0000       .10000E+07
     2 'Index     '    .99170       1.0000          .0000       10.000    
     3 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0412       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.

 FCN=   8839.550     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3057        2.6171        .55672E-03   -.19338E-02
   2  Index         .99178        .39788        .28217       -.35278E-04
   3  Normalizat    1.0461        .18399        .70203E-01    .13527E-04
   4  Prefactor     1.0412        .13718        .40454E-01   -.10512E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30568
  Index      = 0.991782
  Normalizat = 1.0461
  Prefactor  = 1.04121
 **********
 **   18 **HESSE 
 **********

 FCN=   8839.550     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3057        3.2133        .13073E-04   -1.5672    
   2  Index         .99178        .50127        .12103E-01   -.93004    
   3  Normalizat    1.0461        .21322        .31062E-03   -.91502    
   4  Prefactor     1.0412        .15932        .23101E-03   -.91368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67185e-10
Minuit parameter uncertainties:
  1  3.21332
  2  0.503652
  3  0.21339
  4  0.159388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178734': No such file or directory
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) = 8839.55005262
delta logL = 1.2417137035

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  3.306e+00  3.213e+00  0.000e+00  1.000e+06 ( 1.000e-13)
342        Index:  9.918e-01  5.037e-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.041e+00  1.594e-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:  1.046e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.53
Ra Dec: 262.078 50.227
Photon Index (Free Index): 0.99 +/- 0.50
Photon Flux (Free Index): 6.98e-09 +/- 6.65e-09
Energy Flux (Free Index): 1.03e-04 +/- 1.07e-04

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 /scratch/kocevski/178734/cmap_HighResolution_682300801_682560001_4FGL_J1728.3+5013_daily_bin1709.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/178734

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.99e-08', energy_flux2='1.03e-04', photon_flux_error='1.54e-08', dlogl='1.24e+00', energy_flux='2.57e-05', photon_flux2='6.98e-09', job_status='DONE', time_completed='2022-09-16 20:21:32.218453', photon_index_error2='0.50', photon_index2='0.99', ts='5.05', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.07e-04', EG='1.04', time_epoch_completed='1663384892.22', return_code='0', job_id='178734', GAL2='1.04', EG2='1.05', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='6.65e-09', ts2='7.53', photon_index='1.78' WHERE bin_id='1709' AND source_name='4FGL J1728.3+5013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:21:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 178734: <4FGL_J1728.3+5013_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1728.3+5013_daily_bin1709> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 20:05:26 2022
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 20:06:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 20:06:15 2022
Terminated at Fri Sep 16 20:21:33 2022
Results reported at Fri Sep 16 20:21:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.3+5013_daily_bin1709 262.078 50.2267 682300801 682560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1728.3+5013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   906.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            967 sec.

The output (if any) is above this job summary.

