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 46 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).
nnumber of points = 17469
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1058.5+8115_weekly_bin730
RA = 164.626, Dec = 81.2547
tmin = 680486401, tmax = 681091201
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='658477', job_status='RUN', time_executed='2022-08-02 01:57:07.440714', time_epoch_executed='1659430627.44' WHERE source_name='4FGL J1058.5+8115' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658477

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658477/ft1_4FGL_J1058.5+8115_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658477/ft2_4FGL_J1058.5+8115_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658477/ft1_4FGL_J1058.5+8115_weekly_bin730.fits outfile=/scratch/kocevski/658477/ft1_filteredMKT_4FGL_J1058.5+8115_weekly_bin730.fits ra=164.626 dec=81.2547 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.32
user 6.01
sys 0.25

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

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

Number of photons that the gtmktime cut: 3698

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/658477/ft1_filtered_4FGL_J1058.5+8115_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/658477/ft2_4FGL_J1058.5+8115_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/658477/ltcube_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.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/658477/ft2_4FGL_J1058.5+8115_weekly_bin730.fits
.....................!
real 40.26
user 39.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658477/ft1_filtered_4FGL_J1058.5+8115_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/658477/ft2_4FGL_J1058.5+8115_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/658477/ltcube_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.fits outfile=/scratch/kocevski/658477/expmap_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.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/658477/ltcube_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.fits
.....................!
real 191.84
user 186.39
sys 4.93

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/658477/ft1_filtered_4FGL_J1058.5+8115_weekly_bin730.fits scfile=/scratch/kocevski/658477/ft2_4FGL_J1058.5+8115_weekly_bin730.fits outfile=/scratch/kocevski/658477/cmap_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.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.62
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658477/ft1_filtered_4FGL_J1058.5+8115_weekly_bin730.fits scfile=/scratch/kocevski/658477/ft2_4FGL_J1058.5+8115_weekly_bin730.fits outfile=/scratch/kocevski/658477/cmap_HighResolution_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.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.61
user 0.44
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/658477/ft1_filtered_4FGL_J1058.5+8115_weekly_bin730.fits', '/scratch/kocevski/658477/ft2_4FGL_J1058.5+8115_weekly_bin730.fits', expMap='/scratch/kocevski/658477/expmap_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.fits', expCube='/scratch/kocevski/658477/ltcube_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/658477/Model_4FGL_J1058.5+8115_weekly_bin730.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/658477/ft1_filtered_4FGL_J1058.5+8115_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/658477/ft2_4FGL_J1058.5+8115_weekly_bin730.fits
Exposure map: /scratch/kocevski/658477/expmap_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.fits
Exposure cube: /scratch/kocevski/658477/ltcube_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/658477/Model_4FGL_J1058.5+8115_weekly_bin730.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) = 38912.386143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1767       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2290       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .55976E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9290       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12066E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65266       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6356       1.0000         .10000E-03   10000.    
    12 'Prefactor '    116.92       1.0000         .10000E-03   10000.    
    13 'norm      '    .61738       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .92046       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7860       1.0000         .10000E-03   10000.    
    16 'norm      '    .55358       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5257       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .45552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.531       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.612       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3437       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2370       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.914       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.0963       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.524       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3445       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .59646       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0437       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0001       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=   38912.29     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4529 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1758        6.3010        .13993E-06    .26695E-04
   2  Prefactor     4.2296        4.4942       -.16353E-06   -.14925E-03
   3  norm          .10000E-03    1.8957        .84271E-07** at limit **
   4  norm          .10000E-03    5.7024       -.19905E-06** at limit **
   5  Prefactor     .10000E-03    15.765       -.58492E-06** at limit **
   6  Prefactor     1.9009        1.7338        .50957E-07    .29433E-03
   7  Prefactor     .10001E-03    41.420       -.49245E-05** at limit **
   8  Prefactor     1.9291        2.9948        .62933E-07   -.26193E-04
   9  Prefactor     .10000E-03    1.7562        .49423E-06** at limit **
  10  Prefactor     .65281        .43736       -.27705E-06   -.78830E-03
  11  Prefactor     7.6181        9.4323        .22947E-05    .61242E-03
  12  Prefactor     116.93        30.470        .60013E-06    .47730E-03
  13  norm          .61690        2.2516        .72914E-06    .10577E-03
  14  Prefactor     .92244        2.3759       -.88401E-06    .78086E-03
  15  norm          2.7855        .46473        .10947E-06    .14377E-02
  16  norm          .55372        1.5917       -.86809E-07    .16707E-03
  17  Prefactor     2.8829        5.8621       -.94640E-06   -.41443E-03
  18  Prefactor     2.5248        4.4786        .22637E-06    .15333E-03
  19  Prefactor     .45555        1.1148        .68083E-07   -.82852E-04
  20  Prefactor     10.528        4.7708        .11417E-06    .55863E-05
  21  Prefactor     19.605        18.878        .18200E-05    .10291E-03
  22  norm          1.3437        1.4556        .13414E-07   -.11536E-03
  23  norm          1.2372        1.1538       -.16532E-07   -.39761E-03
  24  Prefactor     10.915        16.314       -.49938E-06   -.12547E-04
  25  Prefactor     7.0962        4.7231       -.34413E-07   -.55688E-04
  26  Prefactor     .10000E-03    1.4267       -.55316E-07** at limit **
  27  Prefactor     .10000E-03    2.9142       -.11250E-07** at limit **
  28  Prefactor     10.531        16.295       -.14253E-05   -.45768E-04
  29  Prefactor     3.3458        12.056        .17811E-06    .17924E-04
  30  Prefactor     .63255        87.469        .39821E-04   -.36522E-04
  31  Normalizat    1.0437        .76260E-01    .47876E-06    .11589E-02
  32  Prefactor     1.0001        .49704E-01   -.26595E-06    .19963E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17577
  Prefactor  = 4.22961
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90088
  Prefactor  = 0.000100005
  Prefactor  = 1.92914
  Prefactor  = 0.000100003
  Prefactor  = 0.652811
  Prefactor  = 7.61811
  Prefactor  = 116.928
  norm       = 0.616905
  Prefactor  = 0.922442
  norm       = 2.78545
  norm       = 0.553718
  Prefactor  = 2.88293
  Prefactor  = 2.52481
  Prefactor  = 0.455553
  Prefactor  = 10.5281
  Prefactor  = 19.6045
  norm       = 1.34373
  norm       = 1.23724
  Prefactor  = 10.9145
  Prefactor  = 7.09617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.531
  Prefactor  = 3.34577
  Prefactor  = 0.632546
  Normalizat = 1.04374
  Prefactor  = 1.00006
 **********
 **   18 **HESSE 
 **********

 FCN=   38912.29     FROM HESSE     STATUS=OK           681 CALLS     5210 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1758        6.2953        .19721E-03   -1.5299    
   2  Prefactor     4.2296        4.5125        .97974E-03   -1.5297    
   3  norm          .10000E-03    1.9001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.7506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9009        1.7326        .24083E-03   -1.5432    
   7  Prefactor     .10001E-03    42.387        .38085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9291        2.9839        .29907E-03   -1.5430    
   9  Prefactor     .10000E-03    5.4099        .45067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .65281        3.6918        .23758E-02   -1.5546    
  11  Prefactor     7.6181        9.2147        .14513E-03   -1.5156    
  12  Prefactor     116.93        30.650        .37211E-04   -1.3541    
  13  norm          .61690        1.8683        .35770E-03   -1.5551    
  14  Prefactor     .92244        2.2979        .38343E-03   -1.5516    
  15  norm          2.7855        .45648        .44959E-04   -1.5374    
  16  norm          .55372        1.5541        .45950E-04   -1.5559    
  17  Prefactor     2.8829        4.9857        .23944E-03   -1.5368    
  18  Prefactor     2.5248        4.3481        .25703E-03   -1.5390    
  19  Prefactor     .45555        1.0889        .31659E-03   -1.5573    
  20  Prefactor     10.528        4.7040        .12347E-03   -1.5059    
  21  Prefactor     19.605        18.874        .90441E-04   -1.4822    
  22  norm          1.3437        1.4356        .24059E-03   -1.5476    
  23  norm          1.2372        1.1241        .19084E-03   -1.5486    
  24  Prefactor     10.915        16.327        .12127E-03   -1.5047    
  25  Prefactor     7.0962        4.7235        .75294E-03   -1.5175    
  26  Prefactor     .10000E-03    1.4534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.9776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.531        16.314        .12351E-03   -1.5059    
  29  Prefactor     3.3458        12.038        .22131E-03   -1.5342    
  30  Prefactor     .63255        6.9620        .15929       -1.5549    
  31  Normalizat    1.0437        .85949E-01    .28932E-03   -.91579    
  32  Prefactor     1.0001        .56190E-01    .19674E-03   -.92727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14293e-09
