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 163 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 = 17056
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.0+3313_weekly_bin238
RA = 29.7665, Dec = 33.2175
tmin = 382924801, tmax = 383529601
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='309523', job_status='RUN', time_executed='2021-07-04 12:56:08.658123', time_epoch_executed='1625428568.66' WHERE source_name='4FGL J0159.0+3313' and cadence='weekly' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309523

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309523/ft1_4FGL_J0159.0+3313_weekly_bin238.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309523/ft2_4FGL_J0159.0+3313_weekly_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309523/ft1_4FGL_J0159.0+3313_weekly_bin238.fits outfile=/scratch/kocevski/309523/ft1_filteredMKT_4FGL_J0159.0+3313_weekly_bin238.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=382924801.0 tmax=383529601.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.78
user 7.95
sys 0.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309523/ft2_4FGL_J0159.0+3313_weekly_bin238.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/309523/ft1_filteredMKT_4FGL_J0159.0+3313_weekly_bin238.fits evtable="EVENTS" outfile="/scratch/kocevski/309523/ft1_filtered_4FGL_J0159.0+3313_weekly_bin238.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.86
user 0.37
sys 0.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309523/ft1_filtered_4FGL_J0159.0+3313_weekly_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/309523/ft2_4FGL_J0159.0+3313_weekly_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/309523/ltcube_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.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/309523/ft2_4FGL_J0159.0+3313_weekly_bin238.fits
.....................!
real 26.45
user 25.40
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309523/ft1_filtered_4FGL_J0159.0+3313_weekly_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/309523/ft2_4FGL_J0159.0+3313_weekly_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/309523/ltcube_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.fits outfile=/scratch/kocevski/309523/expmap_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.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/309523/ltcube_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.fits
.....................!
real 193.62
user 185.17
sys 5.87

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/309523/ft1_filtered_4FGL_J0159.0+3313_weekly_bin238.fits scfile=/scratch/kocevski/309523/ft2_4FGL_J0159.0+3313_weekly_bin238.fits outfile=/scratch/kocevski/309523/cmap_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.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.83
user 0.39
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309523/ft1_filtered_4FGL_J0159.0+3313_weekly_bin238.fits scfile=/scratch/kocevski/309523/ft2_4FGL_J0159.0+3313_weekly_bin238.fits outfile=/scratch/kocevski/309523/cmap_HighResolution_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.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 0.73
user 0.41
sys 0.30

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/309523/ft1_filtered_4FGL_J0159.0+3313_weekly_bin238.fits', '/scratch/kocevski/309523/ft2_4FGL_J0159.0+3313_weekly_bin238.fits', expMap='/scratch/kocevski/309523/expmap_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.fits', expCube='/scratch/kocevski/309523/ltcube_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/309523/Model_4FGL_J0159.0+3313_weekly_bin238.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/309523/ft1_filtered_4FGL_J0159.0+3313_weekly_bin238.fits
Spacecraft file(s): /scratch/kocevski/309523/ft2_4FGL_J0159.0+3313_weekly_bin238.fits
Exposure map: /scratch/kocevski/309523/expmap_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.fits
Exposure cube: /scratch/kocevski/309523/ltcube_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/309523/Model_4FGL_J0159.0+3313_weekly_bin238.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) = 20702.8472436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12266       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1380       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.543       1.0000         .10000E-03   10000.    
     5 'norm      '    .34142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.988       1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.627       1.0000         .10000E-03   10000.    
     8 'norm      '    .79064       1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.093       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9020       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3919       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8015       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .51079E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6654       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2364       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .59206       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18892E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    30.905       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.3715       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3848       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3475       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91507       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=   20702.82     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3337 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12260        .37349        .17798E-07   -.20165E-04
   2  Prefactor     .10000E-03    123.10       -.40393E-05** at limit **
   3  Prefactor     1.1391        .58379       -.52346E-07   -.26107E-03
   4  Prefactor     17.542        11.583       -.32577E-07    .13298E-04
   5  norm          .34142        .34755       -.99588E-09    .20691E-04
   6  Prefactor     36.987        29.063       -.48160E-06   -.13222E-05
   7  Prefactor     69.626        56.093       -.47651E-06   -.17318E-06
   8  norm          .79067        .41577        .17664E-07    .95346E-04
   9  Prefactor     50.093        12.185        .15347E-07   -.43061E-04
  10  Prefactor     .10000E-03    2.8568       -.65861E-08** at limit **
  11  Prefactor     1.9020        2.1125        .17628E-07    .33663E-04
  12  Prefactor     .10000E-03    5.3752        .40590E-07** at limit **
  13  Prefactor     .10000E-03    16.381       -.48013E-05** at limit **
  14  norm          4.3920        2.8180        .15906E-06   -.48338E-04
  15  Prefactor     .10000E-03    47.113        .30444E-05** at limit **
  16  Prefactor     3.8011        5.9197       -.11875E-05   -.51849E-04
  17  Prefactor     .10002E-03    1.4985        .30817E-06** at limit **
  18  norm          .10000E-03    1.1876       -.13046E-07** at limit **
  19  Prefactor     5.6656        5.2715        .15727E-05    .16410E-04
  20  norm          1.2365        .40226       -.23044E-07   -.45957E-03
  21  norm          .10000E-03    22.999       -.83602E-05** at limit **
  22  norm          .59203        .22032        .26393E-08    .91469E-04
  23  Prefactor     .10000E-03    2.0283       -.73818E-07** at limit **
  24  norm          30.916        6.8647        .38699E-08   -.16037E-04
  25  Prefactor     .10000E-03    19.530        .11421E-04** at limit **
  26  norm          4.3714        1.3489       -.12044E-07   -.64065E-04
  27  Prefactor     2.3506        63.871        .28495E-05   -.17637E-05
  28  Normalizat    1.3475        .14886        .61963E-07   -.77827E-04
  29  Prefactor     .91507        .76671E-01   -.12757E-06   -.78019E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.122604
  Prefactor  = 0.0001
  Prefactor  = 1.13907
  Prefactor  = 17.5418
  norm       = 0.341418
  Prefactor  = 36.9865
  Prefactor  = 69.6262
  norm       = 0.790668
  Prefactor  = 50.0928
  Prefactor  = 0.0001
  Prefactor  = 1.90201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.39196
  Prefactor  = 0.0001
  Prefactor  = 3.80105
  Prefactor  = 0.000100023
  norm       = 0.0001
  Prefactor  = 5.66564
  norm       = 1.23654
  norm       = 0.0001
  norm       = 0.592026
  Prefactor  = 0.0001
  norm       = 30.9157
  Prefactor  = 0.0001
  norm       = 4.37142
  Prefactor  = 2.35061
  Normalizat = 1.34752
  Prefactor  = 0.915068
 **********
 **   18 **HESSE 
 **********

 FCN=   20702.82     FROM HESSE     STATUS=OK           573 CALLS     3910 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12260        1.6716        .14444E-02   -1.5638    
   2  Prefactor     .10000E-03    126.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1391        6.3411        .21818E-02   -1.5495    
   4  Prefactor     17.542        11.594        .95625E-04   -1.4870    
   5  norm          .34142        .35143        .83448E-04   -1.5591    
   6  Prefactor     36.987        29.067        .65898E-04   -1.4491    
   7  Prefactor     69.626        55.899        .48106E-04   -1.4037    
   8  norm          .79067        .40306        .63074E-04   -1.5530    
   9  Prefactor     50.093        12.197        .56661E-04   -1.4291    
  10  Prefactor     .10000E-03    2.8674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9020        2.1133        .20775E-03   -1.5432    
  12  Prefactor     .10000E-03    5.3834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3920        2.8109        .88543E-03   -1.5289    
  15  Prefactor     .10000E-03    47.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8011        5.8821        .20703E-03   -1.5318    
  17  Prefactor     .10002E-03    1.4917        .60630E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.2194        .30413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.6656        5.2687        .16877E-03   -1.5232    
  20  norm          1.2365        .39715        .48993E-04   -1.5486    
  21  norm          .10000E-03    23.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .59203        .21372        .39531E-03   -1.5554    
  23  Prefactor     .10000E-03    6.0443        .35293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          30.916        6.2767        .36037E-03   -1.4595    
  25  Prefactor     .10000E-03    19.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.3714        1.3501        .88950E-04   -1.5290    
  27  Prefactor     2.3506        64.226        .26524E-03   -1.5401    
  28  Normalizat    1.3475        .18318        .33535E-03   -.82159    
  29  Prefactor     .91507        .92129E-01    .21514E-03   -.95617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06894e-08
