/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 97 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 = 7248
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1017.8+0715_daily_bin267
RA = 154.473, Dec = 7.2638
tmin = 308534401, tmax = 308793601
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='779264', job_status='RUN', time_executed='2021-09-01 16:16:31.695057', time_epoch_executed='1630538191.7' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779264

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779264/ft1_4FGL_J1017.8+0715_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779264/ft2_4FGL_J1017.8+0715_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779264/ft1_4FGL_J1017.8+0715_daily_bin267.fits outfile=/scratch/kocevski/779264/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin267.fits ra=154.473 dec=7.2638 rad=12.0 tmin=308534401.0 tmax=308793601.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.53
user 5.16
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779264/ft2_4FGL_J1017.8+0715_daily_bin267.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/779264/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin267.fits evtable="EVENTS" outfile="/scratch/kocevski/779264/ft1_filtered_4FGL_J1017.8+0715_daily_bin267.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/779264/ft1_filtered_4FGL_J1017.8+0715_daily_bin267.fits" evtable="EVENTS" scfile=/scratch/kocevski/779264/ft2_4FGL_J1017.8+0715_daily_bin267.fits sctable="SC_DATA" outfile=/scratch/kocevski/779264/ltcube_308534401_308793601_4FGL_J1017.8+0715_daily_bin267.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/779264/ft2_4FGL_J1017.8+0715_daily_bin267.fits
.....................!
real 14.13
user 13.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779264/ft1_filtered_4FGL_J1017.8+0715_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/779264/ft2_4FGL_J1017.8+0715_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/779264/ltcube_308534401_308793601_4FGL_J1017.8+0715_daily_bin267.fits outfile=/scratch/kocevski/779264/expmap_308534401_308793601_4FGL_J1017.8+0715_daily_bin267.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/779264/ltcube_308534401_308793601_4FGL_J1017.8+0715_daily_bin267.fits
.....................!
real 191.40
user 186.39
sys 4.51

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/779264/ft1_filtered_4FGL_J1017.8+0715_daily_bin267.fits scfile=/scratch/kocevski/779264/ft2_4FGL_J1017.8+0715_daily_bin267.fits outfile=/scratch/kocevski/779264/cmap_308534401_308793601_4FGL_J1017.8+0715_daily_bin267.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779264/ft1_filtered_4FGL_J1017.8+0715_daily_bin267.fits scfile=/scratch/kocevski/779264/ft2_4FGL_J1017.8+0715_daily_bin267.fits outfile=/scratch/kocevski/779264/cmap_HighResolution_308534401_308793601_4FGL_J1017.8+0715_daily_bin267.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4577       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    60.468       1.0000         .10000E-03   10000.    
     6 'norm      '    .10624E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    83.371       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    71.150       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0440       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.277       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2587       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2792       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90597       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1396       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=   5158.117     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2144 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4580        1.2726        .63553E-07   -.76289E-04
   2  norm          2.2139        .88163        .20633E-07   -.99610E-04
   3  Prefactor     11.826        13.574        .39274E-06    .93246E-04
   4  Prefactor     49.177        57.095        .34450E-06    .18838E-04
   5  Prefactor     60.471        56.738        .15509E-05    .78371E-04
   6  norm          .10000E-03    9.7301       -.17450E-05** at limit **
   7  Prefactor     .10000E-03    6.0450        .20209E-06** at limit **
   8  Prefactor     83.359        70.969       -.46663E-05   -.97708E-04
   9  Prefactor     .10000E-03    17.463        .22514E-05** at limit **
  10  Prefactor     71.168        54.037        .83071E-05    .47863E-03
  11  Prefactor     .10000E-03    8.2079        .12458E-05** at limit **
  12  norm          .10000E-03    .42678       -.21238E-09** at limit **
  13  Prefactor     .10000E-03    7.8703        .12136E-05** at limit **
  14  Prefactor     6.0448        3.8697       -.25223E-06   -.64576E-04
  15  Prefactor     12.279        8.7475        .30361E-06   -.29153E-03
  16  Prefactor     4.2584        8.1070        .40700E-05   -.13280E-02
  17  norm          3.2793        1.1192       -.10228E-06    .78768E-04
  18  Prefactor     .10000E-03    7.1162       -.14233E-05** at limit **
  19  Prefactor     .10000E-03    20.303       -.19104E-05** at limit **
  20  Normalizat    .90542        .22821       -.10072E-05   -.23534E-04
  21  Prefactor     1.1400        .18768       -.17830E-06   -.39347E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45801
  norm       = 2.2139
  Prefactor  = 11.8259
  Prefactor  = 49.1767
  Prefactor  = 60.4713
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 83.3594
  Prefactor  = 0.000100001
  Prefactor  = 71.1682
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.0448
  Prefactor  = 12.2787
  Prefactor  = 4.25837
  norm       = 3.27932
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.905417
  Prefactor  = 1.14003
 **********
 **   18 **HESSE 
 **********

 FCN=   5158.117     FROM HESSE     STATUS=OK           315 CALLS     2459 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4580        1.2562        .72507E-04   -1.5466    
   2  norm          2.2139        .87889        .40701E-04   -1.5410    
   3  Prefactor     11.826        13.566        .11650E-03   -1.5020    
   4  Prefactor     49.177        57.088        .57184E-04   -1.4304    
   5  Prefactor     60.471        56.779        .51597E-04   -1.4151    
   6  norm          .10000E-03    9.8138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0530        .17230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     83.359        72.249        .43992E-04   -1.3879    
   9  Prefactor     .10000E-03    17.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     71.168        56.797        .23796E-03   -1.4019    
  11  Prefactor     .10000E-03    8.2023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .43006        .45800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0448        3.8886        .10737E-03   -1.5216    
  15  Prefactor     12.279        8.7888        .57164E-03   -1.5007    
  16  Prefactor     4.2584        10.257        .97622E-03   -1.5295    
  17  norm          3.2793        1.1265        .42287E-04   -1.5346    
  18  Prefactor     .10000E-03    7.1675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .90542        .27331        .30435E-03   -.96270    
  21  Prefactor     1.1400        .22484        .23561E-03   -.88197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89668e-09
