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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin869
RA = 229.436, Dec = 65.424
tmin = 464572801, tmax = 464832001
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='461677', job_status='RUN', time_executed='2021-09-11 23:46:30.023316', time_epoch_executed='1631429190.02' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='869'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461677/ft1_4FGL_J1517.7+6525_daily_bin869.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461677/ft2_4FGL_J1517.7+6525_daily_bin869.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461677/ft1_4FGL_J1517.7+6525_daily_bin869.fits outfile=/scratch/kocevski/461677/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin869.fits ra=229.436 dec=65.424 rad=12.0 tmin=464572801.0 tmax=464832001.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 3.35
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461677/ft2_4FGL_J1517.7+6525_daily_bin869.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/461677/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin869.fits evtable="EVENTS" outfile="/scratch/kocevski/461677/ft1_filtered_4FGL_J1517.7+6525_daily_bin869.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461677/ft1_filtered_4FGL_J1517.7+6525_daily_bin869.fits" evtable="EVENTS" scfile=/scratch/kocevski/461677/ft2_4FGL_J1517.7+6525_daily_bin869.fits sctable="SC_DATA" outfile=/scratch/kocevski/461677/ltcube_464572801_464832001_4FGL_J1517.7+6525_daily_bin869.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/461677/ft2_4FGL_J1517.7+6525_daily_bin869.fits
.....................!
real 12.16
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461677/ft1_filtered_4FGL_J1517.7+6525_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/461677/ft2_4FGL_J1517.7+6525_daily_bin869.fits sctable="SC_DATA" expcube=/scratch/kocevski/461677/ltcube_464572801_464832001_4FGL_J1517.7+6525_daily_bin869.fits outfile=/scratch/kocevski/461677/expmap_464572801_464832001_4FGL_J1517.7+6525_daily_bin869.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/461677/ltcube_464572801_464832001_4FGL_J1517.7+6525_daily_bin869.fits
.....................!
real 190.33
user 185.16
sys 4.84

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/461677/ft1_filtered_4FGL_J1517.7+6525_daily_bin869.fits scfile=/scratch/kocevski/461677/ft2_4FGL_J1517.7+6525_daily_bin869.fits outfile=/scratch/kocevski/461677/cmap_464572801_464832001_4FGL_J1517.7+6525_daily_bin869.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461677/ft1_filtered_4FGL_J1517.7+6525_daily_bin869.fits scfile=/scratch/kocevski/461677/ft2_4FGL_J1517.7+6525_daily_bin869.fits outfile=/scratch/kocevski/461677/cmap_HighResolution_464572801_464832001_4FGL_J1517.7+6525_daily_bin869.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/461677/ft1_filtered_4FGL_J1517.7+6525_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/461677/ft2_4FGL_J1517.7+6525_daily_bin869.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461677/Model_4FGL_J1517.7+6525_daily_bin869.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/461677/ft1_filtered_4FGL_J1517.7+6525_daily_bin869.fits....................!
real 51.32
user 50.03
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .70231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .95389       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    309.78       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.069       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.249       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.019       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.511       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9826       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.8710       1.0000         .10000E-03   10000.    
    20 'Prefactor '    77.129       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0269       1.0000         .10000E-03   10000.    
    22 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.450       1.0000         .10000E-03   10000.    
    26 'norm      '    .39953       1.0000         .10000E-03   10000.    
    27 'norm      '    .67938       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.4157       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89340       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .88271       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=   5883.011     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     4131 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.590       -.26484E-06** at limit **
   2  Prefactor     .10000E-03    12.175       -.83764E-07** at limit **
   3  Prefactor     .70392        2.9943        .43044E-06   -.10710E-03
   4  Prefactor     .94872        11.124        .31463E-06   -.29251E-04
   5  Prefactor     .10000E-03    5.8343       -.16717E-06** at limit **
   6  Prefactor     .10000E-03    4.6468        .76603E-07** at limit **
   7  Prefactor     .10000E-03    10.300       -.14869E-07** at limit **
   8  Prefactor     309.55        432.58       -.16947E-05   -.35517E-04
   9  Prefactor     29.069        21.014        .10491E-06   -.99846E-05
  10  Prefactor     .10000E-03    51.104        .73365E-06** at limit **
  11  Prefactor     19.249        20.890       -.16592E-06   -.34945E-05
  12  Prefactor     .10000E-03    6.0686        .16015E-07** at limit **
  13  Prefactor     18.020        22.177        .29135E-06   -.10150E-04
  14  Prefactor     .10000E-03    3.0354       -.15181E-07** at limit **
  15  Prefactor     21.494        39.493       -.93462E-07   -.49541E-04
  16  Prefactor     2.9836        6.2924        .73421E-06   -.12781E-04
  17  Prefactor     .10000E-03    14.652        .52378E-06** at limit **
  18  Prefactor     .10000E-03    11.270       -.47526E-07** at limit **
  19  norm          3.8705        2.8166        .98817E-06    .23562E-04
  20  Prefactor     77.127        75.313       -.86696E-06   -.14912E-04
  21  Prefactor     8.0268        7.0242        .14569E-05    .14730E-04
  22  norm          .10000E-03    2.9012       -.14916E-06** at limit **
  23  Prefactor     .10000E-03    32.276        .54757E-07** at limit **
  24  Prefactor     .10000E-03    70.745       -.54868E-06** at limit **
  25  Prefactor     24.443        30.852        .64491E-08   -.34651E-04
  26  norm          .35636        5.9850        .96075E-06   -.28511E-03
  27  norm          .67917        .63933        .56481E-07    .27458E-04
  28  Prefactor     9.4180        8.8449        .60796E-07   -.83305E-04
  29  Prefactor     .10000E-03    9.8450        .13173E-06** at limit **
  30  Normalizat    .89316        .15813       -.11629E-05   -.13272E-03
  31  Prefactor     .88303        .15436        .71187E-07   -.16940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.703923
  Prefactor  = 0.948722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 309.553
  Prefactor  = 29.0694
  Prefactor  = 0.000100001
  Prefactor  = 19.2492
  Prefactor  = 0.0001
  Prefactor  = 18.0199
  Prefactor  = 0.0001
  Prefactor  = 21.4941
  Prefactor  = 2.98356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.8705
  Prefactor  = 77.1266
  Prefactor  = 8.02678
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.4428
  norm       = 0.356359
  norm       = 0.679172
  Prefactor  = 9.41804
  Prefactor  = 0.0001
  Normalizat = 0.893159
  Prefactor  = 0.883028
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.011     FROM HESSE     STATUS=OK           626 CALLS     4757 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .70392        5.1898        .24010E-02   -1.5540    
   4  Prefactor     .94872        38.933        .47568E-02   -1.5513    
   5  Prefactor     .10000E-03    5.8544        .18015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6858        .16143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     309.55        432.38        .11543E-03   -1.2171    
   9  Prefactor     29.069        21.037        .74309E-04   -1.4629    
  10  Prefactor     .10000E-03    51.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.249        20.890        .45645E-03   -1.4830    
  12  Prefactor     .10000E-03    6.0730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.020        22.203        .94354E-04   -1.4859    
  14  Prefactor     .10000E-03    3.0408        .13047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.494        39.503        .86361E-04   -1.4780    
  16  Prefactor     2.9836        6.2915        .23508E-03   -1.5362    
  17  Prefactor     .10000E-03    14.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8705        2.8169        .52374E-03   -1.5314    
  20  Prefactor     77.127        75.483        .45724E-04   -1.3949    
  21  Prefactor     8.0268        7.0266        .70759E-03   -1.5141    
  22  norm          .10000E-03    2.9195        .12759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    70.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.443        30.849        .81011E-04   -1.4719    
  26  norm          .35636        22.218        .34972E-02   -1.5589    
  27  norm          .67917        .60641        .55063E-03   -1.5543    
  28  Prefactor     9.4180        8.7495        .13060E-03   -1.5094    
  29  Prefactor     .10000E-03    9.8769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .89316        .18455        .22088E-03   -.96701    
  31  Prefactor     .88303        .18164        .22840E-03   -.96737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14494e-08
