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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin905
RA = 154.473, Dec = 7.2638
tmin = 473904001, tmax = 474163201
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='782367', job_status='RUN', time_executed='2021-09-01 16:25:36.173302', time_epoch_executed='1630538736.17' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782367/ft1_4FGL_J1017.8+0715_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782367/ft2_4FGL_J1017.8+0715_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782367/ft1_4FGL_J1017.8+0715_daily_bin905.fits outfile=/scratch/kocevski/782367/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin905.fits ra=154.473 dec=7.2638 rad=12.0 tmin=473904001.0 tmax=474163201.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.14
user 4.85
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782367/ft1_filtered_4FGL_J1017.8+0715_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/782367/ft2_4FGL_J1017.8+0715_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/782367/ltcube_473904001_474163201_4FGL_J1017.8+0715_daily_bin905.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/782367/ft2_4FGL_J1017.8+0715_daily_bin905.fits
.....................!
real 17.66
user 17.14
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782367/ft1_filtered_4FGL_J1017.8+0715_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/782367/ft2_4FGL_J1017.8+0715_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/782367/ltcube_473904001_474163201_4FGL_J1017.8+0715_daily_bin905.fits outfile=/scratch/kocevski/782367/expmap_473904001_474163201_4FGL_J1017.8+0715_daily_bin905.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/782367/ltcube_473904001_474163201_4FGL_J1017.8+0715_daily_bin905.fits
.....................!
real 191.42
user 185.18
sys 5.46

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/782367/ft1_filtered_4FGL_J1017.8+0715_daily_bin905.fits scfile=/scratch/kocevski/782367/ft2_4FGL_J1017.8+0715_daily_bin905.fits outfile=/scratch/kocevski/782367/cmap_473904001_474163201_4FGL_J1017.8+0715_daily_bin905.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782367/ft1_filtered_4FGL_J1017.8+0715_daily_bin905.fits scfile=/scratch/kocevski/782367/ft2_4FGL_J1017.8+0715_daily_bin905.fits outfile=/scratch/kocevski/782367/cmap_HighResolution_473904001_474163201_4FGL_J1017.8+0715_daily_bin905.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/782367/ft1_filtered_4FGL_J1017.8+0715_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/782367/ft2_4FGL_J1017.8+0715_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/782367/Model_4FGL_J1017.8+0715_daily_bin905.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/782367/ft1_filtered_4FGL_J1017.8+0715_daily_bin905.fits.....................!
real 48.70
user 46.75
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9955       1.0000         .10000E-03   10000.    
     2 'norm      '    .17267       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9812       1.0000         .10000E-03   10000.    
     4 'Prefactor '    182.94       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.054       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5317       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .50982E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.220       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2048       1.0000         .10000E-03   10000.    
    17 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2948       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1013       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82903       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=   4554.860     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2237 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9954        1.1466        .37076E-07   -.43429E-04
   2  norm          .17255        .54579        .63240E-06   -.14486E-03
   3  Prefactor     6.9781        13.206        .10821E-06   -.12461E-04
   4  Prefactor     183.11        81.438        .22307E-06    .53098E-04
   5  Prefactor     .10000E-03    220.47        .19848E-04** at limit **
   6  norm          .10000E-03    14.878        .12205E-06** at limit **
   7  Prefactor     .10000E-03    3.5860        .88968E-07** at limit **
   8  Prefactor     47.078        52.016        .61665E-06    .16919E-04
   9  Prefactor     .10000E-03    27.447       -.17253E-06** at limit **
  10  Prefactor     .10000E-03    16.526        .10809E-06** at limit **
  11  Prefactor     .10000E-03    5.7477        .54788E-07** at limit **
  12  norm          3.5316        2.1785        .13198E-06   -.38756E-04
  13  Prefactor     .10000E-03    4.4799        .59491E-06** at limit **
  14  Prefactor     .10001E-03    2.6023       -.81539E-06** at limit **
  15  Prefactor     17.214        13.495        .37657E-06    .16611E-04
  16  Prefactor     1.2103        13.519        .45634E-05    .75809E-04
  17  norm          .10000E-03    .78525       -.40378E-06** at limit **
  18  Prefactor     5.2873        9.9547        .76040E-06    .16810E-03
  19  Prefactor     .10000E-03    19.675       -.23931E-06** at limit **
  20  Normalizat    1.1014        .22538       -.25365E-05    .12508E-03
  21  Prefactor     .82900        .17938        .17590E-05   -.56165E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.99544
  norm       = 0.172554
  Prefactor  = 6.97805
  Prefactor  = 183.106
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.0777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.53157
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 17.2135
  Prefactor  = 1.21026
  norm       = 0.0001
  Prefactor  = 5.28726
  Prefactor  = 0.0001
  Normalizat = 1.10141
  Prefactor  = 0.829003
 **********
 **   18 **HESSE 
 **********

 FCN=   4554.860     FROM HESSE     STATUS=OK           317 CALLS     2554 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9954        1.1450        .52360E-04   -1.5425    
   2  norm          .17255        .54472        .82848E-04   -1.5625    
   3  Prefactor     6.9781        13.133        .15183E-03   -1.5180    
   4  Prefactor     183.11        81.246        .14924E-03   -1.2993    
   5  Prefactor     .10000E-03    220.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5880        .12481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     47.078        52.068        .58453E-04   -1.4335    
   9  Prefactor     .10000E-03    27.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7492        .15803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5316        2.1732        .74281E-04   -1.5332    
  13  Prefactor     .10000E-03    4.4950        .13946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    11.092        .20207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.214        13.543        .96516E-04   -1.4878    
  16  Prefactor     1.2103        13.618        .41298E-03   -1.5488    
  17  norm          .10000E-03    2.1560        .10917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2873        9.5017        .17467E-03   -1.5248    
  19  Prefactor     .10000E-03    19.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1014        .25820        .25446E-03   -.89707    
  21  Prefactor     .82900        .20698        .23934E-03   -.98668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65366e-10
