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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin856
RA = 154.473, Dec = 7.2638
tmin = 461203201, tmax = 461462401
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='782318', job_status='RUN', time_executed='2021-09-01 16:26:20.571333', time_epoch_executed='1630538780.57' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782318/ft1_4FGL_J1017.8+0715_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782318/ft2_4FGL_J1017.8+0715_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782318/ft1_4FGL_J1017.8+0715_daily_bin856.fits outfile=/scratch/kocevski/782318/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin856.fits ra=154.473 dec=7.2638 rad=12.0 tmin=461203201.0 tmax=461462401.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.42
user 3.20
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782318/ft1_filtered_4FGL_J1017.8+0715_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/782318/ft2_4FGL_J1017.8+0715_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/782318/ltcube_461203201_461462401_4FGL_J1017.8+0715_daily_bin856.fits outfile=/scratch/kocevski/782318/expmap_461203201_461462401_4FGL_J1017.8+0715_daily_bin856.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/782318/ltcube_461203201_461462401_4FGL_J1017.8+0715_daily_bin856.fits
.....................!
real 191.71
user 187.41
sys 3.77

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/782318/ft1_filtered_4FGL_J1017.8+0715_daily_bin856.fits scfile=/scratch/kocevski/782318/ft2_4FGL_J1017.8+0715_daily_bin856.fits outfile=/scratch/kocevski/782318/cmap_461203201_461462401_4FGL_J1017.8+0715_daily_bin856.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782318/ft1_filtered_4FGL_J1017.8+0715_daily_bin856.fits scfile=/scratch/kocevski/782318/ft2_4FGL_J1017.8+0715_daily_bin856.fits outfile=/scratch/kocevski/782318/cmap_HighResolution_461203201_461462401_4FGL_J1017.8+0715_daily_bin856.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/782318/ft1_filtered_4FGL_J1017.8+0715_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/782318/ft2_4FGL_J1017.8+0715_daily_bin856.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/782318/Model_4FGL_J1017.8+0715_daily_bin856.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/782318/ft1_filtered_4FGL_J1017.8+0715_daily_bin856.fits.....................!
real 65.70
user 64.08
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0883       1.0000         .10000E-03   10000.    
     2 'norm      '    .35327       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.222       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .81831E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10628E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    93.169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.138       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6506       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7715       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4604       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .45682E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9039       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4837       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8360       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2863       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2624       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=   6705.366     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2597 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0881        2.5339        .61064E-07    .93949E-06
   2  norm          .35313        .65256        .11333E-06    .64829E-04
   3  Prefactor     .10000E-03    7.2845       -.23392E-06** at limit **
   4  Prefactor     43.220        43.669       -.10975E-05    .32793E-03
   5  Prefactor     .44981E-03    44.371       -.54380E-05** at limit **
   6  norm          .10000E-03    19.219       -.61228E-06** at limit **
   7  Prefactor     .10000E-03    7.9764       -.35927E-06** at limit **
   8  Prefactor     93.191        70.914       -.34020E-07   -.51741E-04
   9  Prefactor     48.155        45.683       -.69728E-06   -.20337E-03
  10  Prefactor     .10000E-03    41.792       -.44190E-06** at limit **
  11  Prefactor     .10000E-03    13.770       -.22385E-06** at limit **
  12  norm          4.6509        2.0187       -.10107E-06   -.49670E-05
  13  Prefactor     4.7698        5.3576        .44459E-05    .54932E-03
  14  Prefactor     7.4604        4.3793        .50134E-07   -.25723E-04
  15  Prefactor     .10022E-03    3.4138       -.55097E-06** at limit **
  16  Prefactor     1.9030        8.9023        .17406E-05    .63487E-04
  17  norm          1.4835        .74188       -.57990E-08   -.16915E-03
  18  Prefactor     .10000E-03    8.1623        .50320E-07** at limit **
  19  Prefactor     9.8257        20.224       -.15295E-06   -.10797E-03
  20  Normalizat    1.2862        .23093        .82921E-06    .26304E-04
  21  Prefactor     1.2627        .19264       -.22352E-05    .14619E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.08805
  norm       = 0.353134
  Prefactor  = 0.0001
  Prefactor  = 43.2202
  Prefactor  = 0.00044981
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.191
  Prefactor  = 48.1553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.65088
  Prefactor  = 4.76975
  Prefactor  = 7.46043
  Prefactor  = 0.000100224
  Prefactor  = 1.90296
  norm       = 1.48351
  Prefactor  = 0.0001
  Prefactor  = 9.82572
  Normalizat = 1.28622
  Prefactor  = 1.26265
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.366     FROM HESSE     STATUS=OK           327 CALLS     2924 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0881        2.5492        .63450E-04   -1.5105    
   2  norm          .35313        .65218        .42625E-04   -1.5589    
   3  Prefactor     .10000E-03    7.2994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.220        43.473        .60979E-04   -1.4392    
   5  Prefactor     .44981E-03    39.092        .15661       -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     93.191        71.333        .41635E-04   -1.3774    
   9  Prefactor     48.155        45.603        .28897E-03   -1.4319    
  10  Prefactor     .10000E-03    41.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6509        2.0171        .73221E-04   -1.5277    
  13  Prefactor     4.7698        5.3626        .92095E-03   -1.5271    
  14  Prefactor     7.4604        4.3679        .12232E-03   -1.5162    
  15  Prefactor     .10022E-03    49.627        .28867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9030        8.7872        .30137E-03   -1.5432    
  17  norm          1.4835        .73514        .47798E-04   -1.5464    
  18  Prefactor     .10000E-03    8.2122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.8257        20.212        .12777E-03   -1.5081    
  20  Normalizat    1.2862        .27351        .29937E-03   -.83979    
  21  Prefactor     1.2627        .22711        .26648E-03   -.84424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60488e-09
