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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin613
RA = 154.473, Dec = 7.2638
tmin = 398217601, tmax = 398476801
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='780792', job_status='RUN', time_executed='2021-09-01 16:20:57.909272', time_epoch_executed='1630538457.91' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780792

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780792/ft1_4FGL_J1017.8+0715_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780792/ft2_4FGL_J1017.8+0715_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780792/ft1_4FGL_J1017.8+0715_daily_bin613.fits outfile=/scratch/kocevski/780792/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin613.fits ra=154.473 dec=7.2638 rad=12.0 tmin=398217601.0 tmax=398476801.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.59
user 6.27
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/780792/ft2_4FGL_J1017.8+0715_daily_bin613.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/780792/ft2_4FGL_J1017.8+0715_daily_bin613.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/780792/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin613.fits evtable="EVENTS" outfile="/scratch/kocevski/780792/ft1_filtered_4FGL_J1017.8+0715_daily_bin613.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.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780792/ft1_filtered_4FGL_J1017.8+0715_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/780792/ft2_4FGL_J1017.8+0715_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/780792/ltcube_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.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/780792/ft2_4FGL_J1017.8+0715_daily_bin613.fits
.....................!
real 15.12
user 14.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780792/ft1_filtered_4FGL_J1017.8+0715_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/780792/ft2_4FGL_J1017.8+0715_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/780792/ltcube_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.fits outfile=/scratch/kocevski/780792/expmap_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.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/780792/ltcube_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.fits
.....................!
real 193.03
user 187.34
sys 5.17

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1017.8+0715 @ 154.473 7.2638

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/780792/ft1_filtered_4FGL_J1017.8+0715_daily_bin613.fits scfile=/scratch/kocevski/780792/ft2_4FGL_J1017.8+0715_daily_bin613.fits outfile=/scratch/kocevski/780792/cmap_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.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=154.473 yref=7.2638 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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780792/ft1_filtered_4FGL_J1017.8+0715_daily_bin613.fits scfile=/scratch/kocevski/780792/ft2_4FGL_J1017.8+0715_daily_bin613.fits outfile=/scratch/kocevski/780792/cmap_HighResolution_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.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=154.473 yref=7.2638 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/780792/ft1_filtered_4FGL_J1017.8+0715_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/780792/ft2_4FGL_J1017.8+0715_daily_bin613.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/780792/Model_4FGL_J1017.8+0715_daily_bin613.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/780792/ft1_filtered_4FGL_J1017.8+0715_daily_bin613.fits.....................!
real 52.72
user 51.27
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/780792/ft1_filtered_4FGL_J1017.8+0715_daily_bin613.fits', '/scratch/kocevski/780792/ft2_4FGL_J1017.8+0715_daily_bin613.fits', expMap='/scratch/kocevski/780792/expmap_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.fits', expCube='/scratch/kocevski/780792/ltcube_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/780792/Model_4FGL_J1017.8+0715_daily_bin613.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/780792/ft1_filtered_4FGL_J1017.8+0715_daily_bin613.fits
Spacecraft file(s): /scratch/kocevski/780792/ft2_4FGL_J1017.8+0715_daily_bin613.fits
Exposure map: /scratch/kocevski/780792/expmap_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.fits
Exposure cube: /scratch/kocevski/780792/ltcube_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/780792/Model_4FGL_J1017.8+0715_daily_bin613.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) = 4981.87812558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8431       1.0000         .10000E-03   10000.    
     2 'norm      '    .41983E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.379       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.405       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    197.67       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1633       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5934       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0238       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6810       1.0000         .10000E-03   10000.    
    17 'norm      '    .80557       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0493       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4981.857     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2272 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8428        1.7779       -.15727E-06   -.48476E-05
   2  norm          .37810E-01    .42634       -.39495E-06    .43907E-03
   3  Prefactor     .10000E-03    3.8687        .11708E-06** at limit **
   4  Prefactor     45.381        58.595        .18482E-04    .46361E-04
   5  Prefactor     32.332        64.393       -.36243E-04    .13464E-04
   6  norm          .10000E-03    5.9104        .18288E-06** at limit **
   7  Prefactor     2.4444        8.4980        .35842E-05   -.14458E-03
   8  Prefactor     197.60        100.18       -.34158E-04    .10783E-04
   9  Prefactor     5.9843        109.20        .14351E-04   -.45888E-05
  10  Prefactor     .10000E-03    67.919        .87749E-06** at limit **
  11  Prefactor     .10000E-03    19.766        .50201E-06** at limit **
  12  norm          1.5935        1.6398       -.13980E-06   -.25173E-03
  13  Prefactor     .10000E-03    4.9881       -.53262E-07** at limit **
  14  Prefactor     8.0232        4.4829        .25893E-06    .37228E-04
  15  Prefactor     4.2770        4.5566        .84479E-06    .21082E-02
  16  Prefactor     8.6807        8.5220       -.19989E-06    .87860E-05
  17  norm          .80560        .75492       -.12400E-06   -.36474E-03
  18  Prefactor     .10000E-03    10.923       -.80551E-07** at limit **
  19  Prefactor     .10000E-03    13.435       -.13996E-06** at limit **
  20  Normalizat    1.0492        .25183        .79841E-05   -.43708E-04
  21  Prefactor     1.2944        .20572       -.12191E-05    .34558E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.84284
  norm       = 0.03781
  Prefactor  = 0.0001
  Prefactor  = 45.3807
  Prefactor  = 32.3319
  norm       = 0.0001
  Prefactor  = 2.44438
  Prefactor  = 197.6
  Prefactor  = 5.98427
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 1.59345
  Prefactor  = 0.0001
  Prefactor  = 8.02318
  Prefactor  = 4.27701
  Prefactor  = 8.68066
  norm       = 0.805601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04922
  Prefactor  = 1.29441
 **********
 **   18 **HESSE 
 **********

 FCN=   4981.857     FROM HESSE     STATUS=OK           319 CALLS     2591 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8428        1.7772        .70870E-04   -1.5371    
   2  norm          .37810E-01    4.0632        .87044E-03   -1.5669    
   3  Prefactor     .10000E-03    3.8699        .13559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.381        58.666        .59518E-04   -1.4360    
   5  Prefactor     32.332        64.249        .70390E-04   -1.4570    
   6  norm          .10000E-03    5.9116        .16760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4444        8.4312        .26088E-03   -1.5395    
   8  Prefactor     197.60        99.852        .14368E-03   -1.2887    
   9  Prefactor     5.9843        109.13        .16171E-03   -1.5219    
  10  Prefactor     .10000E-03    67.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5935        1.6274        .87929E-04   -1.5456    
  13  Prefactor     .10000E-03    5.0769        .15392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0232        4.4835        .10658E-03   -1.5141    
  15  Prefactor     4.2770        4.6005        .76346E-03   -1.5294    
  16  Prefactor     8.6807        8.5056        .13605E-03   -1.5119    
  17  norm          .80560        .73371        .56977E-04   -1.5528    
  18  Prefactor     .10000E-03    10.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0492        .29984        .30990E-03   -.91399    
  21  Prefactor     1.2944        .24593        .24302E-03   -.83473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92572e-09
