aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 8 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 = 17291
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1058.0+4305_weekly_bin527
RA = 164.518, Dec = 43.0938
tmin = 557712001, tmax = 558316801
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='615710', job_status='RUN', time_executed='2021-07-17 12:53:02.395753', time_epoch_executed='1626551582.4' WHERE source_name='4FGL J1058.0+4305' and cadence='weekly' and bin_id='527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/615710

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/615710/ft1_4FGL_J1058.0+4305_weekly_bin527.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/615710/ft1_4FGL_J1058.0+4305_weekly_bin527.fits outfile=/scratch/kocevski/615710/ft1_filteredMKT_4FGL_J1058.0+4305_weekly_bin527.fits ra=164.518 dec=43.0938 rad=12.0 tmin=557712001.0 tmax=558316801.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 8.50
user 8.17
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.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/615710/ft1_filteredMKT_4FGL_J1058.0+4305_weekly_bin527.fits evtable="EVENTS" outfile="/scratch/kocevski/615710/ft1_filtered_4FGL_J1058.0+4305_weekly_bin527.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.60
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/615710/ft1_filtered_4FGL_J1058.0+4305_weekly_bin527.fits" evtable="EVENTS" scfile=/scratch/kocevski/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.fits sctable="SC_DATA" outfile=/scratch/kocevski/615710/ltcube_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.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/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.fits
.....................!
real 32.01
user 31.57
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/615710/ft1_filtered_4FGL_J1058.0+4305_weekly_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.fits sctable="SC_DATA" expcube=/scratch/kocevski/615710/ltcube_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.fits outfile=/scratch/kocevski/615710/expmap_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.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/615710/ltcube_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.fits
.....................!
real 193.43
user 187.80
sys 5.28

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

Setting source of interest to:
4FGL J1058.0+4305 @ 164.518 43.0938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/615710/ft1_filtered_4FGL_J1058.0+4305_weekly_bin527.fits scfile=/scratch/kocevski/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.fits outfile=/scratch/kocevski/615710/cmap_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.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.518 yref=43.0938 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.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/615710/ft1_filtered_4FGL_J1058.0+4305_weekly_bin527.fits scfile=/scratch/kocevski/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.fits outfile=/scratch/kocevski/615710/cmap_HighResolution_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.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.518 yref=43.0938 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.42
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/615710/ft1_filtered_4FGL_J1058.0+4305_weekly_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/615710/Model_4FGL_J1058.0+4305_weekly_bin527.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/615710/ft1_filtered_4FGL_J1058.0+4305_weekly_bin527.fits........................!
real 17.34
user 16.02
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/615710/ft1_filtered_4FGL_J1058.0+4305_weekly_bin527.fits', '/scratch/kocevski/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.fits', expMap='/scratch/kocevski/615710/expmap_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.fits', expCube='/scratch/kocevski/615710/ltcube_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/615710/Model_4FGL_J1058.0+4305_weekly_bin527.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.0+4305'

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.092e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/615710/ft1_filtered_4FGL_J1058.0+4305_weekly_bin527.fits
Spacecraft file(s): /scratch/kocevski/615710/ft2_4FGL_J1058.0+4305_weekly_bin527.fits
Exposure map: /scratch/kocevski/615710/expmap_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.fits
Exposure cube: /scratch/kocevski/615710/ltcube_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/615710/Model_4FGL_J1058.0+4305_weekly_bin527.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) = 541.794007163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9999.8       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9840.1       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6924.1       1.0000         .10000E-03   10000.    
     4 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9969.8       1.0000         .10000E-03   10000.    
     6 'norm      '    9797.9       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3289.5       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17519E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50297E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6315.9       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    105.32       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    277.64       1.0000         .10000E-03   10000.    
    19 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10443E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5483       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1142       1.0000         .10000E-03   10000.    
    23 'norm      '    .11314E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11452E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.9255       1.0000         .10000E-03   10000.    
    27 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.036       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10135E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1505       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   519.8439     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     4918 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        2015.0        .15938E-04** at limit **
   2  Prefactor     9999.9        7475.1        .49560E-04   -.30387E-02
   3  Prefactor     9674.1        5769.3       -.65973E-06    .12698    
   4  norm          .10000E-03    19.246       -.17699E-08** at limit **
   5  Prefactor    10000.0        2141.5       -.11159E-04** at limit **
   6  norm         10000.0        2150.2       -.25059E-04** at limit **
   7  Prefactor     9634.1        7495.9       -.19251E-05   -.12660    
   8  Prefactor     .10000E-03    247.52       -.28161E-05** at limit **
   9  Prefactor    10000.0        921.55        .92534E-05** at limit **
  10  Prefactor     .10000E-03    1109.7       -.29436E-05** at limit **
  11  Prefactor     .10000E-03    101.78       -.66910E-06** at limit **
  12  Prefactor     6172.2        118.58        .39569E-07    .15467E-01
  13  Prefactor     .10000E-03    163.30       -.25010E-06** at limit **
  14  Prefactor     105.19        112.13       -.12000E-06   -.20893E-04
  15  norm          .10000E-03    1.0127        .92318E-07** at limit **
  16  Prefactor     .10000E-03    50.352       -.14643E-05** at limit **
  17  Prefactor     .10000E-03    51.708        .77789E-06** at limit **
  18  Prefactor     270.98        350.83        .93284E-06   -.22881E-04
  19  norm          .10000E-03    77.548       -.58726E-06** at limit **
  20  norm          .10000E-03    118.35       -.79915E-06** at limit **
  21  Prefactor     4.4765        11.941       -.46225E-06   -.29305E-04
  22  Prefactor     .10148E-03    6412.5        .28467E-04** at limit **
  23  norm          .10000E-03    7.0405       -.26840E-07** at limit **
  24  Prefactor     .10000E-03    22.110       -.21354E-06** at limit **
  25  Prefactor     .10002E-03    199.73        .68431E-05** at limit **
  26  norm          6.8684        4.1819       -.28115E-06   -.73124E-03
  27  norm          .10000E-03    21.654        .44802E-06** at limit **
  28  Prefactor     .10000E-03    9.3092        .48208E-06** at limit **
  29  Prefactor     .10001E-03    123.96        .44207E-05** at limit **
  30  Prefactor     14.930        42.079       -.63631E-06   -.53211E-04
  31  Normalizat    .10000E-01    1.0083        .17707E-04** at limit **
  32  Prefactor     1.1430        .38810       -.25584E-05   -.13327E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 9999.87
  Prefactor  = 9674.08
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 9634.14
  Prefactor  = 0.000100003
  Prefactor  = 10000
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 6172.2
  Prefactor  = 0.0001
  Prefactor  = 105.194
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 270.984
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.47648
  Prefactor  = 0.000101477
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  norm       = 6.86843
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 14.9296
  Normalizat = 0.01
  Prefactor  = 1.14304
 **********
 **   18 **HESSE 
 **********

 FCN=   519.8439     FROM HESSE     STATUS=OK           713 CALLS     5631 TOTAL
                     EDM=   .16E+00    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        2042.1        .99300E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9999.9        7444.7        .79711E-03    1.5636    
   3  Prefactor     9674.1        6827.9        .21669E-03    1.9339    
   4  norm          .10000E-03    19.223        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        2198.4        .18226E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        2212.9        .71072E-03    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9634.1        8735.6        .21284E-03    1.1859    
   8  Prefactor     .10000E-03    242.93        .10172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        950.48        .90831E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1111.1        .95971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    102.10        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6172.2        7064.8        .20731E-03    .23664    
  13  Prefactor     .10000E-03    161.93        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     105.19        112.61        .97960E-03   -1.3653    
  15  norm          .10000E-03    .99476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    50.109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     270.98        348.70        .60865E-03   -1.2401    
  19  norm          .10000E-03    77.525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    118.98        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4765        13.945        .47190E-02   -1.6131    
  22  Prefactor     .10148E-03    6403.0        .11163E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.9487        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    194.91        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.8684        4.3510        .38112E-02   -1.5184    
  27  norm          .10000E-03    21.753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.0533        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    124.17        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     14.930        42.913        .25823E-02   -1.4935    
  31  Normalizat    .10000E-01    .66901        .23772       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.1430        .45581        .51930E-01   -.88102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.164771
