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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin666
RA = 154.473, Dec = 7.2638
tmin = 411955201, tmax = 412214401
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='782023', job_status='RUN', time_executed='2021-09-01 16:24:29.274634', time_epoch_executed='1630538669.27' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782023

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782023/ft1_4FGL_J1017.8+0715_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782023/ft2_4FGL_J1017.8+0715_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782023/ft1_4FGL_J1017.8+0715_daily_bin666.fits outfile=/scratch/kocevski/782023/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin666.fits ra=154.473 dec=7.2638 rad=12.0 tmin=411955201.0 tmax=412214401.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.73
user 5.38
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782023/ft1_filtered_4FGL_J1017.8+0715_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/782023/ft2_4FGL_J1017.8+0715_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/782023/ltcube_411955201_412214401_4FGL_J1017.8+0715_daily_bin666.fits outfile=/scratch/kocevski/782023/expmap_411955201_412214401_4FGL_J1017.8+0715_daily_bin666.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/782023/ltcube_411955201_412214401_4FGL_J1017.8+0715_daily_bin666.fits
.....................!
real 193.66
user 188.32
sys 4.84

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/782023/ft1_filtered_4FGL_J1017.8+0715_daily_bin666.fits scfile=/scratch/kocevski/782023/ft2_4FGL_J1017.8+0715_daily_bin666.fits outfile=/scratch/kocevski/782023/cmap_411955201_412214401_4FGL_J1017.8+0715_daily_bin666.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93608       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5492       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6774       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9252       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6957       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9369       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.588       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.284       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .54589       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1381       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=   4357.459     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     1852 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93605        1.2207       -.26281E-06   -.75175E-03
   2  norm          2.5492        1.0523        .24844E-07    .11718E-03
   3  Prefactor     .10000E-03    4.8828       -.95255E-06** at limit **
   4  Prefactor     .10000E-03    14.791        .74188E-05** at limit **
   5  Prefactor     5.6429        55.960       -.96698E-04   -.25428E-05
   6  norm          .10000E-03    5.0987        .11402E-05** at limit **
   7  Prefactor     .10000E-03    3.9160       -.10649E-07** at limit **
   8  Prefactor     .10000E-03    17.626       -.85612E-05** at limit **
   9  Prefactor     3.9362        103.93        .39415E-04   -.11045E-04
  10  Prefactor     .10000E-03    16.153       -.42415E-05** at limit **
  11  Prefactor     .10000E-03    6.2347       -.43987E-06** at limit **
  12  norm          4.6957        1.9432        .11237E-06    .14504E-03
  13  Prefactor     .10000E-03    3.1708        .14687E-06** at limit **
  14  Prefactor     4.9364        4.8697       -.32527E-06   -.26580E-03
  15  Prefactor     22.588        11.580       -.47320E-06   -.41356E-03
  16  Prefactor     24.281        13.110       -.34986E-06   -.45208E-03
  17  norm          4.4129        1.2660       -.47860E-07   -.79381E-03
  18  Prefactor     .10000E-03    21.950        .61696E-05** at limit **
  19  Prefactor     .10000E-03    36.997        .13625E-05** at limit **
  20  Normalizat    .54583        .22500       -.69381E-06    .52781E-04
  21  Prefactor     1.1382        .19048        .28219E-05   -.82784E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.936051
  norm       = 2.54921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.64293
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.93621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.69573
  Prefactor  = 0.0001
  Prefactor  = 4.93637
  Prefactor  = 22.5881
  Prefactor  = 24.281
  norm       = 4.41292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.545828
  Prefactor  = 1.13821
 **********
 **   18 **HESSE 
 **********

 FCN=   4357.459     FROM HESSE     STATUS=OK           315 CALLS     2167 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93605        1.1698        .79009E-03   -1.5514    
   2  norm          2.5492        1.0518        .25574E-04   -1.5389    
   3  Prefactor     .10000E-03    4.8981        .14246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.6429        56.310        .16858E-03   -1.5233    
   6  norm          .10000E-03    5.1018        .14558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9290        .12757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9362        103.37        .20363E-03   -1.5311    
  10  Prefactor     .10000E-03    16.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2386        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6957        1.9433        .56778E-04   -1.5275    
  13  Prefactor     .10000E-03    3.1837        .11478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9364        4.8543        .13084E-03   -1.5264    
  15  Prefactor     22.588        11.616        .42139E-03   -1.4757    
  16  Prefactor     24.281        13.098        .40643E-03   -1.4722    
  17  norm          4.4129        1.2634        .37822E-04   -1.5288    
  18  Prefactor     .10000E-03    22.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .54583        .24915        .33641E-03   -1.1034    
  21  Prefactor     1.1382        .21353        .21145E-03   -.88255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6315e-10
Minuit parameter uncertainties:
  1  1.16986
  2  1.05177
  3  4.0714e-06
  4  9.93061e-05
  5  35.6945
  6  2.12989e-06
  7  2.9575e-06
  8  5.08773e-06
  9  40.4207
  10  2.92174e-06
  11  1.97867e-06
  12  1.94338
  13  2.9299e-05
  14  4.85468
  15  11.6174
  16  13.0996
  17  1.26336
  18  3.1913e-05
  19  5.64923e-05
  20  0.249664
  21  0.213689
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  5.088e-06  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.138e+00  2.137e-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:  5.458e-01  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/782023/likelihoodResults_411955201_412214401_4FGL_J1017.8+0715_daily_bin666.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4357.45934865
delta logL = -0.000269418299467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4357.45908262
delta logL = -3.39515736414e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5599       1.0000          .0000       10.000    
     3 'Normalizat'    .54580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1382       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=   4357.459     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      282 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    301.01        .18142E-01** at limit **
   2  Index         1.7646        5.7207        .50000       -.20766E-06
   3  Normalizat    .54582        .17475E-01    .33642E-03   -.56650E-03
   4  Prefactor     1.1382        .15537E-01    .21145E-03   -.87081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 1.76458
  Normalizat = 0.545823
  Prefactor  = 1.13821
 **********
 **   18 **HESSE 
 **********

 FCN=   4357.459     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1441.4        .34050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7646        8.0908        .50000       -.70375    
   3  Normalizat    .54582        .41046E-01    .67283E-04   -1.1034    
   4  Prefactor     1.1382        .36495E-01    .42289E-04   -.88254    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.67543e-10
Minuit parameter uncertainties:
  1  0.00670728
  2  1767.37
  3  0.0410484
  4  0.0364955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782023': 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) = 4357.45907818
delta logL = 1.04557238956e-06

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  6.707e-03  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.765e+00  1.767e+03  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.138e+00  3.650e-02  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:  5.458e-01  4.105e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/782023/cmap_HighResolution_411955201_412214401_4FGL_J1017.8+0715_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', job_status='DONE', photon_flux_upper_limit='7.37e-08', time_completed='2021-09-01 16:33:14.757517', job_id='782023', GAL2='1.14', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1630539194.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='666' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:33:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 782023: <4FGL_J1017.8+0715_daily_bin666> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin666 154.473 7.2638 411955201 412214401 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 :                                   508.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             249.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            768 sec.

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

