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


Performing analysis on: 4FGL_J1058.5+8115_daily_bin1745
RA = 164.626, Dec = 81.2547
tmin = 691632001, tmax = 691891201
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='643041', job_status='RUN', time_executed='2022-12-05 00:26:23.421589', time_epoch_executed='1670228783.42' WHERE source_name='4FGL J1058.5+8115' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643041

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643041/ft1_4FGL_J1058.5+8115_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643041/ft1_4FGL_J1058.5+8115_daily_bin1745.fits outfile=/scratch/kocevski/643041/ft1_filteredMKT_4FGL_J1058.5+8115_daily_bin1745.fits ra=164.626 dec=81.2547 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.37
user 2.16
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.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/643041/ft1_filteredMKT_4FGL_J1058.5+8115_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/643041/ft1_filtered_4FGL_J1058.5+8115_daily_bin1745.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 876

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643041/ft1_filtered_4FGL_J1058.5+8115_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/643041/ltcube_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.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/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.fits
.....................!
real 12.40
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643041/ft1_filtered_4FGL_J1058.5+8115_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/643041/ltcube_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.fits outfile=/scratch/kocevski/643041/expmap_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.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/643041/ltcube_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.fits
.....................!
real 191.42
user 185.97
sys 5.13

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1058.5+8115 @ 164.626 81.2547

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/643041/ft1_filtered_4FGL_J1058.5+8115_daily_bin1745.fits scfile=/scratch/kocevski/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.fits outfile=/scratch/kocevski/643041/cmap_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.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.626 yref=81.2547 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643041/ft1_filtered_4FGL_J1058.5+8115_daily_bin1745.fits scfile=/scratch/kocevski/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.fits outfile=/scratch/kocevski/643041/cmap_HighResolution_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.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.626 yref=81.2547 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/643041/ft1_filtered_4FGL_J1058.5+8115_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/643041/Model_4FGL_J1058.5+8115_daily_bin1745.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/643041/ft1_filtered_4FGL_J1058.5+8115_daily_bin1745.fits.....................!
real 119.88
user 118.43
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/643041/ft1_filtered_4FGL_J1058.5+8115_daily_bin1745.fits', '/scratch/kocevski/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.fits', expMap='/scratch/kocevski/643041/expmap_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.fits', expCube='/scratch/kocevski/643041/ltcube_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/643041/Model_4FGL_J1058.5+8115_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.5+8115'

4FGL J1058.5+8115
   Spectrum: PowerLaw
