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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin658
RA = 154.473, Dec = 7.2638
tmin = 409881601, tmax = 410140801
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='780855', job_status='RUN', time_executed='2021-09-01 16:20:58.899618', time_epoch_executed='1630538458.9' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780855

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780855/ft1_4FGL_J1017.8+0715_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780855/ft2_4FGL_J1017.8+0715_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780855/ft1_4FGL_J1017.8+0715_daily_bin658.fits outfile=/scratch/kocevski/780855/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin658.fits ra=154.473 dec=7.2638 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.35
user 6.11
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780855/ft1_filtered_4FGL_J1017.8+0715_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/780855/ft2_4FGL_J1017.8+0715_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/780855/ltcube_409881601_410140801_4FGL_J1017.8+0715_daily_bin658.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/780855/ft2_4FGL_J1017.8+0715_daily_bin658.fits
.....................!
real 14.86
user 14.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780855/ft1_filtered_4FGL_J1017.8+0715_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/780855/ft2_4FGL_J1017.8+0715_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/780855/ltcube_409881601_410140801_4FGL_J1017.8+0715_daily_bin658.fits outfile=/scratch/kocevski/780855/expmap_409881601_410140801_4FGL_J1017.8+0715_daily_bin658.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/780855/ltcube_409881601_410140801_4FGL_J1017.8+0715_daily_bin658.fits
.....................!
real 192.73
user 188.05
sys 4.09

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/780855/ft1_filtered_4FGL_J1017.8+0715_daily_bin658.fits scfile=/scratch/kocevski/780855/ft2_4FGL_J1017.8+0715_daily_bin658.fits outfile=/scratch/kocevski/780855/cmap_409881601_410140801_4FGL_J1017.8+0715_daily_bin658.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.57
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3339       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0148       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    72.688       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6284       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10683E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12582E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0165       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8881       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1157       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.378       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94288       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0816       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=   4820.166     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2202 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3338        1.6235        .62811E-07    .57398E-04
   2  norm          2.0147        .92029       -.10021E-07   -.24722E-03
   3  Prefactor     .10000E-03    5.0282        .17691E-06** at limit **
   4  Prefactor     72.735        54.675       -.28650E-05   -.16054E-03
   5  Prefactor     4.4759        223.43       -.41218E-05   -.37391E-04
   6  norm          .10000E-03    6.1798        .12953E-06** at limit **
   7  Prefactor     .10000E-03    5.4089        .58264E-06** at limit **
   8  Prefactor     .10000E-03    24.944        .30620E-06** at limit **
   9  Prefactor     .10000E-03    23.134        .92252E-07** at limit **
  10  Prefactor     .10000E-03    34.558        .95441E-06** at limit **
  11  Prefactor     7.0362        17.417        .91116E-06    .18742E-04
  12  norm          2.8877        1.7519        .18676E-07   -.14268E-03
  13  Prefactor     9.3117        10.004       -.43089E-06   -.14763E-03
  14  Prefactor     4.2326        4.4087        .35555E-06    .31166E-04
  15  Prefactor     .10000E-03    2.5551        .12908E-06** at limit **
  16  Prefactor     .10000E-03    3.9561       -.58598E-07** at limit **
  17  norm          1.1172        1.7533        .17990E-05    .19538E-03
  18  Prefactor     16.353        28.375       -.74465E-05    .15654E-03
  19  Prefactor     .10000E-03    11.467        .65403E-07** at limit **
  20  Normalizat    .94290        .22630        .57547E-06   -.15462E-03
  21  Prefactor     1.0816        .19317       -.96514E-06   -.15573E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33384
  norm       = 2.01473
  Prefactor  = 0.0001
  Prefactor  = 72.7349
  Prefactor  = 4.47589
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.03621
  norm       = 2.88773
  Prefactor  = 9.3117
  Prefactor  = 4.23262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11724
  Prefactor  = 16.3528
  Prefactor  = 0.0001
  Normalizat = 0.942895
  Prefactor  = 1.0816
 **********
 **   18 **HESSE 
 **********

 FCN=   4820.166     FROM HESSE     STATUS=OK           315 CALLS     2517 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3338        1.6181        .69551E-04   -1.5402    
   2  norm          2.0147        .91620        .42635E-04   -1.5424    
   3  Prefactor     .10000E-03    5.0353        .15206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     72.735        55.002        .47089E-04   -1.4000    
   5  Prefactor     4.4759        231.81        .18708E-03   -1.5285    
   6  norm          .10000E-03    6.1913        .16857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4193        .15743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    34.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0362        17.370        .15145E-03   -1.5177    
  12  norm          2.8877        1.7491        .68349E-04   -1.5368    
  13  Prefactor     9.3117        9.9961        .13135E-03   -1.5098    
  14  Prefactor     4.2326        4.4032        .14010E-03   -1.5296    
  15  Prefactor     .10000E-03    2.5617        .10839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9649        .13480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1172        1.7609        .63201E-04   -1.5497    
  18  Prefactor     16.353        28.637        .98967E-04   -1.4899    
  19  Prefactor     .10000E-03    11.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .94290        .25763        .28233E-03   -.94969    
  21  Prefactor     1.0816        .22102        .23119E-03   -.90057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67873e-10
Minuit parameter uncertainties:
  1  1.61814
  2  0.916208
  3  6.86499e-06
  4  55.0405
  5  64.6881
  6  4.84262e-06
  7  1.87482e-05
  8  2.87964e-05
  9  9.08681e-06
  10  0.000101497
  11  17.3826
  12  1.74916
  13  9.99789
  14  4.40352
  15  3.85856e-06
  16  1.43952e-06
  17  1.761
  18  28.6611
  19  1.07377e-05
  20  0.257966
  21  0.221209
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  2.880e-05  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.082e+00  2.212e-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.429e-01  2.580e-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: 8.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780855/likelihoodResults_409881601_410140801_4FGL_J1017.8+0715_daily_bin658.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) = 4820.16655668
delta logL = -0.000190696156096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4820.16636836
delta logL = -2.37772746914e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2754       1.0000          .0000       10.000    
     3 'Normalizat'    .94289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0816       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=   4820.166     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      298 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    300.51        .18142E-01** at limit **
   2  Index         1.8250        6.3796        .50000       -.25148E-07
   3  Normalizat    .94290        .11371E-01    .28233E-03    .14283E-03
   4  Prefactor     1.0816        .99526E-02    .23119E-03    .18173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82505
  Normalizat = 0.942896
  Prefactor  = 1.0816
 **********
 **   18 **HESSE 
 **********

 FCN=   4820.166     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      327 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1415.6        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8250        5.9381        .50000       -.68800    
   3  Normalizat    .94290        .25530E-01    .11293E-04   -.94969    
   4  Prefactor     1.0816        .22346E-01    .46239E-04   -.90057    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.16864e-11
Minuit parameter uncertainties:
  1  0.000123579
  2  1090.48
  3  0.0255301
  4  0.0223463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780855': 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) = 4820.1663647
delta logL = 1.28433566715e-06

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.236e-04  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.825e+00  1.090e+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.082e+00  2.235e-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:  9.429e-01  2.553e-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/780855/cmap_HighResolution_409881601_410140801_4FGL_J1017.8+0715_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-09-01 16:30:02.982417', job_id='780855', GAL2='1.08', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630539002.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='658' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 780855: <4FGL_J1017.8+0715_daily_bin658> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin658> 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) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:18: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:18:05 2021
Terminated at Wed Sep  1 16:30:03 2021
Results reported at Wed Sep  1 16:30:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin658 154.473 7.2638 409881601 410140801 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 :                                   543.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             241.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            856 sec.

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

