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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin655
RA = 154.473, Dec = 7.2638
tmin = 409104001, tmax = 409363201
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='780850', job_status='RUN', time_executed='2021-09-01 16:20:04.777492', time_epoch_executed='1630538404.78' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780850

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780850/ft1_4FGL_J1017.8+0715_daily_bin655.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780850/ft2_4FGL_J1017.8+0715_daily_bin655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780850/ft1_4FGL_J1017.8+0715_daily_bin655.fits outfile=/scratch/kocevski/780850/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin655.fits ra=154.473 dec=7.2638 rad=12.0 tmin=409104001.0 tmax=409363201.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 5.58
user 5.27
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780850/ft1_filtered_4FGL_J1017.8+0715_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/780850/ft2_4FGL_J1017.8+0715_daily_bin655.fits sctable="SC_DATA" expcube=/scratch/kocevski/780850/ltcube_409104001_409363201_4FGL_J1017.8+0715_daily_bin655.fits outfile=/scratch/kocevski/780850/expmap_409104001_409363201_4FGL_J1017.8+0715_daily_bin655.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/780850/ltcube_409104001_409363201_4FGL_J1017.8+0715_daily_bin655.fits
.....................!
real 189.96
user 185.37
sys 4.16

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/780850/ft1_filtered_4FGL_J1017.8+0715_daily_bin655.fits scfile=/scratch/kocevski/780850/ft2_4FGL_J1017.8+0715_daily_bin655.fits outfile=/scratch/kocevski/780850/cmap_409104001_409363201_4FGL_J1017.8+0715_daily_bin655.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780850/ft1_filtered_4FGL_J1017.8+0715_daily_bin655.fits scfile=/scratch/kocevski/780850/ft2_4FGL_J1017.8+0715_daily_bin655.fits outfile=/scratch/kocevski/780850/cmap_HighResolution_409104001_409363201_4FGL_J1017.8+0715_daily_bin655.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.473 yref=7.2638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10415E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9715       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8699       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .86252E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3995       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5190       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0005       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4658       1.0000         .10000E-03   10000.    
    17 'norm      '    .47372       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.832       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99466       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1697       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=   5785.160     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2203 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .82406       -.15833E-06** at limit **
   2  norm          3.9712        .97288        .40298E-07   -.14842E-02
   3  Prefactor     1.8782        37.521        .15675E-04    .77325E-05
   4  Prefactor     .10010E-03    109.77        .18710E-05** at limit **
   5  Prefactor     .10000E-03    40.927       -.58742E-06** at limit **
   6  norm          .10000E-03    10.110        .98863E-07** at limit **
   7  Prefactor     1.3899        18.529        .33986E-05    .27055E-03
   8  Prefactor     39.882        80.568       -.77108E-05   -.81542E-04
   9  Prefactor     .10000E-03    21.159        .25476E-06** at limit **
  10  Prefactor     .10000E-03    38.060       -.53630E-06** at limit **
  11  Prefactor     .10000E-03    9.4581        .47048E-06** at limit **
  12  norm          1.5184        1.2735       -.11640E-06   -.12170E-02
  13  Prefactor     8.1950        6.8172       -.88712E-07   -.56305E-03
  14  Prefactor     2.9855        4.7615       -.59754E-06    .15943E-03
  15  Prefactor     1.0073        5.3389        .29518E-05   -.30150E-03
  16  Prefactor     1.4674        14.414        .17123E-04   -.24494E-03
  17  norm          .47374        .56126       -.18599E-07    .10524E-02
  18  Prefactor     .10000E-03    3.4881       -.14016E-07** at limit **
  19  Prefactor     27.841        35.688       -.71564E-06    .33067E-04
  20  Normalizat    .99461        .22774       -.73953E-05   -.70221E-03
  21  Prefactor     1.1695        .18062        .25924E-05   -.56048E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.97119
  Prefactor  = 1.87825
  Prefactor  = 0.000100096
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.38994
  Prefactor  = 39.8818
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.51836
  Prefactor  = 8.19498
  Prefactor  = 2.98552
  Prefactor  = 1.00734
  Prefactor  = 1.46742
  norm       = 0.473742
  Prefactor  = 0.0001
  Prefactor  = 27.8405
  Normalizat = 0.994614
  Prefactor  = 1.16948
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.160     FROM HESSE     STATUS=OK           321 CALLS     2524 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3837        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9712        .97334        .35263E-04   -1.5309    
   3  Prefactor     1.8782        36.168        .15230E-02   -1.5434    
   4  Prefactor     .10010E-03    110.71        .20857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3899        18.030        .36684E-03   -1.5472    
   8  Prefactor     39.882        80.411        .63499E-04   -1.4444    
   9  Prefactor     .10000E-03    21.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5184        1.2690        .75528E-04   -1.5462    
  13  Prefactor     8.1950        6.8152        .14000E-03   -1.5135    
  14  Prefactor     2.9855        4.7337        .18892E-03   -1.5362    
  15  Prefactor     1.0073        21.337        .32089E-02   -1.5507    
  16  Prefactor     1.4674        14.559        .17758E-02   -1.5466    
  17  norm          .47374        .53328        .59717E-03   -1.5570    
  18  Prefactor     .10000E-03    3.4913        .13870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.841        35.670        .75939E-04   -1.4652    
  20  Normalizat    .99461        .26288        .28817E-03   -.93211    
  21  Prefactor     1.1695        .21226        .23338E-03   -.87276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49239e-09
