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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin494
RA = 154.473, Dec = 7.2638
tmin = 367372801, tmax = 367632001
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='780615', job_status='RUN', time_executed='2021-09-01 16:16:55.062899', time_epoch_executed='1630538215.06' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780615

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780615/ft1_4FGL_J1017.8+0715_daily_bin494.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780615/ft2_4FGL_J1017.8+0715_daily_bin494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780615/ft1_4FGL_J1017.8+0715_daily_bin494.fits outfile=/scratch/kocevski/780615/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin494.fits ra=154.473 dec=7.2638 rad=12.0 tmin=367372801.0 tmax=367632001.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.48
user 3.20
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780615/ft1_filtered_4FGL_J1017.8+0715_daily_bin494.fits" evtable="EVENTS" scfile=/scratch/kocevski/780615/ft2_4FGL_J1017.8+0715_daily_bin494.fits sctable="SC_DATA" outfile=/scratch/kocevski/780615/ltcube_367372801_367632001_4FGL_J1017.8+0715_daily_bin494.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/780615/ft2_4FGL_J1017.8+0715_daily_bin494.fits
.....................!
real 15.61
user 15.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780615/ft1_filtered_4FGL_J1017.8+0715_daily_bin494.fits evtable="EVENTS" scfile=/scratch/kocevski/780615/ft2_4FGL_J1017.8+0715_daily_bin494.fits sctable="SC_DATA" expcube=/scratch/kocevski/780615/ltcube_367372801_367632001_4FGL_J1017.8+0715_daily_bin494.fits outfile=/scratch/kocevski/780615/expmap_367372801_367632001_4FGL_J1017.8+0715_daily_bin494.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/780615/ltcube_367372801_367632001_4FGL_J1017.8+0715_daily_bin494.fits
.....................!
real 192.21
user 186.96
sys 4.48

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/780615/ft1_filtered_4FGL_J1017.8+0715_daily_bin494.fits scfile=/scratch/kocevski/780615/ft2_4FGL_J1017.8+0715_daily_bin494.fits outfile=/scratch/kocevski/780615/cmap_367372801_367632001_4FGL_J1017.8+0715_daily_bin494.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780615/ft1_filtered_4FGL_J1017.8+0715_daily_bin494.fits scfile=/scratch/kocevski/780615/ft2_4FGL_J1017.8+0715_daily_bin494.fits outfile=/scratch/kocevski/780615/cmap_HighResolution_367372801_367632001_4FGL_J1017.8+0715_daily_bin494.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13082       1.0000         .10000E-03   10000.    
     2 'norm      '    .90918       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.153       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11034E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7811       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6230       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0249       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .65104       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.6006       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=   7458.803     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2288 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13075        .62777        .33220E-06   -.59434E-03
   2  norm          .90909        .60935        .70745E-07    .32613E-03
   3  Prefactor     10.151        16.960        .28544E-06    .16105E-05
   4  Prefactor     .10000E-03    12.653        .13394E-06** at limit **
   5  Prefactor     .10000E-03    7.4867        .34326E-07** at limit **
   6  norm          .10000E-03    8.8751        .23287E-06** at limit **
   7  Prefactor     12.685        10.493        .75500E-07    .42358E-04
   8  Prefactor     88.834        68.424        .15893E-05    .26831E-03
   9  Prefactor     .10000E-03    18.355       -.37409E-06** at limit **
  10  Prefactor     .10000E-03    31.527        .70571E-06** at limit **
  11  Prefactor     .10000E-03    7.5709        .15520E-06** at limit **
  12  norm          .10000E-03    .35047       -.14846E-08** at limit **
  13  Prefactor     .10000E-03    4.4634       -.85262E-07** at limit **
  14  Prefactor     .10449E-03    1.7158       -.10864E-05** at limit **
  15  Prefactor     8.7818        7.0474        .17252E-05    .35505E-03
  16  Prefactor     6.6241        6.4209        .20949E-05    .63923E-03
  17  norm          3.0249        .80380       -.26600E-07    .36182E-03
  18  Prefactor     .10000E-03    4.9241       -.79657E-07** at limit **
  19  Prefactor     .10000E-03    24.523        .51291E-07** at limit **
  20  Normalizat    .65080        .20691       -.36001E-05    .16159E-03
  21  Prefactor     1.6008        .17211        .11037E-05    .78397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.130753
  norm       = 0.909093
  Prefactor  = 10.1511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6851
  Prefactor  = 88.8335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104492
  Prefactor  = 8.78182
  Prefactor  = 6.62411
  norm       = 3.02489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.650796
  Prefactor  = 1.6008
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.803     FROM HESSE     STATUS=OK           327 CALLS     2615 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13075        2.1315        .12653E-02   -1.5636    
   2  norm          .90909        .59050        .52459E-03   -1.5517    
   3  Prefactor     10.151        16.911        .12575E-03   -1.5071    
   4  Prefactor     .10000E-03    12.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.9012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.685        10.470        .11247E-03   -1.4995    
   8  Prefactor     88.834        68.765        .21321E-03   -1.3820    
   9  Prefactor     .10000E-03    18.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .35459        .49895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5752        .35606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10449E-03    3.6081        .33151E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.7818        7.0459        .67633E-03   -1.5115    
  16  Prefactor     6.6241        6.4738        .77964E-03   -1.5193    
  17  norm          3.0249        .80310        .38441E-04   -1.5360    
  18  Prefactor     .10000E-03    4.9498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .65080        .23103        .35755E-03   -1.0587    
  21  Prefactor     1.6008        .19695        .21597E-03   -.74754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07425e-09
