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 51 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 17448
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1017.8+0715_weekly_bin756
RA = 154.473, Dec = 7.2638
tmin = 696211201, tmax = 696816001
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='477474', job_status='RUN', time_executed='2023-01-31 02:46:58.739486', time_epoch_executed='1675162018.74' WHERE source_name='4FGL J1017.8+0715' and cadence='weekly' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477474

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477474/ft1_4FGL_J1017.8+0715_weekly_bin756.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477474/ft2_4FGL_J1017.8+0715_weekly_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477474/ft1_4FGL_J1017.8+0715_weekly_bin756.fits outfile=/scratch/kocevski/477474/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin756.fits ra=154.473 dec=7.2638 rad=12.0 tmin=696211201.0 tmax=696816001.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 7.94
user 7.50
sys 0.36

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

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

Number of photons that the gtmktime cut: 1400

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477474/ft1_filtered_4FGL_J1017.8+0715_weekly_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/477474/ft2_4FGL_J1017.8+0715_weekly_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/477474/ltcube_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.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/477474/ft2_4FGL_J1017.8+0715_weekly_bin756.fits
.....................!
real 35.31
user 34.65
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477474/ft1_filtered_4FGL_J1017.8+0715_weekly_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/477474/ft2_4FGL_J1017.8+0715_weekly_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/477474/ltcube_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.fits outfile=/scratch/kocevski/477474/expmap_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.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/477474/ltcube_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.fits
.....................!
real 192.96
user 187.62
sys 4.46

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1017.8+0715 @ 154.473 7.2638

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/477474/ft1_filtered_4FGL_J1017.8+0715_weekly_bin756.fits scfile=/scratch/kocevski/477474/ft2_4FGL_J1017.8+0715_weekly_bin756.fits outfile=/scratch/kocevski/477474/cmap_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477474/ft1_filtered_4FGL_J1017.8+0715_weekly_bin756.fits scfile=/scratch/kocevski/477474/ft2_4FGL_J1017.8+0715_weekly_bin756.fits outfile=/scratch/kocevski/477474/cmap_HighResolution_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.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.60
user 0.43
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/477474/ft1_filtered_4FGL_J1017.8+0715_weekly_bin756.fits', '/scratch/kocevski/477474/ft2_4FGL_J1017.8+0715_weekly_bin756.fits', expMap='/scratch/kocevski/477474/expmap_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.fits', expCube='/scratch/kocevski/477474/ltcube_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/477474/Model_4FGL_J1017.8+0715_weekly_bin756.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  0.000e+00  1.000e+06 ( 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/477474/ft1_filtered_4FGL_J1017.8+0715_weekly_bin756.fits
Spacecraft file(s): /scratch/kocevski/477474/ft2_4FGL_J1017.8+0715_weekly_bin756.fits
Exposure map: /scratch/kocevski/477474/expmap_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.fits
Exposure cube: /scratch/kocevski/477474/ltcube_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/477474/Model_4FGL_J1017.8+0715_weekly_bin756.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) = 15672.6300359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82803       1.0000          .0000       .10000E+07
     2 'norm      '    .17646       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.7716       1.0000          .0000       .10000E+07
     4 'Prefactor '    44.917       1.0000          .0000       .10000E+07
     5 'Prefactor '    .89818E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .53568E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    60.808       1.0000          .0000       .10000E+07
     8 'Prefactor '    .37313E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12750E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .65427E-02   1.0000          .0000       .10000E+07
    11 'norm      '    3.4932       1.0000          .0000       .10000E+07
    12 'Prefactor '    .49187E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.7084       1.0000          .0000       .10000E+07
    14 'Prefactor '    15.022       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39302E-07   1.0000          .0000       .10000E+07
    16 'norm      '    .63364       1.0000          .0000       .10000E+07
    17 'Prefactor '    .43777E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    .93979       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15672.62     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1453 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82892        .77555        .16312E-07   -.33918E-02
   2  norm          .17666        .23117        .57432E-07** at limit **
   3  Prefactor     1.7117        5.8566       -.16764E-07   -.23012E-02
   4  Prefactor     44.904        1.7201        .20054E-06   -.38651E-02
   5  Prefactor      .0000        16.834        .59487E-05** at limit **
   6  Prefactor     .55511E-09    8.9619        .16242E-05** at limit **
   7  Prefactor     61.828        37.247        .38164E-05   -.80646E-03
   8  Prefactor      .0000        12.347       -.11716E-05** at limit **
   9  Prefactor     .77716E-09    35.980        .13847E-04** at limit **
  10  Prefactor      .0000        21.932       -.60286E-05** at limit **
  11  norm          3.4938        .92205       -.53977E-07    .12030E-01
  12  Prefactor      .0000        2.2557        .61728E-06** at limit **
  13  Prefactor     1.7077        1.8783        .98104E-07   -.13415E-02
  14  Prefactor     15.088        5.4043        .29164E-07   -.22377E-03
  15  Prefactor      .0000        2.1338        .47452E-06** at limit **
  16  norm          .63374        .29326        .14834E-06   -.97334E-02
  17  Prefactor     .66613E-09    6.2488       -.51622E-08** at limit **
  18  Normalizat    .93884        .14123       -.12485E-04   -.21304E-03
  19  Prefactor     1.1205        .11787        .91244E-05    .88616E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.828918
  norm       = 0.176656
  Prefactor  = 1.71171
  Prefactor  = 44.9041
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Prefactor  = 61.828
  Prefactor  = 0
  Prefactor  = 7.77156e-10
  Prefactor  = 0
  norm       = 3.4938
  Prefactor  = 0
  Prefactor  = 1.70772
  Prefactor  = 15.0876
  Prefactor  = 0
  norm       = 0.633741
  Prefactor  = 6.66134e-10
  Normalizat = 0.938843
  Prefactor  = 1.12048
 **********
 **   18 **HESSE 
 **********

 FCN=   15672.62     FROM HESSE     STATUS=OK           304 CALLS     1757 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82892        .78010        .50868E-03   -1.5690    
   2  norm          .17666        .26090        .12211E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7117        5.9271        .78641E-03   -1.5682    
   4  Prefactor     44.904        23.079        .14922E-03   -1.5574    
   5  Prefactor      .0000        16.793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-09    8.8219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.828        37.172        .12825E-03   -1.5551    
   8  Prefactor      .0000        12.348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .77716E-09    35.861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        21.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4938        .92371        .54073E-03   -1.5671    
  12  Prefactor      .0000        2.2411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7077        1.9004        .80405E-03   -1.5682    
  14  Prefactor     15.088        5.4072        .25815E-03   -1.5630    
  15  Prefactor      .0000        2.1259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .63374        .29327        .66267E-03   -1.5692    
  17  Prefactor     .66613E-09    6.2659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .93884        .12421        .45408E-01   -.95108    
  19  Prefactor     1.1205        .10262        .36869E-01   -.88815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14893e-07