Minuit parameter uncertainties:
  1  1.39067e-05
  2  0.973345
  3  16.4953
  4  0.00651619
  5  0.000363588
  6  4.41233e-05
  7  10.0155
  8  80.6308
  9  6.17945e-05
  10  0.000492118
  11  5.71637e-05
  12  1.26901
  13  6.8158
  14  4.73427
  15  9.27547
  16  9.24677
  17  0.533287
  18  5.76233e-06
  19  35.6969
  20  0.26322
  21  0.212416
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.988e+01  8.063e+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.169e+00  2.124e-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:  9.946e-01  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/780850/likelihoodResults_409104001_409363201_4FGL_J1017.8+0715_daily_bin655.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) = 5785.15956225
delta logL = 0.000174398534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5785.15942634
delta logL = 0.000310306319989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.876       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7692       1.0000          .0000       10.000    
     3 'Normalizat'    .99329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1702       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=   5785.159     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      258 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.798        92.367        .64284E-04   -.64834E-04
   2  Index         2.7667        1.4495        .12978E-01   -.18489E-04
   3  Normalizat    .99372        .24913        .28829E-03   -.38636E-03
   4  Prefactor     1.1701        .21186        .23332E-03    .36142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.7983
  Index      = 2.76667
  Normalizat = 0.99372
  Prefactor  = 1.17013
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.159     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.798        85.085        .12857E-04   -1.4461    
   2  Index         2.7667        1.3355        .51914E-03   -.46303    
   3  Normalizat    .99372        .24951        .57659E-04   -.93241    
   4  Prefactor     1.1701        .21184        .46665E-04   -.87255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83664e-09
Minuit parameter uncertainties:
  1  85.3526
  2  1.35613
  3  0.249804
  4  0.211998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780850': 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) = 5785.15941912
delta logL = 0.000317523428748

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.880e+01  8.535e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.767e+00  1.356e+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.170e+00  2.120e-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:  9.937e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/780850/cmap_HighResolution_409104001_409363201_4FGL_J1017.8+0715_daily_bin655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.64e-07', time_completed='2021-09-01 16:29:47.288818', job_id='780850', GAL2='1.17', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630538987.29', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='3.18e-04', ts2='0.33', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='655' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:29:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 780850: <4FGL_J1017.8+0715_daily_bin655> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin655 154.473 7.2638 409104001 409363201 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 :                                   581.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             285.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            841 sec.

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

