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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 122 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 = 17150
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0058.4+3315_weekly_bin635
RA = 14.6101, Dec = 33.2505
tmin = 623030401, tmax = 623635201
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='28276', job_status='RUN', time_executed='2021-07-03 13:40:47.186246', time_epoch_executed='1625344847.19' WHERE source_name='4FGL J0058.4+3315' and cadence='weekly' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28276

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28276/ft1_4FGL_J0058.4+3315_weekly_bin635.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28276/ft1_4FGL_J0058.4+3315_weekly_bin635.fits outfile=/scratch/kocevski/28276/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin635.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=623030401.0 tmax=623635201.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.19
user 5.79
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.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/28276/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/28276/ft1_filtered_4FGL_J0058.4+3315_weekly_bin635.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.77
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28276/ft1_filtered_4FGL_J0058.4+3315_weekly_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/28276/ltcube_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.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/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.fits
.....................!
real 29.22
user 28.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28276/ft1_filtered_4FGL_J0058.4+3315_weekly_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/28276/ltcube_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.fits outfile=/scratch/kocevski/28276/expmap_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.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/28276/ltcube_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.fits
.....................!
real 193.20
user 185.28
sys 5.24

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

Setting source of interest to:
4FGL J0058.4+3315 @ 14.6101 33.2505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/28276/ft1_filtered_4FGL_J0058.4+3315_weekly_bin635.fits scfile=/scratch/kocevski/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.fits outfile=/scratch/kocevski/28276/cmap_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.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=14.6101 yref=33.2505 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.79
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28276/ft1_filtered_4FGL_J0058.4+3315_weekly_bin635.fits scfile=/scratch/kocevski/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.fits outfile=/scratch/kocevski/28276/cmap_HighResolution_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.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=14.6101 yref=33.2505 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.63
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28276/ft1_filtered_4FGL_J0058.4+3315_weekly_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28276/Model_4FGL_J0058.4+3315_weekly_bin635.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/28276/ft1_filtered_4FGL_J0058.4+3315_weekly_bin635.fits............................!
real 16.81
user 15.39
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/28276/ft1_filtered_4FGL_J0058.4+3315_weekly_bin635.fits', '/scratch/kocevski/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.fits', expMap='/scratch/kocevski/28276/expmap_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.fits', expCube='/scratch/kocevski/28276/ltcube_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/28276/Model_4FGL_J0058.4+3315_weekly_bin635.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0058.4+3315'

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.596e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/28276/ft1_filtered_4FGL_J0058.4+3315_weekly_bin635.fits
Spacecraft file(s): /scratch/kocevski/28276/ft2_4FGL_J0058.4+3315_weekly_bin635.fits
Exposure map: /scratch/kocevski/28276/expmap_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.fits
Exposure cube: /scratch/kocevski/28276/ltcube_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/28276/Model_4FGL_J0058.4+3315_weekly_bin635.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 376.191678784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 375.564149963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9928       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4539       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2617       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4937       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8091       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7859       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9004       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38895E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29647E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20133       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2964       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0672       1.0000         .10000E-03   10000.    
    14 'norm      '    .33152E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .94749       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32727E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.732       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35787E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    14.853       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1908       1.0000         .10000E-03   10000.    
    22 'norm      '    3.9119       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.990       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   375.5451     FROM MIGRAD    STATUS=CONVERGED    192 CALLS      372 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79409E-02    1522.2       -.40612E-03    .22790E-02
   2  Prefactor     2.4539        1.0224         .0000         .0000    
   3  Prefactor     4.2617        1.0070         .0000         .0000    
   4  Prefactor     4.6693        3.9374        .71342E-05   -.42370E-03
   5  Prefactor     .31021E-01    275.41       -.17118E-03   -.40961E-02
   6  norm          1.7859        1.0458         .0000         .0000    
   7  Prefactor     3.9004        1.0085         .0000         .0000    
   8  Prefactor     .10000E-03    181.42       -.27054E-04** at limit **
   9  Prefactor     .10000E-03    461.39       -.59839E-04** at limit **
  10  Prefactor     .10000E-03    38.214       -.14626E-05** at limit **
  11  Prefactor     .10000E-03    79.686       -.52530E-05** at limit **
  12  Prefactor     .25295E-01    461.46       -.24052E-03   -.18809E-02
  13  Prefactor     .10000E-03    120.40        .24204E-04** at limit **
  14  norm          .10000E-03    36.301        .13715E-05** at limit **
  15  norm          .10000E-03    10.100        .12213E-04** at limit **
  16  Prefactor     .10000E-03    383.80       -.59446E-04** at limit **
  17  Prefactor     .10000E-03    58.784        .47991E-05** at limit **
  18  Prefactor     47.729        101.32        .58531E-04   -.47384E-02
  19  Prefactor     .10000E-03    71.039       -.86783E-05** at limit **
  20  norm          14.757        9.3493        .51229E-05   -.36194E-03
  21  Prefactor     .60694E-03    483.53        .23422E-04** at limit **
  22  norm          3.9311        4.1375       -.37244E-05   -.13266E-04
  23  Prefactor     13.335        63.667        .17062E-04   -.26070E-03
  24  Normalizat    .10000E-01    1.1760        .55702E-03** at limit **
  25  Prefactor     .88448        .43464       -.32687E-04   -.12110E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00794085
  Prefactor  = 2.4539
  Prefactor  = 4.26167
  Prefactor  = 4.66928
  Prefactor  = 0.0310205
  norm       = 1.78589
  Prefactor  = 3.90045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0252947
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 47.7291
  Prefactor  = 0.0001
  norm       = 14.7569
  Prefactor  = 0.000606944
  norm       = 3.93111
  Prefactor  = 13.3353
  Normalizat = 0.01
  Prefactor  = 0.884476
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   375.5451     FROM HESSE     STATUS=FAILED        13 CALLS      385 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79409E-02    1820.1        .37927E-02   -1.5690    
   2  Prefactor     561.96        559.40         .0000       -1.5395    
   3  Prefactor     4.2617        1.0070         .0000       -1.5295    
   4  Prefactor     4.6693        1.0258        .71342E-05   -1.5276    
   5  Prefactor     .31021E-01    .10669       -.17118E-03   -1.5743    
   6  norm          1.7859        1.0458         .0000       -1.5441    
   7  Prefactor     3.9004        1.0085         .0000       -1.5313    
   8  Prefactor     .10000E-03    .23836       -.27054E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .27214       -.59839E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .24604       -.14626E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .24918       -.52530E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25295E-01    .11461       -.24052E-03   -1.5740    
  13  Prefactor     .10000E-03    .34732        .24204E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .24299        .13715E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20571        .12213E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .42112       -.59446E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .28496        .47991E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     47.729        .96077        .58531E-04   -1.4325    
  19  Prefactor     .10000E-03    .24081       -.86783E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.757        .99733        .51229E-05   -1.4939    
  21  Prefactor     .60694E-03    .30662E-01    .23422E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9311        1.0109       -.37244E-05   -1.5311    
  23  Prefactor     13.335        1.0555        .17062E-04   -1.4977    
  24  Normalizat    .10000E-01    .25769        .55702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .88448        1.2290       -.32687E-04   -.96686    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.29883e-10
