/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 219 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 = 7479
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1017.8+0715_daily_bin424
RA = 154.473, Dec = 7.2638
tmin = 349228801, tmax = 349488001
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='780515', job_status='RUN', time_executed='2021-09-01 16:20:00.818604', time_epoch_executed='1630538400.82' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780515/ft1_4FGL_J1017.8+0715_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780515/ft2_4FGL_J1017.8+0715_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780515/ft1_4FGL_J1017.8+0715_daily_bin424.fits outfile=/scratch/kocevski/780515/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin424.fits ra=154.473 dec=7.2638 rad=12.0 tmin=349228801.0 tmax=349488001.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.50
user 3.24
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780515/ft1_filtered_4FGL_J1017.8+0715_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/780515/ft2_4FGL_J1017.8+0715_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/780515/ltcube_349228801_349488001_4FGL_J1017.8+0715_daily_bin424.fits outfile=/scratch/kocevski/780515/expmap_349228801_349488001_4FGL_J1017.8+0715_daily_bin424.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/780515/ltcube_349228801_349488001_4FGL_J1017.8+0715_daily_bin424.fits
.....................!
real 193.02
user 187.53
sys 4.88

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/780515/ft1_filtered_4FGL_J1017.8+0715_daily_bin424.fits scfile=/scratch/kocevski/780515/ft2_4FGL_J1017.8+0715_daily_bin424.fits outfile=/scratch/kocevski/780515/cmap_349228801_349488001_4FGL_J1017.8+0715_daily_bin424.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780515/ft1_filtered_4FGL_J1017.8+0715_daily_bin424.fits scfile=/scratch/kocevski/780515/ft2_4FGL_J1017.8+0715_daily_bin424.fits outfile=/scratch/kocevski/780515/cmap_HighResolution_349228801_349488001_4FGL_J1017.8+0715_daily_bin424.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5735       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.967       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.972       1.0000         .10000E-03   10000.    
     6 'norm      '    9.8373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.400       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.313       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13501E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .76722       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24299E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.205       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.210       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0295       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.705       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .39121       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4988       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=   6967.662     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2341 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5733        1.3244       -.51861E-07   -.82333E-04
   2  norm          2.5518        .75954        .20900E-07   -.27506E-03
   3  Prefactor     14.964        13.172       -.47393E-06   -.46463E-04
   4  Prefactor     1.2506        282.12       -.48367E-05   -.40756E-05
   5  Prefactor     15.949        48.401        .47651E-05   -.92101E-04
   6  norm          9.8403        11.920        .12510E-06   -.26849E-04
   7  Prefactor     .10000E-03    6.1172       -.94735E-06** at limit **
   8  Prefactor     38.441        58.860        .67464E-05    .39207E-06
   9  Prefactor     12.313        30.626       -.24874E-06    .28042E-06
  10  Prefactor     62.874        50.869        .30828E-05   -.13274E-03
  11  Prefactor     .10087E-03    10.212       -.53381E-06** at limit **
  12  norm          .76603        1.1052        .47069E-06    .21568E-03
  13  Prefactor     .10000E-03    7.8012       -.56468E-06** at limit **
  14  Prefactor     .10001E-03    1.4186       -.34665E-06** at limit **
  15  Prefactor     12.207        7.1814        .43548E-06    .66540E-04
  16  Prefactor     11.211        8.2233        .47031E-06    .21863E-03
  17  norm          1.0295        .71460       -.20320E-07   -.11897E-03
  18  Prefactor     13.706        10.644       -.84036E-07    .31726E-04
  19  Prefactor     .10000E-03    50.994       -.33508E-05** at limit **
  20  Normalizat    .39122        .21118        .75482E-06   -.53853E-04
  21  Prefactor     1.4987        .17134        .78522E-07    .14378E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57335
  norm       = 2.55175
  Prefactor  = 14.9645
  Prefactor  = 1.25057
  Prefactor  = 15.9488
  norm       = 9.84028
  Prefactor  = 0.0001
  Prefactor  = 38.4407
  Prefactor  = 12.3125
  Prefactor  = 62.8737
  Prefactor  = 0.000100872
  norm       = 0.766027
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 12.2071
  Prefactor  = 11.2107
  norm       = 1.02947
  Prefactor  = 13.7057
  Prefactor  = 0.0001
  Normalizat = 0.391218
  Prefactor  = 1.49873
 **********
 **   18 **HESSE 
 **********

 FCN=   6967.662     FROM HESSE     STATUS=OK           329 CALLS     2670 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5733        1.3009        .82164E-04   -1.5457    
   2  norm          2.5518        .75575        .37674E-04   -1.5388    
   3  Prefactor     14.964        13.135        .10353E-03   -1.4934    
   4  Prefactor     1.2506        267.93        .42105E-03   -1.5484    
   5  Prefactor     15.949        46.822        .10022E-03   -1.4909    
   6  norm          9.8403        11.905        .12776E-03   -1.5080    
   7  Prefactor     .10000E-03    6.2265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.441        58.507        .64679E-04   -1.4467    
   9  Prefactor     12.313        30.608        .11416E-03   -1.5006    
  10  Prefactor     62.874        47.699        .50596E-04   -1.4120    
  11  Prefactor     .10087E-03    58.980        .47293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .76603        .97306        .10047E-02   -1.5533    
  13  Prefactor     .10000E-03    8.0984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    16.324        .18425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.207        7.1624        .11466E-03   -1.5009    
  16  Prefactor     11.211        8.0763        .11966E-03   -1.5038    
  17  norm          1.0295        .70939        .50330E-04   -1.5505    
  18  Prefactor     13.706        10.834        .10820E-03   -1.4967    
  19  Prefactor     .10000E-03    52.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .39122        .21536        .41481E-03   -1.1776    
  21  Prefactor     1.4987        .18311        .20199E-03   -.77575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51088e-08
