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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin619
RA = 154.473, Dec = 7.2638
tmin = 399772801, tmax = 400032001
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='780800', job_status='RUN', time_executed='2021-09-01 16:19:23.809467', time_epoch_executed='1630538363.81' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780800/ft1_4FGL_J1017.8+0715_daily_bin619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780800/ft2_4FGL_J1017.8+0715_daily_bin619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780800/ft1_4FGL_J1017.8+0715_daily_bin619.fits outfile=/scratch/kocevski/780800/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin619.fits ra=154.473 dec=7.2638 rad=12.0 tmin=399772801.0 tmax=400032001.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.27
user 4.92
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780800/ft1_filtered_4FGL_J1017.8+0715_daily_bin619.fits" evtable="EVENTS" scfile=/scratch/kocevski/780800/ft2_4FGL_J1017.8+0715_daily_bin619.fits sctable="SC_DATA" outfile=/scratch/kocevski/780800/ltcube_399772801_400032001_4FGL_J1017.8+0715_daily_bin619.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/780800/ft2_4FGL_J1017.8+0715_daily_bin619.fits
.....................!
real 17.06
user 16.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780800/ft1_filtered_4FGL_J1017.8+0715_daily_bin619.fits evtable="EVENTS" scfile=/scratch/kocevski/780800/ft2_4FGL_J1017.8+0715_daily_bin619.fits sctable="SC_DATA" expcube=/scratch/kocevski/780800/ltcube_399772801_400032001_4FGL_J1017.8+0715_daily_bin619.fits outfile=/scratch/kocevski/780800/expmap_399772801_400032001_4FGL_J1017.8+0715_daily_bin619.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/780800/ltcube_399772801_400032001_4FGL_J1017.8+0715_daily_bin619.fits
.....................!
real 191.61
user 186.19
sys 4.90

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/780800/ft1_filtered_4FGL_J1017.8+0715_daily_bin619.fits scfile=/scratch/kocevski/780800/ft2_4FGL_J1017.8+0715_daily_bin619.fits outfile=/scratch/kocevski/780800/cmap_399772801_400032001_4FGL_J1017.8+0715_daily_bin619.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.71
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780800/ft1_filtered_4FGL_J1017.8+0715_daily_bin619.fits scfile=/scratch/kocevski/780800/ft2_4FGL_J1017.8+0715_daily_bin619.fits outfile=/scratch/kocevski/780800/cmap_HighResolution_399772801_400032001_4FGL_J1017.8+0715_daily_bin619.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.78
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7686       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.851       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44445       1.0000         .10000E-03   10000.    
     6 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.081       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.407       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12676E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13259E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27828E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.885       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2658       1.0000         .10000E-03   10000.    
    17 'norm      '    .46345       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2706       1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.678       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1235       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2248       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=   7484.107     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2562 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7683        1.3272        .21502E-07    .24599E-03
   2  norm          .10000E-03    .10213        .67720E-07** at limit **
   3  Prefactor     22.836        15.510       -.23742E-07    .93177E-05
   4  Prefactor     .10000E-03    9.4907        .78729E-07** at limit **
   5  Prefactor     .35975        42.338        .55216E-05   -.30626E-03
   6  norm          .10000E-03    9.9351       -.12428E-05** at limit **
   7  Prefactor     .10000E-03    6.5837       -.16009E-05** at limit **
   8  Prefactor     70.983        63.170       -.77243E-06   -.57736E-04
   9  Prefactor     25.374        57.285       -.66262E-06   -.31575E-04
  10  Prefactor     .10000E-03    52.939       -.35414E-05** at limit **
  11  Prefactor     .10000E-03    26.130       -.33664E-05** at limit **
  12  norm          2.9999        1.3368       -.44887E-07   -.38136E-03
  13  Prefactor     .10008E-03    3.1886       -.67638E-06** at limit **
  14  Prefactor     17.883        5.3648       -.47227E-07    .76236E-04
  15  Prefactor     18.298        10.740       -.17704E-06   -.44138E-04
  16  Prefactor     3.2658        10.022        .83129E-06    .14242E-03
  17  norm          .46348        .39241        .13759E-07    .23257E-03
  18  Prefactor     7.2693        8.7761        .21599E-06    .84794E-04
  19  Prefactor     51.691        33.908       -.28417E-06   -.49440E-04
  20  Normalizat    1.1243        .23551        .41919E-05   -.11263E-03
  21  Prefactor     1.2241        .19164       -.38011E-05   -.24153E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76829
  norm       = 0.0001
  Prefactor  = 22.8363
  Prefactor  = 0.0001
  Prefactor  = 0.359749
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 70.9832
  Prefactor  = 25.3743
  Prefactor  = 0.000100005
  Prefactor  = 0.000100004
  norm       = 2.99986
  Prefactor  = 0.000100078
  Prefactor  = 17.8834
  Prefactor  = 18.2977
  Prefactor  = 3.26577
  norm       = 0.463483
  Prefactor  = 7.26926
  Prefactor  = 51.6912
  Normalizat = 1.12431
  Prefactor  = 1.22406
 **********
 **   18 **HESSE 
 **********

 FCN=   7484.107     FROM HESSE     STATUS=OK           329 CALLS     2891 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7683        1.3194        .81891E-04   -1.5442    
   2  norm          .10000E-03    .10465        .27018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.836        15.503        .83793E-04   -1.4752    
   4  Prefactor     .10000E-03    9.4957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .35975        28.125        .13564       -1.5588    
   6  norm          .10000E-03    10.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     70.983        63.360        .23807E-03   -1.4021    
   9  Prefactor     25.374        57.366        .79473E-04   -1.4700    
  10  Prefactor     .10000E-03    53.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9999        1.3325        .64283E-04   -1.5362    
  13  Prefactor     .10008E-03    49.654        .28188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.883        5.3475        .94705E-04   -1.4862    
  15  Prefactor     18.298        10.761        .93616E-04   -1.4852    
  16  Prefactor     3.2658        9.9647        .22409E-03   -1.5347    
  17  norm          .46348        .39827        .46332E-04   -1.5572    
  18  Prefactor     7.2693        8.7813        .14875E-03   -1.5169    
  19  Prefactor     51.691        33.919        .55789E-04   -1.4269    
  20  Normalizat    1.1243        .24890        .30452E-03   -.88975    
  21  Prefactor     1.2241        .19927        .25148E-03   -.85594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42525e-09
