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 193 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1058.5+8115_weekly_bin715
RA = 164.626, Dec = 81.2547
tmin = 671414401, tmax = 672019201
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='934569', job_status='RUN', time_executed='2022-04-19 02:30:33.881929', time_epoch_executed='1650360633.88' WHERE source_name='4FGL J1058.5+8115' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934569

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934569/ft1_4FGL_J1058.5+8115_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934569/ft2_4FGL_J1058.5+8115_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934569/ft1_4FGL_J1058.5+8115_weekly_bin715.fits outfile=/scratch/kocevski/934569/ft1_filteredMKT_4FGL_J1058.5+8115_weekly_bin715.fits ra=164.626 dec=81.2547 rad=12.0 tmin=671414401.0 tmax=672019201.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.62
user 7.24
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934569/ft2_4FGL_J1058.5+8115_weekly_bin715.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/934569/ft1_filteredMKT_4FGL_J1058.5+8115_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934569/ft1_filtered_4FGL_J1058.5+8115_weekly_bin715.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.55
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 2043

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934569/ft1_filtered_4FGL_J1058.5+8115_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934569/ft2_4FGL_J1058.5+8115_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934569/ltcube_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.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/934569/ft2_4FGL_J1058.5+8115_weekly_bin715.fits
.....................!
real 28.89
user 28.45
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934569/ft1_filtered_4FGL_J1058.5+8115_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934569/ft2_4FGL_J1058.5+8115_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934569/ltcube_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.fits outfile=/scratch/kocevski/934569/expmap_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.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/934569/ltcube_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.fits
.....................!
real 191.89
user 185.77
sys 5.68

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/934569/ft1_filtered_4FGL_J1058.5+8115_weekly_bin715.fits scfile=/scratch/kocevski/934569/ft2_4FGL_J1058.5+8115_weekly_bin715.fits outfile=/scratch/kocevski/934569/cmap_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.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.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934569/ft1_filtered_4FGL_J1058.5+8115_weekly_bin715.fits scfile=/scratch/kocevski/934569/ft2_4FGL_J1058.5+8115_weekly_bin715.fits outfile=/scratch/kocevski/934569/cmap_HighResolution_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.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.59
user 0.41
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934569/ft1_filtered_4FGL_J1058.5+8115_weekly_bin715.fits', '/scratch/kocevski/934569/ft2_4FGL_J1058.5+8115_weekly_bin715.fits', expMap='/scratch/kocevski/934569/expmap_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.fits', expCube='/scratch/kocevski/934569/ltcube_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934569/Model_4FGL_J1058.5+8115_weekly_bin715.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  1.000e-04  1.000e+04 ( 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/934569/ft1_filtered_4FGL_J1058.5+8115_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934569/ft2_4FGL_J1058.5+8115_weekly_bin715.fits
Exposure map: /scratch/kocevski/934569/expmap_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934569/ltcube_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934569/Model_4FGL_J1058.5+8115_weekly_bin715.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) = 21658.6533965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0692       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3544       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.595       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.540       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13323E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36927       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3834       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0756       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.826       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9564       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.144       1.0000         .10000E-03   10000.    
    22 'norm      '    .23854E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .59237       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.312       1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.172       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8102       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1961       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .98982       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0040       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21658.65     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     5431 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0691        11.143       -.47184E-07    .15962E-05
   2  Prefactor     6.3544        5.0878        .21712E-07   -.29375E-04
   3  norm          .10000E-03    3.9004        .18478E-05** at limit **
   4  norm          11.595        12.751        .24616E-06   -.27013E-04
   5  Prefactor     .10000E-03    14.739        .46649E-05** at limit **
   6  Prefactor     .10000E-03    .95804       -.37482E-06** at limit **
   7  Prefactor     .10000E-03    6.2211        .30986E-05** at limit **
   8  Prefactor     21.540        6.1607       -.18573E-07   -.22765E-04
   9  Prefactor     .10000E-03    2.7803       -.18411E-06** at limit **
  10  Prefactor     .10000E-03    2.5002        .27857E-07** at limit **
  11  Prefactor     .10000E-03    4.6860       -.11102E-05** at limit **
  12  Prefactor     .10000E-03    18.124        .66495E-06** at limit **
  13  norm          .10001E-03    .71783       -.27280E-06** at limit **
  14  Prefactor     .36962        2.2658       -.41852E-07   -.69295E-04
  15  norm          1.3831        .48899        .12412E-07    .39799E-03
  16  norm          2.0762        2.6002        .15879E-07    .17021E-03
  17  Prefactor     .10000E-03    5.3690        .51133E-05** at limit **
  18  Prefactor     11.824        6.8631       -.18358E-07    .26416E-03
  19  Prefactor     .10001E-03    1.0348       -.57651E-06** at limit **
  20  Prefactor     7.9569        5.8915       -.22865E-07   -.24564E-03
  21  Prefactor     20.144        29.513       -.12964E-05    .13862E-04
  22  norm          .10024E-03    1.4329       -.55485E-06** at limit **
  23  norm          .59246        1.4897        .47517E-07   -.11404E-03
  24  Prefactor     20.313        20.428        .91972E-06    .28161E-05
  25  Prefactor     26.173        9.3184       -.26906E-07   -.23814E-04
  26  Prefactor     1.8106        4.1916        .10828E-06   -.33164E-03
  27  Prefactor     1.1961        3.7990       -.92631E-07   -.32448E-03
  28  Prefactor     10.284        21.101        .10617E-05    .67358E-06
  29  Prefactor     .10000E-03    13.694       -.10227E-06** at limit **
  30  Prefactor     .10000E-03    6.9980       -.60269E-05** at limit **
  31  Normalizat    .98975        .99920E-01    .23656E-06    .20899E-03
  32  Prefactor     1.0040        .65202E-01   -.61844E-08    .25916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.06909
  Prefactor  = 6.35436
  norm       = 0.0001
  norm       = 11.5949
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 21.5405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 0.369622
  norm       = 1.38312
  norm       = 2.07624
  Prefactor  = 0.0001
  Prefactor  = 11.824
  Prefactor  = 0.000100011
  Prefactor  = 7.95694
  Prefactor  = 20.1437
  norm       = 0.000100242
  norm       = 0.59246
  Prefactor  = 20.313
  Prefactor  = 26.1726
  Prefactor  = 1.81059
  Prefactor  = 1.19608
  Prefactor  = 10.2838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.989749
  Prefactor  = 1.00401
 **********
 **   18 **HESSE 
 **********

 FCN=   21658.65     FROM HESSE     STATUS=OK           685 CALLS     6116 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0691        11.172        .14114E-03   -1.5140    
   2  Prefactor     6.3544        5.0922        .79615E-03   -1.5204    
   3  norm          .10000E-03    3.9128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.595        12.747        .11765E-03   -1.5027    
   5  Prefactor     .10000E-03    14.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5412        .27791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.540        6.1682        .43151E-03   -1.4779    
   9  Prefactor     .10000E-03    2.7985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.6949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    1.3767        .41869E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .36962        2.2187        .38974E-03   -1.5586    
  15  norm          1.3831        .47486        .51402E-04   -1.5473    
  16  norm          2.0762        2.5289        .16167E-03   -1.5420    
  17  Prefactor     .10000E-03    5.4336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.824        6.7326        .11649E-03   -1.5020    
  19  Prefactor     .10001E-03    4.4345        .28574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9569        5.8085        .71074E-03   -1.5144    
  21  Prefactor     20.144        29.526        .89239E-04   -1.4810    
  22  norm          .10024E-03    1.4482        .55045E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .59246        1.4317        .26358E-03   -1.5554    
  24  Prefactor     20.313        20.462        .88871E-04   -1.4806    
  25  Prefactor     26.173        9.3144        .78305E-04   -1.4684    
  26  Prefactor     1.8106        4.8847        .15527E-02   -1.5439    
  27  Prefactor     1.1961        8.7730        .20785E-02   -1.5489    
  28  Prefactor     10.284        21.103        .12495E-03   -1.5066    
  29  Prefactor     .10000E-03    13.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.0423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .98975        .11312        .29174E-03   -.93375    
  32  Prefactor     1.0040        .73657E-01    .19427E-03   -.92596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20066e-09
