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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin902
RA = 154.473, Dec = 7.2638
tmin = 473126401, tmax = 473385601
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='782364', job_status='RUN', time_executed='2021-09-01 16:26:19.476902', time_epoch_executed='1630538779.48' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='902'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782364/ft1_4FGL_J1017.8+0715_daily_bin902.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782364/ft2_4FGL_J1017.8+0715_daily_bin902.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782364/ft1_4FGL_J1017.8+0715_daily_bin902.fits outfile=/scratch/kocevski/782364/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin902.fits ra=154.473 dec=7.2638 rad=12.0 tmin=473126401.0 tmax=473385601.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.52
user 3.28
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782364/ft1_filtered_4FGL_J1017.8+0715_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/782364/ft2_4FGL_J1017.8+0715_daily_bin902.fits sctable="SC_DATA" expcube=/scratch/kocevski/782364/ltcube_473126401_473385601_4FGL_J1017.8+0715_daily_bin902.fits outfile=/scratch/kocevski/782364/expmap_473126401_473385601_4FGL_J1017.8+0715_daily_bin902.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/782364/ltcube_473126401_473385601_4FGL_J1017.8+0715_daily_bin902.fits
.....................!
real 194.43
user 188.38
sys 5.45

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/782364/ft1_filtered_4FGL_J1017.8+0715_daily_bin902.fits scfile=/scratch/kocevski/782364/ft2_4FGL_J1017.8+0715_daily_bin902.fits outfile=/scratch/kocevski/782364/cmap_473126401_473385601_4FGL_J1017.8+0715_daily_bin902.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782364/ft1_filtered_4FGL_J1017.8+0715_daily_bin902.fits scfile=/scratch/kocevski/782364/ft2_4FGL_J1017.8+0715_daily_bin902.fits outfile=/scratch/kocevski/782364/cmap_HighResolution_473126401_473385601_4FGL_J1017.8+0715_daily_bin902.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.70
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68069       1.0000         .10000E-03   10000.    
     2 'norm      '    .23852       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.517       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5715       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11798E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    96.833       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13634E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .61494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6598       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6862       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .66732       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1083       1.0000         .10000E-03   10000.    
    17 'norm      '    .52295       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .95790E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6358       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .62551       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=   7432.106     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2255 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68102        1.3401        .85232E-06    .51076E-03
   2  norm          .23876        .44793        .24515E-06    .82757E-03
   3  Prefactor     .10000E-03    4.1709        .32525E-06** at limit **
   4  Prefactor     .10000E-03    22.401       -.19280E-06** at limit **
   5  Prefactor     35.518        49.685        .23955E-05   -.25856E-04
   6  norm          1.5660        17.559        .70864E-05    .19730E-03
   7  Prefactor     .10000E-03    4.7562        .21807E-05** at limit **
   8  Prefactor     96.951        68.602        .86064E-06    .71005E-04
   9  Prefactor     .10000E-03    33.347       -.15008E-06** at limit **
  10  Prefactor     .10000E-03    24.186        .28418E-05** at limit **
  11  Prefactor     .10000E-03    5.0639        .11365E-05** at limit **
  12  norm          .61530        1.2078        .59003E-06    .49118E-03
  13  Prefactor     5.6602        6.5791        .63018E-06   -.68106E-04
  14  Prefactor     6.6861        3.7717        .41974E-06   -.16291E-03
  15  Prefactor     .69442        4.0642        .28495E-05   -.88386E-03
  16  Prefactor     2.1035        11.998        .34365E-05    .47183E-04
  17  norm          .52258        .49918        .80947E-07   -.79865E-04
  18  Prefactor     .10015E-03    5.3547        .15870E-06** at limit **
  19  Prefactor     .10000E-03    5.9873       -.47542E-07** at limit **
  20  Normalizat    1.6360        .22027       -.86873E-05   -.38903E-03
  21  Prefactor     .62530        .16329        .78997E-05   -.50362E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.681023
  norm       = 0.238755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.5177
  norm       = 1.56602
  Prefactor  = 0.000100001
  Prefactor  = 96.9507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.615301
  Prefactor  = 5.6602
  Prefactor  = 6.6861
  Prefactor  = 0.694416
  Prefactor  = 2.10349
  norm       = 0.522581
  Prefactor  = 0.000100149
  Prefactor  = 0.0001
  Normalizat = 1.63596
  Prefactor  = 0.625298
 **********
 **   18 **HESSE 
 **********

 FCN=   7432.106     FROM HESSE     STATUS=OK           325 CALLS     2580 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68102        1.3330        .12948E-03   -1.5543    
   2  norm          .23876        .44020        .74513E-04   -1.5610    
   3  Prefactor     .10000E-03    4.1703        .17174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.518        49.621        .67245E-04   -1.4515    
   6  norm          1.5660        18.199        .33908E-03   -1.5458    
   7  Prefactor     .10000E-03    4.8125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     96.951        68.638        .20424E-03   -1.3735    
   9  Prefactor     .10000E-03    33.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .61530        1.1954        .12430E-03   -1.5551    
  13  Prefactor     5.6602        6.5313        .16885E-03   -1.5232    
  14  Prefactor     6.6861        3.7255        .11366E-03   -1.5191    
  15  Prefactor     .69442        12.780        .30393E-02   -1.5541    
  16  Prefactor     2.1035        10.958        .28415E-03   -1.5418    
  17  norm          .52258        .47052        .53620E-04   -1.5563    
  18  Prefactor     .10015E-03    78.468        .35079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6360        .22774        .22976E-03   -.74026    
  21  Prefactor     .62530        .16800        .28593E-03   -1.0653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93031e-09
