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


Performing analysis on: 4FGL_J0058.4+3315_weekly_bin508
RA = 14.6101, Dec = 33.2505
tmin = 546220801, tmax = 546825601
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='28095', job_status='RUN', time_executed='2021-07-03 13:41:18.919171', time_epoch_executed='1625344878.92' WHERE source_name='4FGL J0058.4+3315' and cadence='weekly' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28095

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28095/ft1_4FGL_J0058.4+3315_weekly_bin508.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28095/ft2_4FGL_J0058.4+3315_weekly_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28095/ft1_4FGL_J0058.4+3315_weekly_bin508.fits outfile=/scratch/kocevski/28095/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin508.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=546220801.0 tmax=546825601.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.33
user 7.82
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28095/ft1_filtered_4FGL_J0058.4+3315_weekly_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/28095/ft2_4FGL_J0058.4+3315_weekly_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/28095/ltcube_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.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/28095/ft2_4FGL_J0058.4+3315_weekly_bin508.fits
.....................!
real 29.97
user 28.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28095/ft1_filtered_4FGL_J0058.4+3315_weekly_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/28095/ft2_4FGL_J0058.4+3315_weekly_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/28095/ltcube_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.fits outfile=/scratch/kocevski/28095/expmap_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.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/28095/ltcube_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.fits
.....................!
real 194.15
user 187.17
sys 4.84

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/28095/ft1_filtered_4FGL_J0058.4+3315_weekly_bin508.fits scfile=/scratch/kocevski/28095/ft2_4FGL_J0058.4+3315_weekly_bin508.fits outfile=/scratch/kocevski/28095/cmap_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28095/ft1_filtered_4FGL_J0058.4+3315_weekly_bin508.fits scfile=/scratch/kocevski/28095/ft2_4FGL_J0058.4+3315_weekly_bin508.fits outfile=/scratch/kocevski/28095/cmap_HighResolution_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.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.69
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/28095/ft1_filtered_4FGL_J0058.4+3315_weekly_bin508.fits', '/scratch/kocevski/28095/ft2_4FGL_J0058.4+3315_weekly_bin508.fits', expMap='/scratch/kocevski/28095/expmap_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.fits', expCube='/scratch/kocevski/28095/ltcube_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/28095/Model_4FGL_J0058.4+3315_weekly_bin508.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/28095/ft1_filtered_4FGL_J0058.4+3315_weekly_bin508.fits
Spacecraft file(s): /scratch/kocevski/28095/ft2_4FGL_J0058.4+3315_weekly_bin508.fits
Exposure map: /scratch/kocevski/28095/expmap_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.fits
Exposure cube: /scratch/kocevski/28095/ltcube_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/28095/Model_4FGL_J0058.4+3315_weekly_bin508.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) = 2158.37510409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.553       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    134.01       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4727       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49463E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.473       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11592E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11671E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15601E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0574       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.0355       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11987E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .23045       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.623       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90695       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0869       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2158.361     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3329 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.570        41.586       -.58183E-06    .72892E-05
   2  Prefactor     .10000E-03    13.956       -.53050E-07** at limit **
   3  Prefactor     133.94        161.24        .64641E-05   -.14970E-04
   4  Prefactor     .10000E-03    30.738       -.93193E-06** at limit **
   5  Prefactor     .10000E-03    34.421        .40899E-06** at limit **
   6  norm          4.4728        4.3141        .25808E-07    .38564E-05
   7  Prefactor     .10000E-03    24.729        .21122E-06** at limit **
   8  Prefactor     .10000E-03    3.9672        .11332E-08** at limit **
   9  Prefactor     .10000E-03    11.237        .88540E-08** at limit **
  10  Prefactor     .10000E-03    21.854        .41391E-06** at limit **
  11  Prefactor     .10000E-03    18.563       -.18611E-06** at limit **
  12  Prefactor     11.491        168.00       -.91719E-05   -.85418E-04
  13  Prefactor     .10000E-03    85.821        .71889E-06** at limit **
  14  norm          .10000E-03    1.2661        .90813E-06** at limit **
  15  norm          .10000E-03    .98775        .10701E-06** at limit **
  16  Prefactor     .10000E-03    159.22       -.24533E-05** at limit **
  17  Prefactor     .10000E-03    6.9017        .20666E-06** at limit **
  18  Prefactor     2.0580        17.667        .82805E-05   -.41585E-04
  19  Prefactor     .10000E-03    8.8811        .45202E-07** at limit **
  20  norm          6.0362        4.5731        .27367E-07    .88243E-05
  21  Prefactor     .10000E-03    626.87        .28345E-04** at limit **
  22  norm          .23102        2.0505       -.44084E-06   -.96327E-04
  23  Prefactor     20.629        25.297        .26477E-07    .10399E-06
  24  Normalizat    .90697        .37640       -.23852E-05   -.82196E-04
  25  Prefactor     1.0867        .23182        .61758E-06   -.18583E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.5702
  Prefactor  = 0.0001
  Prefactor  = 133.939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.47285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4906
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.05799
  Prefactor  = 0.0001
  norm       = 6.03622
  Prefactor  = 0.000100002
  norm       = 0.231015
  Prefactor  = 20.6291
  Normalizat = 0.90697
  Prefactor  = 1.08669
 **********
 **   18 **HESSE 
 **********

 FCN=   2158.361     FROM HESSE     STATUS=OK           423 CALLS     3752 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.570        41.588        .80841E-04   -1.4716    
   2  Prefactor     .10000E-03    14.203        .16949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     133.94        160.72        .17394E-03   -1.3388    
   4  Prefactor     .10000E-03    30.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4728        4.3119        .92069E-04   -1.5285    
   7  Prefactor     .10000E-03    24.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9683        .90380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.253        .15212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    118.79        .41469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.491        141.74        .11827E-03   -1.5030    
  13  Prefactor     .10000E-03    85.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.2888        .88352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .99430        .45099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    159.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9172        .11912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0580        17.525        .14407E-02   -1.5421    
  19  Prefactor     .10000E-03    8.8859        .13523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0362        4.5755        .83309E-04   -1.5217    
  21  Prefactor     .10000E-03    621.08        .20639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .23102        3.6013        .12207E-02   -1.5612    
  23  Prefactor     20.629        25.296        .88199E-04   -1.4799    
  24  Normalizat    .90697        .43979        .32085E-03   -.96216    
  25  Prefactor     1.0867        .27486        .18619E-03   -.89893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25112e-09
