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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin743
RA = 229.436, Dec = 65.424
tmin = 431913601, tmax = 432172801
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='461503', job_status='RUN', time_executed='2021-09-11 23:48:20.659099', time_epoch_executed='1631429300.66' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461503/ft1_4FGL_J1517.7+6525_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461503/ft2_4FGL_J1517.7+6525_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461503/ft1_4FGL_J1517.7+6525_daily_bin743.fits outfile=/scratch/kocevski/461503/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin743.fits ra=229.436 dec=65.424 rad=12.0 tmin=431913601.0 tmax=432172801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.40
user 5.12
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/461503/ft2_4FGL_J1517.7+6525_daily_bin743.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461503/ft2_4FGL_J1517.7+6525_daily_bin743.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/461503/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin743.fits evtable="EVENTS" outfile="/scratch/kocevski/461503/ft1_filtered_4FGL_J1517.7+6525_daily_bin743.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461503/ft1_filtered_4FGL_J1517.7+6525_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/461503/ft2_4FGL_J1517.7+6525_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/461503/ltcube_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.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/461503/ft2_4FGL_J1517.7+6525_daily_bin743.fits
.....................!
real 12.28
user 11.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461503/ft1_filtered_4FGL_J1517.7+6525_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/461503/ft2_4FGL_J1517.7+6525_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/461503/ltcube_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.fits outfile=/scratch/kocevski/461503/expmap_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.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/461503/ltcube_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.fits
.....................!
real 190.44
user 184.55
sys 5.53

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

