aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 72 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 = 17352
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1017.8+0715_weekly_bin714
RA = 154.473, Dec = 7.2638
tmin = 670809601, tmax = 671414401
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='424172', job_status='RUN', time_executed='2022-04-12 01:11:42.819497', time_epoch_executed='1649751102.82' WHERE source_name='4FGL J1017.8+0715' and cadence='weekly' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424172

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424172/ft1_4FGL_J1017.8+0715_weekly_bin714.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424172/ft2_4FGL_J1017.8+0715_weekly_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424172/ft1_4FGL_J1017.8+0715_weekly_bin714.fits outfile=/scratch/kocevski/424172/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin714.fits ra=154.473 dec=7.2638 rad=12.0 tmin=670809601.0 tmax=671414401.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 11.61
user 11.22
sys 0.34

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

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

Number of photons that the gtmktime cut: 1133

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424172/ft1_filtered_4FGL_J1017.8+0715_weekly_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/424172/ft2_4FGL_J1017.8+0715_weekly_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/424172/ltcube_670809601_671414401_4FGL_J1017.8+0715_weekly_bin714.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/424172/ft2_4FGL_J1017.8+0715_weekly_bin714.fits
.....................!
real 25.53
user 25.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424172/ft1_filtered_4FGL_J1017.8+0715_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/424172/ft2_4FGL_J1017.8+0715_weekly_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/424172/ltcube_670809601_671414401_4FGL_J1017.8+0715_weekly_bin714.fits outfile=/scratch/kocevski/424172/expmap_670809601_671414401_4FGL_J1017.8+0715_weekly_bin714.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/424172/ltcube_670809601_671414401_4FGL_J1017.8+0715_weekly_bin714.fits
.....................!
real 189.73
user 185.47
sys 3.91

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/424172/ft1_filtered_4FGL_J1017.8+0715_weekly_bin714.fits scfile=/scratch/kocevski/424172/ft2_4FGL_J1017.8+0715_weekly_bin714.fits outfile=/scratch/kocevski/424172/cmap_670809601_671414401_4FGL_J1017.8+0715_weekly_bin714.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424172/ft1_filtered_4FGL_J1017.8+0715_weekly_bin714.fits scfile=/scratch/kocevski/424172/ft2_4FGL_J1017.8+0715_weekly_bin714.fits outfile=/scratch/kocevski/424172/cmap_HighResolution_670809601_671414401_4FGL_J1017.8+0715_weekly_bin714.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.58
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69133       1.0000         .10000E-03   10000.    
     2 'norm      '    .33999       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2463       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1540       1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.818       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.325       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23875E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.950       1.0000         .10000E-03   10000.    
    12 'norm      '    3.3207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0336       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.914       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4771       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3656       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0316       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0765       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=   12425.47     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     1906 TOTAL
                     EDM=   .87E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69121        .91317        .11187E-06    .48759E-04
   2  norm          .33996        .44175        .97799E-08   -.30646E-03
   3  Prefactor     5.2460        5.0003        .49187E-07    .12438E-04
   4  Prefactor     .10000E-03    6.4903       -.19371E-06** at limit **
   5  Prefactor     8.1347        35.390        .60858E-05   -.67543E-05
   6  norm          .10000E-03    3.0558       -.15269E-06** at limit **
   7  Prefactor     .10000E-03    3.0580        .24785E-06** at limit **
   8  Prefactor     34.819        28.951       -.10731E-06   -.18159E-05
   9  Prefactor     28.326        21.935       -.46656E-07    .29342E-06
  10  Prefactor     .10000E-03    26.057        .20166E-06** at limit **
  11  Prefactor     11.943        10.463       -.18885E-06   -.17388E-04
  12  norm          3.3205        1.1417       -.65800E-08   -.25209E-04
  13  Prefactor     .10000E-03    5.0054       -.29941E-06** at limit **
  14  Prefactor     4.0338        2.0256        .21565E-07   -.35751E-05
  15  Prefactor     13.915        5.0118        .10235E-06    .47569E-06
  16  Prefactor     .10000E-03    2.3648        .49190E-07** at limit **
  17  norm          1.4771        .49713       -.10975E-06   -.86473E-05
  18  Prefactor     4.3655        5.3839        .17809E-05    .81120E-05
  19  Prefactor     .10000E-03    5.9346        .40817E-07** at limit **
  20  Normalizat    1.0315        .13624       -.21339E-06    .11024E-04
  21  Prefactor     1.0766        .11572       -.10465E-06    .82790E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.691213
  norm       = 0.339961
  Prefactor  = 5.24601
  Prefactor  = 0.0001
  Prefactor  = 8.13466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.8188
  Prefactor  = 28.3255
  Prefactor  = 0.0001
  Prefactor  = 11.9429
  norm       = 3.32054
  Prefactor  = 0.0001
  Prefactor  = 4.03385
  Prefactor  = 13.9149
  Prefactor  = 0.0001
  norm       = 1.47706
  Prefactor  = 4.36546
  Prefactor  = 0.0001
  Normalizat = 1.03154
  Prefactor  = 1.07656
 **********
 **   18 **HESSE 
 **********

 FCN=   12425.47     FROM HESSE     STATUS=OK           323 CALLS     2229 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69121        .89328        .11351E-03   -1.5542    
   2  norm          .33996        .42385        .79641E-03   -1.5591    
   3  Prefactor     5.2460        4.9991        .17549E-03   -1.5250    
   4  Prefactor     .10000E-03    6.4974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.1347        35.327        .14040E-03   -1.5137    
   6  norm          .10000E-03    3.0660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.819        29.005        .67914E-04   -1.4527    
   9  Prefactor     28.326        21.938        .75277E-04   -1.4643    
  10  Prefactor     .10000E-03    26.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.943        10.447        .11588E-03   -1.5017    
  12  norm          3.3205        1.1394        .67131E-04   -1.5344    
  13  Prefactor     .10000E-03    5.1760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0338        2.0233        .10770E-03   -1.5306    
  15  Prefactor     13.915        5.0214        .53689E-03   -1.4962    
  16  Prefactor     .10000E-03    2.4094        .16730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4771        .49774        .41506E-04   -1.5465    
  18  Prefactor     4.3655        5.3840        .96386E-03   -1.5290    
  19  Prefactor     .10000E-03    5.9599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0315        .15771        .26668E-03   -.91981    
  21  Prefactor     1.0766        .13492        .23240E-03   -.90219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62907e-09