Minuit parameter uncertainties:
  1  11.1748
  2  5.0925
  3  2.01643e-06
  4  12.7498
  5  1.60566e-05
  6  0.000274707
  7  3.12486e-06
  8  6.16838
  9  5.87162e-07
  10  2.68113e-06
  11  3.56019e-07
  12  2.44824e-06
  13  0.000253737
  14  1.81101
  15  0.474858
  16  2.529
  17  2.75826e-05
  18  6.73299
  19  0.000438104
  20  5.80895
  21  29.5478
  22  0.00118363
  23  1.43177
  24  20.469
  25  9.31494
  26  4.88577
  27  6.47973
  28  21.1187
  29  5.02045e-06
  30  2.57527e-07
  31  0.113143
  32  0.073664
Done.

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

Extracting fit parameters...

4FGL J1058.5+8115
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  2.758e-05  1.000e-04  1.000e+04 ( 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.004e+00  7.366e-02  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.897e-01  1.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.626 81.255
Photon Flux Upper Limit: 3.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934569/likelihoodResults_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.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): 102
logL (Free Index) = 21658.6481316
delta logL = -0.000878713402926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21658.6472526
delta logL = 3.10614268528e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5593       1.0000          .0000       10.000    
     3 'Normalizat'    .98982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0040       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=   21658.65     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      223 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .25313        .90712E-01** at limit **
   2  Index         2.6196        1.8694        .50000       -.99104E-04
   3  Normalizat    .98975        .11835E-02    .65959E-01    .29668E-03
   4  Prefactor     1.0040        .79727E-03    .44420E-01    .22056E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.61958
  Normalizat = 0.989749
  Prefactor  = 1.00401
 **********
 **   18 **HESSE 
 **********

 FCN=   21658.65     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    23.985        .32942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6196        5.6212        .50000       -.49620    
   3  Normalizat    .98975        .10530        .29174E-03   -.93375    
   4  Prefactor     1.0040        .70978E-01    .19427E-03   -.92596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96483e-08
