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


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin559
RA = 29.8858, Dec = 10.7737
tmin = 577065601, tmax = 577670401
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='321248', job_status='RUN', time_executed='2021-07-04 06:03:32.557670', time_epoch_executed='1625403812.56' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/321248

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/321248/ft1_4FGL_J0159.5+1046_weekly_bin559.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/321248/ft1_4FGL_J0159.5+1046_weekly_bin559.fits outfile=/scratch/kocevski/321248/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin559.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=577065601.0 tmax=577670401.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 14.07
user 6.20
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.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/321248/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin559.fits evtable="EVENTS" outfile="/scratch/kocevski/321248/ft1_filtered_4FGL_J0159.5+1046_weekly_bin559.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 13.01
user 0.37
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/321248/ft1_filtered_4FGL_J0159.5+1046_weekly_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/321248/ltcube_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.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/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.fits
.....................!
real 31.62
user 26.73
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/321248/ft1_filtered_4FGL_J0159.5+1046_weekly_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/321248/ltcube_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.fits outfile=/scratch/kocevski/321248/expmap_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.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/321248/ltcube_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.fits
.....................!
real 209.49
user 185.21
sys 4.75

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 J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/321248/ft1_filtered_4FGL_J0159.5+1046_weekly_bin559.fits scfile=/scratch/kocevski/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.fits outfile=/scratch/kocevski/321248/cmap_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.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.8858 yref=10.7737 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 6.97
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/321248/ft1_filtered_4FGL_J0159.5+1046_weekly_bin559.fits scfile=/scratch/kocevski/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.fits outfile=/scratch/kocevski/321248/cmap_HighResolution_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.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.8858 yref=10.7737 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 2.29
user 0.42
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/321248/ft1_filtered_4FGL_J0159.5+1046_weekly_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/321248/Model_4FGL_J0159.5+1046_weekly_bin559.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/321248/ft1_filtered_4FGL_J0159.5+1046_weekly_bin559.fits......................!
real 44.30
user 28.13
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/321248/ft1_filtered_4FGL_J0159.5+1046_weekly_bin559.fits', '/scratch/kocevski/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.fits', expMap='/scratch/kocevski/321248/expmap_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.fits', expCube='/scratch/kocevski/321248/ltcube_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/321248/Model_4FGL_J0159.5+1046_weekly_bin559.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/321248/ft1_filtered_4FGL_J0159.5+1046_weekly_bin559.fits
Spacecraft file(s): /scratch/kocevski/321248/ft2_4FGL_J0159.5+1046_weekly_bin559.fits
Exposure map: /scratch/kocevski/321248/expmap_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.fits
Exposure cube: /scratch/kocevski/321248/ltcube_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/321248/Model_4FGL_J0159.5+1046_weekly_bin559.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) = 1348.65316009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29992E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .99689E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20480E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10433E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.487       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.359       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7687       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.743       1.0000         .10000E-03   10000.    
    12 'Prefactor '    129.01       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7250       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .41836       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1348.643     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2899 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    685.32        .13097E-05** at limit **
   2  Prefactor     .10001E-03    598.00       -.17557E-06** at limit **
   3  Prefactor     .10000E-03    894.20        .27851E-05** at limit **
   4  Prefactor     .10280E-03    36.833       -.11586E-04** at limit **
   5  norm          .10000E-03    170.42       -.41098E-06** at limit **
   6  Prefactor     .10000E-03    18.341       -.77120E-09** at limit **
   7  Prefactor     30.494        29.480       -.40437E-06   -.16066E-04
   8  norm          .10000E-03    6.1909       -.14099E-07** at limit **
   9  Prefactor     15.355        11.230       -.31377E-06   -.11591E-03
  10  norm          4.7702        2.1222       -.30998E-06    .78621E-03
  11  Prefactor     31.941        108.18       -.20386E-05    .42840E-04
  12  Prefactor     129.15        131.27       -.64051E-06    .48589E-04
  13  Prefactor     .10000E-03    57.375       -.14666E-05** at limit **
  14  Prefactor     .10000E-03    57.411        .12072E-06** at limit **
  15  Prefactor     .10000E-03    11.816       -.25955E-06** at limit **
  16  Prefactor     .10000E-03    31.271        .24598E-05** at limit **
  17  Prefactor     9.7403        20.667       -.50235E-06   -.77323E-04
  18  Prefactor     .10000E-03    17.034       -.35448E-06** at limit **
  19  norm          .10000E-03    .63037       -.13751E-06** at limit **
  20  Prefactor     .10000E-03    99.593       -.10012E-05** at limit **
  21  Prefactor     .10000E-03    15.804        .22127E-06** at limit **
  22  norm          .10000E-03    32.544       -.16572E-05** at limit **
  23  Prefactor     .10000E-03    48.889       -.51086E-06** at limit **
  24  Normalizat    .41701        .42739        .29990E-04    .34187E-03
  25  Prefactor     .91176        .25782       -.65399E-05    .61968E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100012
  Prefactor  = 0.000100003
  Prefactor  = 0.000102801
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.494
  norm       = 0.0001
  Prefactor  = 15.3553
  norm       = 4.77024
  Prefactor  = 31.9408
  Prefactor  = 129.15
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.74029
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.41701
  Prefactor  = 0.911758
 **********
 **   18 **HESSE 
 **********

 FCN=   1348.643     FROM HESSE     STATUS=OK           413 CALLS     3312 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    685.38        .21390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    599.25        .20765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    893.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10280E-03    157.89        .34748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    170.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.341        .15366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.494        29.479        .72564E-04   -1.4603    
   8  norm          .10000E-03    6.1914        .89257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.355        11.253        .85124E-04   -1.4924    
  10  norm          4.7702        2.1265        .32475E-04   -1.5271    
  11  Prefactor     31.941        108.06        .71118E-04   -1.4577    
  12  Prefactor     129.15        131.92        .17723E-03   -1.3430    
  13  Prefactor     .10000E-03    58.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    57.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.853        .12332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7403        20.934        .12850E-03   -1.5084    
  18  Prefactor     .10000E-03    17.164        .14801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .97844        .56316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    99.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.803        .14261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    32.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .41701        .44214        .46436E-03   -1.1643    
  25  Prefactor     .91176        .26280        .18163E-03   -.95731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86464e-08