Minuit parameter uncertainties:
  1  0.893295
  2  0.42385
  3  4.99947
  4  1.833e-05
  5  33.9376
  6  1.60651e-06
  7  4.97511e-06
  8  29.0163
  9  21.9447
  10  4.84524e-05
  11  10.4481
  12  1.13943
  13  2.27603e-05
  14  2.02331
  15  5.02159
  16  1.07732e-06
  17  0.497743
  18  5.38456
  19  9.4313e-07
  20  0.15778
  21  0.134968
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.482e+01  2.902e+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.077e+00  1.350e-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.032e+00  1.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.39
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 6.91e-06 +/- 5.76e-06

TS (Fixed Index): 2.39
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 8.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424172/likelihoodResults_670809601_671414401_4FGL_J1017.8+0715_weekly_bin714.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) = 12424.9660327
delta logL = 0.508110727847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12424.9404455
delta logL = 0.533697879076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.390       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9327       1.0000          .0000       10.000    
     3 'Normalizat'    1.0534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0630       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=   12424.94     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      240 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.398        36.454        .61571E-04   -.33886E-03
   2  Index         1.9328        .64520        .12295E-01   -.61849E-04
   3  Normalizat    1.0534        .15080        .26420E-03   -.13755E-02
   4  Prefactor     1.0630        .13397        .23362E-03   -.13842E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.3979
  Index      = 1.93276
  Normalizat = 1.05345
  Prefactor  = 1.06297
 **********
 **   18 **HESSE 
 **********

 FCN=   12424.94     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.398        36.998        .12314E-04   -1.4405    
   2  Index         1.9328        .65507        .49179E-03   -.66042    
   3  Normalizat    1.0534        .15094        .52841E-04   -.91261    
   4  Prefactor     1.0630        .13408        .46724E-04   -.90659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45163e-09
Minuit parameter uncertainties:
  1  37.0185
  2  0.658113
  3  0.151
  4  0.13412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424172': 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) = 12424.9404454
delta logL = 0.533697998173

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  4.240e+01  3.702e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.933e+00  6.581e-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.063e+00  1.341e-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.053e+00  1.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.45
Ra Dec: 154.473 7.264
Photon Index (Free Index): 1.93 +/- 0.66
Photon Flux (Free Index): 1.54e-08 +/- 1.78e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.57e-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/424172/cmap_HighResolution_670809601_671414401_4FGL_J1017.8+0715_weekly_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.27e-05', photon_flux_error='2.45e-08', dlogl='5.34e-01', energy_flux='6.91e-06', photon_flux2='1.54e-08', job_status='DONE', time_completed='2022-04-12 01:26:19.322448', photon_index_error2='0.66', photon_index2='1.93', ts='2.39', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='8.31e-08', energy_flux_error2='1.57e-05', EG='1.03', time_epoch_completed='1649751979.32', return_code='0', job_id='424172', GAL2='1.06', EG2='1.05', return_code2='0', energy_flux_error='5.76e-06', photon_flux_error2='1.78e-08', ts2='3.45', photon_index='2.73' WHERE bin_id='714' AND source_name='4FGL J1017.8+0715' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 12 01:26:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 424172: <4FGL_J1017.8+0715_weekly_bin714> in cluster <slac> Done

Job <4FGL_J1017.8+0715_weekly_bin714> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Apr 12 01:10:22 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 01:10:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 01:10:22 2022
Terminated at Tue Apr 12 01:26:20 2022
Results reported at Tue Apr 12 01:26:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_weekly_bin714 154.473 7.2638 670809601 671414401 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 :                                   876.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            958 sec.

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

