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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin727
RA = 229.436, Dec = 65.424
tmin = 427766401, tmax = 428025601
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='461483', job_status='RUN', time_executed='2021-09-11 23:48:18.711025', time_epoch_executed='1631429298.71' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461483

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461483/ft1_4FGL_J1517.7+6525_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461483/ft2_4FGL_J1517.7+6525_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461483/ft1_4FGL_J1517.7+6525_daily_bin727.fits outfile=/scratch/kocevski/461483/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin727.fits ra=229.436 dec=65.424 rad=12.0 tmin=427766401.0 tmax=428025601.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.43
user 5.14
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461483/ft2_4FGL_J1517.7+6525_daily_bin727.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/461483/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin727.fits evtable="EVENTS" outfile="/scratch/kocevski/461483/ft1_filtered_4FGL_J1517.7+6525_daily_bin727.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461483/ft1_filtered_4FGL_J1517.7+6525_daily_bin727.fits" evtable="EVENTS" scfile=/scratch/kocevski/461483/ft2_4FGL_J1517.7+6525_daily_bin727.fits sctable="SC_DATA" outfile=/scratch/kocevski/461483/ltcube_427766401_428025601_4FGL_J1517.7+6525_daily_bin727.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/461483/ft2_4FGL_J1517.7+6525_daily_bin727.fits
.....................!
real 12.03
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461483/ft1_filtered_4FGL_J1517.7+6525_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/461483/ft2_4FGL_J1517.7+6525_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/461483/ltcube_427766401_428025601_4FGL_J1517.7+6525_daily_bin727.fits outfile=/scratch/kocevski/461483/expmap_427766401_428025601_4FGL_J1517.7+6525_daily_bin727.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/461483/ltcube_427766401_428025601_4FGL_J1517.7+6525_daily_bin727.fits
.....................!
real 192.46
user 186.69
sys 5.42

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/461483/ft1_filtered_4FGL_J1517.7+6525_daily_bin727.fits scfile=/scratch/kocevski/461483/ft2_4FGL_J1517.7+6525_daily_bin727.fits outfile=/scratch/kocevski/461483/cmap_427766401_428025601_4FGL_J1517.7+6525_daily_bin727.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461483/ft1_filtered_4FGL_J1517.7+6525_daily_bin727.fits scfile=/scratch/kocevski/461483/ft2_4FGL_J1517.7+6525_daily_bin727.fits outfile=/scratch/kocevski/461483/cmap_HighResolution_427766401_428025601_4FGL_J1517.7+6525_daily_bin727.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461483/ft1_filtered_4FGL_J1517.7+6525_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/461483/ft2_4FGL_J1517.7+6525_daily_bin727.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461483/Model_4FGL_J1517.7+6525_daily_bin727.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/461483/ft1_filtered_4FGL_J1517.7+6525_daily_bin727.fits.....................!
real 42.10
user 40.76
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.084       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13908E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.596       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.241       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    613.49       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1471       1.0000         .10000E-03   10000.    
    10 'Prefactor '    101.14       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.719       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.162       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.274       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9352       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.168       1.0000         .10000E-03   10000.    
    19 'norm      '    .98850       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.587       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .27322E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.5704       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    55.380       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .69545       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1116       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=   4333.922     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     4136 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    46.445        .47864E-05** at limit **
   2  Prefactor     33.087        55.804        .52680E-06    .62135E-05
   3  Prefactor     .10000E-03    3.3000        .27413E-06** at limit **
   4  Prefactor     33.590        28.099       -.20334E-06   -.62102E-04
   5  Prefactor     .10000E-03    8.2340        .97925E-07** at limit **
   6  Prefactor     11.242        12.260        .13457E-05   -.11752E-03
   7  Prefactor     .10000E-03    20.277        .13080E-05** at limit **
   8  Prefactor     613.63        618.60        .67983E-05    .26135E-04
   9  Prefactor     4.1466        73.408        .99180E-06   -.64319E-05
  10  Prefactor     101.14        98.067        .30429E-06    .13681E-04
  11  Prefactor     39.720        49.574       -.19916E-06   -.29510E-05
  12  Prefactor     28.163        20.675        .78739E-07   -.84281E-05
  13  Prefactor     .10000E-03    82.344       -.35774E-05** at limit **
  14  Prefactor     14.274        10.087       -.55411E-06   -.15396E-04
  15  Prefactor     .10000E-03    37.686        .60594E-07** at limit **
  16  Prefactor     5.9351        7.0808        .28076E-05   -.39906E-03
  17  Prefactor     .10000E-03    10.684        .23863E-06** at limit **
  18  Prefactor     15.168        18.665        .54008E-07   -.28675E-05
  19  norm          .98874        3.0744        .69219E-06   -.63448E-04
  20  Prefactor     .10000E-03    30.905       -.26047E-05** at limit **
  21  Prefactor     13.587        10.046        .51011E-07   -.13425E-04
  22  norm          .10000E-03    6.6670        .21886E-08** at limit **
  23  Prefactor     .10000E-03    35.784       -.85787E-06** at limit **
  24  Prefactor     .10010E-03    885.61       -.22134E-04** at limit **
  25  Prefactor     .10000E-03    14.497       -.47634E-06** at limit **
  26  norm          .10000E-03    10.674        .96646E-07** at limit **
  27  norm          1.5704        1.2444        .20238E-07    .91511E-06
  28  Prefactor     .10000E-03    8.1747       -.78467E-07** at limit **
  29  Prefactor     55.380        42.393        .12723E-06    .27771E-05
  30  Normalizat    .69551        .19945       -.12070E-05   -.18402E-04
  31  Prefactor     1.1115        .20255       -.38073E-06   -.20538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 33.087
  Prefactor  = 0.0001
  Prefactor  = 33.59
  Prefactor  = 0.0001
  Prefactor  = 11.2416
  Prefactor  = 0.0001
  Prefactor  = 613.628
  Prefactor  = 4.14656
  Prefactor  = 101.143
  Prefactor  = 39.7197
  Prefactor  = 28.1626
  Prefactor  = 0.000100002
  Prefactor  = 14.2738
  Prefactor  = 0.0001
  Prefactor  = 5.9351
  Prefactor  = 0.0001
  Prefactor  = 15.1684
  norm       = 0.98874
  Prefactor  = 0.000100002
  Prefactor  = 13.5865
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100101
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.57042
  Prefactor  = 0.0001
  Prefactor  = 55.3799
  Normalizat = 0.695513
  Prefactor  = 1.11146
 **********
 **   18 **HESSE 
 **********

 FCN=   4333.922     FROM HESSE     STATUS=OK           620 CALLS     4756 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    48.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.087        55.808        .69666E-04   -1.4557    
   3  Prefactor     .10000E-03    7.5520        .23004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.590        28.073        .69134E-04   -1.4548    
   5  Prefactor     .10000E-03    8.2902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.242        12.292        .59744E-03   -1.5037    
   7  Prefactor     .10000E-03    20.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     613.63        622.53        .83344E-04   -1.0702    
   9  Prefactor     4.1466        70.551        .19793E-03   -1.5301    
  10  Prefactor     101.14        98.137        .39977E-04   -1.3693    
  11  Prefactor     39.720        48.605        .63601E-04   -1.4447    
  12  Prefactor     28.163        20.686        .75493E-04   -1.4646    
  13  Prefactor     .10000E-03    84.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.274        10.096        .10602E-03   -1.4952    
  15  Prefactor     .10000E-03    37.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9351        7.2315        .82415E-03   -1.5221    
  17  Prefactor     .10000E-03    10.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.168        18.663        .10284E-03   -1.4929    
  19  norm          .98874        3.0469        .19374E-03   -1.5509    
  20  Prefactor     .10000E-03    31.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.587        10.055        .10867E-03   -1.4971    
  22  norm          .10000E-03    6.7187        .16574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10010E-03    917.27        .21429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    10.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.5704        1.2444        .33924E-04   -1.5457    
  28  Prefactor     .10000E-03    8.2322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     55.380        42.395        .53902E-04   -1.4218    
  30  Normalizat    .69551        .22859        .25934E-03   -1.0407    
  31  Prefactor     1.1115        .23362        .22140E-03   -.89101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45645e-10
