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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin747
RA = 154.473, Dec = 7.2638
tmin = 432950401, tmax = 433209601
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='782152', job_status='RUN', time_executed='2021-09-01 16:24:35.526931', time_epoch_executed='1630538675.53' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782152/ft1_4FGL_J1017.8+0715_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782152/ft2_4FGL_J1017.8+0715_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782152/ft1_4FGL_J1017.8+0715_daily_bin747.fits outfile=/scratch/kocevski/782152/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin747.fits ra=154.473 dec=7.2638 rad=12.0 tmin=432950401.0 tmax=433209601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.89
user 5.57
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782152/ft1_filtered_4FGL_J1017.8+0715_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/782152/ft2_4FGL_J1017.8+0715_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/782152/ltcube_432950401_433209601_4FGL_J1017.8+0715_daily_bin747.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/782152/ft2_4FGL_J1017.8+0715_daily_bin747.fits
.....................!
real 15.32
user 14.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782152/ft1_filtered_4FGL_J1017.8+0715_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/782152/ft2_4FGL_J1017.8+0715_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/782152/ltcube_432950401_433209601_4FGL_J1017.8+0715_daily_bin747.fits outfile=/scratch/kocevski/782152/expmap_432950401_433209601_4FGL_J1017.8+0715_daily_bin747.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/782152/ltcube_432950401_433209601_4FGL_J1017.8+0715_daily_bin747.fits
.....................!
real 190.73
user 186.03
sys 4.26

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/782152/ft1_filtered_4FGL_J1017.8+0715_daily_bin747.fits scfile=/scratch/kocevski/782152/ft2_4FGL_J1017.8+0715_daily_bin747.fits outfile=/scratch/kocevski/782152/cmap_432950401_433209601_4FGL_J1017.8+0715_daily_bin747.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/782152/ft1_filtered_4FGL_J1017.8+0715_daily_bin747.fits scfile=/scratch/kocevski/782152/ft2_4FGL_J1017.8+0715_daily_bin747.fits outfile=/scratch/kocevski/782152/cmap_HighResolution_432950401_433209601_4FGL_J1017.8+0715_daily_bin747.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2285       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2910       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.559       1.0000         .10000E-03   10000.    
     6 'norm      '    13.922       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    206.29       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.662       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2328       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9987       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9770       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.515       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2694       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11701E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77769       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3881       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87676       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=   5377.544     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2269 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2286        2.2015        .84794E-07   -.45884E-03
   2  norm          2.2910        .86634        .44060E-07   -.56265E-03
   3  Prefactor     .10000E-03    8.2529       -.64561E-06** at limit **
   4  Prefactor     .10000E-03    23.435       -.11719E-06** at limit **
   5  Prefactor     16.576        47.068        .24670E-04   -.78705E-05
   6  norm          13.922        13.927       -.39020E-05   -.30371E-04
   7  Prefactor     .10000E-03    5.2779       -.43079E-06** at limit **
   8  Prefactor     206.37        93.147        .51157E-04   -.86028E-05
   9  Prefactor     .10000E-03    17.762        .26153E-06** at limit **
  10  Prefactor     .10001E-03    106.35        .57636E-05** at limit **
  11  Prefactor     13.667        23.945       -.12847E-04   -.68641E-04
  12  norm          3.2328        1.7508       -.15938E-07   -.21016E-03
  13  Prefactor     4.9987        7.0311       -.62355E-06   -.22691E-03
  14  Prefactor     2.9768        5.0723       -.41138E-05   -.62887E-03
  15  Prefactor     .10000E-03    4.3474        .66937E-07** at limit **
  16  Prefactor     18.516        13.386        .84269E-06    .13875E-03
  17  norm          1.2691        .87971        .13652E-06    .20312E-03
  18  Prefactor     .10000E-03    38.345        .11489E-06** at limit **
  19  Prefactor     .73229        29.092       -.39221E-05    .33156E-03
  20  Normalizat    1.3880        .24053       -.79236E-05    .39704E-03
  21  Prefactor     .87685        .18884        .17279E-05   -.13549E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.22864
  norm       = 2.29102
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.5758
  norm       = 13.9221
  Prefactor  = 0.000100001
  Prefactor  = 206.37
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 13.667
  norm       = 3.23285
  Prefactor  = 4.99871
  Prefactor  = 2.97679
  Prefactor  = 0.0001
  Prefactor  = 18.5156
  norm       = 1.26906
  Prefactor  = 0.000100001
  Prefactor  = 0.732286
  Normalizat = 1.38799
  Prefactor  = 0.876851
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.544     FROM HESSE     STATUS=OK           323 CALLS     2592 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2286        2.2156        .65793E-04   -1.5251    
   2  norm          2.2910        .86522        .40284E-04   -1.5405    
   3  Prefactor     .10000E-03    8.2684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.576        47.038        .98423E-04   -1.4893    
   6  norm          13.922        13.926        .10735E-03   -1.4962    
   7  Prefactor     .10000E-03    5.2830        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     206.37        93.142        .14071E-03   -1.2825    
   9  Prefactor     .10000E-03    17.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    106.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.667        23.919        .10837E-03   -1.4968    
  12  norm          3.2328        1.7482        .68675E-04   -1.5348    
  13  Prefactor     4.9987        7.0236        .17987E-03   -1.5261    
  14  Prefactor     2.9768        5.0743        .19629E-03   -1.5363    
  15  Prefactor     .10000E-03    4.3944        .14930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.516        13.307        .93081E-04   -1.4847    
  17  norm          1.2691        .87570        .54325E-04   -1.5483    
  18  Prefactor     .10000E-03    39.127        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .73229        244.75        .75242E-02   -1.5537    
  20  Normalizat    1.3880        .27836        .27375E-03   -.80977    
  21  Prefactor     .87685        .21807        .27890E-03   -.96955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49912e-08
