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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin511
RA = 229.436, Dec = 65.424
tmin = 371779201, tmax = 372038401
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='460197', job_status='RUN', time_executed='2021-09-11 23:41:42.890821', time_epoch_executed='1631428902.89' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460197/ft1_4FGL_J1517.7+6525_daily_bin511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460197/ft2_4FGL_J1517.7+6525_daily_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460197/ft1_4FGL_J1517.7+6525_daily_bin511.fits outfile=/scratch/kocevski/460197/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin511.fits ra=229.436 dec=65.424 rad=12.0 tmin=371779201.0 tmax=372038401.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.40
user 3.18
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460197/ft2_4FGL_J1517.7+6525_daily_bin511.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/460197/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/460197/ft1_filtered_4FGL_J1517.7+6525_daily_bin511.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/460197/ft1_filtered_4FGL_J1517.7+6525_daily_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/460197/ft2_4FGL_J1517.7+6525_daily_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/460197/ltcube_371779201_372038401_4FGL_J1517.7+6525_daily_bin511.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/460197/ft2_4FGL_J1517.7+6525_daily_bin511.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460197/ft1_filtered_4FGL_J1517.7+6525_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/460197/ft2_4FGL_J1517.7+6525_daily_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/460197/ltcube_371779201_372038401_4FGL_J1517.7+6525_daily_bin511.fits outfile=/scratch/kocevski/460197/expmap_371779201_372038401_4FGL_J1517.7+6525_daily_bin511.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/460197/ltcube_371779201_372038401_4FGL_J1517.7+6525_daily_bin511.fits
.....................!
real 191.50
user 186.99
sys 4.18

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/460197/ft1_filtered_4FGL_J1517.7+6525_daily_bin511.fits scfile=/scratch/kocevski/460197/ft2_4FGL_J1517.7+6525_daily_bin511.fits outfile=/scratch/kocevski/460197/cmap_371779201_372038401_4FGL_J1517.7+6525_daily_bin511.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/460197/ft1_filtered_4FGL_J1517.7+6525_daily_bin511.fits scfile=/scratch/kocevski/460197/ft2_4FGL_J1517.7+6525_daily_bin511.fits outfile=/scratch/kocevski/460197/cmap_HighResolution_371779201_372038401_4FGL_J1517.7+6525_daily_bin511.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460197/ft1_filtered_4FGL_J1517.7+6525_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/460197/ft2_4FGL_J1517.7+6525_daily_bin511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460197/Model_4FGL_J1517.7+6525_daily_bin511.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/460197/ft1_filtered_4FGL_J1517.7+6525_daily_bin511.fits....................!
real 55.27
user 54.00
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.525       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11648E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0479       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0919       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.371       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.504       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7083       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18600E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.3989       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.895       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .54399E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    21.274       1.0000         .10000E-03   10000.    
    27 'norm      '    2.9148       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.024       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89284       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .80222       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=   6477.651     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4207 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.031        .10022E-06** at limit **
   2  Prefactor     39.529        31.750       -.24296E-05   -.27712E-05
   3  Prefactor     .10000E-03    .85321        .32695E-07** at limit **
   4  Prefactor     .10000E-03    7.0499        .93418E-07** at limit **
   5  Prefactor     10.011        6.9642       -.30697E-06   -.55974E-05
   6  Prefactor     .10000E-03    3.4170        .20732E-07** at limit **
   7  Prefactor     .10000E-03    16.964        .90671E-07** at limit **
   8  Prefactor     .10001E-03    6626.2       -.45119E-03** at limit **
   9  Prefactor     42.582        29.293        .48927E-05    .26667E-04
  10  Prefactor     5.0437        50.860        .80736E-05   -.13770E-04
  11  Prefactor     .10000E-03    29.381       -.19975E-05** at limit **
  12  Prefactor     .10000E-03    4.8635        .20869E-07** at limit **
  13  Prefactor     8.0869        19.432       -.13472E-05   -.26207E-04
  14  Prefactor     .10000E-03    3.4742       -.27374E-07** at limit **
  15  Prefactor     .10000E-03    13.155        .27536E-07** at limit **
  16  Prefactor     10.371        6.9446       -.35619E-07   -.89571E-04
  17  Prefactor     .10000E-03    5.5509        .11494E-07** at limit **
  18  Prefactor     38.499        24.622        .16753E-05   -.33689E-06
  19  norm          3.7082        2.3044       -.36562E-08   -.95303E-04
  20  Prefactor     .10000E-03    29.765        .13992E-05** at limit **
  21  Prefactor     .10000E-03    5.8863        .92557E-07** at limit **
  22  norm          6.4015        6.0248       -.57720E-07   -.12223E-03
  23  Prefactor     16.895        20.640        .20918E-06   -.52893E-05
  24  Prefactor     .10000E-03    47.468        .21058E-06** at limit **
  25  Prefactor     .10011E-03    29.220        .50771E-06** at limit **
  26  norm          21.274        9.0473        .64796E-07   -.26141E-04
  27  norm          2.9146        .88751       -.22032E-08   -.31048E-03
  28  Prefactor     .10000E-03    3.5004        .17621E-07** at limit **
  29  Prefactor     10.024        10.161       -.12117E-06    .19085E-04
  30  Normalizat    .89276        .15189       -.54175E-06    .10122E-03
  31  Prefactor     .80232        .15133        .55265E-07    .48591E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.5289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 42.5822
  Prefactor  = 5.04372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.08686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3712
  Prefactor  = 0.0001
  Prefactor  = 38.4989
  norm       = 3.70816
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.40151
  Prefactor  = 16.8948
  Prefactor  = 0.0001
  Prefactor  = 0.000100113
  norm       = 21.2738
  norm       = 2.91461
  Prefactor  = 0.0001
  Prefactor  = 10.0242
  Normalizat = 0.892759
  Prefactor  = 0.802319
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.651     FROM HESSE     STATUS=OK           638 CALLS     4845 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.529        31.757        .63755E-04   -1.4450    
   3  Prefactor     .10000E-03    .85479        .72579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.011        6.9681        .12664E-03   -1.5075    
   6  Prefactor     .10000E-03    3.4393        .14527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    6626.0        .20659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.582        29.434        .61428E-04   -1.4402    
  10  Prefactor     5.0437        50.884        .17897E-03   -1.5259    
  11  Prefactor     .10000E-03    29.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8707        .17335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.0869        19.450        .14094E-03   -1.5139    
  14  Prefactor     .10000E-03    3.4808        .14645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.371        6.9735        .12442E-03   -1.5064    
  17  Prefactor     .10000E-03    5.5678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     38.499        24.621        .64592E-04   -1.4466    
  19  norm          3.7082        2.3036        .93347E-04   -1.5323    
  20  Prefactor     .10000E-03    29.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.4803        .56278E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.4015        6.0333        .15867E-03   -1.5202    
  23  Prefactor     16.895        20.634        .97441E-04   -1.4886    
  24  Prefactor     .10000E-03    47.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10011E-03    31.681        .12608       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          21.274        9.0474        .86840E-04   -1.4785    
  27  norm          2.9146        .88965        .39062E-04   -1.5367    
  28  Prefactor     .10000E-03    3.5289        .14697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.024        10.169        .12656E-03   -1.5075    
  30  Normalizat    .89276        .18002        .22342E-03   -.96715    
  31  Prefactor     .80232        .17868        .23980E-03   -.99643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44604e-11
