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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin474
RA = 154.473, Dec = 7.2638
tmin = 362188801, tmax = 362448001
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='780587', job_status='RUN', time_executed='2021-09-01 16:18:44.459394', time_epoch_executed='1630538324.46' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780587/ft1_4FGL_J1017.8+0715_daily_bin474.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780587/ft2_4FGL_J1017.8+0715_daily_bin474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780587/ft1_4FGL_J1017.8+0715_daily_bin474.fits outfile=/scratch/kocevski/780587/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin474.fits ra=154.473 dec=7.2638 rad=12.0 tmin=362188801.0 tmax=362448001.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 3.95
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780587/ft1_filtered_4FGL_J1017.8+0715_daily_bin474.fits" evtable="EVENTS" scfile=/scratch/kocevski/780587/ft2_4FGL_J1017.8+0715_daily_bin474.fits sctable="SC_DATA" outfile=/scratch/kocevski/780587/ltcube_362188801_362448001_4FGL_J1017.8+0715_daily_bin474.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/780587/ft2_4FGL_J1017.8+0715_daily_bin474.fits
.....................!
real 15.68
user 15.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780587/ft1_filtered_4FGL_J1017.8+0715_daily_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/780587/ft2_4FGL_J1017.8+0715_daily_bin474.fits sctable="SC_DATA" expcube=/scratch/kocevski/780587/ltcube_362188801_362448001_4FGL_J1017.8+0715_daily_bin474.fits outfile=/scratch/kocevski/780587/expmap_362188801_362448001_4FGL_J1017.8+0715_daily_bin474.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/780587/ltcube_362188801_362448001_4FGL_J1017.8+0715_daily_bin474.fits
.....................!
real 191.85
user 186.50
sys 4.96

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/780587/ft1_filtered_4FGL_J1017.8+0715_daily_bin474.fits scfile=/scratch/kocevski/780587/ft2_4FGL_J1017.8+0715_daily_bin474.fits outfile=/scratch/kocevski/780587/cmap_362188801_362448001_4FGL_J1017.8+0715_daily_bin474.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780587/ft1_filtered_4FGL_J1017.8+0715_daily_bin474.fits scfile=/scratch/kocevski/780587/ft2_4FGL_J1017.8+0715_daily_bin474.fits outfile=/scratch/kocevski/780587/cmap_HighResolution_362188801_362448001_4FGL_J1017.8+0715_daily_bin474.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.58
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1853       1.0000         .10000E-03   10000.    
     2 'norm      '    .40978       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7274       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.707       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.929       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.997       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.064       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25422E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.697       1.0000         .10000E-03   10000.    
    12 'norm      '    .35573       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4678       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9180       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .54516       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.358       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6244       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70445       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=   7396.371     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2230 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1854        1.4611        .47640E-07   -.48902E-04
   2  norm          .40986        .56091        .18828E-06   -.45818E-04
   3  Prefactor     9.7273        13.850        .62900E-06   -.61278E-04
   4  Prefactor     15.702        23.429       -.21477E-06   -.49652E-04
   5  Prefactor     18.932        41.838        .15588E-06    .27522E-05
   6  norm          .10000E-03    11.479        .30227E-07** at limit **
   7  Prefactor     16.987        14.971       -.70940E-06   -.13375E-04
   8  Prefactor     .10000E-03    23.524       -.11724E-07** at limit **
   9  Prefactor     35.065        49.678        .32535E-06    .63905E-05
  10  Prefactor     .10001E-03    154.17       -.22913E-05** at limit **
  11  Prefactor     36.691        24.560       -.46643E-06   -.35802E-04
  12  norm          .35657        1.2875        .10408E-05   -.18134E-03
  13  Prefactor     .10000E-03    1.8072       -.20422E-07** at limit **
  14  Prefactor     4.4680        3.0860        .72113E-07   -.67073E-04
  15  Prefactor     9.9182        6.5630        .10444E-06    .68242E-04
  16  Prefactor     .10000E-03    3.5414       -.30992E-07** at limit **
  17  norm          .54461        .96003        .18799E-06    .35290E-04
  18  Prefactor     10.365        13.976       -.28267E-06   -.88562E-04
  19  Prefactor     .10000E-03    5.3758        .26859E-08** at limit **
  20  Normalizat    1.6244        .19415       -.56492E-06   -.13353E-03
  21  Prefactor     .70447        .15386       -.37056E-06   -.11824E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.18538
  norm       = 0.409855
  Prefactor  = 9.72735
  Prefactor  = 15.7021
  Prefactor  = 18.9323
  norm       = 0.0001
  Prefactor  = 16.987
  Prefactor  = 0.0001
  Prefactor  = 35.0654
  Prefactor  = 0.000100008
  Prefactor  = 36.6907
  norm       = 0.356568
  Prefactor  = 0.0001
  Prefactor  = 4.46797
  Prefactor  = 9.91823
  Prefactor  = 0.0001
  norm       = 0.544607
  Prefactor  = 10.3651
  Prefactor  = 0.0001
  Normalizat = 1.62436
  Prefactor  = 0.704473
 **********
 **   18 **HESSE 
 **********

 FCN=   7396.371     FROM HESSE     STATUS=OK           327 CALLS     2557 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1854        1.4627        .67255E-04   -1.5351    
   2  norm          .40986        .55201        .71534E-04   -1.5580    
   3  Prefactor     9.7273        12.756        .12848E-03   -1.5084    
   4  Prefactor     15.702        23.435        .10106E-03   -1.4915    
   5  Prefactor     18.932        41.883        .92058E-04   -1.4837    
   6  norm          .10000E-03    53.070        .51095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.987        14.907        .97149E-04   -1.4883    
   8  Prefactor     .10000E-03    23.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.065        49.726        .67676E-04   -1.4523    
  10  Prefactor     .10001E-03    154.99        .21458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.691        24.559        .66158E-04   -1.4496    
  12  norm          .35657        1.3013        .17254E-02   -1.5589    
  13  Prefactor     .10000E-03    1.8126        .11289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4680        3.0890        .12005E-03   -1.5285    
  15  Prefactor     9.9182        6.5737        .12724E-03   -1.5078    
  16  Prefactor     .10000E-03    3.5697        .15795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .54461        .87744        .76519E-04   -1.5560    
  18  Prefactor     10.365        13.059        .12450E-03   -1.5064    
  19  Prefactor     .10000E-03    5.3770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6244        .22949        .24698E-03   -.74341    
  21  Prefactor     .70447        .17986        .29165E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19946e-08