Minuit parameter uncertainties:
  1  41.637
  2  1.11879e-05
  3  161.247
  4  1.94117e-05
  5  1.26035e-05
  6  4.31217
  7  5.48115e-05
  8  6.80998e-07
  9  3.32112e-06
  10  0.000195281
  11  2.0908e-06
  12  80.9519
  13  3.75191e-05
  14  0.000132363
  15  6.04156e-07
  16  0.00044247
  17  2.42613e-05
  18  12.0155
  19  3.84452e-06
  20  4.57574
  21  0.00239647
  22  1.82396
  23  25.3096
  24  0.441546
  25  0.275216
Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.000e-04  3.321e-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:  1.087e+00  2.752e-01  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:  9.070e-01  4.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 14.610 33.251
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28095/likelihoodResults_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.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) = 2158.36176157
delta logL = -0.000420047197622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2158.36134148
delta logL = 5.14892235515e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3247       1.0000          .0000       10.000    
     3 'Normalizat'    .90703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0867       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2158.361     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10733E-03    12.371        .15429E-01** at limit **
   2  Index         2.0415        7.6343        .50000        .84693E-05
   3  Normalizat    .90697        .85575E-02    .32085E-03    .24750E-04
   4  Prefactor     1.0867        .54211E-02    .18620E-03    .36946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107327
  Index      = 2.04155
  Normalizat = 0.90697
  Prefactor  = 1.08669
 **********
 **   18 **HESSE 
 **********

 FCN=   2158.361     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10733E-03    459.70        .16815E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0415        6.9831        .50000       -.63315    
   3  Normalizat    .90697        .54461E-01    .12834E-04   -.96216    
   4  Prefactor     1.0867        .34499E-01    .37239E-04   -.89893    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.88808e-07
Minuit parameter uncertainties:
  1  0.116981
  2  1783.78
  3  0.0544642
  4  0.0344998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28095': 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) = 2158.36134099
delta logL = 5.39992470294e-07

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.073e-04  1.170e-01  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.042e+00  1.784e+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:  1.087e+00  3.450e-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:  9.070e-01  5.446e-02  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/28095/cmap_HighResolution_546220801_546825601_4FGL_J0058.4+3315_weekly_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-07-03 13:50:09.000044', job_id='28095', GAL2='1.09', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1625345409.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='5.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='508' AND source_name='4FGL J0058.4+3315' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 13:50:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 28095: <4FGL_J0058.4+3315_weekly_bin508> in cluster <slac> Done

Job <4FGL_J0058.4+3315_weekly_bin508> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Jul  3 13:37:07 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 13:37:08 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:08 2021
Terminated at Sat Jul  3 13:50:10 2021
Results reported at Sat Jul  3 13:50:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.4+3315_weekly_bin508 14.6101 33.2505 546220801 546825601 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 :                                   505.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

