/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 2 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 = 7433
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1017.8+0715_daily_bin344
RA = 154.473, Dec = 7.2638
tmin = 328492801, tmax = 328752001
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='779403', job_status='RUN', time_executed='2021-09-01 16:15:43.044546', time_epoch_executed='1630538143.04' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779403/ft1_4FGL_J1017.8+0715_daily_bin344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779403/ft2_4FGL_J1017.8+0715_daily_bin344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779403/ft1_4FGL_J1017.8+0715_daily_bin344.fits outfile=/scratch/kocevski/779403/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin344.fits ra=154.473 dec=7.2638 rad=12.0 tmin=328492801.0 tmax=328752001.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 3.43
user 3.22
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779403/ft1_filtered_4FGL_J1017.8+0715_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/779403/ft2_4FGL_J1017.8+0715_daily_bin344.fits sctable="SC_DATA" expcube=/scratch/kocevski/779403/ltcube_328492801_328752001_4FGL_J1017.8+0715_daily_bin344.fits outfile=/scratch/kocevski/779403/expmap_328492801_328752001_4FGL_J1017.8+0715_daily_bin344.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/779403/ltcube_328492801_328752001_4FGL_J1017.8+0715_daily_bin344.fits
.....................!
real 192.13
user 187.18
sys 4.30

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/779403/ft1_filtered_4FGL_J1017.8+0715_daily_bin344.fits scfile=/scratch/kocevski/779403/ft2_4FGL_J1017.8+0715_daily_bin344.fits outfile=/scratch/kocevski/779403/cmap_328492801_328752001_4FGL_J1017.8+0715_daily_bin344.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779403/ft1_filtered_4FGL_J1017.8+0715_daily_bin344.fits scfile=/scratch/kocevski/779403/ft2_4FGL_J1017.8+0715_daily_bin344.fits outfile=/scratch/kocevski/779403/cmap_HighResolution_328492801_328752001_4FGL_J1017.8+0715_daily_bin344.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4844       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.060       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72649E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.460       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7349       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4491       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4626       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.574       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4567       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .61432       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2494       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=   5128.622     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2242 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4845        1.3336        .18778E-06    .53130E-04
   2  norm          .10000E-03    .31308       -.56691E-07** at limit **
   3  Prefactor     28.803        18.444        .23586E-06    .61338E-05
   4  Prefactor     18.034        30.389        .20059E-05   -.29251E-03
   5  Prefactor     .10005E-03    197.31        .23297E-04** at limit **
   6  norm          16.467        22.371       -.14920E-06    .12442E-04
   7  Prefactor     .10000E-03    4.1949       -.10171E-06** at limit **
   8  Prefactor     65.450        60.699        .23858E-05    .17375E-04
   9  Prefactor     .10000E-03    20.272        .66035E-06** at limit **
  10  Prefactor     .10000E-03    37.996       -.20791E-05** at limit **
  11  Prefactor     .10000E-03    5.8804        .31821E-07** at limit **
  12  norm          1.7351        1.4382       -.71517E-09   -.36536E-03
  13  Prefactor     .10000E-03    5.2231       -.32708E-06** at limit **
  14  Prefactor     3.4493        4.6376        .35430E-06    .42868E-06
  15  Prefactor     1.4631        4.8053        .10306E-04    .12714E-03
  16  Prefactor     30.575        13.132        .18601E-06   -.12974E-04
  17  norm          3.4567        .97133        .39370E-08   -.64925E-04
  18  Prefactor     .10000E-03    2.8689       -.10322E-07** at limit **
  19  Prefactor     .10000E-03    8.5961       -.79221E-07** at limit **
  20  Normalizat    .61423        .20721       -.44750E-05   -.15470E-03
  21  Prefactor     1.2494        .17774        .62854E-06   -.29365E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48451
  norm       = 0.0001
  Prefactor  = 28.8028
  Prefactor  = 18.0341
  Prefactor  = 0.000100048
  norm       = 16.4672
  Prefactor  = 0.0001
  Prefactor  = 65.4496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73511
  Prefactor  = 0.0001
  Prefactor  = 3.44929
  Prefactor  = 1.46311
  Prefactor  = 30.5752
  norm       = 3.45668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.614232
  Prefactor  = 1.24945
 **********
 **   18 **HESSE 
 **********

 FCN=   5128.622     FROM HESSE     STATUS=OK           315 CALLS     2557 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4845        1.3151        .74010E-04   -1.5464    
   2  norm          .10000E-03    .55369        .77057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.803        18.460        .74652E-04   -1.4634    
   4  Prefactor     18.034        30.140        .94246E-04   -1.4858    
   5  Prefactor     .10005E-03    196.95        .20959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.467        22.366        .98696E-04   -1.4896    
   7  Prefactor     .10000E-03    4.2020        .14321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     65.450        60.786        .49603E-04   -1.4088    
   9  Prefactor     .10000E-03    20.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8835        .16960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7351        1.4315        .75177E-04   -1.5445    
  13  Prefactor     .10000E-03    5.2716        .15979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4493        4.6000        .15640E-03   -1.5337    
  15  Prefactor     1.4631        4.8088        .13657E-02   -1.5466    
  16  Prefactor     30.575        13.063        .72461E-04   -1.4602    
  17  norm          3.4567        .97187        .18023E-03   -1.5336    
  18  Prefactor     .10000E-03    2.8700        .11845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .61423        .23025        .31724E-03   -1.0738    
  21  Prefactor     1.2494        .19992        .20827E-03   -.84823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.11322e-10