Minuit parameter uncertainties:
  1  2.21567
  2  0.865221
  3  0.000164422
  4  8.15784e-05
  5  47.1434
  6  13.929
  7  0.000105224
  8  93.2093
  9  1.59846e-05
  10  0.00222769
  11  23.936
  12  1.74827
  13  7.02475
  14  5.07498
  15  2.39437e-05
  16  13.309
  17  0.87571
  18  0.000327012
  19  26.8848
  20  0.278667
  21  0.218291
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.064e+02  9.321e+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.769e-01  2.183e-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.388e+00  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.41
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 1.74e-07 +/- 7.87e-08
Energy Flux (Fixed Index): 4.10e-05 +/- 1.85e-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) = 5377.45522863
delta logL = 0.088942696636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5377.45282098
delta logL = 0.0913503404181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    236.28       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5353       1.0000          .0000       10.000    
     3 'Normalizat'    1.4098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86317       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=   5377.453     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      299 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     236.01        120.80        .13168E-03    .15886E-04
   2  Index         2.5337        .45942        .55384E-02    .24533E-03
   3  Normalizat    1.4101        .26681        .27201E-03   -.14210E-05
   4  Prefactor     .86314        .21731        .28076E-03    .68836E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 236.008
  Index      = 2.53372
  Normalizat = 1.41012
  Prefactor  = 0.863144
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.453     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     236.01        118.95        .52671E-05   -1.2623    
   2  Index         2.5337        .45207        .11077E-02   -.51583    
   3  Normalizat    1.4101        .26694        .10880E-04   -.80336    
   4  Prefactor     .86314        .21740        .11231E-04   -.97441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01616e-12
Minuit parameter uncertainties:
  1  119.075
  2  0.452892
  3  0.267206
  4  0.217622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782152': 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) = 5377.45280451
delta logL = 0.0913668172061

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.360e+02  1.191e+02  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.534e+00  4.529e-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.631e-01  2.176e-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.410e+00  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.53
Ra Dec: 154.473 7.264
Photon Index (Free Index): 2.53 +/- 0.45
Photon Flux (Free Index): 1.57e-07 +/- 8.19e-08
Energy Flux (Free Index): 4.39e-05 +/- 2.10e-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/782152/cmap_HighResolution_432950401_433209601_4FGL_J1017.8+0715_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-07', energy_flux2='4.39e-05', photon_flux_error='7.87e-08', dlogl='9.14e-02', energy_flux='4.10e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-01 16:33:29.821728', photon_index_error2='0.45', photon_index2='2.53', ts='10.41', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.39', time_epoch_completed='1630539209.82', return_code='0', job_id='782152', GAL2='0.86', EG2='1.41', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='8.19e-08', ts2='10.53', photon_index='2.73' WHERE bin_id='747' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:33:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 782152: <4FGL_J1017.8+0715_daily_bin747> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin747> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 16:20:39 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:21:19 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:21:19 2021
Terminated at Wed Sep  1 16:33:30 2021
Results reported at Wed Sep  1 16:33:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin747 154.473 7.2638 432950401 433209601 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 :                                   533.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            771 sec.

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