Minuit parameter uncertainties:
  1  0.905078
  2  0.000182356
  3  5.37574
  4  11.5955
  5  0.351431
  6  29.0782
  7  55.9409
  8  0.403066
  9  12.1973
  10  8.27695e-07
  11  2.11342
  12  9.14194e-06
  13  5.03042e-06
  14  2.81102
  15  1.65768e-06
  16  5.88301
  17  0.000373757
  18  2.62365e-07
  19  5.26918
  20  0.397151
  21  5.83855e-06
  22  0.213722
  23  6.55164e-06
  24  6.27679
  25  3.08615e-05
  26  1.35008
  27  24.6028
  28  0.18327
  29  0.0921444
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  9.142e-06  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:  9.151e-01  9.214e-02  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.348e+00  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.767 33.218
Photon Flux Upper Limit: 2.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/309523/likelihoodResults_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.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) = 20702.8209757
delta logL = -0.000885251523869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20702.8200904
delta logL = -9.57152224146e-09

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20702.82     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      238 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    196.34        .18142E-01** at limit **
   2  Index         1.6171        6.8234        .10370       -.16225E-07
   3  Normalizat    1.3475        .22031E-01    .33535E-03    .20883E-04
   4  Prefactor     .91507        .11991E-01    .21514E-03    .39738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.61711
  Normalizat = 1.34752
  Prefactor  = 0.915068
 **********
 **   18 **HESSE 
 **********

 FCN=   20702.82     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8293        .33721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6171        5.9451        .41481E-02   -.74310    
   3  Normalizat    1.3475        .16253        .13414E-04   -.82159    
   4  Prefactor     .91507        .88480E-01    .86057E-05   -.95617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87039e-12
Minuit parameter uncertainties:
  1  1.76406e-05
  2  299.119
  3  0.162591
  4  0.088494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309523': 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) = 20702.8200898
delta logL = 6.21908839094e-07

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.764e-05  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.617e+00  2.991e+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:  9.151e-01  8.849e-02  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.348e+00  1.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/309523/cmap_HighResolution_382924801_383529601_4FGL_J0159.0+3313_weekly_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-03', job_status='DONE', photon_flux_upper_limit='2.92e-08', time_completed='2021-07-04 13:30:32.649424', job_id='309523', GAL2='0.92', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1625430632.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='238' AND source_name='4FGL J0159.0+3313' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 13:30:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 309523: <4FGL_J0159.0+3313_weekly_bin238> in cluster <slac> Done

Job <4FGL_J0159.0+3313_weekly_bin238> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Jul  4 05:18:15 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 05:18:17 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:18:17 2021
Terminated at Sun Jul  4 13:30:36 2021
Results reported at Sun Jul  4 13:30:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_weekly_bin238 29.7665 33.2175 382924801 383529601 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 :                                   2047.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             68.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   29538 sec.
    Turnaround time :                            29541 sec.

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