Minuit parameter uncertainties:
  1  1.31943
  2  8.26287e-07
  3  15.5062
  4  5.35029e-06
  5  6.36394
  6  0.000151328
  7  0.000161639
  8  63.4199
  9  57.4908
  10  0.00100804
  11  0.000661224
  12  1.3325
  13  0.00393949
  14  5.34768
  15  10.7622
  16  9.96975
  17  0.398273
  18  8.78289
  19  33.9317
  20  0.249158
  21  0.199394
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.098e+01  6.342e+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.224e+00  1.994e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.124e+00  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 5.36e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/780800/likelihoodResults_399772801_400032001_4FGL_J1017.8+0715_daily_bin619.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) = 7483.52743289
delta logL = 0.579800060297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7483.49563469
delta logL = 0.611598260964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.671       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8487       1.0000          .0000       10.000    
     3 'Normalizat'    1.0759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2550       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.

 FCN=   7483.496     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      274 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.671        303.15        .20162E-02    .14945E-03
   2  Index         3.8487        3.4265        .17064        .13218E-03
   3  Normalizat    1.0755        .68092E-01    .70115E-01    .26917E-04
   4  Prefactor     1.2553        .57442E-01    .56272E-01    .18075E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.671
  Index      = 3.84868
  Normalizat = 1.07547
  Prefactor  = 1.25529
 **********
 **   18 **HESSE 
 **********

 FCN=   7483.496     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.671        144.27        .80648E-04   -1.4714    
   2  Index         3.8487        3.0336        .60373E-02   -.23235    
   3  Normalizat    1.0755        .23938        .31023E-03   -.90543    
   4  Prefactor     1.2553        .20332        .24882E-03   -.84646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85925e-10
Minuit parameter uncertainties:
  1  119.759
  2  3.27546
  3  0.239626
  4  0.203451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780800': 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) = 7483.4956329
delta logL = 0.611600049198

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.467e+01  1.198e+02  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.849e+00  3.275e+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.255e+00  2.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.075e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.11
Ra Dec: 154.473 7.264
Photon Index (Free Index): 3.85 +/- 3.28
Photon Flux (Free Index): 9.74e-08 +/- 6.60e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/780800/cmap_HighResolution_399772801_400032001_4FGL_J1017.8+0715_daily_bin619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='1.50e-05', photon_flux_error='5.36e-08', dlogl='6.12e-01', energy_flux='1.41e-05', photon_flux2='9.74e-08', job_status='DONE', time_completed='2021-09-01 16:30:59.875361', photon_index_error2='3.28', photon_index2='3.85', ts='1.74', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.36e-05', EG='1.12', time_epoch_completed='1630539059.88', return_code='0', job_id='780800', GAL2='1.26', EG2='1.08', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='6.60e-08', ts2='3.11', photon_index='2.73' WHERE bin_id='619' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 780800: <4FGL_J1017.8+0715_daily_bin619> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin619 154.473 7.2638 399772801 400032001 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 :                                   692.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             344.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            917 sec.

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