Minuit parameter uncertainties:
  1  1.30088
  2  0.755748
  3  13.1379
  4  36.7761
  5  46.9306
  6  11.9074
  7  6.48178e-05
  8  58.5941
  9  30.6466
  10  47.7283
  11  0.0143546
  12  0.973075
  13  3.83365e-05
  14  0.000583768
  15  7.1629
  16  8.07704
  17  0.709396
  18  10.8353
  19  1.26118e-05
  20  0.215813
  21  0.183193
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.844e+01  5.859e+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.499e+00  1.832e-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:  3.912e-01  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/780515/likelihoodResults_349228801_349488001_4FGL_J1017.8+0715_daily_bin424.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) = 6967.2180005
delta logL = 0.444033785183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6967.21028755
delta logL = 0.451746741061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6939       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3127       1.0000          .0000       10.000    
     3 'Normalizat'    .34121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5342       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=   6967.210     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      278 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6966        31.432        .80838E-02    .83149E-03
   2  Index         5.3126        3.8171        .14491        .15683E-03
   3  Normalizat    .34126        .49259E-01    .10009        .45540E-04
   4  Prefactor     1.5342        .44546E-01    .45270E-01   -.76501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.69663
  Index      = 5.3126
  Normalizat = 0.341259
  Prefactor  = 1.53416
 **********
 **   18 **HESSE 
 **********

 FCN=   6967.210     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      311 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6966        66.988        .93217E-04   -1.5447    
   2  Index         5.3126        7.6445        .72328E-02    .62560E-01
   3  Normalizat    .34126        .17232        .44337E-03   -1.2046    
   4  Prefactor     1.5342        .15330        .20009E-03   -.76587    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37752e-09
Minuit parameter uncertainties:
  1  21.3468
  2  7.66617
  3  0.172587
  4  0.153348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780515': 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) = 6967.21028618
delta logL = 0.45174811038

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.697e+00  2.135e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  5.313e+00  7.666e+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.534e+00  1.533e-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:  3.413e-01  1.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 154.473 7.264
Photon Index (Free Index): 5.31 +/- 7.67
Photon Flux (Free Index): 6.42e-08 +/- 6.05e-08
Energy Flux (Free Index): 8.33e-06 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/780515/cmap_HighResolution_349228801_349488001_4FGL_J1017.8+0715_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='8.33e-06', dlogl='4.52e-01', photon_flux2='6.42e-08', job_status='DONE', time_completed='2021-09-01 16:30:47.804735', photon_index_error2='7.67', photon_index2='5.31', ts='0.61', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.04e-05', EG='0.39', time_epoch_completed='1630539047.8', return_code='0', job_id='780515', GAL2='1.53', EG2='0.34', return_code2='102', photon_flux_error2='6.05e-08', ts2='1.67', photon_index='2.73' WHERE bin_id='424' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 780515: <4FGL_J1017.8+0715_daily_bin424> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin424 154.473 7.2638 349228801 349488001 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 :                                   644.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            924 sec.

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

