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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin627
RA = 154.473, Dec = 7.2638
tmin = 401846401, tmax = 402105601
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='780812', job_status='RUN', time_executed='2021-09-01 16:20:02.822183', time_epoch_executed='1630538402.82' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780812

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780812/ft1_4FGL_J1017.8+0715_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780812/ft2_4FGL_J1017.8+0715_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780812/ft1_4FGL_J1017.8+0715_daily_bin627.fits outfile=/scratch/kocevski/780812/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin627.fits ra=154.473 dec=7.2638 rad=12.0 tmin=401846401.0 tmax=402105601.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.58
user 3.32
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780812/ft1_filtered_4FGL_J1017.8+0715_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/780812/ft2_4FGL_J1017.8+0715_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/780812/ltcube_401846401_402105601_4FGL_J1017.8+0715_daily_bin627.fits outfile=/scratch/kocevski/780812/expmap_401846401_402105601_4FGL_J1017.8+0715_daily_bin627.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/780812/ltcube_401846401_402105601_4FGL_J1017.8+0715_daily_bin627.fits
.....................!
real 195.08
user 188.26
sys 4.12

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/780812/ft1_filtered_4FGL_J1017.8+0715_daily_bin627.fits scfile=/scratch/kocevski/780812/ft2_4FGL_J1017.8+0715_daily_bin627.fits outfile=/scratch/kocevski/780812/cmap_401846401_402105601_4FGL_J1017.8+0715_daily_bin627.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780812/ft1_filtered_4FGL_J1017.8+0715_daily_bin627.fits scfile=/scratch/kocevski/780812/ft2_4FGL_J1017.8+0715_daily_bin627.fits outfile=/scratch/kocevski/780812/cmap_HighResolution_401846401_402105601_4FGL_J1017.8+0715_daily_bin627.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6305       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0292       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1774       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.064       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19161E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5742       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.013       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.562       1.0000         .10000E-03   10000.    
    12 'norm      '    .89216       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3248       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4530       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3361       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6582       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .70329       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3361       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=   5098.957     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2214 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6309        1.3702        .91440E-07   -.71421E-05
   2  norm          1.0296        .74178        .85634E-07    .24690E-03
   3  Prefactor     6.1629        8.9980        .54605E-06    .18090E-03
   4  Prefactor     25.001        52.129       -.85763E-05   -.30005E-03
   5  Prefactor     .10000E-03    79.722       -.14514E-05** at limit **
   6  norm          3.5783        12.286        .24026E-06    .34281E-04
   7  Prefactor     .10000E-03    3.6259        .32534E-06** at limit **
   8  Prefactor     19.083        53.745        .11628E-04    .27156E-03
   9  Prefactor     .10000E-03    23.486       -.28563E-06** at limit **
  10  Prefactor     .10000E-03    32.050        .83607E-06** at limit **
  11  Prefactor     15.577        16.451       -.11019E-05   -.10478E-03
  12  norm          .89349        1.8236        .97301E-07    .76900E-04
  13  Prefactor     .10000E-03    3.4588       -.16634E-06** at limit **
  14  Prefactor     3.3257        4.0526        .52285E-05   -.41461E-03
  15  Prefactor     .10000E-03    8.3931        .93656E-06** at limit **
  16  Prefactor     6.4611        8.5020       -.21433E-05   -.26152E-03
  17  norm          1.3361        .74430       -.36870E-07    .40523E-04
  18  Prefactor     .10000E-03    8.6276       -.75044E-06** at limit **
  19  Prefactor     8.6565        15.131       -.13254E-07   -.30535E-05
  20  Normalizat    .70264        .21685       -.75237E-05    .99187E-04
  21  Prefactor     1.3366        .18912        .35137E-05   -.32787E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.63094
  norm       = 1.02963
  Prefactor  = 6.16286
  Prefactor  = 25.0007
  Prefactor  = 0.000100001
  norm       = 3.57833
  Prefactor  = 0.0001
  Prefactor  = 19.0835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5774
  norm       = 0.893491
  Prefactor  = 0.0001
  Prefactor  = 3.32566
  Prefactor  = 0.0001
  Prefactor  = 6.46113
  norm       = 1.33612
  Prefactor  = 0.0001
  Prefactor  = 8.65653
  Normalizat = 0.70264
  Prefactor  = 1.33655
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.957     FROM HESSE     STATUS=OK           317 CALLS     2531 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6309        1.3675        .57735E-04   -1.5384    
   2  norm          1.0296        .72209        .49601E-04   -1.5505    
   3  Prefactor     6.1629        8.9773        .16152E-03   -1.5211    
   4  Prefactor     25.001        53.417        .80014E-04   -1.4708    
   5  Prefactor     .10000E-03    80.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5783        12.242        .21376E-03   -1.5330    
   7  Prefactor     .10000E-03    3.6263        .13273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.083        55.103        .91854E-04   -1.4834    
   9  Prefactor     .10000E-03    23.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.577        16.467        .10153E-03   -1.4918    
  12  norm          .89349        1.7954        .12835E-03   -1.5519    
  13  Prefactor     .10000E-03    3.4849        .12965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3257        4.1384        .74354E-03   -1.5343    
  15  Prefactor     .10000E-03    8.6579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4611        8.4963        .15799E-03   -1.5200    
  17  norm          1.3361        .73816        .44256E-04   -1.5477    
  18  Prefactor     .10000E-03    8.7039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.6565        15.125        .13623E-03   -1.5119    
  20  Normalizat    .70264        .24746        .31017E-03   -1.0379    
  21  Prefactor     1.3366        .21940        .21230E-03   -.82227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9661e-09
