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 220 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_J1058.6+2817_daily_bin1754
RA = 164.65, Dec = 28.2866
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='640681', job_status='RUN', time_executed='2023-01-01 01:07:26.494860', time_epoch_executed='1672564046.49' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640681

Creating custom pfile directory:
/scratch/kocevski/640681/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/640681/ft1_4FGL_J1058.6+2817_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/640681/ft2_4FGL_J1058.6+2817_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640681/ft1_4FGL_J1058.6+2817_daily_bin1754.fits outfile=/scratch/kocevski/640681/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin1754.fits ra=164.65 dec=28.2866 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.67
sys 0.24

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

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

Number of photons that the gtmktime cut: 419

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640681/ft1_filtered_4FGL_J1058.6+2817_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/640681/ft2_4FGL_J1058.6+2817_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/640681/ltcube_693964801_694224001_4FGL_J1058.6+2817_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/640681/ft2_4FGL_J1058.6+2817_daily_bin1754.fits
.....................!
real 15.22
user 14.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640681/ft1_filtered_4FGL_J1058.6+2817_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/640681/ft2_4FGL_J1058.6+2817_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/640681/ltcube_693964801_694224001_4FGL_J1058.6+2817_daily_bin1754.fits outfile=/scratch/kocevski/640681/expmap_693964801_694224001_4FGL_J1058.6+2817_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/640681/ltcube_693964801_694224001_4FGL_J1058.6+2817_daily_bin1754.fits
.....................!
real 193.07
user 186.14
sys 5.90

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/640681/ft1_filtered_4FGL_J1058.6+2817_daily_bin1754.fits scfile=/scratch/kocevski/640681/ft2_4FGL_J1058.6+2817_daily_bin1754.fits outfile=/scratch/kocevski/640681/cmap_693964801_694224001_4FGL_J1058.6+2817_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=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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640681/ft1_filtered_4FGL_J1058.6+2817_daily_bin1754.fits scfile=/scratch/kocevski/640681/ft2_4FGL_J1058.6+2817_daily_bin1754.fits outfile=/scratch/kocevski/640681/cmap_HighResolution_693964801_694224001_4FGL_J1058.6+2817_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=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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640681/ft1_filtered_4FGL_J1058.6+2817_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/640681/ft2_4FGL_J1058.6+2817_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640681/Model_4FGL_J1058.6+2817_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/640681/ft1_filtered_4FGL_J1058.6+2817_daily_bin1754.fits.....................!
real 46.33
user 44.87
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640681/ft1_filtered_4FGL_J1058.6+2817_daily_bin1754.fits', '/scratch/kocevski/640681/ft2_4FGL_J1058.6+2817_daily_bin1754.fits', expMap='/scratch/kocevski/640681/expmap_693964801_694224001_4FGL_J1058.6+2817_daily_bin1754.fits', expCube='/scratch/kocevski/640681/ltcube_693964801_694224001_4FGL_J1058.6+2817_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640681/Model_4FGL_J1058.6+2817_daily_bin1754.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/640681/ft1_filtered_4FGL_J1058.6+2817_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/640681/ft2_4FGL_J1058.6+2817_daily_bin1754.fits
Exposure map: /scratch/kocevski/640681/expmap_693964801_694224001_4FGL_J1058.6+2817_daily_bin1754.fits
Exposure cube: /scratch/kocevski/640681/ltcube_693964801_694224001_4FGL_J1058.6+2817_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640681/Model_4FGL_J1058.6+2817_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) = 4470.30115858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.568       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33115E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.7232       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59899E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    29.001       1.0000          .0000       .10000E+07
     6 'Prefactor '    .36213E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.3518       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.6277       1.0000          .0000       .10000E+07
     9 'Prefactor '    .99878E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.0999       1.0000          .0000       .10000E+07
    11 'Prefactor '    48.634       1.0000          .0000       .10000E+07
    12 'Prefactor '    .19546E-02   1.0000          .0000       .10000E+07
    13 'norm      '    3.3802       1.0000          .0000       .10000E+07
    14 'Prefactor '    .81517E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .32411E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .27031E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .23002       1.0000          .0000       .10000E+07
    18 'Prefactor '    .33623E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.0202       1.0000          .0000       .10000E+07
    20 'Prefactor '    .13008E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    5.8639       1.0000          .0000       .10000E+07
    22 'Prefactor '    11.247       1.0000          .0000       .10000E+07
    23 'Prefactor '    .23765E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    6.9171       1.0000          .0000       .10000E+07
    25 'Prefactor '    40.570       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.2656       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98876       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=   4470.273     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     2421 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.592        5.7304        .15147E-05    .39053E-01
   2  Prefactor      .0000        7.4520       -.56051E-06** at limit **
   3  Prefactor     2.7224        6.9729        .12671E-06   -.50809E-02
   4  Prefactor     .29421E-07    91.871       -.34449E-05** at limit **
   5  Prefactor     28.995        1.1572        .14472E-07    .18897E-02
   6  Prefactor      .0000        2.8166        .77264E-07** at limit **
   7  Prefactor     4.3515        3.3826       -.58172E-07   -.63376E-03
   8  Prefactor     8.6299        4.5846        .22775E-06   -.47243E-02
   9  Prefactor     .11380E-07    21.052       -.77447E-06** at limit **
  10  Prefactor     4.1143        7.6968        .11670E-06   -.11457E-03
  11  Prefactor     48.686        3.9210       -.15094E-06   -.14360E-01
  12  Prefactor     .48295E-08    3.4170        .84043E-06** at limit **
  13  norm          3.3811        .61608        .28747E-08    .11591E-01
  14  Prefactor     .12090        28.952        .20189E-05** at limit **
  15  Prefactor     .19984E-08    5.8916        .47409E-07** at limit **
  16  Prefactor     .49960E-09    11.641       -.82563E-07** at limit **
  17  norm          .94369E-09    .88247        .20107E-06** at limit **
  18  Prefactor     .18985E-07    5.2390        .30754E-05** at limit **
  19  Prefactor     5.9956        3.2901        .84669E-06   -.72930E-02
  20  Prefactor     .72164E-09    1.9990        .14217E-06** at limit **
  21  Prefactor     6.2649        37.198       -.53162E-05    .33545E-02
  22  Prefactor     11.192        3.6179       -.84831E-06    .11864E-01
  23  Prefactor     .64948E-08    7.0471       -.34993E-05** at limit **
  24  Prefactor     6.9206        5.7873        .13757E-06    .36510E-02
  25  Prefactor     40.850        8.4389       -.54677E-06   -.10623E-01
  26  Normalizat    1.2652        .27792        .80980E-06   -.75288E-04
  27  Prefactor     .98845        .30358        .34401E-05   -.70054E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5918
  Prefactor  = 0
  Prefactor  = 2.72239
  Prefactor  = 2.94209e-08
  Prefactor  = 28.9954
  Prefactor  = 0
  Prefactor  = 4.35152
  Prefactor  = 8.62986
  Prefactor  = 1.13798e-08
  Prefactor  = 4.11434
  Prefactor  = 48.6863
  Prefactor  = 4.82947e-09
  norm       = 3.3811
  Prefactor  = 0.120899
  Prefactor  = 1.9984e-09
  Prefactor  = 4.996e-10
  norm       = 9.4369e-10
  Prefactor  = 1.89848e-08
  Prefactor  = 5.99565
  Prefactor  = 7.21645e-10
  Prefactor  = 6.26492
  Prefactor  = 11.1917
  Prefactor  = 6.4948e-09
  Prefactor  = 6.92061
  Prefactor  = 40.8503
  Normalizat = 1.26525
  Prefactor  = 0.98845
 **********
 **   18 **HESSE 
 **********

 FCN=   4470.273     FROM HESSE     STATUS=OK           556 CALLS     2977 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.592        12.221        .28230E-03   -1.5637    
   2  Prefactor      .0000        7.5910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7224        7.0744        .61685E-03   -1.5675    
   4  Prefactor     .29421E-07    94.007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.995        45.298        .18572E-03   -1.5600    
   6  Prefactor      .0000        2.8278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3515        3.4198        .48260E-03   -1.5666    
   8  Prefactor     8.6299        13.596        .34103E-03   -1.5649    
   9  Prefactor     .11380E-07    21.070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1143        10.724        .49765E-03   -1.5667    
  11  Prefactor     48.686        24.852        .14341E-03   -1.5568    
  12  Prefactor     .48295E-08    9.0108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3811        .61712        .49236E-03   -1.5671    
  14  Prefactor     .12090        2.5390        .68537E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .19984E-08    5.9507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .49960E-09    11.956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .94369E-09    11.362        .11264E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .18985E-07    9.1371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9956        14.958        .40899E-03   -1.5659    
  20  Prefactor     .72164E-09    1.9766        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2649        41.486        .41448E-03   -1.5658    
  22  Prefactor     11.192        16.308        .29849E-03   -1.5641    
  23  Prefactor     .64948E-08    9.2727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.9206        5.8040        .38123E-03   -1.5655    
  25  Prefactor     40.850        28.594        .15701E-03   -1.5580    
  26  Normalizat    1.2652        .24419        .58519E-01   -.84610    
  27  Prefactor     .98845        .25712        .73255E-01   -.93116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08134e-07
