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


Performing analysis on: 4FGL_J1058.6+2817_weekly_bin763
RA = 164.65, Dec = 28.2866
tmin = 700444801, tmax = 701049601
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='422722', job_status='RUN', time_executed='2023-03-21 01:21:53.340135', time_epoch_executed='1679386913.34' WHERE source_name='4FGL J1058.6+2817' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422722

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422722/ft1_4FGL_J1058.6+2817_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422722/ft1_4FGL_J1058.6+2817_weekly_bin763.fits outfile=/scratch/kocevski/422722/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin763.fits ra=164.65 dec=28.2866 rad=12.0 tmin=700444801.0 tmax=701049601.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.96
user 7.51
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.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/422722/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin763.fits evtable="EVENTS" outfile="/scratch/kocevski/422722/ft1_filtered_4FGL_J1058.6+2817_weekly_bin763.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.50
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 1200

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422722/ft1_filtered_4FGL_J1058.6+2817_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/422722/ltcube_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.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/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.fits
.....................!
real 24.58
user 24.22
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422722/ft1_filtered_4FGL_J1058.6+2817_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/422722/ltcube_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.fits outfile=/scratch/kocevski/422722/expmap_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.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/422722/ltcube_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.fits
.....................!
real 156.32
user 151.23
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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1058.6+2817 @ 164.65 28.2866

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/422722/ft1_filtered_4FGL_J1058.6+2817_weekly_bin763.fits scfile=/scratch/kocevski/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.fits outfile=/scratch/kocevski/422722/cmap_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.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=164.65 yref=28.2866 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.51
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422722/ft1_filtered_4FGL_J1058.6+2817_weekly_bin763.fits scfile=/scratch/kocevski/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.fits outfile=/scratch/kocevski/422722/cmap_HighResolution_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.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=164.65 yref=28.2866 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.51
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/422722/ft1_filtered_4FGL_J1058.6+2817_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/422722/Model_4FGL_J1058.6+2817_weekly_bin763.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/422722/ft1_filtered_4FGL_J1058.6+2817_weekly_bin763.fits....................!
real 86.93
user 85.54
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422722/ft1_filtered_4FGL_J1058.6+2817_weekly_bin763.fits', '/scratch/kocevski/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.fits', expMap='/scratch/kocevski/422722/expmap_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.fits', expCube='/scratch/kocevski/422722/ltcube_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422722/Model_4FGL_J1058.6+2817_weekly_bin763.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+2817'

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/422722/ft1_filtered_4FGL_J1058.6+2817_weekly_bin763.fits
Spacecraft file(s): /scratch/kocevski/422722/ft2_4FGL_J1058.6+2817_weekly_bin763.fits
Exposure map: /scratch/kocevski/422722/expmap_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.fits
Exposure cube: /scratch/kocevski/422722/ltcube_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422722/Model_4FGL_J1058.6+2817_weekly_bin763.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) = 13732.2674515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.616       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15084E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.4277       1.0000          .0000       .10000E+07
     4 'Prefactor '    26.780       1.0000          .0000       .10000E+07
     5 'Prefactor '    20.434       1.0000          .0000       .10000E+07
     6 'Prefactor '    .54283E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13658       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.073       1.0000          .0000       .10000E+07
     9 'Prefactor '    .34398E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .36650E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    8.7864       1.0000          .0000       .10000E+07
    12 'Prefactor '    18.738       1.0000          .0000       .10000E+07
    13 'norm      '    2.1772       1.0000          .0000       .10000E+07
    14 'Prefactor '    .85180       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.2610       1.0000          .0000       .10000E+07
    16 'Prefactor '    .25601E-02   1.0000          .0000       .10000E+07
    17 'norm      '    1.4123       1.0000          .0000       .10000E+07
    18 'Prefactor '    .44403E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.1825       1.0000          .0000       .10000E+07
    20 'Prefactor '    .49438E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.2357       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14220E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.8615       1.0000          .0000       .10000E+07
    24 'Prefactor '    .90848       1.0000          .0000       .10000E+07
    25 'Prefactor '    32.538       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0984       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84734       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13732.26     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     2492 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.586        6.2954       -.11517E-06   -.81198E-02
   2  Prefactor      .0000        1.3681        .23321E-06** at limit **
   3  Prefactor     5.4198        3.2374        .23648E-07   -.44808E-03
   4  Prefactor     26.813        1.8521       -.39259E-07   -.16764E-02
   5  Prefactor     20.439        1.3719        .15898E-07    .23463E-04
   6  Prefactor     .28696E-04    47.959       -.18681E-05** at limit **
   7  Prefactor     .13450        2.2072       -.31481E-07** at limit **
   8  Prefactor     12.064        7.2870       -.81303E-07   -.77931E-02
   9  Prefactor     .59119E-07    11.994        .67286E-06** at limit **
  10  Prefactor     .61118E-07    5.9035       -.93323E-07** at limit **
  11  Prefactor     8.7654        2.4867       -.17861E-07   -.50432E-01
  12  Prefactor     18.772        2.7220       -.52918E-07    .63817E-02
  13  norm          2.1773        .25808       -.54965E-09   -.86655E-03
  14  Prefactor     .83639        1.8285        .32864E-06    .98076E-02
  15  Prefactor     6.2205        7.6575        .35494E-06    .29165E-01
  16  Prefactor     .43772E-05    36.282       -.99779E-06** at limit **
  17  norm          1.3723        5.8207        .38027E-06   -.15588E-02
  18  Prefactor     .43066E-06    7.2929        .84005E-07** at limit **
  19  Prefactor     2.0766        10.077        .32363E-06   -.83759E-02
  20  Prefactor     .55511E-10    1.2259       -.56032E-07** at limit **
  21  Prefactor     1.1983        52.699       -.84556E-07   -.36226E-01
  22  Prefactor     .72348E-06    5.6902       -.52802E-06** at limit **
  23  Prefactor     1.7649        7.7624       -.72066E-07    .25594E-02
  24  Prefactor     .93323        2.6144        .53629E-06    .11788E-02
  25  Prefactor     32.572        3.8369       -.15474E-07    .60461E-01
  26  Normalizat    1.0988        .14698       -.34519E-05   -.54944E-04
  27  Prefactor     .84757        .15383       -.12319E-05   -.55751E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5857
  Prefactor  = 0
  Prefactor  = 5.41979
  Prefactor  = 26.8134
  Prefactor  = 20.4393
  Prefactor  = 2.86959e-05
  Prefactor  = 0.134502
  Prefactor  = 12.0641
  Prefactor  = 5.91194e-08
  Prefactor  = 6.11178e-08
  Prefactor  = 8.7654
  Prefactor  = 18.7723
  norm       = 2.17731
  Prefactor  = 0.836392
  Prefactor  = 6.22046
  Prefactor  = 4.37717e-06
  norm       = 1.37228
  Prefactor  = 4.30656e-07
  Prefactor  = 2.07665
  Prefactor  = 5.55112e-11
  Prefactor  = 1.19827
  Prefactor  = 7.23477e-07
  Prefactor  = 1.76493
  Prefactor  = 0.933226
  Prefactor  = 32.5723
  Normalizat = 1.09881
  Prefactor  = 0.847567
 **********
 **   18 **HESSE 
 **********

 FCN=   13732.26     FROM HESSE     STATUS=OK           564 CALLS     3056 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.586        6.3172        .27119E-03   -1.5634    
   2  Prefactor      .0000        1.3665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4198        3.2500        .43108E-03   -1.5661    
   4  Prefactor     26.813        27.223        .19327E-03   -1.5604    
   5  Prefactor     20.439        14.096        .22129E-03   -1.5618    
   6  Prefactor     .28696E-04    2.7581        .60959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13450        .75254        .32000E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.064        9.1979        .28805E-03   -1.5638    
   9  Prefactor     .59119E-07    12.048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61118E-07    5.9440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7654        6.9735        .33791E-03   -1.5649    
  12  Prefactor     18.772        16.829        .23110E-03   -1.5621    
  13  norm          2.1773        .25837        .43870E-03   -1.5678    
  14  Prefactor     .83639        2.0274        .49151E-03   -1.5690    
  15  Prefactor     6.2205        7.9092        .40094E-03   -1.5658    
  16  Prefactor     .43772E-05    38.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3723        5.9627        .91107E-03   -1.5685    
  18  Prefactor     .43066E-06    7.6023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0766        10.259        .69654E-03   -1.5679    
  20  Prefactor     .55511E-10    1.2210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1983        104.02        .10097E-02   -1.5686    
  22  Prefactor     .72348E-06    6.3067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7649        7.9603        .76344E-03   -1.5681    
  24  Prefactor     .93323        2.6330        .45176E-03   -1.5689    
  25  Prefactor     32.572        19.378        .17533E-03   -1.5594    
  26  Normalizat    1.0988        .12550        .55882E-01   -.89790    
  27  Prefactor     .84757        .12959        .68200E-01   -.97998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36185e-06