Minuit parameter uncertainties:
  1  1.4627
  2  0.552013
  3  12.7596
  4  23.4486
  5  41.9478
  6  0.0001278
  7  14.9099
  8  1.55256e-05
  9  49.7851
  10  0.00216232
  11  24.5662
  12  1.30139
  13  1.50779e-06
  14  3.08907
  15  6.57418
  16  1.1808e-06
  17  0.877456
  18  13.0623
  19  5.35867e-07
  20  0.229634
  21  0.180013
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.553e-05  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:  7.045e-01  1.800e-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.624e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780587/likelihoodResults_362188801_362448001_4FGL_J1017.8+0715_daily_bin474.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): 102
logL (Free Index) = 7396.37108226
delta logL = -0.000202239130886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7396.37088137
delta logL = -1.34751826408e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7368       1.0000          .0000       10.000    
     3 'Normalizat'    1.6244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70448       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7396.371     FROM MIGRAD    STATUS=FAILED        86 CALLS      267 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11311E-03    356.94        .18142E-01** at limit **
   2  Index         3.0606        5.9676        .20000E-01    .45159E-05
   3  Normalizat    1.6244        .20157E-01    .24698E-03   -.21533E-04
   4  Prefactor     .70447        .16542E-01    .29165E-03   -.25571E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7396.371     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      393 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11311E-03    356.94        .78262E-03** at limit **
   2  Index         3.0606        5.9676        .17360E-03    .45159E-05
   3  Normalizat    1.6244        .20157E-01    .10818E-05   -.21533E-04
   4  Prefactor     .70447        .16542E-01    .40492E-06   -.25571E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7396.371     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      437 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    777.34        .36285E-01** at limit **
   2  Index         2.5621        6.0544        .40000E-01   -.56843E-09
   3  Normalizat    1.6244        .29163E-01    .49397E-04    .75443E-04
   4  Prefactor     .70447        .23922E-01    .11666E-04    .62368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.56214
  Normalizat = 1.62436
  Prefactor  = 0.704473
 **********
 **   18 **HESSE 
 **********

 FCN=   7396.371     FROM HESSE     STATUS=OK            23 CALLS      460 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.885        .40813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5621        5.6290        .16000E-02   -.50931    
   3  Normalizat    1.6244        .21647        .98794E-05   -.74341    
   4  Prefactor     .70447        .17764        .23332E-05   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63078e-12
Minuit parameter uncertainties:
  1  5.65793e-05
  2  748.435
  3  0.216598
  4  0.177788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780587': 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) = 7396.37088
delta logL = 2.55859049503e-08

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  5.658e-05  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.562e+00  7.484e+02  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:  7.045e-01  1.778e-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.624e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.473 7.264

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/780587/cmap_HighResolution_362188801_362448001_4FGL_J1017.8+0715_daily_bin474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-09-01 16:30:06.856860', job_id='780587', GAL2='0.70', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1630539006.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='474' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 780587: <4FGL_J1017.8+0715_daily_bin474> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin474> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 16:15:29 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:16:34 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:16:34 2021
Terminated at Wed Sep  1 16:30:07 2021
Results reported at Wed Sep  1 16:30:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin474 154.473 7.2638 362188801 362448001 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 :                                   671.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            878 sec.

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