Minuit parameter uncertainties:
  1  12.2214
  2  2.49711e-05
  3  7.07445
  4  0.00332598
  5  45.2985
  6  2.66437e-06
  7  3.41984
  8  13.5958
  9  0.000978371
  10  10.7236
  11  24.8523
  12  0.00041742
  13  0.617119
  14  1.10809
  15  0.000216783
  16  0.000155324
  17  0.00020743
  18  0.0008329
  19  14.9577
  20  7.52452e-05
  21  32.2437
  22  16.3076
  23  0.000489897
  24  5.80397
  25  28.594
  26  0.244416
  27  0.257437
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  4.869e+01  2.485e+01  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:  9.884e-01  2.574e-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.265e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.90
Ra Dec: 164.650 28.287
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 6.49e-08
Energy Flux (Fixed Index): 5.45e-05 +/- 2.78e-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) = 4470.21947544
delta logL = 0.0534753095426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4470.21683415
delta logL = 0.0561165952768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.738       1.0000          .0000       .10000E+07
     2 'Index     '    2.3675       1.0000          .0000       10.000    
     3 'Normalizat'    1.2464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0028       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.

 FCN=   4470.217     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      261 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.738        356.66        .15480E-03    .54936E-02
   2  Index         2.3676        2.9316        .94328E-01    .97108E-04
   3  Normalizat    1.2462        .15901        .58886E-01   -.13585E-04
   4  Prefactor     1.0031        .13452        .72783E-01   -.53619E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.738
  Index      = 2.3676
  Normalizat = 1.24623
  Prefactor  = 1.00307
 **********
 **   18 **HESSE 
 **********

 FCN=   4470.217     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.738        30.985        .61920E-05   -1.5579    
   2  Index         2.3676        .45739        .37927E-02   -.55445    
   3  Normalizat    1.2462        .27665        .26042E-03   -.85186    
   4  Prefactor     1.0031        .30575        .32202E-03   -.92627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05464e-10