349    Prefactor:  3.777e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.510e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  1.245e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/643041/ft1_filtered_4FGL_J1058.5+8115_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/643041/ft2_4FGL_J1058.5+8115_daily_bin1745.fits
Exposure map: /scratch/kocevski/643041/expmap_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.fits
Exposure cube: /scratch/kocevski/643041/ltcube_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/643041/Model_4FGL_J1058.5+8115_daily_bin1745.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) = 9352.93877223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4759       1.0000          .0000       .10000E+07
     2 'norm      '    .56559E-01   1.0000          .0000       .10000E+07
     3 'norm      '    13.099       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17408       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.1384       1.0000          .0000       .10000E+07
     6 'Prefactor '    .83350E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13023E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    9.2937       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27691E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11692E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .68359E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.3548       1.0000          .0000       .10000E+07
    13 'norm      '    4.1895       1.0000          .0000       .10000E+07
    14 'norm      '    .10130E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    23.671       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18813E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    17.577       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23158E-01   1.0000          .0000       .10000E+07
    19 'norm      '    2.5214       1.0000          .0000       .10000E+07
    20 'norm      '    .12386E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .13345E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .88501E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    32.700       1.0000          .0000       .10000E+07
    24 'Prefactor '    41.137       1.0000          .0000       .10000E+07
    25 'Prefactor '    .14316E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .29156E-04   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0424       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9352.760     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1975 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3781        1.2979       -.38052E-06   -.12858E-03
   2  norm          .24264E-06    2.9310        .33403E-05** at limit **
   3  norm          13.157        1.1587       -.32990E-07   -.16184E-02
   4  Prefactor     .92149E-08    7.3891       -.51114E-05** at limit **
   5  Prefactor     4.1395        3.7649        .14674E-06   -.19348E-02
   6  Prefactor     .86594E-05    42.525       -.58491E-05** at limit **
   7  Prefactor     .37803E-07    11.794       -.23311E-05** at limit **
   8  Prefactor     9.2506        12.216       -.45665E-06    .33008E-03
   9  Prefactor     .55511E-10    4.2004       -.10756E-06** at limit **
  10  Prefactor     .38819E-06    19.257       -.60229E-05** at limit **
  11  norm          .20756E-06    16.094        .73839E-05** at limit **
  12  Prefactor     3.3347        6.4983       -.88806E-07    .34871E-02
  13  norm          4.1925        1.1797        .53972E-07    .38281E-01
  14  norm          .55511E-10    1.2935        .83785E-07** at limit **
  15  Prefactor     23.729        9.2299       -.58651E-06   -.19503E-01
  16  Prefactor      .0000        1.8473        .33110E-06** at limit **
  17  Prefactor     17.815        9.4301        .13707E-06    .23295E-01
  18  Prefactor      .0000        27.391       -.17851E-06** at limit **
  19  norm          2.5209        3.1277        .56384E-07   -.11508E-03
  20  norm          .11102E-09    1.9523       -.14937E-07** at limit **
  21  Prefactor     .37970E-07    9.1999        .13044E-05** at limit **
  22  Prefactor     .55511E-10    4.4692       -.18742E-06** at limit **
  23  Prefactor     32.598        1.5778       -.91563E-07   -.25803E-02
  24  Prefactor     40.276        4.9692        .57324E-06   -.24221E-01
  25  Prefactor     .11627E-04    25.594        .39324E-05** at limit **
  26  Prefactor     .10443E-05    32.471        .27909E-05** at limit **
  27  Normalizat    1.0421        .18112        .40472E-06    .17855E-03
  28  Prefactor     1.0132        .11323        .13442E-05    .33658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.37809
  norm       = 2.42639e-07
  norm       = 13.1565
  Prefactor  = 9.21485e-09
  Prefactor  = 4.13946
  Prefactor  = 8.65941e-06
  Prefactor  = 3.78031e-08
  Prefactor  = 9.25057
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88189e-07
  norm       = 2.07556e-07
  Prefactor  = 3.33465
  norm       = 4.1925
  norm       = 5.55112e-11
  Prefactor  = 23.7289
  Prefactor  = 0
  Prefactor  = 17.815
  Prefactor  = 0
  norm       = 2.52091
  norm       = 1.11022e-10
  Prefactor  = 3.79696e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 32.5978
  Prefactor  = 40.2765
  Prefactor  = 1.16272e-05
  Prefactor  = 1.04428e-06
  Normalizat = 1.04206
  Prefactor  = 1.01321
 **********
 **   18 **HESSE 
 **********

 FCN=   9352.760     FROM HESSE     STATUS=OK           583 CALLS     2558 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3781        27.909        .47569E-03   -1.5666    
   2  norm          .24264E-06    10.810        .15288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.157        18.075        .27651E-03   -1.5635    
   4  Prefactor     .92149E-08    26.389        .16806E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1395        3.7723        .49525E-03   -1.5667    
   6  Prefactor     .86594E-05    62.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .37803E-07    12.557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2506        12.293        .32850E-03   -1.5647    
   9  Prefactor     .55511E-10    4.1955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .38819E-06    21.113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .20756E-06    17.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3347        6.4943        .55229E-03   -1.5671    
  13  norm          4.1925        1.1704        .49213E-03   -1.5667    
  14  norm          .55511E-10    1.2899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.729        13.817        .20559E-03   -1.5611    
  16  Prefactor      .0000        1.8397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.815        14.027        .23862E-03   -1.5624    
  18  Prefactor      .0000        27.252        .16837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.5209        3.1408        .64309E-03   -1.5676    
  20  norm          .11102E-09    1.9398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .37970E-07    10.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .55511E-10    4.4624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.598        16.945        .17490E-03   -1.5594    
  24  Prefactor     40.276        33.394        .15593E-03   -1.5581    
  25  Prefactor     .11627E-04    54.680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10443E-05    35.198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0421        .16601        .68941E-01   -.91634    
  28  Prefactor     1.0132        .10314        .42905E-01   -.92290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55843e-07