Minuit parameter uncertainties:
  1  1.36752
  2  0.722099
  3  8.97928
  4  53.5199
  5  0.000585452
  6  12.2505
  7  1.05797e-05
  8  55.2502
  9  3.27046e-05
  10  2.40902e-05
  11  16.4716
  12  1.79548
  13  1.00097e-05
  14  4.1388
  15  0.000106791
  16  8.49792
  17  0.738162
  18  5.35949e-05
  19  15.1316
  20  0.247857
  21  0.219548
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.908e+01  5.525e+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.337e+00  2.195e-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:  7.026e-01  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780812/likelihoodResults_401846401_402105601_4FGL_J1017.8+0715_daily_bin627.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) = 5098.73668713
delta logL = 0.220577458676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5098.71537088
delta logL = 0.241893703432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9115       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1465       1.0000          .0000       10.000    
     3 'Normalizat'    .66391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3596       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.

 FCN=   5098.715     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      263 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8594        254.44        .38151E-02    .14502E-03
   2  Index         4.1535        6.9818        .20453        .72810E-04
   3  Normalizat    .66338        .54639E-01    .71975E-01    .14461E-04
   4  Prefactor     1.3602        .49047E-01    .47665E-01    .87194E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.85936
  Index      = 4.15351
  Normalizat = 0.663381
  Prefactor  = 1.36018
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.715     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8594        591.22        .15261E-03   -1.5184    
   2  Index         4.1535        5.7240        .83471E-02   -.17012    
   3  Normalizat    .66338        .23292        .31858E-03   -1.0536    
   4  Prefactor     1.3602        .21124        .21070E-03   -.81535    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17315e-07
Minuit parameter uncertainties:
  1  128.699
  2  12.2936
  3  0.233264
  4  0.211369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780812': 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): 102
logL (Free Index) = 5098.71536199
delta logL = 0.241902590234

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.360e+00  2.114e-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:  6.634e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 154.473 7.264

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/780812/cmap_HighResolution_401846401_402105601_4FGL_J1017.8+0715_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.61e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-01 16:29:20.620577', job_id='780812', GAL2='1.36', fit_tolerance='1e-08', EG2='0.66', EG='0.70', time_epoch_completed='1630538960.62', return_code2='102', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='2.42e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='627' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:29:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 780812: <4FGL_J1017.8+0715_daily_bin627> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin627 154.473 7.2638 401846401 402105601 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 :                                   551.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            817 sec.

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