Setting source of interest to:
4FGL J1517.7+6525 @ 229.436 65.424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/461503/ft1_filtered_4FGL_J1517.7+6525_daily_bin743.fits scfile=/scratch/kocevski/461503/ft2_4FGL_J1517.7+6525_daily_bin743.fits outfile=/scratch/kocevski/461503/cmap_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.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=229.436 yref=65.424 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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461503/ft1_filtered_4FGL_J1517.7+6525_daily_bin743.fits scfile=/scratch/kocevski/461503/ft2_4FGL_J1517.7+6525_daily_bin743.fits outfile=/scratch/kocevski/461503/cmap_HighResolution_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.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=229.436 yref=65.424 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461503/ft1_filtered_4FGL_J1517.7+6525_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/461503/ft2_4FGL_J1517.7+6525_daily_bin743.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461503/Model_4FGL_J1517.7+6525_daily_bin743.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/461503/ft1_filtered_4FGL_J1517.7+6525_daily_bin743.fits.....................!
real 48.66
user 47.32
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/461503/ft1_filtered_4FGL_J1517.7+6525_daily_bin743.fits', '/scratch/kocevski/461503/ft2_4FGL_J1517.7+6525_daily_bin743.fits', expMap='/scratch/kocevski/461503/expmap_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.fits', expCube='/scratch/kocevski/461503/ltcube_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/461503/Model_4FGL_J1517.7+6525_daily_bin743.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1517.7+6525'

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  8.633e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.816e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/461503/ft1_filtered_4FGL_J1517.7+6525_daily_bin743.fits
Spacecraft file(s): /scratch/kocevski/461503/ft2_4FGL_J1517.7+6525_daily_bin743.fits
Exposure map: /scratch/kocevski/461503/expmap_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.fits
Exposure cube: /scratch/kocevski/461503/ltcube_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/461503/Model_4FGL_J1517.7+6525_daily_bin743.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) = 5352.50796115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.585       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.947       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.050       1.0000         .10000E-03   10000.    
     8 'Prefactor '    521.43       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.525       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .69172       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.472       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.575       1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.145       1.0000         .10000E-03   10000.    
    19 'norm      '    .10976E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    177.78       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3346       1.0000         .10000E-03   10000.    
    22 'norm      '    44.537       1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.744       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    55.591       1.0000         .10000E-03   10000.    
    26 'norm      '    8.3416       1.0000         .10000E-03   10000.    
    27 'norm      '    2.0298       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.0856       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0109       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .69936       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5352.456     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     4232 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.708       -.17199E-05** at limit **
   2  Prefactor     .10000E-03    54.477        .92427E-06** at limit **
   3  Prefactor     3.0394        3.9474        .90623E-07    .66749E-06
   4  Prefactor     10.582        11.927        .14677E-07   -.12807E-04
   5  Prefactor     .10000E-03    8.3698        .16885E-07** at limit **
   6  Prefactor     13.945        10.259        .58795E-07   -.15540E-04
   7  Prefactor     33.053        31.906        .46179E-06   -.29847E-05
   8  Prefactor     521.70        601.84       -.15361E-04   -.56861E-06
   9  Prefactor     28.531        22.492        .15098E-06   -.33636E-04
  10  Prefactor     .10000E-03    18.245        .28181E-07** at limit **
  11  Prefactor     .10000E-03    32.203        .17899E-05** at limit **
  12  Prefactor     .10000E-03    13.396        .41532E-07** at limit **
  13  Prefactor     .10000E-03    6.1471        .14408E-07** at limit **
  14  Prefactor     .10002E-03    5.1132        .96315E-06** at limit **
  15  Prefactor     .52079        46.009       -.46218E-07    .39910E-05
  16  Prefactor     14.485        8.7201        .31142E-07   -.12992E-03
  17  Prefactor     26.578        17.283       -.20731E-06   -.66703E-05
  18  Prefactor     50.148        34.596        .82417E-07   -.12120E-05
  19  norm          .10000E-03    1.8578       -.86836E-06** at limit **
  20  Prefactor     177.69        121.09        .66985E-05    .14930E-04
  21  Prefactor     2.3603        12.525        .86985E-05   -.33115E-04
  22  norm          44.505        15.324       -.12977E-05    .35484E-05
  23  Prefactor     32.746        33.138        .32962E-06    .10988E-05
  24  Prefactor     .10000E-03    80.684       -.42862E-06** at limit **
  25  Prefactor     55.583        62.227        .92829E-06   -.13669E-05
  26  norm          8.3410        10.036       -.62055E-07   -.59947E-05
  27  norm          2.0299        .98852       -.13887E-07   -.18876E-04
  28  Prefactor     6.0868        8.7826       -.13618E-06   -.89580E-05
  29  Prefactor     .10000E-03    6.9678        .51502E-08** at limit **
  30  Normalizat    1.0108        .18417        .61790E-06   -.17836E-04
  31  Prefactor     .69950        .17093       -.14430E-05   -.59441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.03936
  Prefactor  = 10.5817
  Prefactor  = 0.0001
  Prefactor  = 13.9453
  Prefactor  = 33.0527
  Prefactor  = 521.704
  Prefactor  = 28.5309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.520792
  Prefactor  = 14.4846
  Prefactor  = 26.5778
  Prefactor  = 50.1477
  norm       = 0.0001
  Prefactor  = 177.691
  Prefactor  = 2.36033
  norm       = 44.5047
  Prefactor  = 32.7457
  Prefactor  = 0.0001
  Prefactor  = 55.5829
  norm       = 8.34102
  norm       = 2.0299
  Prefactor  = 6.08676
  Prefactor  = 0.0001
  Normalizat = 1.01084
  Prefactor  = 0.6995
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.456     FROM HESSE     STATUS=OK           634 CALLS     4866 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    55.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0394        3.9401        .15646E-03   -1.5359    
   4  Prefactor     10.582        11.922        .12315E-03   -1.5057    
   5  Prefactor     .10000E-03    8.4582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.945        10.306        .10725E-03   -1.4961    
   7  Prefactor     33.053        31.906        .69701E-04   -1.4558    
   8  Prefactor     521.70        601.35        .89963E-04   -1.1099    
   9  Prefactor     28.531        22.503        .75013E-04   -1.4639    
  10  Prefactor     .10000E-03    18.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1489        .17716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    27.781        .30947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .52079        50.624        .15469       -1.5564    
  16  Prefactor     14.485        8.5831        .10529E-03   -1.4947    
  17  Prefactor     26.578        17.330        .77711E-04   -1.4676    
  18  Prefactor     50.148        34.597        .28316E-03   -1.4290    
  19  norm          .10000E-03    1.9212        .97877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     177.69        121.78        .15135E-03   -1.3034    
  21  Prefactor     2.3603        12.765        .13419E-02   -1.5401    
  22  norm          44.505        15.407        .60076E-04   -1.4373    
  23  Prefactor     32.746        33.144        .70026E-04   -1.4563    
  24  Prefactor     .10000E-03    80.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     55.583        62.254        .53800E-04   -1.4216    
  26  norm          8.3410        10.028        .13880E-03   -1.5130    
  27  norm          2.0299        .98799        .45550E-04   -1.5423    
  28  Prefactor     6.0868        8.7592        .16275E-03   -1.5214    
  29  Prefactor     .10000E-03    6.9712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0108        .21729        .22915E-03   -.92668    
  31  Prefactor     .69950        .19928        .26867E-03   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08764e-09