Minuit parameter uncertainties:
  1  0.000119789
  2  2.25162e-05
  3  3.82288
  4  12.1629
  5  2.43126e-06
  6  6.02863e-06
  7  7.11809e-07
  8  437
  9  21.0424
  10  0.00045865
  11  20.8978
  12  2.99944e-06
  13  22.2127
  14  1.58564e-06
  15  39.5514
  16  6.29287
  17  9.81439e-05
  18  3.22609e-05
  19  2.81698
  20  75.5771
  21  7.02732
  22  1.57955e-05
  23  1.36548e-05
  24  0.000508756
  25  30.8691
  26  5.62905
  27  0.606416
  28  8.75067
  29  3.29488e-05
  30  0.184685
  31  0.181767
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.226e-05  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.830e-01  1.818e-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.932e-01  1.847e-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: 3.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461677/likelihoodResults_464572801_464832001_4FGL_J1517.7+6525_daily_bin869.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) = 5883.01107401
delta logL = -0.000422101017648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5883.01065191
delta logL = 1.97360350285e-10

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 'Index     '    1.8171       1.0000          .0000       10.000    
     3 'Normalizat'    .89316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88303       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=   5883.011     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    263.17        .90712E-02** at limit **
   2  Index         1.8181        8.2571        .50000       -.89240E-06
   3  Normalizat    .89316        .18630E-01    .44814E-01    .98594E-05
   4  Prefactor     .88303        .19272E-01    .44788E-01    .11480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81815
  Normalizat = 0.893159
  Prefactor  = 0.883029
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.011     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    487.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8181        5.5790        .50000       -.68978    
   3  Normalizat    .89316        .26064E-01    .22088E-03   -.96701    
   4  Prefactor     .88303        .26964E-01    .22840E-03   -.96737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.5677e-11
Minuit parameter uncertainties:
  1  9.81194e-07
  2  25.6273
  3  0.026064
  4  0.026964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461677': 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) = 5883.01065191
delta logL = 3.91992216464e-10

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  9.812e-07  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.818e+00  2.563e+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:  8.830e-01  2.696e-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.932e-01  2.606e-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/461677/cmap_HighResolution_464572801_464832001_4FGL_J1517.7+6525_daily_bin869.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-03', job_status='DONE', photon_flux_upper_limit='3.33e-08', time_completed='2021-09-12 00:02:10.976019', job_id='461677', GAL2='0.88', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631430130.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.92e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='869' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 461677: <4FGL_J1517.7+6525_daily_bin869> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin869 229.436 65.424 464572801 464832001 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 :                                   935.46 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             319.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            958 sec.

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

