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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin709
RA = 229.436, Dec = 65.424
tmin = 423100801, tmax = 423360001
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='461457', job_status='RUN', time_executed='2021-09-11 23:47:55.463053', time_epoch_executed='1631429275.46' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461457/ft1_4FGL_J1517.7+6525_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461457/ft2_4FGL_J1517.7+6525_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461457/ft1_4FGL_J1517.7+6525_daily_bin709.fits outfile=/scratch/kocevski/461457/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin709.fits ra=229.436 dec=65.424 rad=12.0 tmin=423100801.0 tmax=423360001.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.94
user 4.69
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461457/ft1_filtered_4FGL_J1517.7+6525_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/461457/ft2_4FGL_J1517.7+6525_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/461457/ltcube_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.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/461457/ft2_4FGL_J1517.7+6525_daily_bin709.fits
.....................!
real 14.71
user 14.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461457/ft1_filtered_4FGL_J1517.7+6525_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/461457/ft2_4FGL_J1517.7+6525_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/461457/ltcube_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.fits outfile=/scratch/kocevski/461457/expmap_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.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/461457/ltcube_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.fits
.....................!
real 191.61
user 186.52
sys 4.77

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/461457/ft1_filtered_4FGL_J1517.7+6525_daily_bin709.fits scfile=/scratch/kocevski/461457/ft2_4FGL_J1517.7+6525_daily_bin709.fits outfile=/scratch/kocevski/461457/cmap_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461457/ft1_filtered_4FGL_J1517.7+6525_daily_bin709.fits scfile=/scratch/kocevski/461457/ft2_4FGL_J1517.7+6525_daily_bin709.fits outfile=/scratch/kocevski/461457/cmap_HighResolution_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461457/ft1_filtered_4FGL_J1517.7+6525_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/461457/ft2_4FGL_J1517.7+6525_daily_bin709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461457/Model_4FGL_J1517.7+6525_daily_bin709.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/461457/ft1_filtered_4FGL_J1517.7+6525_daily_bin709.fits.....................!
real 48.09
user 46.92
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/461457/ft1_filtered_4FGL_J1517.7+6525_daily_bin709.fits', '/scratch/kocevski/461457/ft2_4FGL_J1517.7+6525_daily_bin709.fits', expMap='/scratch/kocevski/461457/expmap_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.fits', expCube='/scratch/kocevski/461457/ltcube_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/461457/Model_4FGL_J1517.7+6525_daily_bin709.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/461457/ft1_filtered_4FGL_J1517.7+6525_daily_bin709.fits
Spacecraft file(s): /scratch/kocevski/461457/ft2_4FGL_J1517.7+6525_daily_bin709.fits
Exposure map: /scratch/kocevski/461457/expmap_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.fits
Exposure cube: /scratch/kocevski/461457/ltcube_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/461457/Model_4FGL_J1517.7+6525_daily_bin709.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) = 5206.61691167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10692E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7685       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11833E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .91581E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.407       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1096       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.343       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0951       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57947E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11722E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.235       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71691       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0709       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6564       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15093E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    25.032       1.0000         .10000E-03   10000.    
    27 'norm      '    6.3872       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.6292       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3423       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .50056       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5206.584     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     3515 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    21.423        .12896E-05** at limit **
   2  Prefactor     .10000E-03    9.8181        .12507E-06** at limit **
   3  Prefactor     8.7708        5.2111        .29445E-07    .17013E-04
   4  Prefactor     .10000E-03    7.4040        .52912E-06** at limit **
   5  Prefactor     .10000E-03    13.615       -.42115E-06** at limit **
   6  Prefactor     .10000E-03    4.8878       -.16686E-06** at limit **
   7  Prefactor     .10178E-03    16.770       -.16813E-05** at limit **
   8  Prefactor     .16637E-03    84.633       -.12432E-06** at limit **
   9  Prefactor     49.391        35.852       -.16219E-05   -.85901E-02
  10  Prefactor     .10035E-03    21.325       -.28450E-05** at limit **
  11  Prefactor     3.3088        205.45        .22092E-04   -.57771E-03
  12  Prefactor     20.147        1.7705       -.59413E-08   -.25023E-03
  13  Prefactor     36.311        4.8438       -.38096E-06   -.32640E-02
  14  Prefactor     9.1006        5.3289       -.54130E-06   -.41509E-02
  15  Prefactor     .10056E-03    87.262        .15426E-05** at limit **
  16  Prefactor     1.6574        8.6819        .72863E-06    .52926E-03
  17  Prefactor     .10000E-03    6.2416        .50348E-07** at limit **
  18  Prefactor     .10000E-03    41.937       -.21035E-05** at limit **
  19  norm          11.243        4.8455        .79784E-06    .71206E-03
  20  Prefactor     .13469E-02    9835.6       -.17094E-03** at limit **
  21  Prefactor     3.0761        8.5529       -.18700E-06   -.72660E-03
  22  norm          4.6419        8.9649        .84628E-06    .13684E-02
  23  Prefactor     .11203E-03    133.72       -.42222E-05** at limit **
  24  Prefactor     .10003E-03    37.123       -.30130E-06** at limit **
  25  Prefactor     .10000E-03    19.784       -.17241E-07** at limit **
  26  norm          25.034        2.6100        .16077E-06    .48887E-02
  27  norm          6.3883        1.2979       -.52404E-07   -.31118E-03
  28  Prefactor     3.6295        7.3329        .41811E-06   -.61589E-04
  29  Prefactor     .10142E-03    18.283        .13199E-05** at limit **
  30  Normalizat    1.3426        .21892       -.28061E-06    .15345E-03
  31  Prefactor     .50040        .20740        .85386E-06    .11940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100222
  Prefactor  = 0.0001
  Prefactor  = 8.77083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010178
  Prefactor  = 0.000166373
  Prefactor  = 49.3914
  Prefactor  = 0.000100347
  Prefactor  = 3.30881
  Prefactor  = 20.1472
  Prefactor  = 36.3106
  Prefactor  = 9.10065
  Prefactor  = 0.000100556
  Prefactor  = 1.65743
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 11.2428
  Prefactor  = 0.0013469
  Prefactor  = 3.07606
  norm       = 4.6419
  Prefactor  = 0.000112031
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  norm       = 25.034
  norm       = 6.3883
  Prefactor  = 3.6295
  Prefactor  = 0.000101421
  Normalizat = 1.34258
  Prefactor  = 0.500402
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.584     FROM HESSE     STATUS=OK           690 CALLS     4205 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    22.186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7708        5.2311        .33841E-02   -1.5116    
   4  Prefactor     .10000E-03    7.3726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8556        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10178E-03    25.319        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16637E-03    164.83        .10410E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.391        40.253        .14263E-02   -1.4301    
  10  Prefactor     .10035E-03    22.578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3088        217.39        .57487E-02   -1.5344    
  12  Prefactor     20.147        18.172        .22306E-02   -1.4810    
  13  Prefactor     36.311        32.138        .16620E-02   -1.4502    
  14  Prefactor     9.1006        12.972        .33224E-02   -1.5105    
  15  Prefactor     .10056E-03    88.245        .10541E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6574        10.628        .81960E-02   -1.5450    
  17  Prefactor     .10000E-03    6.2333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.175        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.243        5.2464        .29881E-02   -1.5037    
  20  Prefactor     .13469E-02    179.49        .20940       -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0761        11.578        .57868E-02   -1.5357    
  22  norm          4.6419        13.889        .46626E-02   -1.5277    
  23  Prefactor     .11203E-03    147.62        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10003E-03    37.475        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.766        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          25.034        12.143        .20016E-02   -1.4707    
  27  norm          6.3883        1.3001        .39703E-02   -1.5202    
  28  Prefactor     3.6295        7.3933        .53018E-02   -1.5327    
  29  Prefactor     .10142E-03    25.249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3426        .19302        .48215E-01   -.82304    
  31  Prefactor     .50040        .18131        .73375E-01   -1.1196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68747e-07
