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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin363
RA = 154.473, Dec = 7.2638
tmin = 333417601, tmax = 333676801
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='780421', job_status='RUN', time_executed='2021-09-01 16:18:37.241175', time_epoch_executed='1630538317.24' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780421

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780421/ft1_4FGL_J1017.8+0715_daily_bin363.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780421/ft2_4FGL_J1017.8+0715_daily_bin363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780421/ft1_4FGL_J1017.8+0715_daily_bin363.fits outfile=/scratch/kocevski/780421/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin363.fits ra=154.473 dec=7.2638 rad=12.0 tmin=333417601.0 tmax=333676801.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.56
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780421/ft1_filtered_4FGL_J1017.8+0715_daily_bin363.fits" evtable="EVENTS" scfile=/scratch/kocevski/780421/ft2_4FGL_J1017.8+0715_daily_bin363.fits sctable="SC_DATA" outfile=/scratch/kocevski/780421/ltcube_333417601_333676801_4FGL_J1017.8+0715_daily_bin363.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/780421/ft2_4FGL_J1017.8+0715_daily_bin363.fits
.....................!
real 14.60
user 14.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780421/ft1_filtered_4FGL_J1017.8+0715_daily_bin363.fits evtable="EVENTS" scfile=/scratch/kocevski/780421/ft2_4FGL_J1017.8+0715_daily_bin363.fits sctable="SC_DATA" expcube=/scratch/kocevski/780421/ltcube_333417601_333676801_4FGL_J1017.8+0715_daily_bin363.fits outfile=/scratch/kocevski/780421/expmap_333417601_333676801_4FGL_J1017.8+0715_daily_bin363.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/780421/ltcube_333417601_333676801_4FGL_J1017.8+0715_daily_bin363.fits
.....................!
real 192.22
user 185.53
sys 4.34

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/780421/ft1_filtered_4FGL_J1017.8+0715_daily_bin363.fits scfile=/scratch/kocevski/780421/ft2_4FGL_J1017.8+0715_daily_bin363.fits outfile=/scratch/kocevski/780421/cmap_333417601_333676801_4FGL_J1017.8+0715_daily_bin363.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780421/ft1_filtered_4FGL_J1017.8+0715_daily_bin363.fits scfile=/scratch/kocevski/780421/ft2_4FGL_J1017.8+0715_daily_bin363.fits outfile=/scratch/kocevski/780421/cmap_HighResolution_333417601_333676801_4FGL_J1017.8+0715_daily_bin363.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.9253       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.074       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .92942       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.359       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11755E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .48808       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7416       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9440       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6840       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6296       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6561       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7226       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.562       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96682       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3500       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=   6200.318     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2202 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .53111        .62853E-07** at limit **
   2  norm          6.9255        1.3045       -.67640E-08    .36224E-04
   3  Prefactor     .10000E-03    7.3304       -.31452E-06** at limit **
   4  Prefactor     22.300        49.288       -.16535E-06   -.17393E-04
   5  Prefactor     .10000E-03    19.171       -.12860E-07** at limit **
   6  norm          20.058        17.276        .15406E-05    .24222E-03
   7  Prefactor     .95189        16.421        .29124E-05   -.57964E-03
   8  Prefactor     56.299        67.583        .36577E-05    .63829E-05
   9  Prefactor     .10000E-03    13.592        .19310E-06** at limit **
  10  Prefactor     .10000E-03    62.606       -.27919E-05** at limit **
  11  Prefactor     .10000E-03    13.804       -.11155E-05** at limit **
  12  norm          .48849        1.0655        .72789E-06    .15384E-02
  13  Prefactor     4.7422        8.6103        .30607E-07   -.19349E-04
  14  Prefactor     3.9443        3.2385       -.16879E-07    .34257E-04
  15  Prefactor     2.6851        8.4681        .53967E-06    .96050E-04
  16  Prefactor     5.6301        6.4152        .18741E-07    .15174E-04
  17  norm          1.6561        .92485       -.19248E-07    .36981E-04
  18  Prefactor     5.7234        11.689        .28048E-06    .20469E-04
  19  Prefactor     12.562        23.164       -.23687E-06    .30154E-05
  20  Normalizat    .96668        .23391        .42463E-05    .11626E-03
  21  Prefactor     1.3501        .19900       -.26136E-05    .25153E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.92548
  Prefactor  = 0.0001
  Prefactor  = 22.3
  Prefactor  = 0.0001
  norm       = 20.0583
  Prefactor  = 0.951889
  Prefactor  = 56.2987
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 0.488489
  Prefactor  = 4.74221
  Prefactor  = 3.94433
  Prefactor  = 2.68512
  Prefactor  = 5.63012
  norm       = 1.65608
  Prefactor  = 5.72337
  Prefactor  = 12.5625
  Normalizat = 0.966676
  Prefactor  = 1.35006
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.318     FROM HESSE     STATUS=OK           323 CALLS     2525 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .54355        .11184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.9255        1.3051        .37284E-04   -1.5182    
   3  Prefactor     .10000E-03    7.3670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.300        49.302        .84815E-04   -1.4763    
   5  Prefactor     .10000E-03    19.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.058        17.903        .89395E-04   -1.4812    
   7  Prefactor     .95189        37.815        .46363E-02   -1.5513    
   8  Prefactor     56.299        68.621        .53434E-04   -1.4206    
   9  Prefactor     .10000E-03    13.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .48849        .94267        .12007E-02   -1.5568    
  13  Prefactor     4.7422        8.5572        .18478E-03   -1.5272    
  14  Prefactor     3.9443        3.2360        .12301E-03   -1.5311    
  15  Prefactor     2.6851        8.4885        .24871E-03   -1.5380    
  16  Prefactor     5.6301        6.4060        .16931E-03   -1.5233    
  17  norm          1.6561        .94745        .47948E-04   -1.5451    
  18  Prefactor     5.7234        12.010        .16791E-03   -1.5229    
  19  Prefactor     12.562        23.167        .11302E-03   -1.4999    
  20  Normalizat    .96668        .26240        .31670E-03   -.94155    
  21  Prefactor     1.3501        .22524        .24323E-03   -.81830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30717e-09