Minuit parameter uncertainties:
  1  0.00101464
  2  8.06844
  3  0.105321
  4  0.0709845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934569': 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) = 21658.6472506
delta logL = 2.26437623496e-06

Extracting fit parameters...

4FGL J1058.5+8115
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.015e-03  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.620e+00  8.068e+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.004e+00  7.098e-02  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.897e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.626 81.255

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/934569/cmap_HighResolution_671414401_672019201_4FGL_J1058.5+8115_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-03', job_status='DONE', photon_flux_upper_limit='3.87e-08', time_completed='2022-04-19 03:28:35.964014', job_id='934569', GAL2='1.00', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1650364115.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='715' AND source_name='4FGL J1058.5+8115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:28:36 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 930809: <4FGL_J1058.5+8115_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1058.5+8115_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:36 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:14:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:14:04 2022
Terminated at Tue Apr 19 03:15:40 2022
Results reported at Tue Apr 19 03:15:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.5+8115_weekly_bin715 164.626 81.2547 671414401 672019201 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 :                                   3487.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             336.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3696 sec.
    Turnaround time :                            11344 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0177>
Subject: Job 934569: <4FGL_J1058.5+8115_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1058.5+8115_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:17:45 2022
Job was executed on host(s) <bullet0177>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:27:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:27:12 2022
Terminated at Tue Apr 19 03:28:36 2022
Results reported at Tue Apr 19 03:28:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.5+8115_weekly_bin715 164.626 81.2547 671414401 672019201 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 :                                   3476.36 sec.
    Max Memory :                                 627 MB
    Average Memory :                             347.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2936 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3684 sec.
    Turnaround time :                            11451 sec.

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

