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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin1754
RA = 154.473, Dec = 7.2638
tmin = 693964801, tmax = 694224001
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='640598', job_status='RUN', time_executed='2023-01-01 01:02:34.615914', time_epoch_executed='1672563754.62' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640598/ft1_4FGL_J1017.8+0715_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640598/ft2_4FGL_J1017.8+0715_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640598/ft1_4FGL_J1017.8+0715_daily_bin1754.fits outfile=/scratch/kocevski/640598/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin1754.fits ra=154.473 dec=7.2638 rad=12.0 tmin=693964801.0 tmax=694224001.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.94
user 3.69
sys 0.21

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

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

Number of photons that the gtmktime cut: 338

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640598/ft1_filtered_4FGL_J1017.8+0715_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/640598/ft2_4FGL_J1017.8+0715_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/640598/ltcube_693964801_694224001_4FGL_J1017.8+0715_daily_bin1754.fits outfile=/scratch/kocevski/640598/expmap_693964801_694224001_4FGL_J1017.8+0715_daily_bin1754.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/640598/ltcube_693964801_694224001_4FGL_J1017.8+0715_daily_bin1754.fits
.....................!
real 194.26
user 188.50
sys 5.25

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/640598/ft1_filtered_4FGL_J1017.8+0715_daily_bin1754.fits scfile=/scratch/kocevski/640598/ft2_4FGL_J1017.8+0715_daily_bin1754.fits outfile=/scratch/kocevski/640598/cmap_693964801_694224001_4FGL_J1017.8+0715_daily_bin1754.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640598/ft1_filtered_4FGL_J1017.8+0715_daily_bin1754.fits scfile=/scratch/kocevski/640598/ft2_4FGL_J1017.8+0715_daily_bin1754.fits outfile=/scratch/kocevski/640598/cmap_HighResolution_693964801_694224001_4FGL_J1017.8+0715_daily_bin1754.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2270       1.0000          .0000       .10000E+07
     2 'norm      '    .16950E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    31.406       1.0000          .0000       .10000E+07
     4 'Prefactor '    72.546       1.0000          .0000       .10000E+07
     5 'Prefactor '    82.159       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14483E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    70.291       1.0000          .0000       .10000E+07
     8 'Prefactor '    110.92       1.0000          .0000       .10000E+07
     9 'Prefactor '    .75803       1.0000          .0000       .10000E+07
    10 'Prefactor '    .49941       1.0000          .0000       .10000E+07
    11 'norm      '    5.1894       1.0000          .0000       .10000E+07
    12 'Prefactor '    .32032E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.3204       1.0000          .0000       .10000E+07
    14 'Prefactor '    16.644       1.0000          .0000       .10000E+07
    15 'Prefactor '    20.835       1.0000          .0000       .10000E+07
    16 'norm      '    .55900E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    27.355       1.0000          .0000       .10000E+07
    18 'Normalizat'    .34734       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.5128       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=   3752.014     FROM MIGRAD    STATUS=CONVERGED    301 CALLS     1622 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2829        2.5485       -.36383E-07    .40604E-02
   2  norm          .20734E-01    9.6562       -.41762E-05** at limit **
   3  Prefactor     31.719        22.667        .91084E-06   -.45968E-02
   4  Prefactor     81.384        89.909        .12817E-05   -.21152E-02
   5  Prefactor     83.481        92.448       -.52666E-05    .31400E-02
   6  Prefactor     .59952E-08    15.803        .47329E-05** at limit **
   7  Prefactor     83.784        80.899       -.42662E-05    .16970E-01
   8  Prefactor     118.58        47.267       -.26728E-05   -.37871E-01
   9  Prefactor     .66613E-08    182.19       -.46478E-05** at limit **
  10  Prefactor     .70211        134.11        .12454E-04   -.25927E-03
  11  norm          5.1676        2.5680       -.91446E-07    .97140E-03
  12  Prefactor     .11102E-09    5.4479       -.24462E-07** at limit **
  13  Prefactor     1.3310        2.2418       -.50263E-06    .36946E-02
  14  Prefactor     16.897        10.070        .58458E-06    .26794E-02
  15  Prefactor     20.995        11.023        .12248E-05   -.10305E-02
  16  norm           .0000        .23758        .22870E-06** at limit **
  17  Prefactor     28.428        27.357        .40021E-05    .24341E-02
  18  Normalizat    .32433        .33171       -.25992E-04   -.95077E-04
  19  Prefactor     1.5190        .26984        .15761E-04   -.18900E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.28295
  norm       = 0.020734
  Prefactor  = 31.7192
  Prefactor  = 81.384
  Prefactor  = 83.4811
  Prefactor  = 5.9952e-09
  Prefactor  = 83.7839
  Prefactor  = 118.578
  Prefactor  = 6.66134e-09
  Prefactor  = 0.702108
  norm       = 5.16757
  Prefactor  = 1.11022e-10
  Prefactor  = 1.33102
  Prefactor  = 16.8972
  Prefactor  = 20.9955
  norm       = 0
  Prefactor  = 28.4275
  Normalizat = 0.324334
  Prefactor  = 1.51902
 **********
 **   18 **HESSE 
 **********

 FCN=   3752.014     FROM HESSE     STATUS=OK           318 CALLS     1940 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2829        2.5705        .43943E-03   -1.5662    
   2  norm          .20734E-01    .93700        .20151E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.719        22.869        .17847E-03   -1.5595    
   4  Prefactor     81.384        90.668        .11741E-03   -1.5528    
   5  Prefactor     83.481        93.417        .11033E-03   -1.5525    
   6  Prefactor     .59952E-08    15.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     83.784        94.619        .11928E-03   -1.5525    
   8  Prefactor     118.58        86.198        .94956E-04   -1.5490    
   9  Prefactor     .66613E-08    181.95        .56117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .70211        134.82        .78769E-03   -1.5691    
  11  norm          5.1676        2.5753        .44105E-03   -1.5662    
  12  Prefactor     .11102E-09    5.5074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3310        2.2971        .95723E-03   -1.5685    
  14  Prefactor     16.897        10.158        .24523E-03   -1.5626    
  15  Prefactor     20.995        11.272        .21915E-03   -1.5616    
  16  norm           .0000        .23721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.428        27.418        .19123E-03   -1.5601    
  18  Normalizat    .32433        .35524        .10769       -1.2141    
  19  Prefactor     1.5190        .27814        .47479E-01   -.77009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95176e-07