Minuit parameter uncertainties:
  1  22.1079
  2  0.00323905
  3  18.0749
  4  0.000987259
  5  3.77234
  6  0.0465098
  7  0.00137783
  8  12.2931
  9  3.41338e-05
  10  0.00572565
  11  0.00385262
  12  6.49431
  13  1.17043
  14  1.80033e-05
  15  13.817
  16  6.13387e-06
  17  14.0274
  18  2.38419e-05
  19  3.1408
  20  2.91624e-05
  21  0.00125996
  22  2.33402e-05
  23  16.9455
  24  33.3938
  25  0.0504294
  26  0.0121257
  27  0.166096
  28  0.103159
Done.

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

Extracting fit parameters...

4FGL J1058.5+8115
   Spectrum: PowerLaw
349    Prefactor:  2.373e+01  1.382e+01  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.510e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  1.245e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.013e+00  1.032e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.042e+00  1.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.98
Ra Dec: 164.626 81.255
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 8.83e-08 +/- 5.14e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.48e-05

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) = 9351.94795916
delta logL = 0.812405261751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9351.92498805
delta logL = 0.835376367977

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5735       1.0000          .0000       .10000E+07
     2 'Index     '    3.2937       1.0000          .0000       10.000    
     3 'Normalizat'    .97748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9351.925     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      256 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5546        43.554        .34211E-03    .23954E-01
   2  Index         3.2948        2.0085        .91110E-01    .65940E-03
   3  Normalizat    .97757        .74156E-01    .70794E-01    .26184E-03
   4  Prefactor     1.0367        .43511E-01    .40761E-01   -.18228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.55462
  Index      = 3.29475
  Normalizat = 0.977573
  Prefactor  = 1.03667
 **********
 **   18 **HESSE 
 **********

 FCN=   9351.925     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5546        63.887        .10621E-04   -1.5649    
   2  Index         3.2948        2.7316        .35382E-02   -.34803    
   3  Normalizat    .97757        .21254        .31321E-03   -.93786    
   4  Prefactor     1.0367        .12789        .20063E-03   -.91517    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.87178e-09
Minuit parameter uncertainties:
  1  46.7566
  2  2.91487
  3  0.212721
  4  0.127925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643041': 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): 102
logL (Free Index) = 9351.92498636
delta logL = 0.835378054075

Extracting fit parameters...

4FGL J1058.5+8115
   Spectrum: PowerLaw
349    Prefactor:  8.555e+00  4.676e+01  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  3.295e+00  2.915e+00  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  1.245e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.037e+00  1.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  9.776e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.05
Ra Dec: 164.626 81.255
Photon Index (Free Index): 3.29 +/- 2.91
Photon Flux (Free Index): 1.52e-07 +/- 1.13e-07
Energy Flux (Free Index): 2.69e-05 +/- 1.43e-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/643041/cmap_HighResolution_691632001_691891201_4FGL_J1058.5+8115_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.83e-08', energy_flux2='2.69e-05', photon_flux_error='5.14e-08', dlogl='8.35e-01', energy_flux='2.53e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2022-12-05 00:40:29.246735', photon_index_error2='2.91', photon_index2='3.29', ts='6.98', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.04', time_epoch_completed='1670229629.25', return_code='0', job_id='643041', GAL2='1.04', EG2='0.98', return_code2='102', energy_flux_error='1.48e-05', photon_flux_error2='1.13e-07', ts2='9.05', photon_index='2.51' WHERE bin_id='1745' AND source_name='4FGL J1058.5+8115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:40:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 643041: <4FGL_J1058.5+8115_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1058.5+8115_daily_bin1745> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Dec  5 00:25:28 2022
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:25:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:25:29 2022
Terminated at Mon Dec  5 00:40:30 2022
Results reported at Mon Dec  5 00:40:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.5+8115_daily_bin1745 164.626 81.2547 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.5+8115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   848.07 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             376.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

