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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin750
RA = 229.436, Dec = 65.424
tmin = 433728001, tmax = 433987201
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='461510', job_status='RUN', time_executed='2021-09-11 23:48:17.563743', time_epoch_executed='1631429297.56' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461510/ft1_4FGL_J1517.7+6525_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461510/ft2_4FGL_J1517.7+6525_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461510/ft1_4FGL_J1517.7+6525_daily_bin750.fits outfile=/scratch/kocevski/461510/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin750.fits ra=229.436 dec=65.424 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.07
user 5.77
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461510/ft2_4FGL_J1517.7+6525_daily_bin750.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/461510/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin750.fits evtable="EVENTS" outfile="/scratch/kocevski/461510/ft1_filtered_4FGL_J1517.7+6525_daily_bin750.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/461510/ft1_filtered_4FGL_J1517.7+6525_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/461510/ft2_4FGL_J1517.7+6525_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/461510/ltcube_433728001_433987201_4FGL_J1517.7+6525_daily_bin750.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/461510/ft2_4FGL_J1517.7+6525_daily_bin750.fits
.....................!
real 12.33
user 11.94
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461510/ft1_filtered_4FGL_J1517.7+6525_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/461510/ft2_4FGL_J1517.7+6525_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/461510/ltcube_433728001_433987201_4FGL_J1517.7+6525_daily_bin750.fits outfile=/scratch/kocevski/461510/expmap_433728001_433987201_4FGL_J1517.7+6525_daily_bin750.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/461510/ltcube_433728001_433987201_4FGL_J1517.7+6525_daily_bin750.fits
.....................!
real 190.24
user 185.70
sys 4.15

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/461510/ft1_filtered_4FGL_J1517.7+6525_daily_bin750.fits scfile=/scratch/kocevski/461510/ft2_4FGL_J1517.7+6525_daily_bin750.fits outfile=/scratch/kocevski/461510/cmap_433728001_433987201_4FGL_J1517.7+6525_daily_bin750.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461510/ft1_filtered_4FGL_J1517.7+6525_daily_bin750.fits scfile=/scratch/kocevski/461510/ft2_4FGL_J1517.7+6525_daily_bin750.fits outfile=/scratch/kocevski/461510/cmap_HighResolution_433728001_433987201_4FGL_J1517.7+6525_daily_bin750.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461510/ft1_filtered_4FGL_J1517.7+6525_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/461510/ft2_4FGL_J1517.7+6525_daily_bin750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461510/Model_4FGL_J1517.7+6525_daily_bin750.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/461510/ft1_filtered_4FGL_J1517.7+6525_daily_bin750.fits.....................!
real 44.31
user 43.02
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.652       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3929       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.005       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.071       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .68520E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.864       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12926E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0416       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.613       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.782       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.161       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0044       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.477       1.0000         .10000E-03   10000.    
    22 'norm      '    10.159       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.377       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.165       1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.013       1.0000         .10000E-03   10000.    
    26 'norm      '    6.8400       1.0000         .10000E-03   10000.    
    27 'norm      '    .15136E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.2865       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99716       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0668       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=   4526.334     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     4675 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.337        295.33       -.32477E-03    .15934E-05
   2  Prefactor     .10000E-03    35.550        .17533E-04** at limit **
   3  Prefactor     8.3902        12.796        .72632E-05    .76901E-04
   4  Prefactor     19.987        41.855        .70470E-05    .56764E-05
   5  Prefactor     16.080        23.609        .70211E-05    .37330E-04
   6  Prefactor     .10000E-03    4.8399       -.13272E-06** at limit **
   7  Prefactor     .10000E-03    25.646       -.39910E-05** at limit **
   8  Prefactor     .10000E-03    1258.1       -.35746E-03** at limit **
   9  Prefactor     16.825        41.786       -.41761E-04   -.62560E-05
  10  Prefactor     .10000E-03    44.087       -.17458E-04** at limit **
  11  Prefactor     .10003E-03    63.003        .70180E-05** at limit **
  12  Prefactor     9.0242        26.498       -.59654E-05    .10966E-06
  13  Prefactor     .10000E-03    20.142        .10456E-06** at limit **
  14  Prefactor     .10000E-03    4.1077        .11594E-07** at limit **
  15  Prefactor     .10000E-03    70.089        .19910E-04** at limit **
  16  Prefactor     28.621        14.624       -.89514E-06    .10056E-03
  17  Prefactor     35.794        30.098        .16179E-05    .28374E-04
  18  Prefactor     34.149        39.326       -.93327E-05    .81594E-05
  19  norm          4.0037        3.7521       -.75620E-06   -.14934E-03
  20  Prefactor     .10000E-03    109.70        .11232E-04** at limit **
  21  Prefactor     17.475        8.8590        .16619E-07    .50840E-04
  22  norm          10.160        7.2973       -.93978E-06    .29213E-04
  23  Prefactor     24.352        30.185       -.89312E-05    .11036E-04
  24  Prefactor     16.153        441.97       -.29242E-04    .11581E-07
  25  Prefactor     20.992        93.722       -.40353E-04   -.82957E-04
  26  norm          6.8408        14.387       -.34628E-05   -.89024E-04
  27  norm          .10000E-03    1.2481        .10733E-05** at limit **
  28  Prefactor     8.2902        14.282       -.81499E-06   -.21018E-03
  29  Prefactor     .10000E-03    54.411       -.16297E-04** at limit **
  30  Normalizat    .99674        .25240        .98354E-05   -.12996E-03
  31  Prefactor     1.0672        .23442        .41268E-05   -.84996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.3371
  Prefactor  = 0.000100001
  Prefactor  = 8.39022
  Prefactor  = 19.9871
  Prefactor  = 16.0803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8248
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 9.02415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6213
  Prefactor  = 35.794
  Prefactor  = 34.1488
  norm       = 4.00374
  Prefactor  = 0.0001
  Prefactor  = 17.4753
  norm       = 10.16
  Prefactor  = 24.3521
  Prefactor  = 16.153
  Prefactor  = 20.9916
  norm       = 6.84084
  norm       = 0.000100003
  Prefactor  = 8.29019
  Prefactor  = 0.0001
  Normalizat = 0.996735
  Prefactor  = 1.06721
 **********
 **   18 **HESSE 
 **********

 FCN=   4526.334     FROM HESSE     STATUS=OK           624 CALLS     5299 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.337        295.18        .20988E-03   -1.3794    
   2  Prefactor     .10000E-03    35.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3902        12.770        .13838E-03   -1.5129    
   4  Prefactor     19.987        41.902        .89549E-04   -1.4814    
   5  Prefactor     16.080        23.574        .99907E-04   -1.4906    
   6  Prefactor     .10000E-03    4.8413        .14456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1258.4        .20992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.825        41.855        .97530E-04   -1.4887    
  10  Prefactor     .10000E-03    44.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    63.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.0242        26.520        .13329E-03   -1.5107    
  13  Prefactor     .10000E-03    20.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1115        .13312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    70.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.621        14.827        .74898E-04   -1.4637    
  17  Prefactor     35.794        30.167        .66996E-04   -1.4511    
  18  Prefactor     34.149        39.317        .68562E-04   -1.4539    
  19  norm          4.0037        3.7493        .12034E-03   -1.5308    
  20  Prefactor     .10000E-03    109.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.475        8.8604        .95805E-04   -1.4872    
  22  norm          10.160        7.2991        .12571E-03   -1.5070    
  23  Prefactor     24.352        30.181        .81131E-04   -1.4721    
  24  Prefactor     16.153        445.38        .99617E-04   -1.4904    
  25  Prefactor     20.992        87.241        .87377E-04   -1.4791    
  26  norm          6.8408        14.343        .15341E-03   -1.5185    
  27  norm          .10000E-03    2.3049        .13391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.2902        14.006        .13927E-03   -1.5132    
  29  Prefactor     .10000E-03    54.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .99674        .30450        .28019E-03   -.93140    
  31  Prefactor     1.0672        .28416        .26484E-03   -.90522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00673e-09