Minuit parameter uncertainties:
  1  2.57053
  2  0.278767
  3  22.8689
  4  90.6692
  5  93.4185
  6  0.000615819
  7  94.6207
  8  86.1992
  9  0.00219787
  10  19.459
  11  2.57526
  12  4.40016e-05
  13  2.29707
  14  10.1578
  15  11.2718
  16  3.79145e-06
  17  27.4179
  18  0.35774
  19  0.278417
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  8.378e+01  9.462e+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.519e+00  2.784e-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:  3.243e-01  3.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 7.08e-08 +/- 7.99e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.88e-05

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

Saving results to:
/scratch/kocevski/640598/likelihoodResults_693964801_694224001_4FGL_J1017.8+0715_daily_bin1754.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) = 3751.88398763
delta logL = 0.130159037637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3751.8805761
delta logL = 0.13357056494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.253       1.0000          .0000       .10000E+07
     2 'Index     '    3.1795       1.0000          .0000       10.000    
     3 'Normalizat'    .30146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5331       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=   3751.881     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      289 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.242        90.746        .52412E-05    .16767E-02
   2  Index         3.1793        .99567        .62461E-02    .10596E-03
   3  Normalizat    .30207        .30492        .49365E-03   -.26794E-03
   4  Prefactor     1.5325        .26946        .20907E-03   -.47460E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.2419
  Index      = 3.17933
  Normalizat = 0.302073
  Prefactor  = 1.53249
 **********
 **   18 **HESSE 
 **********

 FCN=   3751.881     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.242        83.343        .10482E-05   -1.5555    
   2  Index         3.1793        .91437        .24985E-03   -.37270    
   3  Normalizat    .30207        .30489        .19746E-04   -1.2271    
   4  Prefactor     1.5325        .26931        .41814E-04   -.76634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.014e-09
Minuit parameter uncertainties:
  1  83.3442
  2  0.920351
  3  0.306584
  4  0.269562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640598': 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) = 3751.88057368
delta logL = 0.133572981342

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  5.824e+01  8.334e+01  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  3.179e+00  9.204e-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.532e+00  2.696e-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:  3.021e-01  3.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 154.473 7.264
Photon Index (Free Index): 3.18 +/- 0.92
Photon Flux (Free Index): 8.85e-08 +/- 8.66e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.59e-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/640598/cmap_HighResolution_693964801_694224001_4FGL_J1017.8+0715_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='7.08e-08', energy_flux2='1.63e-05', photon_flux_error='7.99e-08', dlogl='1.34e-01', energy_flux='1.66e-05', photon_flux2='8.85e-08', job_status='DONE', time_completed='2023-01-01 01:10:21.901835', photon_index_error2='0.92', photon_index2='3.18', ts='1.27', fit_tolerance='1e-08', GAL='1.52', photon_index_error='0.00', photon_flux_upper_limit='2.27e-07', energy_flux_error2='1.59e-05', EG='0.32', time_epoch_completed='1672564221.9', return_code='0', job_id='640598', GAL2='1.53', EG2='0.30', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='8.66e-08', ts2='1.58', photon_index='2.73' WHERE bin_id='1754' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:10:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 640598: <4FGL_J1017.8+0715_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin1754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan  1 01:00:20 2023
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:02:00 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:02:00 2023
Terminated at Sun Jan  1 01:10:22 2023
Results reported at Sun Jan  1 01:10:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin1754 154.473 7.2638 693964801 694224001 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 :                                   469.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             264.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   502 sec.
    Turnaround time :                            602 sec.

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