Minuit parameter uncertainties:
  1  1.31514
  2  6.34227e-06
  3  18.4633
  4  30.1655
  5  0.00616381
  6  22.3774
  7  1.02547e-05
  8  60.8438
  9  1.17983e-05
  10  0.000127258
  11  9.94821e-06
  12  1.43157
  13  2.23568e-05
  14  4.60043
  15  4.81004
  16  13.0646
  17  0.971874
  18  8.93754e-08
  19  3.33853e-06
  20  0.230607
  21  0.20004
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  6.545e+01  6.084e+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.249e+00  2.000e-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:  6.142e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 5.14e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/779403/likelihoodResults_328492801_328752001_4FGL_J1017.8+0715_daily_bin344.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) = 5128.60342152
delta logL = 0.0183475624817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5128.5872141
delta logL = 0.0345549873809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.118       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5088       1.0000          .0000       10.000    
     3 'Normalizat'    .62209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2434       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=   5128.587     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      263 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.136        83.990        .45150E-04    .15612E-04
   2  Index         2.5089        .82689        .89140E-02    .18109E-03
   3  Normalizat    .62161        .22075        .31547E-03   -.52254E-05
   4  Prefactor     1.2438        .19931        .20865E-03   -.64612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.1364
  Index      = 2.5089
  Normalizat = 0.621613
  Prefactor  = 1.24384
 **********
 **   18 **HESSE 
 **********

 FCN=   5128.587     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.136        81.389        .90299E-05   -1.3926    
   2  Index         2.5089        .80110        .17828E-02   -.52154    
   3  Normalizat    .62161        .22082        .12619E-04   -1.0707    
   4  Prefactor     1.2438        .19934        .41729E-04   -.84993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10221e-11
Minuit parameter uncertainties:
  1  81.5039
  2  0.805733
  3  0.221129
  4  0.199465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779403': 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) = 5128.58721163
delta logL = 0.0345574504454

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.914e+01  8.150e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.509e+00  8.057e-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.244e+00  1.995e-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:  6.216e-01  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 154.473 7.264
Photon Index (Free Index): 2.51 +/- 0.81
Photon Flux (Free Index): 5.11e-08 +/- 4.81e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.47e-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/779403/cmap_HighResolution_328492801_328752001_4FGL_J1017.8+0715_daily_bin344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='1.47e-05', photon_flux_error='5.14e-08', dlogl='3.46e-02', energy_flux='1.30e-05', photon_flux2='5.11e-08', job_status='DONE', time_completed='2021-09-01 16:24:59.531019', photon_index_error2='0.81', photon_index2='2.51', ts='1.87', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.47e-05', EG='0.61', time_epoch_completed='1630538699.53', return_code='0', job_id='779403', GAL2='1.24', EG2='0.62', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.81e-08', ts2='1.94', photon_index='2.73' WHERE bin_id='344' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:24:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 779403: <4FGL_J1017.8+0715_daily_bin344> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin344> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 16:11:13 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:15:30 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:15:30 2021
Terminated at Wed Sep  1 16:24:59 2021
Results reported at Wed Sep  1 16:24:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin344 154.473 7.2638 328492801 328752001 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 :                                   552.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            826 sec.

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

