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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin557
RA = 154.473, Dec = 7.2638
tmin = 383702401, tmax = 383961601
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='780708', job_status='RUN', time_executed='2021-09-01 16:17:21.112231', time_epoch_executed='1630538241.11' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780708

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780708/ft1_4FGL_J1017.8+0715_daily_bin557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780708/ft2_4FGL_J1017.8+0715_daily_bin557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780708/ft1_4FGL_J1017.8+0715_daily_bin557.fits outfile=/scratch/kocevski/780708/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin557.fits ra=154.473 dec=7.2638 rad=12.0 tmin=383702401.0 tmax=383961601.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 4.62
user 4.37
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780708/ft1_filtered_4FGL_J1017.8+0715_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/780708/ft2_4FGL_J1017.8+0715_daily_bin557.fits sctable="SC_DATA" expcube=/scratch/kocevski/780708/ltcube_383702401_383961601_4FGL_J1017.8+0715_daily_bin557.fits outfile=/scratch/kocevski/780708/expmap_383702401_383961601_4FGL_J1017.8+0715_daily_bin557.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/780708/ltcube_383702401_383961601_4FGL_J1017.8+0715_daily_bin557.fits
.....................!
real 191.72
user 186.76
sys 4.27

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/780708/ft1_filtered_4FGL_J1017.8+0715_daily_bin557.fits scfile=/scratch/kocevski/780708/ft2_4FGL_J1017.8+0715_daily_bin557.fits outfile=/scratch/kocevski/780708/cmap_383702401_383961601_4FGL_J1017.8+0715_daily_bin557.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780708/ft1_filtered_4FGL_J1017.8+0715_daily_bin557.fits scfile=/scratch/kocevski/780708/ft2_4FGL_J1017.8+0715_daily_bin557.fits outfile=/scratch/kocevski/780708/cmap_HighResolution_383702401_383961601_4FGL_J1017.8+0715_daily_bin557.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.56
user 0.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/780708/ft1_filtered_4FGL_J1017.8+0715_daily_bin557.fits', '/scratch/kocevski/780708/ft2_4FGL_J1017.8+0715_daily_bin557.fits', expMap='/scratch/kocevski/780708/expmap_383702401_383961601_4FGL_J1017.8+0715_daily_bin557.fits', expCube='/scratch/kocevski/780708/ltcube_383702401_383961601_4FGL_J1017.8+0715_daily_bin557.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/780708/Model_4FGL_J1017.8+0715_daily_bin557.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/780708/ft1_filtered_4FGL_J1017.8+0715_daily_bin557.fits
Spacecraft file(s): /scratch/kocevski/780708/ft2_4FGL_J1017.8+0715_daily_bin557.fits
Exposure map: /scratch/kocevski/780708/expmap_383702401_383961601_4FGL_J1017.8+0715_daily_bin557.fits
Exposure cube: /scratch/kocevski/780708/ltcube_383702401_383961601_4FGL_J1017.8+0715_daily_bin557.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/780708/Model_4FGL_J1017.8+0715_daily_bin557.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) = 5166.43619957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7165       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8748       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6143       1.0000         .10000E-03   10000.    
     6 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0726       1.0000         .10000E-03   10000.    
     8 'Prefactor '    87.928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.362       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2612       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5491       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13975       1.0000         .10000E-03   10000.    
    17 'norm      '    .87619       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.883       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0494       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84108       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=   5166.429     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2235 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7163        1.9414       -.22063E-08   -.50585E-05
   2  norm          1.4015        .73843       -.89446E-08   -.21280E-03
   3  Prefactor     30.856        14.812        .45454E-06    .25140E-03
   4  Prefactor     7.8740        25.110        .32316E-06    .15976E-04
   5  Prefactor     3.6136        37.698        .72397E-06    .52259E-05
   6  norm          .10000E-03    8.1712       -.16691E-06** at limit **
   7  Prefactor     5.0647        10.066        .54242E-05   -.94551E-03
   8  Prefactor     87.861        58.151       -.72875E-05   -.72101E-03
   9  Prefactor     .10000E-03    36.799        .30663E-07** at limit **
  10  Prefactor     .10001E-03    445.90       -.33088E-05** at limit **
  11  Prefactor     16.350        18.422       -.14097E-05   -.76426E-04
  12  norm          1.2612        1.1379        .12461E-06   -.74337E-03
  13  Prefactor     .10000E-03    1.9172       -.22135E-07** at limit **
  14  Prefactor     4.5490        3.5701        .15991E-07   -.14226E-03
  15  Prefactor     .10000E-03    3.6002        .23428E-07** at limit **
  16  Prefactor     .13656        7.6321        .50875E-06   -.22358E-03
  17  norm          .87612        .56587       -.16826E-07   -.16309E-03
  18  Prefactor     .10000E-03    9.4526        .34271E-07** at limit **
  19  Prefactor     12.885        15.552        .75957E-06    .20979E-03
  20  Normalizat    1.0494        .21020        .78987E-06   -.89577E-04
  21  Prefactor     .84104        .17770       -.65430E-06    .41655E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 7.7163
  norm       = 1.40152
  Prefactor  = 30.8565
  Prefactor  = 7.87403
  Prefactor  = 3.61357
  norm       = 0.0001
  Prefactor  = 5.06471
  Prefactor  = 87.8608
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 16.35
  norm       = 1.26119
  Prefactor  = 0.0001
  Prefactor  = 4.549
  Prefactor  = 0.0001
  Prefactor  = 0.136558
  norm       = 0.876115
  Prefactor  = 0.0001
  Prefactor  = 12.8854
  Normalizat = 1.04943
  Prefactor  = 0.841038
 **********
 **   18 **HESSE 
 **********

 FCN=   5166.429     FROM HESSE     STATUS=OK           327 CALLS     2562 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7163        1.9449        .47968E-04   -1.5152    
   2  norm          1.4015        .72962        .43056E-04   -1.5471    
   3  Prefactor     30.856        15.006        .72131E-04   -1.4596    
   4  Prefactor     7.8740        25.102        .14289E-03   -1.5147    
   5  Prefactor     3.6136        37.699        .21253E-03   -1.5328    
   6  norm          .10000E-03    8.1778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0647        10.867        .89263E-03   -1.5258    
   8  Prefactor     87.861        62.787        .42847E-04   -1.3831    
   9  Prefactor     .10000E-03    36.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    459.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.350        18.682        .99015E-04   -1.4899    
  12  norm          1.2612        1.1408        .19855E-03   -1.5483    
  13  Prefactor     .10000E-03    1.9217        .97195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5490        3.5673        .11287E-03   -1.5281    
  15  Prefactor     .10000E-03    3.6234        .13315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .13656        9.2441        .54277E-01   -1.5634    
  17  norm          .87612        .56618        .41933E-04   -1.5521    
  18  Prefactor     .10000E-03    9.5685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.885        15.611        .11160E-03   -1.4990    
  20  Normalizat    1.0494        .24542        .25550E-03   -.91392    
  21  Prefactor     .84104        .20674        .24470E-03   -.98233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87254e-09