Minuit parameter uncertainties:
  1  1.02852e-06
  2  1.30514
  3  5.34151e-05
  4  49.3927
  5  4.15606e-06
  6  17.9076
  7  12.0067
  8  68.7175
  9  6.06171e-05
  10  0.00094293
  11  0.00023035
  12  0.942701
  13  8.55945
  14  3.23613
  15  8.49234
  16  6.40674
  17  0.947455
  18  12.0154
  19  23.1831
  20  0.26275
  21  0.225405
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.667e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 4.76e-08 +/- 5.80e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/780421/likelihoodResults_333417601_333676801_4FGL_J1017.8+0715_daily_bin363.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) = 6199.879572
delta logL = 0.438567977226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6199.8622579
delta logL = 0.455882081577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.021       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8613       1.0000          .0000       10.000    
     3 'Normalizat'    .91507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3821       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=   6199.862     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      316 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.027        222.87        .87361E-04    .30725E-03
   2  Index         3.8612        3.8073        .69239E-02    .19034E-03
   3  Normalizat    .91508        .26019        .32443E-03    .92406E-04
   4  Prefactor     1.3821        .22872        .24082E-03    .16136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0274
  Index      = 3.86118
  Normalizat = 0.915076
  Prefactor  = 1.38211
 **********
 **   18 **HESSE 
 **********

 FCN=   6199.862     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.027        46.208        .34944E-05   -1.4791    
   2  Index         3.8612        1.4464        .27695E-03   -.22978    
   3  Normalizat    .91508        .25924        .12977E-04   -.95932    
   4  Prefactor     1.3821        .22560        .48165E-04   -.80897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2751e-10
Minuit parameter uncertainties:
  1  46.287
  2  1.46858
  3  0.259591
  4  0.225766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780421': 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) = 6199.86225788
delta logL = 0.455882097526

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.103e+01  4.629e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.861e+00  1.469e+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.382e+00  2.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.151e-01  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 154.473 7.264
Photon Index (Free Index): 3.86 +/- 1.47
Photon Flux (Free Index): 8.45e-08 +/- 7.06e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.09e-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/780421/cmap_HighResolution_333417601_333676801_4FGL_J1017.8+0715_daily_bin363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='4.76e-08', energy_flux2='1.30e-05', photon_flux_error='5.80e-08', dlogl='4.56e-01', energy_flux='1.12e-05', photon_flux2='8.45e-08', job_status='DONE', time_completed='2021-09-01 16:28:38.722607', photon_index_error2='1.47', photon_index2='3.86', ts='1.01', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='1.09e-05', EG='0.97', time_epoch_completed='1630538918.72', return_code='0', job_id='780421', GAL2='1.38', EG2='0.92', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='7.06e-08', ts2='2.02', photon_index='2.73' WHERE bin_id='363' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:28:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 780421: <4FGL_J1017.8+0715_daily_bin363> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin363 154.473 7.2638 333417601 333676801 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 :                                   597.12 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            802 sec.

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

