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


Performing analysis on: 4FGL_J0159.0+3313_weekly_bin515
RA = 29.7665, Dec = 33.2175
tmin = 550454401, tmax = 551059201
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='311097', job_status='RUN', time_executed='2021-07-04 05:25:46.215731', time_epoch_executed='1625401546.22' WHERE source_name='4FGL J0159.0+3313' and cadence='weekly' and bin_id='515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311097

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311097/ft1_4FGL_J0159.0+3313_weekly_bin515.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311097/ft1_4FGL_J0159.0+3313_weekly_bin515.fits outfile=/scratch/kocevski/311097/ft1_filteredMKT_4FGL_J0159.0+3313_weekly_bin515.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=550454401.0 tmax=551059201.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.96
user 8.02
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.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/311097/ft1_filteredMKT_4FGL_J0159.0+3313_weekly_bin515.fits evtable="EVENTS" outfile="/scratch/kocevski/311097/ft1_filtered_4FGL_J0159.0+3313_weekly_bin515.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 1.50
user 0.40
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311097/ft1_filtered_4FGL_J0159.0+3313_weekly_bin515.fits" evtable="EVENTS" scfile=/scratch/kocevski/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.fits sctable="SC_DATA" outfile=/scratch/kocevski/311097/ltcube_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.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/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.fits
.....................!
real 26.11
user 24.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311097/ft1_filtered_4FGL_J0159.0+3313_weekly_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.fits sctable="SC_DATA" expcube=/scratch/kocevski/311097/ltcube_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.fits outfile=/scratch/kocevski/311097/expmap_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.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/311097/ltcube_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.fits
.....................!
real 196.33
user 186.61
sys 5.03

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

Setting source of interest to:
4FGL J0159.0+3313 @ 29.7665 33.2175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/311097/ft1_filtered_4FGL_J0159.0+3313_weekly_bin515.fits scfile=/scratch/kocevski/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.fits outfile=/scratch/kocevski/311097/cmap_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.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=29.7665 yref=33.2175 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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311097/ft1_filtered_4FGL_J0159.0+3313_weekly_bin515.fits scfile=/scratch/kocevski/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.fits outfile=/scratch/kocevski/311097/cmap_HighResolution_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.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=29.7665 yref=33.2175 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 1.72
user 0.40
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/311097/ft1_filtered_4FGL_J0159.0+3313_weekly_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/311097/Model_4FGL_J0159.0+3313_weekly_bin515.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/311097/ft1_filtered_4FGL_J0159.0+3313_weekly_bin515.fits..........!
real 20.52
user 14.11
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/311097/ft1_filtered_4FGL_J0159.0+3313_weekly_bin515.fits', '/scratch/kocevski/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.fits', expMap='/scratch/kocevski/311097/expmap_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.fits', expCube='/scratch/kocevski/311097/ltcube_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/311097/Model_4FGL_J0159.0+3313_weekly_bin515.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.0+3313'

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.345e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/311097/ft1_filtered_4FGL_J0159.0+3313_weekly_bin515.fits
Spacecraft file(s): /scratch/kocevski/311097/ft2_4FGL_J0159.0+3313_weekly_bin515.fits
Exposure map: /scratch/kocevski/311097/expmap_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.fits
Exposure cube: /scratch/kocevski/311097/ltcube_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/311097/Model_4FGL_J0159.0+3313_weekly_bin515.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) = 139.990725471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2563       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5048       1.0000         .10000E-03   10000.    
     4 'Prefactor '    317.46       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3984       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3528       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.711       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7499       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0096       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2879       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9354       1.0000         .10000E-03   10000.    
    14 'norm      '    .59550       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9276       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7427       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14519E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1392       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33115E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9363       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0840       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0321       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0774       1.0000         .10000E-03   10000.    
    24 'norm      '    3.0598       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5765       1.0000         .10000E-03   10000.    
    26 'norm      '    35.847       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.5540       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .35771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   137.5543     FROM MIGRAD    STATUS=CONVERGED    159 CALLS      281 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9424        1.0377         .0000         .0000    
   2  Prefactor     .22545E-02    1040.5       -.25025E-02** at limit **
   3  Prefactor     1.5048        1.0699         .0000         .0000    
   4  Prefactor     329.27        341.42        .62985E-03   -.63014E-03
   5  norm          1.1771        1.1443         .0000         .0000    
   6  Prefactor     .10000E-03    221.28        .44954E-03** at limit **
   7  Prefactor     .10290E-03    801.08        .46742E-03** at limit **
   8  norm          .10000E-03    6.5338        .31665E-05** at limit **
   9  Prefactor     36.012        62.329       -.77139E-04    .26529E-04
  10  Prefactor     1.7499        1.0481         .0000         .0000    
  11  Prefactor     1.0096        1.3263         .0000         .0000    
  12  Prefactor     .39232E-01    1054.0       -.19590E-02   -.51440E-03
  13  Prefactor     4.9354        1.0052         .0000         .0000    
  14  norm          .10000E-03    71.918       -.95818E-04** at limit **
  15  Prefactor     .10003E-03    544.97        .14356E-02** at limit **
  16  Prefactor     .10000E-03    306.31       -.14463E-03** at limit **
  17  Prefactor     .10000E-03    21.673        .13333E-03** at limit **
  18  norm          1.1392        1.1629         .0000         .0000    
  19  Prefactor     .10007E-03    398.28        .15508E-02** at limit **
  20  norm          1.9363        1.0380         .0000         .0000    
  21  norm          .12847E-02    898.09       -.19219E-02** at limit **
  22  norm          1.0321        1.2663         .0000         .0000    
  23  Prefactor     1.0774        1.2073         .0000         .0000    
  24  norm          3.0598        1.0140         .0000         .0000    
  25  Prefactor     2.5765        1.0202         .0000         .0000    
  26  norm          35.776        23.360        .79612E-04    .20851E-03
  27  Prefactor     5.8833        120.52       -.77060E-03    .14611E-02
  28  Normalizat    .10000E-01    .35725       -.23011E-03** at limit **
  29  Prefactor     .36267        .30358        .46632E-03    .53633E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94242
  Prefactor  = 0.00225449
  Prefactor  = 1.50477
  Prefactor  = 329.269
  norm       = 1.1771
  Prefactor  = 0.000100003
  Prefactor  = 0.000102903
  norm       = 0.0001
  Prefactor  = 36.0123
  Prefactor  = 1.74994
  Prefactor  = 1.0096
  Prefactor  = 0.0392322
  Prefactor  = 4.93544
  norm       = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.13918
  Prefactor  = 0.000100074
  norm       = 1.93629
  norm       = 0.00128468
  norm       = 1.03212
  Prefactor  = 1.07741
  norm       = 3.0598
  Prefactor  = 2.57651
  norm       = 35.7755
  Prefactor  = 5.88331
  Normalizat = 0.01
  Prefactor  = 0.362669
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   137.5543     FROM HESSE     STATUS=FAILED         9 CALLS      290 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          569.94        567.86         .0000       -1.5429    
   2  Prefactor     .22545E-02    .11688       -.25025E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5048        1.0699         .0000       -1.5463    
   4  Prefactor     329.27        1.0178        .62985E-03   -1.2059    
   5  norm          1.1771        1.1443         .0000       -1.5491    
   6  Prefactor     .10000E-03    .75256E-01    .44954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10290E-03    .26832E-01    .46742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .20571        .31665E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.012        .96473       -.77139E-04   -1.4507    
  10  Prefactor     1.7499        1.0481         .0000       -1.5443    
  11  Prefactor     1.0096        1.3263         .0000       -1.5507    
  12  Prefactor     .39232E-01    .23822       -.19590E-02   -1.5748    
  13  Prefactor     4.9354        1.0052         .0000       -1.5264    
  14  norm          .10000E-03    .33958       -.95818E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    .51294E-01    .14356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .94429E-01   -.14463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20571        .13333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1392        1.1629         .0000       -1.5495    
  19  Prefactor     .10007E-03    .21102        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9363        1.0380         .0000       -1.5430    
  21  norm          .12847E-02    .83343E-01   -.19219E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0321        1.2663         .0000       -1.5505    
  23  Prefactor     1.0774        1.2073         .0000       -1.5500    
  24  norm          3.0598        1.0140         .0000       -1.5358    
  25  Prefactor     2.5765        1.0202         .0000       -1.5387    
  26  norm          35.776        .99911        .79612E-04   -1.4511    
  27  Prefactor     5.8833        .88453       -.77060E-03   -1.5223    
  28  Normalizat    .10000E-01    .25505       -.23011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .36267        .68717        .46632E-03   -1.1876    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.14709e-09