Minuit parameter uncertainties:
  1  0.0307237
  2  55.6483
  3  3069.68
  4  1.13095e-06
  5  0.0256896
  6  2.06652
  7  3359.11
  8  0.00163284
  9  0.0111121
  10  0.00424395
  11  0.000246382
  12  74424.9
  13  5.81797e-05
  14  112.841
  15  3.41638e-06
  16  0.000369224
  17  0.000205948
  18  351.434
  19  0.00017255
  20  0.000386621
  21  13.9552
  22  0.135694
  23  2.08656e-06
  24  3.45576e-05
  25  0.00417686
  26  4.35122
  27  8.26752e-05
  28  5.82902e-05
  29  0.00207172
  30  43.0014
  31  1.6403e-05
  32  0.457387
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  5.818e-05  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.143e+00  4.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.000e-02  1.640e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 3.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/615710/likelihoodResults_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.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) = 519.843925021
delta logL = -2.93958792099e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 519.843901715
delta logL = -6.08956918313e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44813E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6103       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1431       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   519.8439     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      296 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10496E-03    79.121        .21211E-01** at limit **
   2  Index         2.5445        6.7641        .50000        .28482E-05
   3  Normalizat    .10000E-01    .13403E-02    .85413E-02** at limit **
   4  Prefactor     1.1430        .11808E-01    .22954E-03   -.42843E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104958
  Index      = 2.54446
  Normalizat = 0.01
  Prefactor  = 1.14305
 **********
 **   18 **HESSE 
 **********

 FCN=   519.8439     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10496E-03    647.34        .24628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5445        5.4301        .50000       -.51336    
   3  Normalizat    .10000E-01    .11313E-01    .17083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1430        .34267E-01    .91814E-05   -.88102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.61147e-10
Minuit parameter uncertainties:
  1  0.11456
  2  747.182
  3  2.62947e-07
  4  0.0342679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/615710': 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) = 519.843895748
delta logL = -1.22145934256e-07

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.050e-04  1.146e-01  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.544e+00  7.472e+02  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.143e+00  3.427e-02  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.000e-02  2.629e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.518 43.094

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/615710/cmap_HighResolution_557712001_558316801_4FGL_J1058.0+4305_weekly_bin527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-02', job_status='DONE', photon_flux_upper_limit='3.30e-07', time_completed='2021-07-17 13:01:27.432282', job_id='615710', GAL2='1.14', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1626552087.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='-1.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='527' AND source_name='4FGL J1058.0+4305' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 13:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 615710: <4FGL_J1058.0+4305_weekly_bin527> in cluster <slac> Done

Job <4FGL_J1058.0+4305_weekly_bin527> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jul 17 12:52:26 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 12:52:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 17 12:52:45 2021
Terminated at Sat Jul 17 13:01:27 2021
Results reported at Sat Jul 17 13:01:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_weekly_bin527 164.518 43.0938 557712001 558316801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.0+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   477.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             293.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   522 sec.
    Turnaround time :                            541 sec.

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