Minuit parameter uncertainties:
  1  1.20263e-05
  2  31.771
  3  1.18585e-06
  4  2.24054e-05
  5  6.96867
  6  3.55329e-06
  7  1.01199e-05
  8  0.0105743
  9  29.4436
  10  32.0754
  11  0.000181693
  12  2.31241e-07
  13  19.4651
  14  3.64188e-06
  15  6.64478e-07
  16  6.97405
  17  5.99496e-06
  18  24.6273
  19  2.3037
  20  1.6481e-06
  21  0.000211187
  22  6.03389
  23  20.643
  24  3.68327e-06
  25  0.00378206
  26  9.04797
  27  0.889656
  28  1.56616e-06
  29  10.1706
  30  0.180138
  31  0.178805
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  3.850e+01  2.463e+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:  8.023e-01  1.788e-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.928e-01  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.46
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 1.46e-08
Energy Flux (Fixed Index): 2.60e-05 +/- 1.67e-05

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) = 6477.29289393
delta logL = 0.357699704309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6477.24291289
delta logL = 0.40768073522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.702       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4203       1.0000          .0000       10.000    
     3 'Normalizat'    .89978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80143       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=   6477.243     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.730        32.487        .29028E-03   -.18799E-04
   2  Index         1.4198        .44425        .85371E-02    .11286E-04
   3  Normalizat    .90002        .17024        .22260E-03    .22012E-04
   4  Prefactor     .80133        .17505        .23998E-03    .10830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.73
  Index      = 1.41983
  Normalizat = 0.900022
  Prefactor  = 0.80133
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.243     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.730        32.503        .11611E-04   -1.4325    
   2  Index         1.4198        .44454        .34148E-03   -.79811    
   3  Normalizat    .90002        .17040        .89039E-05   -.96459    
   4  Prefactor     .80133        .17523        .95992E-05   -.99679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58943e-11
Minuit parameter uncertainties:
  1  32.5151
  2  0.445754
  3  0.170506
  4  0.175356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460197': 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) = 6477.24290984
delta logL = 0.40768378856

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  4.773e+01  3.252e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.420e+00  4.458e-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.013e-01  1.754e-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.000e-01  1.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.27
Ra Dec: 229.436 65.424
Photon Index (Free Index): 1.42 +/- 0.45
Photon Flux (Free Index): 1.35e-08 +/- 1.28e-08
Energy Flux (Free Index): 5.60e-05 +/- 6.00e-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/460197/cmap_HighResolution_371779201_372038401_4FGL_J1517.7+6525_daily_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='5.60e-05', photon_flux_error='1.46e-08', dlogl='4.08e-01', energy_flux='2.60e-05', photon_flux2='1.35e-08', job_status='DONE', time_completed='2021-09-11 23:56:46.742411', photon_index_error2='0.45', photon_index2='1.42', ts='10.46', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='6.00e-05', EG='0.89', time_epoch_completed='1631429806.74', return_code='0', job_id='460197', GAL2='0.80', EG2='0.90', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='1.28e-08', ts2='11.27', photon_index='1.82' WHERE bin_id='511' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:56:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 460197: <4FGL_J1517.7+6525_daily_bin511> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin511> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 23:41:23 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:41:25 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:41:25 2021
Terminated at Sat Sep 11 23:56:47 2021
Results reported at Sat Sep 11 23:56:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin511 229.436 65.424 371779201 372038401 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 :                                   890.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