Minuit parameter uncertainties:
  1  1.03771
  2  0.0317378
  3  1.06989
  4  1.01781
  5  1.14429
  6  3.02297e-05
  7  0.000558234
  8  1.88491e-07
  9  0.964729
  10  1.0481
  11  1.32633
  12  0.193102
  13  1.00522
  14  2.52221e-06
  15  7.3308e-05
  16  1.19565e-05
  17  3.45416e-05
  18  1.16292
  19  0.00024983
  20  1.03798
  21  0.0198731
  22  1.26633
  23  1.20736
  24  1.01402
  25  1.02019
  26  0.999107
  27  0.884533
  28  2.17843e-06
  29  0.70367
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  3.923e-02  1.931e-01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  3.627e-01  7.037e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.000e-02  2.178e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.260033192303

TS (Fixed Index): -0.00
Ra Dec: 29.767 33.218
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.49e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311097/likelihoodResults_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.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) = 137.555219426
delta logL = -0.000905428583252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 137.555219423
delta logL = -0.000905425009023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    1.9819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   137.5552     FROM MIGRAD    STATUS=CONVERGED     28 CALLS       93 TOTAL
                     EDM=   .96E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 24.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.0863        7.4243       -.25051        .16352E-06
                               ERR DEF=  .500    
Final values: 
  Index      = 1.08634
 **********
 **   18 **HESSE 
 **********

 FCN=   137.5552     FROM HESSE     STATUS=OK            11 CALLS      104 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.0863        6.1424        .50000       -.89904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69414e-10
Minuit parameter uncertainties:
  1  447.931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311097': 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) = 137.555218791
delta logL = -0.000904793548699

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  3.923e-02  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
266        Index:  1.086e+00  4.479e+02  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  3.633e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.006e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): -0.00
Ra Dec: 29.767 33.218

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/311097/cmap_HighResolution_550454401_551059201_4FGL_J0159.0+3313_weekly_bin515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.49e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-07-04 05:32:26.525041', job_id='311097', GAL2='0.36', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625401946.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.36', dlogl='-9.05e-04', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='515' AND source_name='4FGL J0159.0+3313' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 05:32:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 311097: <4FGL_J0159.0+3313_weekly_bin515> in cluster <slac> Done

Job <4FGL_J0159.0+3313_weekly_bin515> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Jul  4 05:23:35 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 05:23:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 05:23:37 2021
Terminated at Sun Jul  4 05:32:33 2021
Results reported at Sun Jul  4 05:32:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_weekly_bin515 29.7665 33.2175 550454401 551059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.0+3313 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   369.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             258.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   535 sec.
    Turnaround time :                            538 sec.

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

