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 81 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1717.6-5154_daily_bin1668
RA = 259.403, Dec = -51.909
tmin = 671673601, tmax = 671932801
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='555873', job_status='RUN', time_executed='2022-04-18 03:08:24.071259', time_epoch_executed='1650276504.07' WHERE source_name='4FGL J1717.6-5154' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555873

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555873/ft1_4FGL_J1717.6-5154_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555873/ft1_4FGL_J1717.6-5154_daily_bin1668.fits outfile=/scratch/kocevski/555873/ft1_filteredMKT_4FGL_J1717.6-5154_daily_bin1668.fits ra=259.403 dec=-51.909 rad=12.0 tmin=671673601.0 tmax=671932801.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.62
user 3.38
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.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/555873/ft1_filteredMKT_4FGL_J1717.6-5154_daily_bin1668.fits evtable="EVENTS" outfile="/scratch/kocevski/555873/ft1_filtered_4FGL_J1717.6-5154_daily_bin1668.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 7153

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555873/ft1_filtered_4FGL_J1717.6-5154_daily_bin1668.fits" evtable="EVENTS" scfile=/scratch/kocevski/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.fits sctable="SC_DATA" outfile=/scratch/kocevski/555873/ltcube_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.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/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.fits
.....................!
real 14.00
user 13.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555873/ft1_filtered_4FGL_J1717.6-5154_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/555873/ltcube_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.fits outfile=/scratch/kocevski/555873/expmap_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.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/555873/ltcube_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.fits
.....................!
real 191.44
user 186.03
sys 4.87

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 FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Added 464 point sources and 17 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 J1717.6-5154 @ 259.403 -51.909

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/555873/ft1_filtered_4FGL_J1717.6-5154_daily_bin1668.fits scfile=/scratch/kocevski/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.fits outfile=/scratch/kocevski/555873/cmap_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.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=259.403 yref=-51.909 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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555873/ft1_filtered_4FGL_J1717.6-5154_daily_bin1668.fits scfile=/scratch/kocevski/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.fits outfile=/scratch/kocevski/555873/cmap_HighResolution_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.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=259.403 yref=-51.909 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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555873/ft1_filtered_4FGL_J1717.6-5154_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555873/Model_4FGL_J1717.6-5154_daily_bin1668.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 J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RX J1713.7-3946
Working on...
/scratch/kocevski/555873/ft1_filtered_4FGL_J1717.6-5154_daily_bin1668.fits.....................!
real 4159.66
user 4150.26
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555873/ft1_filtered_4FGL_J1717.6-5154_daily_bin1668.fits', '/scratch/kocevski/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.fits', expMap='/scratch/kocevski/555873/expmap_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.fits', expCube='/scratch/kocevski/555873/ltcube_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555873/Model_4FGL_J1717.6-5154_daily_bin1668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1717.6-5154'

4FGL J1717.6-5154
   Spectrum: LogParabola
960         norm:  1.794e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
961        alpha:  2.518e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
962         beta:  3.865e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
963           Eb:  9.930e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/555873/ft1_filtered_4FGL_J1717.6-5154_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/555873/ft2_4FGL_J1717.6-5154_daily_bin1668.fits
Exposure map: /scratch/kocevski/555873/expmap_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.fits
Exposure cube: /scratch/kocevski/555873/ltcube_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555873/Model_4FGL_J1717.6-5154_daily_bin1668.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) = 58456.2707542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3107       1.0000         .10000E-03   10000.    
     5 'norm      '    .83260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.773       1.0000         .10000E-03   10000.    
     7 'norm      '    22.004       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1641       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36452E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.395       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6103       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.273       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0753       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95073       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1723E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   58456.26     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2270 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1778        .64342E-07** at limit **
   2  Prefactor     .10000E-03    3.8747        .17351E-06** at limit **
   3  norm          .10000E-03    7.0790        .25426E-06** at limit **
   4  Prefactor     2.3111        1.4400        .65594E-07    .12419E-03
   5  norm          .83416        3.5981        .77631E-06   -.23421E-04
   6  Prefactor     38.760        36.210        .28659E-05   -.65454E-04
   7  norm          22.005        6.5681        .17383E-07    .77407E-04
   8  Prefactor     2.1643        4.2678        .20712E-06    .77771E-06
   9  Prefactor     .10000E-03    3.3356        .47813E-06** at limit **
  10  Prefactor     .10000E-03    10.533        .16277E-06** at limit **
  11  norm          16.560        42.523        .14787E-05    .90426E-05
  12  Prefactor     .10000E-03    5.6203        .31759E-06** at limit **
  13  Prefactor     5.1017        382.49       -.35825E-05   -.34082E-05
  14  norm          .10000E-03    4.5936        .27409E-06** at limit **
  15  Prefactor     .10000E-03    5.6368        .38441E-06** at limit **
  16  Prefactor     .10000E-03    16.062        .40003E-06** at limit **
  17  norm          25.276        6.1303        .79707E-07    .23159E-04
  18  norm          .10000E-03    1.7107        .16742E-06** at limit **
  19  norm          1.0757        1.3064        .20779E-06    .55571E-04
  20  Normalizat    .95034        .26238       -.43654E-05   -.10536E-03
  21  Prefactor     .99636        .18491E-01    .18914E-06   -.25566E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.31109
  norm       = 0.834157
  Prefactor  = 38.7598
  norm       = 22.0051
  Prefactor  = 2.16434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.5598
  Prefactor  = 0.0001
  Prefactor  = 5.10166
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.2762
  norm       = 0.0001
  norm       = 1.07565
  Normalizat = 0.950344
  Prefactor  = 0.996357
 **********
 **   18 **HESSE 
 **********

 FCN=   58456.26     FROM HESSE     STATUS=OK           325 CALLS     2595 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.2211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3111        1.4360        .22039E-03   -1.5404    
   5  norm          .83416        3.6037        .25122E-02   -1.5525    
   6  Prefactor     38.760        35.187        .64368E-04   -1.4462    
   7  norm          22.005        6.5564        .85389E-04   -1.4769    
   8  Prefactor     2.1643        4.2507        .13999E-02   -1.5414    
   9  Prefactor     .10000E-03    3.5233        .13972       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.560        42.713        .98914E-04   -1.4894    
  12  Prefactor     .10000E-03    5.6613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1017        387.63        .16960E-03   -1.5256    
  14  norm          .10000E-03    4.6307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.276        6.1181        .79683E-04   -1.4702    
  18  norm          .10000E-03    1.7393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0757        1.2798        .28898E-03   -1.5501    
  20  Normalizat    .95034        .26492        .16040E-02   -.94713    
  21  Prefactor     .99636        .18330E-01    .11581E-03   -.92851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55646e-08