Minuit parameter uncertainties:
  1  7.80575
  2  1.02243
  3  1.00705
  4  1.02579
  5  0.106694
  6  1.04584
  7  1.00846
  8  6.20702e-06
  9  2.0607e-06
  10  6.02904e-07
  11  1.22456e-06
  12  0.107474
  13  7.76708e-06
  14  7.28385e-07
  15  3.87419e-06
  16  4.22805e-05
  17  1.92075e-06
  18  0.960773
  19  1.55879e-06
  20  0.997333
  21  0.00788518
  22  1.01088
  23  1.05547
  24  3.79713e-06
  25  1.27104
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 375.54505137

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.000e-04  2.061e-06  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  8.845e-01  1.271e+00  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.000e-02  3.797e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 14.610 33.251
Photon Flux Upper Limit: 8.48e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28276/likelihoodResults_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.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) = 375.545061599
delta logL = -1.02288335597e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 375.545065292
delta logL = -1.39217557944e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   375.5451     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      211 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    952.38        .90750E-02** at limit **
   2  Index         2.3153        6.2385        .50000        .49300E-06
   3  Normalizat    .10000E-01    .33156E-02    .21643    ** at limit **
   4  Prefactor     .88448        .18224E-01    .44808E-01   -.31209E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.31531
  Normalizat = 0.01
  Prefactor  = 0.88448
 **********
 **   18 **HESSE 
 **********

 FCN=   375.5451     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7052.2        .18150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3153        8.2645        .50000       -.56680    
   3  Normalizat    .10000E-01    .24844E-01    .10806E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .88448        .40699E-01    .19034E-03   -.96686    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.15438e-08
Minuit parameter uncertainties:
  1  0.0122908
  2  2697.23
  3  3.12428e-07
  4  0.0407005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28276': 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) = 375.545051367
delta logL = 3.39957750839e-09

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.000e-04  1.229e-02  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.315e+00  2.697e+03  0.000e+00  1.000e+01 (-1.000e+00)
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  8.845e-01  4.070e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.000e-02  3.124e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 14.610 33.251

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/28276/cmap_HighResolution_623030401_623635201_4FGL_J0058.4+3315_weekly_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-01', job_status='DONE', photon_flux_upper_limit='8.48e-06', time_completed='2021-07-03 13:47:10.396163', job_id='28276', GAL2='0.88', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625345230.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.88', dlogl='3.40e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='635' AND source_name='4FGL J0058.4+3315' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 13:47:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0087>
Subject: Job 28276: <4FGL_J0058.4+3315_weekly_bin635> in cluster <slac> Done

Job <4FGL_J0058.4+3315_weekly_bin635> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Jul  3 13:37:18 2021
Job was executed on host(s) <bullet0087>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 13:37:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 13:37:20 2021
Terminated at Sat Jul  3 13:47:11 2021
Results reported at Sat Jul  3 13:47:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.4+3315_weekly_bin635 14.6101 33.2505 623030401 623635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0058.4+3315 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   360.89 sec.
    Max Memory :                                 319 MB
    Average Memory :                             169.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2622 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            593 sec.

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