Minuit parameter uncertainties:
  1  6.29627
  2  4.51289
  3  4.01637e-07
  4  8.45998e-06
  5  5.24455e-05
  6  1.73268
  7  0.000948143
  8  2.98411
  9  0.000266968
  10  3.10494
  11  9.21646
  12  30.6544
  13  1.86843
  14  2.29816
  15  0.456484
  16  1.55419
  17  4.98644
  18  4.34863
  19  1.0889
  20  4.70419
  21  18.8797
  22  1.43566
  23  1.12413
  24  16.3338
  25  4.72371
  26  4.483e-06
  27  2.39539e-06
  28  16.3207
  29  12.0472
  30  4.19731
  31  0.0859606
  32  0.0561931DDone.

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

Extracting fit parameters...

4FGL J1058.5+8115
   Spectrum: PowerLaw
349    Prefactor:  2.883e+00  4.986e+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

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.000e+00  5.619e-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:  1.044e+00  8.596e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/658477/likelihoodResults_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 38912.2126681
delta logL = 0.0813832019267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 38912.181217
delta logL = 0.112834325286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9405       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9143       1.0000          .0000       10.000    
     3 'Normalizat'    1.0380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0020       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   38912.18     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      264 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9397        5.8351        .29327E-03    .63266E-04
   2  Index         2.9147        1.4795        .11086E-01    .70502E-04
   3  Normalizat    1.0380        .82787E-01    .29001E-03   -.24461E-04
   4  Prefactor     1.0020        .54493E-01    .19656E-03   -.83285E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93967
  Index      = 2.9147
  Normalizat = 1.03803
  Prefactor  = 1.00201
 **********
 **   18 **HESSE 
 **********

 FCN=   38912.18     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9397        3.4951        .11731E-04   -1.5429    
   2  Index         2.9147        .89571        .44346E-03   -.43021    
   3  Normalizat    1.0380        .82609E-01    .11600E-04   -.91767    
   4  Prefactor     1.0020        .54341E-01    .78626E-05   -.92662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81578e-12