Minuit parameter uncertainties:
  1  1.9449
  2  0.729621
  3  15.0081
  4  25.1361
  5  23.3618
  6  1.9288e-05
  7  10.8716
  8  62.835
  9  7.68447e-06
  10  0.00507567
  11  18.689
  12  1.14086
  13  2.52817e-06
  14  3.56742
  15  2.72946e-06
  16  2.24662
  17  0.56618
  18  5.32706e-06
  19  15.6159
  20  0.245688
  21  0.206932
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  8.786e+01  6.283e+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:  8.410e-01  2.069e-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  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 7.43e-08 +/- 5.31e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.25e-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) = 5166.03215249
delta logL = 0.3965455403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5165.82086913
delta logL = 0.607828900248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    145.52       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9332       1.0000          .0000       10.000    
     3 'Normalizat'    1.0718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82470       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=   5165.821     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      266 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     145.44        95.224        .16702E-03    .46695E-04
   2  Index         1.9339        .55882        .80084E-02    .70760E-04
   3  Normalizat    1.0720        .23562        .25329E-03    .10645E-02
   4  Prefactor     .82458        .20381        .24678E-03    .96214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 145.444
  Index      = 1.93389
  Normalizat = 1.07202
  Prefactor  = 0.824578
 **********
 **   18 **HESSE 
 **********

 FCN=   5165.821     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     145.44        95.714        .33403E-04   -1.3290    
   2  Index         1.9339        .56194        .32033E-03   -.66013    
   3  Normalizat    1.0720        .23587        .50658E-04   -.90655    
   4  Prefactor     .82458        .20399        .49356E-04   -.98829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53695e-09
Minuit parameter uncertainties:
  1  95.8163
  2  0.56385
  3  0.236097
  4  0.204178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780708': 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) = 5165.82086765
delta logL = 0.607830377739

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.454e+02  9.582e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.934e+00  5.639e-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:  8.246e-01  2.042e-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.072e+00  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.25
Ra Dec: 154.473 7.264
Photon Index (Free Index): 1.93 +/- 0.56
Photon Flux (Free Index): 5.30e-08 +/- 4.44e-08
Energy Flux (Free Index): 4.34e-05 +/- 5.07e-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/780708/cmap_HighResolution_383702401_383961601_4FGL_J1017.8+0715_daily_bin557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.43e-08', energy_flux2='4.34e-05', photon_flux_error='5.31e-08', dlogl='6.08e-01', energy_flux='1.74e-05', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-09-01 16:25:59.462975', photon_index_error2='0.56', photon_index2='1.93', ts='4.03', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='5.07e-05', EG='1.05', time_epoch_completed='1630538759.46', return_code='0', job_id='780708', GAL2='0.82', EG2='1.07', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.44e-08', ts2='5.25', photon_index='2.73' WHERE bin_id='557' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:25:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 780708: <4FGL_J1017.8+0715_daily_bin557> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin557> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 16:15:36 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:17:12 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:12 2021
Terminated at Wed Sep  1 16:26:00 2021
Results reported at Wed Sep  1 16:26:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin557 154.473 7.2638 383702401 383961601 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 :                                   514.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             349.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   527 sec.
    Turnaround time :                            624 sec.

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