Minuit parameter uncertainties:
  1  1.14501
  2  0.544735
  3  13.1382
  4  81.2958
  5  0.000134979
  6  1.49542e-05
  7  3.32156e-07
  8  52.1186
  9  2.18127e-06
  10  6.78975e-06
  11  2.45122e-07
  12  2.17326
  13  2.52681e-06
  14  0.000507283
  15  13.545
  16  8.1213
  17  4.10831e-05
  18  9.50444
  19  3.08601e-06
  20  0.258492
  21  0.207171
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  4.708e+01  5.212e+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:  8.290e-01  2.072e-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.101e+00  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 9.34e-06 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/782367/likelihoodResults_473904001_474163201_4FGL_J1017.8+0715_daily_bin905.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) = 4554.51375725
delta logL = 0.346732950322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4554.48266655
delta logL = 0.377823648028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.042       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9264       1.0000          .0000       10.000    
     3 'Normalizat'    1.1262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81247       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=   4554.483     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.042        70.622        .12736E-02   -.14443E-02
   2  Index         1.9264        .63724        .26231       -.30512E-04
   3  Normalizat    1.1262        .20989        .56972E-01    .59475E-05
   4  Prefactor     .81246        .17415        .43879E-01    .10099E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.0416
  Index      = 1.92644
  Normalizat = 1.12624
  Prefactor  = 0.812465
 **********
 **   18 **HESSE 
 **********

 FCN=   4554.483     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.042        64.251        .50943E-04   -1.4131    
   2  Index         1.9264        .76651        .92851E-02   -.66202    
   3  Normalizat    1.1262        .24778        .25194E-03   -.88914    
   4  Prefactor     .81246        .20537        .24135E-03   -.99270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61457e-08
Minuit parameter uncertainties:
  1  64.3226
  2  0.771424
  3  0.248038
  4  0.205568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782367': 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) = 4554.48266636
delta logL = 0.377823841109

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  6.204e+01  6.432e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.926e+00  7.714e-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:  8.125e-01  2.056e-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.126e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 154.473 7.264
Photon Index (Free Index): 1.93 +/- 0.77
Photon Flux (Free Index): 2.25e-08 +/- 2.97e-08
Energy Flux (Free Index): 1.88e-05 +/- 2.92e-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/782367/cmap_HighResolution_473904001_474163201_4FGL_J1017.8+0715_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='1.88e-05', photon_flux_error='4.40e-08', dlogl='3.78e-01', energy_flux='9.34e-06', photon_flux2='2.25e-08', job_status='DONE', time_completed='2021-09-01 16:34:19.892265', photon_index_error2='0.77', photon_index2='1.93', ts='1.49', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='2.92e-05', EG='1.10', time_epoch_completed='1630539259.89', return_code='0', job_id='782367', GAL2='0.81', EG2='1.13', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='2.97e-08', ts2='2.24', photon_index='2.73' WHERE bin_id='905' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:34:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 782367: <4FGL_J1017.8+0715_daily_bin905> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin905 154.473 7.2638 473904001 474163201 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 :                                   521.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            801 sec.

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