Minuit parameter uncertainties:
  1  0.780101
  2  0.260898
  3  5.92708
  4  23.0789
  5  4.29751e-05
  6  0.000140081
  7  37.1721
  8  1.64926e-05
  9  0.000339381
  10  1.63967e-05
  11  0.923708
  12  4.94917e-06
  13  1.90043
  14  5.40722
  15  9.90137e-07
  16  0.293269
  17  0.000130784
  18  0.12425
  19  0.102639
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  6.183e+01  3.717e+01  0.000e+00  1.000e+06 ( 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.120e+00  1.026e-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.388e-01  1.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 5.23e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 7.38e-06

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) = 15672.1862867
delta logL = 0.42994711145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15672.1468776
delta logL = 0.469356190491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.012       1.0000          .0000       .10000E+07
     2 'Index     '    3.3648       1.0000          .0000       10.000    
     3 'Normalizat'    .90778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1395       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=   15672.15     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      300 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.978        49.937        .64885E-05   -.53699E-02
   2  Index         3.3658        .96764        .76405E-02   -.17998E-03
   3  Normalizat    .90783        .14125        .27992E-03    .84316E-04
   4  Prefactor     1.1395        .11981        .22034E-03    .35923E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.9781
  Index      = 3.36581
  Normalizat = 0.90783
  Prefactor  = 1.13945
 **********
 **   18 **HESSE 
 **********

 FCN=   15672.15     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.978        37.793        .12977E-05   -1.5585    
   2  Index         3.3658        .73287        .30562E-03   -.33296    
   3  Normalizat    .90783        .14093        .11197E-04   -.96186    
   4  Prefactor     1.1395        .11939        .44069E-04   -.88215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00231e-10
Minuit parameter uncertainties:
  1  37.7937
  2  0.735842
  3  0.140983
  4  0.119417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477474': 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) = 15672.1468762
delta logL = 0.469357645237

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.798e+01  3.779e+01  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  3.366e+00  7.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.139e+00  1.194e-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.078e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.15
Ra Dec: 154.473 7.264
Photon Index (Free Index): 3.37 +/- 0.74
Photon Flux (Free Index): 7.47e-08 +/- 4.09e-08
Energy Flux (Free Index): 1.29e-05 +/- 6.71e-06

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/477474/cmap_HighResolution_696211201_696816001_4FGL_J1017.8+0715_weekly_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.23e-08', energy_flux2='1.29e-05', photon_flux_error='3.14e-08', dlogl='4.69e-01', energy_flux='1.23e-05', photon_flux2='7.47e-08', job_status='DONE', time_completed='2023-01-31 03:00:54.339623', photon_index_error2='0.74', photon_index2='3.37', ts='4.03', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='6.71e-06', EG='0.94', time_epoch_completed='1675162854.34', return_code='0', job_id='477474', GAL2='1.14', EG2='0.91', return_code2='0', energy_flux_error='7.38e-06', photon_flux_error2='4.09e-08', ts2='5.15', photon_index='2.73' WHERE bin_id='756' AND source_name='4FGL J1017.8+0715' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 31 03:00:54 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 477474: <4FGL_J1017.8+0715_weekly_bin756> in cluster <slac> Done

Job <4FGL_J1017.8+0715_weekly_bin756> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jan 31 02:45:20 2023
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 02:45:58 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 02:45:58 2023
Terminated at Tue Jan 31 03:00:55 2023
Results reported at Tue Jan 31 03:00:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_weekly_bin756 154.473 7.2638 696211201 696816001 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 :                                   833.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            935 sec.

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