Minuit parameter uncertainties:
  1  1.25618
  2  0.878898
  3  13.5696
  4  57.152
  5  56.8295
  6  0.000173789
  7  2.73178e-05
  8  72.3248
  9  0.000268926
  10  56.8401
  11  5.85619e-05
  12  8.06934e-07
  13  8.2096e-05
  14  3.88871
  15  8.78971
  16  10.261
  17  1.1265
  18  0.000104858
  19  0.000233669
  20  0.27373
  21  0.225027
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  8.336e+01  7.232e+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.140e+00  2.250e-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.054e-01  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 7.05e-08 +/- 6.11e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/779264/likelihoodResults_308534401_308793601_4FGL_J1017.8+0715_daily_bin267.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) = 5158.11577488
delta logL = 0.00106335620058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5158.1152254
delta logL = 0.00161283736452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.885       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6903       1.0000          .0000       10.000    
     3 'Normalizat'    .90780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1383       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=   5158.115     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.915        85.756        .43349E-04    .32468E-04
   2  Index         2.6903        .76929        .82406E-02    .24289E-03
   3  Normalizat    .90753        .26563        .30404E-03    .63979E-04
   4  Prefactor     1.1386        .22557        .23573E-03   -.10550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.9151
  Index      = 2.69028
  Normalizat = 0.907535
  Prefactor  = 1.13863
 **********
 **   18 **HESSE 
 **********

 FCN=   5158.115     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.915        83.136        .86699E-05   -1.3851    
   2  Index         2.6903        .74549        .16481E-02   -.48019    
   3  Normalizat    .90753        .26583        .12161E-04   -.96196    
   4  Prefactor     1.1386        .22569        .47146E-04   -.88241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87624e-10
Minuit parameter uncertainties:
  1  83.2484
  2  0.749048
  3  0.266215
  4  0.22588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779264': 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) = 5158.11522441
delta logL = 0.00161382463284

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  8.592e+01  8.325e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.690e+00  7.490e-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:  1.139e+00  2.259e-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.075e-01  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 154.473 7.264
Photon Index (Free Index): 2.69 +/- 0.75
Photon Flux (Free Index): 6.89e-08 +/- 6.33e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.41e-05

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/779264/cmap_HighResolution_308534401_308793601_4FGL_J1017.8+0715_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='7.05e-08', energy_flux2='1.67e-05', photon_flux_error='6.11e-08', dlogl='1.61e-03', energy_flux='1.65e-05', photon_flux2='6.89e-08', job_status='DONE', time_completed='2021-09-01 16:25:37.935641', photon_index_error2='0.75', photon_index2='2.69', ts='2.06', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.41e-05', EG='0.91', time_epoch_completed='1630538737.94', return_code='0', job_id='779264', GAL2='1.14', EG2='0.91', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.33e-08', ts2='2.08', photon_index='2.73' WHERE bin_id='267' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:25:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 779264: <4FGL_J1017.8+0715_daily_bin267> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin267> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 16:11:01 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:14:39 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:14:39 2021
Terminated at Wed Sep  1 16:25:38 2021
Results reported at Wed Sep  1 16:25:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin267 154.473 7.2638 308534401 308793601 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 :                                   545.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            877 sec.

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