Minuit parameter uncertainties:
  1  2.54918
  2  0.652194
  3  1.81956e-06
  4  43.5044
  5  0.234031
  6  8.08982e-06
  7  7.30593e-07
  8  71.3983
  9  45.6362
  10  1.52486e-05
  11  8.34945e-06
  12  2.01714
  13  5.36314
  14  4.36812
  15  0.00667726
  16  8.18019
  17  0.735142
  18  5.01685e-06
  19  20.2263
  20  0.273814
  21  0.227288
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  9.319e+01  7.140e+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.263e+00  2.273e-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.286e+00  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 7.88e-08 +/- 6.03e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.42e-05

TS (Fixed Index): 2.38
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.54e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782318/likelihoodResults_461203201_461462401_4FGL_J1017.8+0715_daily_bin856.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6705.23631587
delta logL = 0.1300054187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6705.22903816
delta logL = 0.137283128473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.442       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2165       1.0000          .0000       10.000    
     3 'Normalizat'    1.2558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2835       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=   6705.229     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      304 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.410        113.97        .51609E-04   -.14957E-03
   2  Index         3.2172        1.3961        .70753E-02   -.53703E-04
   3  Normalizat    1.2556        .26806        .30244E-03    .10093E-03
   4  Prefactor     1.2837        .23126        .26468E-03    .82040E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.4099
  Index      = 3.21723
  Normalizat = 1.25558
  Prefactor  = 1.28367
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.410        85.802        .10322E-04   -1.4152    
   2  Index         3.2172        1.0545        .28301E-03   -.36458    
   3  Normalizat    1.2556        .26683        .12098E-04   -.84902    
   4  Prefactor     1.2837        .22973        .10587E-04   -.83794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74085e-10
Minuit parameter uncertainties:
  1  85.9781
  2  1.06366
  3  0.26712
  4  0.229914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782318': 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) = 6705.22903765
delta logL = 0.137283633548

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  6.041e+01  8.598e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.217e+00  1.064e+00  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.284e+00  2.299e-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.256e+00  2.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.70
Ra Dec: 154.473 7.264
Photon Index (Free Index): 3.22 +/- 1.06
Photon Flux (Free Index): 9.67e-08 +/- 7.16e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/782318/cmap_HighResolution_461203201_461462401_4FGL_J1017.8+0715_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', comment='SUCCESS', photon_flux='7.88e-08', energy_flux2='1.76e-05', photon_flux_error='6.03e-08', dlogl='1.37e-01', energy_flux='1.85e-05', photon_flux2='9.67e-08', job_status='DONE', time_completed='2021-09-01 16:37:19.948297', photon_index_error2='1.06', photon_index2='3.22', ts='2.38', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='1.28e-05', EG='1.29', time_epoch_completed='1630539439.95', return_code='0', job_id='782318', GAL2='1.28', EG2='1.26', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='7.16e-08', ts2='2.70', photon_index='2.73' WHERE bin_id='856' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:37:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 782318: <4FGL_J1017.8+0715_daily_bin856> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin856 154.473 7.2638 461203201 461462401 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            986 sec.

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