Minuit parameter uncertainties:
  1  300.138
  2  0.000355996
  3  12.7742
  4  41.9633
  5  23.5879
  6  7.71594e-06
  7  2.10652e-05
  8  0.000992513
  9  41.9283
  10  2.33322e-05
  11  0.00280842
  12  26.5545
  13  4.43113e-05
  14  1.03254e-06
  15  0.000159612
  16  14.8287
  17  30.1801
  18  39.3465
  19  3.74956
  20  0.00030961
  21  8.86102
  22  7.29971
  23  30.1998
  24  171.065
  25  85.8035
  26  14.3502
  27  0.000152204
  28  14.0118
  29  2.19425e-05
  30  0.305031
  31  0.284566
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  3.415e+01  3.935e+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.067e+00  2.846e-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:  9.967e-01  3.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.19
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 2.66e-05

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

Saving results to:
/scratch/kocevski/461510/likelihoodResults_433728001_433987201_4FGL_J1517.7+6525_daily_bin750.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) = 4526.04325346
delta logL = 0.291169205523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4526.04098391
delta logL = 0.29343875706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.944       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2485       1.0000          .0000       10.000    
     3 'Normalizat'    1.0039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0665       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=   4526.041     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      223 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.944        65.787        .16484E-02    .56043E-03
   2  Index         1.2485        .95734        .29454       -.14048E-04
   3  Normalizat    1.0042        .23232        .46216E-01   -.70023E-06
   4  Prefactor     1.0662        .22398        .59912E-01    .99581E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.9436
  Index      = 1.24854
  Normalizat = 1.00423
  Prefactor  = 1.06617
 **********
 **   18 **HESSE 
 **********

 FCN=   4526.041     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.944        42.647        .65938E-04   -1.4492    
   2  Index         1.2485        .68230        .11744E-01   -.84850    
   3  Normalizat    1.0042        .26981        .27925E-03   -.92889    
   4  Prefactor     1.0662        .26420        .26495E-03   -.90555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41998e-09
Minuit parameter uncertainties:
  1  42.6824
  2  0.687242
  3  0.270176
  4  0.264528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461510': 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) = 4526.04098298
delta logL = 0.29343968784

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  3.694e+01  4.268e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.249e+00  6.872e-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.066e+00  2.645e-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.004e+00  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 229.436 65.424
Photon Index (Free Index): 1.25 +/- 0.69
Photon Flux (Free Index): 8.57e-09 +/- 1.25e-08
Energy Flux (Free Index): 6.17e-05 +/- 9.94e-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/461510/cmap_HighResolution_433728001_433987201_4FGL_J1517.7+6525_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='6.17e-05', photon_flux_error='2.33e-08', dlogl='2.93e-01', energy_flux='2.31e-05', photon_flux2='8.57e-09', job_status='DONE', time_completed='2021-09-12 00:02:19.402732', photon_index_error2='0.69', photon_index2='1.25', ts='2.19', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.36e-08', energy_flux_error2='9.94e-05', EG='1.00', time_epoch_completed='1631430139.4', return_code='0', job_id='461510', GAL2='1.07', EG2='1.00', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='1.25e-08', ts2='2.78', photon_index='1.82' WHERE bin_id='750' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:02:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 461510: <4FGL_J1517.7+6525_daily_bin750> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin750 229.436 65.424 433728001 433987201 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 :                                   840.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