Minuit parameter uncertainties:
  1  30.9855
  2  0.458273
  3  0.276981
  4  0.306279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640681': 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) = 4470.21683385
delta logL = 0.0561168964978

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  4.174e+01  3.099e+01  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.368e+00  4.583e-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:  1.003e+00  3.063e-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.246e+00  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.89
Ra Dec: 164.650 28.287
Photon Index (Free Index): 2.37 +/- 0.46
Photon Flux (Free Index): 1.41e-07 +/- 7.63e-08
Energy Flux (Free Index): 4.83e-05 +/- 2.86e-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/640681/cmap_HighResolution_693964801_694224001_4FGL_J1058.6+2817_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='4.83e-05', photon_flux_error='6.49e-08', dlogl='5.61e-02', energy_flux='5.45e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2023-01-01 01:16:38.240743', photon_index_error2='0.46', photon_index2='2.37', ts='9.90', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.86e-05', EG='1.27', time_epoch_completed='1672564598.24', return_code='0', job_id='640681', GAL2='1.00', EG2='1.25', return_code2='0', energy_flux_error='2.78e-05', photon_flux_error2='7.63e-08', ts2='9.89', photon_index='2.23' WHERE bin_id='1754' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:16:38 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 640681: <4FGL_J1058.6+2817_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin1754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan  1 01:00:27 2023
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:03:37 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:03:37 2023
Terminated at Sun Jan  1 01:16:39 2023
Results reported at Sun Jan  1 01:16:39 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin1754 164.65 28.2866 693964801 694224001 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 :                                   552.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            972 sec.

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