Minuit parameter uncertainties:
  1  6.31723
  2  2.99496e-06
  3  3.25
  4  27.2234
  5  14.0957
  6  0.017793
  7  0.636295
  8  9.19794
  9  0.00168829
  10  0.00120541
  11  6.97355
  12  16.8287
  13  0.258365
  14  2.02742
  15  7.90917
  16  0.0260719
  17  5.72103
  18  0.00361876
  19  9.23151
  20  1.90356e-05
  21  22.3293
  22  0.00427217
  23  7.4965
  24  2.63302
  25  19.3782
  26  0.125533
  27  0.12964
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  8.765e+00  6.974e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.476e-01  1.296e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.099e+00  1.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.88
Ra Dec: 164.650 28.287
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.29e-08 +/- 1.82e-08
Energy Flux (Fixed Index): 9.81e-06 +/- 7.81e-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) = 13732.2330917
delta logL = 0.0274770080068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13732.2302793
delta logL = 0.0302894296037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2805       1.0000          .0000       .10000E+07
     2 'Index     '    2.0774       1.0000          .0000       10.000    
     3 'Normalizat'    1.1033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+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=   13732.23     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      247 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2809        7.3896        .13150E-04   -.58791E-02
   2  Index         2.0770        .60562        .10168E-01   -.17324E-03
   3  Normalizat    1.1034        .14117        .24664E-03    .27970E-03
   4  Prefactor     .84503        .15297        .30214E-03    .27160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.28093
  Index      = 2.07697
  Normalizat = 1.10341
  Prefactor  = 0.845032
 **********
 **   18 **HESSE 
 **********

 FCN=   13732.23     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2809        7.3270        .26299E-05   -1.5647    
   2  Index         2.0770        .60016        .40673E-03   -.62439    
   3  Normalizat    1.1034        .14122        .98657E-05   -.89643    
   4  Prefactor     .84503        .15309        .12085E-04   -.98089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11756e-10