Minuit parameter uncertainties:
  1  0.00444152
  2  7.36249e-06
  3  5.23135
  4  3.23277e-05
  5  3.8463e-05
  6  8.01677e-06
  7  0.0134327
  8  0.20977
  9  40.2756
  10  0.00559953
  11  53.8443
  12  18.1767
  13  32.1535
  14  12.9764
  15  0.0140311
  16  8.39608
  17  2.86856e-06
  18  0.000732377
  19  5.2466
  20  0.949008
  21  11.5865
  22  13.8982
  23  0.084494
  24  0.00210929
  25  9.05241e-05
  26  12.1438
  27  1.30007
  28  7.39518
  29  0.0119863
  30  0.193124
  31  0.181523
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  7.324e-04  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:  5.004e-01  1.815e-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.343e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.436 65.424
Photon Flux Upper Limit: 5.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461457/likelihoodResults_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.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): 102
logL (Free Index) = 5206.58380723
delta logL = -0.000112365130917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5206.58369659
delta logL = -1.72822819877e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29423E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9685       1.0000          .0000       10.000    
     3 'Normalizat'    1.3426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50040       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=   5206.584     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      242 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4704        .10699E-01** at limit **
   2  Index         1.9691        5.9796        .50000       -.40282E-05
   3  Normalizat    1.3426        .20015E-02    .48215E-01    .62425E-04
   4  Prefactor     .50040        .19583E-02    .73376E-01    .14807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9691
  Normalizat = 1.34258
  Prefactor  = 0.500401
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.584     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    101.15        .21398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9691        8.4398        .50000       -.65125    
   3  Normalizat    1.3426        .65107E-02    .21314E-03   -.82304    
   4  Prefactor     .50040        .63565E-02    .32489E-03   -1.1196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.55541e-09
Minuit parameter uncertainties:
  1  0.000271062
  2  93.8608
  3  0.00651069
  4  0.00635652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461457': 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): 102
logL (Free Index) = 5206.58369467
delta logL = 1.90983882931e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.711e-04  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.969e+00  9.386e+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:  5.004e-01  6.357e-03  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.343e+00  6.511e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.436 65.424

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/461457/cmap_HighResolution_423100801_423360001_4FGL_J1517.7+6525_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.33e-08', time_completed='2021-09-12 00:02:22.167095', job_id='461457', GAL2='0.50', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1631430142.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='709' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:02:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 461457: <4FGL_J1517.7+6525_daily_bin709> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin709> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 23:45:56 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:45:57 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:45:57 2021
Terminated at Sun Sep 12 00:02:22 2021
Results reported at Sun Sep 12 00:02:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin709 229.436 65.424 423100801 423360001 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 :                                   864.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            986 sec.

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