Minuit parameter uncertainties:
  1  6.18715e-06
  2  7.46451e-07
  3  3.94041
  4  11.9243
  5  1.435e-06
  6  10.3076
  7  31.9226
  8  608.928
  9  22.5093
  10  1.44961e-06
  11  1.45741e-05
  12  7.09636e-06
  13  9.2042e-07
  14  0.00151728
  15  10.2773
  16  8.5838
  17  17.3337
  18  34.6105
  19  4.62301e-05
  20  121.95
  21  10.9816
  22  15.4079
  23  33.1627
  24  1.19379e-05
  25  62.3269
  26  10.0295
  27  0.987995
  28  8.76107
  29  6.57601e-07
  30  0.217483
  31  0.199483
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  5.015e+01  3.461e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.816e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  6.995e-01  1.995e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.011e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.56
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.97e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 3.39e-05 +/- 2.34e-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) = 5352.26403738
delta logL = 0.192457036663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5352.25080207
delta logL = 0.205692342943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.897       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4847       1.0000          .0000       10.000    
     3 'Normalizat'    1.0202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5352.251     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      249 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.832        1634.4        .13296E-02   -.15220E-05
   2  Index         1.4839        5.6409        .16555        .36454E-04
   3  Normalizat    1.0201        .32299        .43321E-01    .69301E-05
   4  Prefactor     .69780        .17835        .60856E-01    .17798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.8322
  Index      = 1.48387
  Normalizat = 1.02011
  Prefactor  = 0.697798
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.251     FROM HESSE     STATUS=OK            31 CALLS      280 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.832        42.743        .53183E-04   -1.4199    
   2  Index         1.4839        .52885        .89974E-02   -.77992    
   3  Normalizat    1.0201        .19620        .22829E-03   -.92360    
   4  Prefactor     .69780        .19536        .26918E-03   -1.0361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72144e-12
Minuit parameter uncertainties:
  1  42.7663
  2  0.530816
  3  0.19634
  4  0.195554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461503': 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) = 5352.25079961
delta logL = 0.205694802981

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  5.683e+01  4.277e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.484e+00  5.308e-01  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  6.978e-01  1.956e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.020e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.97
Ra Dec: 229.436 65.424
Photon Index (Free Index): 1.48 +/- 0.53
Photon Flux (Free Index): 1.77e-08 +/- 2.06e-08
Energy Flux (Free Index): 5.93e-05 +/- 6.92e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/461503/cmap_HighResolution_431913601_432172801_4FGL_J1517.7+6525_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.97e-08', energy_flux2='5.93e-05', photon_flux_error='2.05e-08', dlogl='2.06e-01', energy_flux='3.39e-05', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-09-12 00:02:10.207413', photon_index_error2='0.53', photon_index2='1.48', ts='12.56', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='6.92e-05', EG='1.01', time_epoch_completed='1631430130.21', return_code='0', job_id='461503', GAL2='0.70', EG2='1.02', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='2.06e-08', ts2='12.97', photon_index='1.82' WHERE bin_id='743' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 461503: <4FGL_J1517.7+6525_daily_bin743> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin743> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 23:45:59 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:46:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:46:00 2021
Terminated at Sun Sep 12 00:02:10 2021
Results reported at Sun Sep 12 00:02:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin743 229.436 65.424 431913601 432172801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1517.7+6525 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   828.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