Minuit parameter uncertainties:
  1  7.32705
  2  0.602376
  3  0.141273
  4  0.153165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422722': 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) = 13732.2302778
delta logL = 0.0302909978491

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  9.281e+00  7.327e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.077e+00  6.024e-01  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.450e-01  1.532e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.103e+00  1.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.93
Ra Dec: 164.650 28.287
Photon Index (Free Index): 2.08 +/- 0.60
Photon Flux (Free Index): 1.87e-08 +/- 2.19e-08
Energy Flux (Free Index): 1.08e-05 +/- 9.82e-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/422722/cmap_HighResolution_700444801_701049601_4FGL_J1058.6+2817_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.29e-08', energy_flux2='1.08e-05', photon_flux_error='1.82e-08', dlogl='3.03e-02', energy_flux='9.81e-06', photon_flux2='1.87e-08', job_status='DONE', time_completed='2023-03-21 01:36:04.399505', photon_index_error2='0.60', photon_index2='2.08', ts='4.88', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='9.82e-06', EG='1.10', time_epoch_completed='1679387764.4', return_code='0', job_id='422722', GAL2='0.85', EG2='1.10', return_code2='0', energy_flux_error='7.81e-06', photon_flux_error2='2.19e-08', ts2='4.93', photon_index='2.23' WHERE bin_id='763' AND source_name='4FGL J1058.6+2817' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 01:36:04 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 422722: <4FGL_J1058.6+2817_weekly_bin763> in cluster <slac> Done

Job <4FGL_J1058.6+2817_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 01:20:20 2023
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 01:20:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 01:20:21 2023
Terminated at Tue Mar 21 01:36:05 2023
Results reported at Tue Mar 21 01:36:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_weekly_bin763 164.65 28.2866 700444801 701049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.6+2817 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   848.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