Minuit parameter uncertainties:
  1  0.00104544
  2  55.8959
  3  2.58834e-05
  4  28.0839
  5  8.46097e-06
  6  12.2946
  7  0.000186035
  8  629.733
  9  34.2548
  10  98.295
  11  48.6536
  12  20.6914
  13  0.000773928
  14  10.0977
  15  1.64687e-05
  16  7.2326
  17  2.99795e-05
  18  18.6702
  19  3.04735
  20  0.000453668
  21  10.056
  22  5.1591e-06
  23  0.000144681
  24  0.0195519
  25  5.3924e-05
  26  2.32868e-05
  27  1.24444
  28  1.33999e-06
  29  42.4176
  30  0.228903
  31  0.233832
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.517e+01  1.867e+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:  1.111e+00  2.338e-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:  6.955e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.68
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 9.00e-09 +/- 1.11e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/461483/likelihoodResults_427766401_428025601_4FGL_J1517.7+6525_daily_bin727.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4333.52270722
delta logL = 0.399342176123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4333.52255786
delta logL = 0.399491529082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.583       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2049       1.0000          .0000       10.000    
     3 'Normalizat'    .69961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1089       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=   4333.523     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      254 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.626        1550.7        .20621E-02   -.41194E-04
   2  Index         1.2062        7.0748        .28348        .26026E-04
   3  Normalizat    .69979        .14528        .42285E-01   -.10430E-03
   4  Prefactor     1.1090        .12520        .37258E-01   -.19728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.6261
  Index      = 1.20616
  Normalizat = 0.699788
  Prefactor  = 1.10896
 **********
 **   18 **HESSE 
 **********

 FCN=   4333.523     FROM HESSE     STATUS=OK            29 CALLS      283 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.626        26.902        .82485E-04   -1.4735    
   2  Index         1.2062        .63422        .10267E-01   -.86142    
   3  Normalizat    .69979        .21568        .25855E-03   -1.0390    
   4  Prefactor     1.1090        .22931        .22154E-03   -.89181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62308e-11