Minuit parameter uncertainties:
  1  1.05548
  2  0.590499
  3  16.919
  4  6.3046e-05
  5  1.21828e-05
  6  1.05925e-05
  7  10.4715
  8  68.8272
  9  0.000143463
  10  0.000169855
  11  1.49358e-06
  12  7.44592e-07
  13  9.82675e-06
  14  0.0080522
  15  7.04658
  16  6.47449
  17  0.803104
  18  5.65696e-06
  19  9.58933e-05
  20  0.231371
  21  0.197048
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  8.883e+01  6.883e+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.601e+00  1.970e-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.508e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.81
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 7.51e-08 +/- 5.81e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/780615/likelihoodResults_367372801_367632001_4FGL_J1017.8+0715_daily_bin494.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) = 7458.31006219
delta logL = 0.492697814521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7458.3019946
delta logL = 0.500765410611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.916       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4828       1.0000          .0000       10.000    
     3 'Normalizat'    .60131       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6319       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=   7458.302     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      297 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.924        69.207        .57928E-04    .18872E-03
   2  Index         3.4824        1.0104        .57916E-02    .14716E-03
   3  Normalizat    .60123        .22811        .37098E-03    .27768E-03
   4  Prefactor     1.6319        .19999        .21424E-03    .36865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.9244
  Index      = 3.48239
  Normalizat = 0.601227
  Prefactor  = 1.6319
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.302     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.924        56.953        .11586E-04   -1.4322    
   2  Index         3.4824        .83148        .23167E-03   -.30839    
   3  Normalizat    .60123        .22805        .14839E-04   -1.0793    
   4  Prefactor     1.6319        .19975        .42849E-04   -.73910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24714e-10
Minuit parameter uncertainties:
  1  57.0176
  2  0.835759
  3  0.228411
  4  0.199847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780615': 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) = 7458.30199409
delta logL = 0.500765922347

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  4.792e+01  5.702e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.482e+00  8.358e-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.632e+00  1.998e-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.012e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 154.473 7.264
Photon Index (Free Index): 3.48 +/- 0.84
Photon Flux (Free Index): 1.11e-07 +/- 7.09e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.15e-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/780615/cmap_HighResolution_367372801_367632001_4FGL_J1017.8+0715_daily_bin494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', photon_flux='7.51e-08', energy_flux2='1.86e-05', photon_flux_error='5.81e-08', dlogl='5.01e-01', energy_flux='1.76e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-01 16:28:00.666282', photon_index_error2='0.84', photon_index2='3.48', ts='2.81', fit_tolerance='1e-08', GAL='1.60', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='1.15e-05', EG='0.65', time_epoch_completed='1630538880.67', return_code='0', job_id='780615', GAL2='1.63', EG2='0.60', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='7.09e-08', ts2='4.02', photon_index='2.73' WHERE bin_id='494' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:28:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 780615: <4FGL_J1017.8+0715_daily_bin494> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin494 154.473 7.2638 367372801 367632001 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 :                                   657.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            750 sec.

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