Minuit parameter uncertainties:
  1  1.77724
  2  0.782925
  3  1.87548e-05
  4  58.741
  5  64.387
  6  4.00795e-05
  7  8.43527
  8  99.9377
  9  51.219
  10  0.000813308
  11  0.000284085
  12  1.62747
  13  7.13053e-06
  14  4.48372
  15  4.60089
  16  8.50674
  17  0.733714
  18  2.06971e-05
  19  1.95926e-05
  20  0.300327
  21  0.246153
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.976e+02  9.994e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.294e+00  2.462e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.049e+00  3.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.61
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 8.44e-08
Energy Flux (Fixed Index): 3.92e-05 +/- 1.98e-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) = 4981.77508353
delta logL = 0.0814549289462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4981.76914527
delta logL = 0.0873931873612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    164.20       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9610       1.0000          .0000       10.000    
     3 'Normalizat'    1.0237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3115       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   4981.769     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      294 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     164.33        126.64        .15738E-03    .96798E-05
   2  Index         2.9619        .60890        .48888E-02    .35402E-03
   3  Normalizat    1.0237        .29660        .31319E-03    .82437E-04
   4  Prefactor     1.3111        .24883        .24174E-03   -.72085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 164.334
  Index      = 2.96188
  Normalizat = 1.02367
  Prefactor  = 1.31114
 **********
 **   18 **HESSE 
 **********

 FCN=   4981.769     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     164.33        120.32        .62952E-05   -1.3137    
   2  Index         2.9619        .57800        .97776E-03   -.41985    
   3  Normalizat    1.0237        .29669        .12528E-04   -.92241    
   4  Prefactor     1.3111        .24881        .48348E-04   -.82976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71994e-10
Minuit parameter uncertainties:
  1  120.495
  2  0.579556
  3  0.29717
  4  0.24904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780792': 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) = 4981.76913506
delta logL = 0.0874034032377

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.643e+02  1.205e+02  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.962e+00  5.796e-01  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.311e+00  2.490e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.024e+00  2.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.84
Ra Dec: 154.473 7.264
Photon Index (Free Index): 2.96 +/- 0.58
Photon Flux (Free Index): 1.86e-07 +/- 9.80e-08
Energy Flux (Free Index): 3.79e-05 +/- 1.86e-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/780792/cmap_HighResolution_398217601_398476801_4FGL_J1017.8+0715_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='3.79e-05', photon_flux_error='8.44e-08', dlogl='8.74e-02', energy_flux='3.92e-05', photon_flux2='1.86e-07', job_status='DONE', time_completed='2021-09-01 16:29:48.799815', photon_index_error2='0.58', photon_index2='2.96', ts='6.61', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.05', time_epoch_completed='1630538988.8', return_code='0', job_id='780792', GAL2='1.31', EG2='1.02', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='9.80e-08', ts2='6.84', photon_index='2.73' WHERE bin_id='613' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:29:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 780792: <4FGL_J1017.8+0715_daily_bin613> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin613> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 16:15:43 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:17:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:17:43 2021
Terminated at Wed Sep  1 16:29:49 2021
Results reported at Wed Sep  1 16:29:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin613 154.473 7.2638 398217601 398476801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1017.8+0715 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   529.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            846 sec.

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