Minuit parameter uncertainties:
  1  3.49543
  2  0.901612
  3  0.0826188
  4  0.054344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658477': 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) = 38912.1812169
delta logL = 0.112834435618

Extracting fit parameters...

4FGL J1058.5+8115
   Spectrum: PowerLaw
349    Prefactor:  1.940e+00  3.495e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.915e+00  9.016e-01  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.002e+00  5.434e-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:  1.038e+00  8.262e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
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/658477/cmap_HighResolution_680486401_681091201_4FGL_J1058.5+8115_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-03', job_status='DONE', photon_flux_upper_limit='4.01e-08', time_completed='2022-08-02 03:28:10.948827', job_id='658477', GAL2='1.00', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1659436090.95', return_code2='0', ts='0.68', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.13e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='730' AND source_name='4FGL J1058.5+8115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 03:28:10 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 658584: <4FGL_J1058.5+8115_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1058.5+8115_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:04 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 01:56:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 01:56:13 2022
Terminated at Tue Aug  2 03:10:56 2022
Results reported at Tue Aug  2 03:10:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.5+8115_weekly_bin730 164.626 81.2547 680486401 681091201 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 :                                   4422.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             383.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4482 sec.
    Turnaround time :                            11092 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 658477: <4FGL_J1058.5+8115_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1058.5+8115_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:05:59 2022
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 01:54:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 01:54:53 2022
Terminated at Tue Aug  2 03:28:11 2022
Results reported at Tue Aug  2 03:28:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.5+8115_weekly_bin730 164.626 81.2547 680486401 681091201 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 :                                   5458.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             376.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5600 sec.
    Turnaround time :                            12132 sec.

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