Minuit parameter uncertainties:
  1  1.33308
  2  0.440211
  3  1.63656e-06
  4  4.42855e-05
  5  49.6786
  6  10.681
  7  0.000104213
  8  68.694
  9  5.49249e-05
  10  0.000197316
  11  5.50623e-05
  12  1.19542
  13  6.53216
  14  3.72563
  15  5.9591
  16  9.60462
  17  0.470519
  18  0.00683984
  19  1.20406e-06
  20  0.227885
  21  0.168135
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  9.695e+01  6.869e+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:  6.253e-01  1.681e-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.636e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.90
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 5.80e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/782364/likelihoodResults_473126401_473385601_4FGL_J1017.8+0715_daily_bin902.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) = 7430.28788036
delta logL = 1.81859778141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7430.2729514
delta logL = 1.83352674211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.371       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1848       1.0000          .0000       10.000    
     3 'Normalizat'    1.5405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68223       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=   7430.273     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      317 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.344        69.287        .81142E-04   -.16533E-03
   2  Index         4.1857        1.8189        .43706E-02   -.87961E-04
   3  Normalizat    1.5410        .21380        .23496E-03    .12862E-03
   4  Prefactor     .68159        .16929        .27495E-03    .40956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.344
  Index      = 4.18568
  Normalizat = 1.54102
  Prefactor  = 0.681587
 **********
 **   18 **HESSE 
 **********

 FCN=   7430.273     FROM HESSE     STATUS=OK            25 CALLS      342 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.344        34.646        .32457E-05   -1.4721    
   2  Index         4.1857        .92268        .17482E-03   -.16359    
   3  Normalizat    1.5410        .21413        .46992E-04   -.76632    
   4  Prefactor     .68159        .16919        .10998E-04   -1.0425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23594e-10
Minuit parameter uncertainties:
  1  34.6751
  2  0.928149
  3  0.214255
  4  0.169316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782364': 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) = 7430.27294226
delta logL = 1.83353588258

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.434e+01  3.468e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  4.186e+00  9.281e-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:  6.816e-01  1.693e-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.541e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.01
Ra Dec: 154.473 7.264
Photon Index (Free Index): 4.19 +/- 0.93
Photon Flux (Free Index): 1.59e-07 +/- 7.38e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.08e-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/782364/cmap_HighResolution_473126401_473385601_4FGL_J1017.8+0715_daily_bin902.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='2.31e-05', photon_flux_error='5.80e-08', dlogl='1.83e+00', energy_flux='1.92e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-01 16:37:29.539057', photon_index_error2='0.93', photon_index2='4.19', ts='2.90', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.08e-05', EG='1.64', time_epoch_completed='1630539449.54', return_code='0', job_id='782364', GAL2='0.68', EG2='1.54', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='7.38e-08', ts2='7.01', photon_index='2.73' WHERE bin_id='902' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:37:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 782364: <4FGL_J1017.8+0715_daily_bin902> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin902 154.473 7.2638 473126401 473385601 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 :                                   664.61 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            991 sec.

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