Minuit parameter uncertainties:
  1  2.02059e-07
  2  4.61776e-06
  3  5.69656e-06
  4  1.43605
  5  3.46774
  6  35.2062
  7  6.55666
  8  4.25124
  9  4.41036e-05
  10  4.56935e-06
  11  42.7922
  12  6.96554e-06
  13  89.5464
  14  1.1982e-06
  15  9.06651e-07
  16  1.04093e-05
  17  6.11827
  18  2.09285e-06
  19  1.27987
  20  0.265289
  21  0.0183306
Done.

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

Extracting fit parameters...

4FGL J1717.6-5154
   Spectrum: LogParabola
960         norm:  2.201e+01  6.557e+00  1.000e-04  1.000e+04 ( 1.000e-12)
961        alpha:  2.518e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
962         beta:  3.865e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
963           Eb:  9.930e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1692    Prefactor:  9.964e-01  1.833e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1660   Normalization:  9.503e-01  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.45
Ra Dec: 259.403 -51.909
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 5.07e-08
Energy Flux (Fixed Index): 6.80e-05 +/- 2.02e-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) = 58453.7998391
delta logL = 2.4613859481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 58453.7950912
delta logL = 2.46613388316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.923       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2917       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1723E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   58453.80     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      223 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.923        7.3815        .21891E-02    .60202E-02
   2  alpha         1.2917        .40522        .49974       -.26112E-03
   3  Normalizat    1.0180        .25218        .34585        .28542E-03
   4  Prefactor     .99665        .18518E-01    .26209E-01   -.37617E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.9232
  alpha      = 1.29168
  Normalizat = 1.01804
  Prefactor  = 0.996655
 **********
 **   18 **HESSE 
 **********

 FCN=   58453.80     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.923        10.597        .87564E-04   -1.4793    
   2  alpha         1.2917        .60474        .43464E-01   -.50445    
   3  Normalizat    1.0180        .23795        .15612E-02   -.92428    
   4  Prefactor     .99665        .17922E-01    .11582E-03   -.92841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72913e-08
Minuit parameter uncertainties:
  1  10.5976
  2  0.612715
  3  0.238198
  4  0.0179226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555873': 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) = 58453.7950912
delta logL = 2.4661338857

Extracting fit parameters...

4FGL J1717.6-5154
   Spectrum: LogParabola
960         norm:  2.092e+01  1.060e+01  1.000e-04  1.000e+04 ( 1.000e-12)
961        alpha:  1.292e+00  6.127e-01  0.000e+00  5.000e+00 ( 1.000e+00)
962         beta:  3.865e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
963           Eb:  9.930e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1692    Prefactor:  9.967e-01  1.792e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1660   Normalization:  1.018e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.24
Ra Dec: 259.403 -51.909
Photon Index (Free Index): 1.29 +/- 0.61
Photon Flux (Free Index): 5.97e-08 +/- 3.78e-08
Energy Flux (Free Index): 8.11e-05 +/- 3.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/555873/cmap_HighResolution_671673601_671932801_4FGL_J1717.6-5154_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='8.11e-05', photon_flux_error='5.07e-08', dlogl='2.47e+00', energy_flux='6.80e-05', photon_flux2='5.97e-08', job_status='DONE', time_completed='2022-04-18 06:36:40.444846', photon_index_error2='0.61', photon_index2='1.29', ts='25.45', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.29e-05', EG='0.95', time_epoch_completed='1650289000.44', return_code='0', job_id='555873', GAL2='1.00', EG2='1.02', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='3.78e-08', ts2='30.24', photon_index='2.52' WHERE bin_id='1668' AND source_name='4FGL J1717.6-5154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 06:36:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 555626: <4FGL_J1717.6-5154_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1717.6-5154_daily_bin1668> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:39 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:01:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:01:36 2022
Terminated at Mon Apr 18 06:31:18 2022
Results reported at Mon Apr 18 06:31:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1717.6-5154_daily_bin1668 259.403 -51.909 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1717.6-5154 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12455.00 sec.
    Max Memory :                                 1281 MB
    Average Memory :                             622.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12581 sec.
    Turnaround time :                            23019 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 555873: <4FGL_J1717.6-5154_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1717.6-5154_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:52 2022
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:06:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:06:54 2022
Terminated at Mon Apr 18 06:36:42 2022
Results reported at Mon Apr 18 06:36:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1717.6-5154_daily_bin1668 259.403 -51.909 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1717.6-5154 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12474.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             619.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   12587 sec.
    Turnaround time :                            23330 sec.

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

