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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin806
RA = 229.436, Dec = 65.424
tmin = 448243201, tmax = 448502401
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='461586', job_status='RUN', time_executed='2021-09-11 23:50:00.729754', time_epoch_executed='1631429400.73' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461586/ft1_4FGL_J1517.7+6525_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461586/ft2_4FGL_J1517.7+6525_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461586/ft1_4FGL_J1517.7+6525_daily_bin806.fits outfile=/scratch/kocevski/461586/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin806.fits ra=229.436 dec=65.424 rad=12.0 tmin=448243201.0 tmax=448502401.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.19
user 4.93
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461586/ft1_filtered_4FGL_J1517.7+6525_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/461586/ft2_4FGL_J1517.7+6525_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/461586/ltcube_448243201_448502401_4FGL_J1517.7+6525_daily_bin806.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/461586/ft2_4FGL_J1517.7+6525_daily_bin806.fits
.....................!
real 11.69
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461586/ft1_filtered_4FGL_J1517.7+6525_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/461586/ft2_4FGL_J1517.7+6525_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/461586/ltcube_448243201_448502401_4FGL_J1517.7+6525_daily_bin806.fits outfile=/scratch/kocevski/461586/expmap_448243201_448502401_4FGL_J1517.7+6525_daily_bin806.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/461586/ltcube_448243201_448502401_4FGL_J1517.7+6525_daily_bin806.fits
.....................!
real 189.69
user 185.21
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/461586/ft1_filtered_4FGL_J1517.7+6525_daily_bin806.fits scfile=/scratch/kocevski/461586/ft2_4FGL_J1517.7+6525_daily_bin806.fits outfile=/scratch/kocevski/461586/cmap_448243201_448502401_4FGL_J1517.7+6525_daily_bin806.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.59
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461586/ft1_filtered_4FGL_J1517.7+6525_daily_bin806.fits scfile=/scratch/kocevski/461586/ft2_4FGL_J1517.7+6525_daily_bin806.fits outfile=/scratch/kocevski/461586/cmap_HighResolution_448243201_448502401_4FGL_J1517.7+6525_daily_bin806.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.8793       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9009       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .53110       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.781       1.0000         .10000E-03   10000.    
     8 'Prefactor '    323.66       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.038       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.961       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.623       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48654E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.624       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.8884       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .95016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9478       1.0000         .10000E-03   10000.    
    22 'norm      '    13.198       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    102.42       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .41716       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.530       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .83265       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .89294       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=   3139.070     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     4504 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.433       -.37069E-06** at limit **
   2  Prefactor     7.8961        25.636        .26743E-06    .81261E-05
   3  Prefactor     1.9339        5.5687        .89758E-06    .68268E-03
   4  Prefactor     .10000E-03    7.9663       -.11550E-06** at limit **
   5  Prefactor     .46692        14.753       -.35845E-05    .73458E-03
   6  Prefactor     .10000E-03    10.313       -.35026E-06** at limit **
   7  Prefactor     30.793        35.879        .16214E-06    .55108E-04
   8  Prefactor     324.30        641.71        .57374E-05    .34321E-04
   9  Prefactor     31.060        42.960        .19495E-05    .35304E-04
  10  Prefactor     .10000E-03    221.08       -.27192E-05** at limit **
  11  Prefactor     .10000E-03    116.24        .20786E-05** at limit **
  12  Prefactor     17.964        30.885        .36015E-06    .11608E-04
  13  Prefactor     16.625        29.842        .33859E-06    .11694E-04
  14  Prefactor     .10016E-03    17.057        .46675E-06** at limit **
  15  Prefactor     .10000E-03    28.232        .57130E-06** at limit **
  16  Prefactor     19.622        14.591        .39233E-06   -.52981E-04
  17  Prefactor     .10000E-03    12.852       -.44385E-06** at limit **
  18  Prefactor     .10000E-03    31.748       -.51511E-06** at limit **
  19  norm          8.8873        5.3555       -.42640E-07   -.22235E-04
  20  Prefactor     .10000E-03    366.89       -.32691E-05** at limit **
  21  Prefactor     4.9470        10.790        .75342E-05    .21720E-03
  22  norm          13.198        10.523       -.18409E-05   -.13981E-04
  23  Prefactor     .10000E-03    19.517       -.29778E-06** at limit **
  24  Prefactor     102.62        264.72        .42226E-05    .33369E-04
  25  Prefactor     .10000E-03    14.772        .88692E-07** at limit **
  26  norm          .10000E-03    13.356       -.43732E-06** at limit **
  27  norm          .41688        .55184        .43372E-07    .91755E-04
  28  Prefactor     .10000E-03    5.1752       -.15344E-06** at limit **
  29  Prefactor     15.534        21.926        .25045E-06    .41014E-05
  30  Normalizat    .83269        .22824       -.25189E-06    .12906E-03
  31  Prefactor     .89297        .22311       -.10548E-05    .10259E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.89606
  Prefactor  = 1.9339
  Prefactor  = 0.0001
  Prefactor  = 0.466921
  Prefactor  = 0.0001
  Prefactor  = 30.7926
  Prefactor  = 324.297
  Prefactor  = 31.0596
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  Prefactor  = 17.9643
  Prefactor  = 16.6248
  Prefactor  = 0.000100165
  Prefactor  = 0.000100001
  Prefactor  = 19.6218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.88726
  Prefactor  = 0.000100003
  Prefactor  = 4.94704
  norm       = 13.1981
  Prefactor  = 0.0001
  Prefactor  = 102.621
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.41688
  Prefactor  = 0.0001
  Prefactor  = 15.5341
  Normalizat = 0.832689
  Prefactor  = 0.892974
 **********
 **   18 **HESSE 
 **********

 FCN=   3139.070     FROM HESSE     STATUS=OK           624 CALLS     5128 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.8961        25.625        .14285E-03   -1.5146    
   3  Prefactor     1.9339        7.4037        .16789E-03   -1.5430    
   4  Prefactor     .10000E-03    7.9702        .15442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .46692        163.45        .30974E-02   -1.5571    
   6  Prefactor     .10000E-03    10.411        .17566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.793        35.881        .72218E-04   -1.4598    
   8  Prefactor     324.30        644.48        .11301E-03   -1.2087    
   9  Prefactor     31.060        43.175        .71920E-04   -1.4593    
  10  Prefactor     .10000E-03    222.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    116.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.964        31.021        .94505E-04   -1.4860    
  13  Prefactor     16.625        29.857        .98235E-04   -1.4892    
  14  Prefactor     .10016E-03    143.49        .41231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.622        13.689        .90414E-04   -1.4822    
  17  Prefactor     .10000E-03    12.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8873        5.3549        .96327E-04   -1.5112    
  20  Prefactor     .10000E-03    369.21        .20796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9470        10.843        .90404E-03   -1.5263    
  22  norm          13.198        10.535        .11026E-03   -1.4981    
  23  Prefactor     .10000E-03    19.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     102.62        265.77        .19864E-03   -1.3678    
  25  Prefactor     .10000E-03    14.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    13.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .41688        .52273        .46095E-03   -1.5579    
  28  Prefactor     .10000E-03    5.2012        .12446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.534        21.889        .10164E-03   -1.4919    
  30  Normalizat    .83269        .27304        .23289E-03   -.98867    
  31  Prefactor     .89297        .26725        .23117E-03   -.96387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92141e-08