Minuit parameter uncertainties:
  1  0.00343943
  2  0.00544012
  3  0.00319193
  4  0.0421692
  5  0.000482213
  6  7.09867e-06
  7  29.4934
  8  2.39146e-06
  9  11.255
  10  2.12657
  11  108.736
  12  132.222
  13  0.000286509
  14  7.94629e-05
  15  3.8771e-05
  16  2.33974e-05
  17  20.9492
  18  2.80166e-05
  19  2.21621e-06
  20  4.22345e-05
  21  2.10028e-05
  22  0.000107479
  23  5.1722e-05
  24  0.445916
  25  0.263169
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  7.099e-06  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.118e-01  2.632e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  4.170e-01  4.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 5.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/321248/likelihoodResults_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.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) = 1348.64355456
delta logL = -0.000258209818412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1348.64329847
delta logL = -2.12740019379e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4209       1.0000          .0000       10.000    
     3 'Normalizat'    .41698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91177       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   1348.643     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10771E-03    13.912        .11860E-01** at limit **
   2  Index         2.2779        5.0876        .50000        .24931E-04
   3  Normalizat    .41700        .11904E-01    .46437E-03   -.14365E-04
   4  Prefactor     .91176        .68128E-02    .18164E-03   -.53179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107706
  Index      = 2.27792
  Normalizat = 0.416997
  Prefactor  = 0.911759
 **********
 **   18 **HESSE 
 **********

 FCN=   1348.643     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10771E-03    169.01        .12804E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2779        8.3589        .50000       -.57569    
   3  Normalizat    .41700        .42125E-01    .18575E-04   -1.1643    
   4  Prefactor     .91176        .24110E-01    .36328E-04   -.95731    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.13961e-08
Minuit parameter uncertainties:
  1  0.0723813
  2  488.984
  3  0.0421286
  4  0.0241102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/321248': 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) = 1348.64329785
delta logL = -1.50057644532e-06

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.077e-04  7.238e-02  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  2.278e+00  4.890e+02  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.118e-01  2.411e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  4.170e-01  4.213e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.886 10.774

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/321248/cmap_HighResolution_577065601_577670401_4FGL_J0159.5+1046_weekly_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-02', job_status='DONE', photon_flux_upper_limit='5.03e-07', time_completed='2021-07-04 06:12:32.254176', job_id='321248', GAL2='0.91', fit_tolerance='1e-08', EG2='0.42', EG='0.42', time_epoch_completed='1625404352.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-1.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='559' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 06:12:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 321248: <4FGL_J0159.5+1046_weekly_bin559> in cluster <slac> Done

Job <4FGL_J0159.5+1046_weekly_bin559> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 05:59:33 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 05:59:35 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:59:35 2021
Terminated at Sun Jul  4 06:12:56 2021
Results reported at Sun Jul  4 06:12:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_weekly_bin559 29.8858 10.7737 577065601 577670401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.5+1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   434.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             221.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            803 sec.

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