Minuit parameter uncertainties:
  1  26.9162
  2  0.638296
  3  0.215946
  4  0.229514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461483': 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) = 4333.52255188
delta logL = 0.399497509387

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  2.363e+01  2.692e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.206e+00  6.383e-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:  1.109e+00  2.295e-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:  6.998e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 229.436 65.424
Photon Index (Free Index): 1.21 +/- 0.64
Photon Flux (Free Index): 5.29e-09 +/- 6.72e-09
Energy Flux (Free Index): 4.34e-05 +/- 7.68e-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/461483/cmap_HighResolution_427766401_428025601_4FGL_J1517.7+6525_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', comment='SUCCESS', photon_flux='9.00e-09', energy_flux2='4.34e-05', photon_flux_error='1.11e-08', dlogl='3.99e-01', energy_flux='1.03e-05', photon_flux2='5.29e-09', job_status='DONE', time_completed='2021-09-12 00:01:51.116692', photon_index_error2='0.64', photon_index2='1.21', ts='1.68', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='4.90e-08', energy_flux_error2='7.68e-05', EG='0.70', time_epoch_completed='1631430111.12', return_code='0', job_id='461483', GAL2='1.11', EG2='0.70', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='6.72e-09', ts2='2.48', photon_index='1.82' WHERE bin_id='727' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:01:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 461483: <4FGL_J1517.7+6525_daily_bin727> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin727 229.436 65.424 427766401 428025601 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 :                                   808.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