Minuit parameter uncertainties:
  1  0.000195444
  2  25.6605
  3  7.40724
  4  4.34229e-06
  5  17.5184
  6  8.10325e-06
  7  35.9058
  8  659.617
  9  43.2189
  10  0.00196012
  11  0.000884083
  12  31.0489
  13  29.8836
  14  0.00974409
  15  0.000316316
  16  13.691
  17  3.84075e-05
  18  0.00010353
  19  5.35523
  20  0.00211956
  21  10.8473
  22  10.5368
  23  8.41994e-05
  24  268.951
  25  3.32845e-05
  26  3.80725e-05
  27  0.522738
  28  1.65259e-06
  29  21.9007
  30  0.273496
  31  0.267643
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.035e-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:  8.930e-01  2.676e-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:  8.327e-01  2.735e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461586/likelihoodResults_448243201_448502401_4FGL_J1517.7+6525_daily_bin806.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) = 3139.07035754
delta logL = -0.000149564399635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3139.07020834
delta logL = -3.64239440387e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9479       1.0000          .0000       10.000    
     3 'Normalizat'    .83269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89297       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3139.070     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      267 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10077E-03    94.641        .18142E-02** at limit **
   2  Index         1.8917        8.4848        .50000        .10721E-04
   3  Normalizat    .83269        .95209E-02    .23289E-03    .16806E-03
   4  Prefactor     .89298        .98144E-02    .23117E-03    .20551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100769
  Index      = 1.89166
  Normalizat = 0.832688
  Prefactor  = 0.892976
 **********
 **   18 **HESSE 
 **********

 FCN=   3139.070     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10077E-03    428.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8917        5.9055        .50000       -.67087    
   3  Normalizat    .83269        .20631E-01    .46579E-04   -.98867    
   4  Prefactor     .89298        .21266E-01    .46234E-04   -.96387    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.25591e-09
Minuit parameter uncertainties:
  1  0.0365713
  2  250.303
  3  0.0206309
  4  0.0212667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461586': 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) = 3139.07020816
delta logL = -1.85745193448e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.008e-04  3.657e-02  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.892e+00  2.503e+02  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:  8.930e-01  2.127e-02  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:  8.327e-01  2.063e-02  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/461586/cmap_HighResolution_448243201_448502401_4FGL_J1517.7+6525_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.78e-08', time_completed='2021-09-12 00:01:33.806295', job_id='461586', GAL2='0.89', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631430093.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-1.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='806' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:01:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 461586: <4FGL_J1517.7+6525_daily_bin806> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin806 229.436 65.424 448243201 448502401 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

