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


Performing analysis on: 4FGL_J0159.0+3313_weekly_bin611
RA = 29.7665, Dec = 33.2175
tmin = 608515201, tmax = 609120001
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='312209', job_status='RUN', time_executed='2021-07-04 05:31:33.219686', time_epoch_executed='1625401893.22' WHERE source_name='4FGL J0159.0+3313' and cadence='weekly' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312209

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312209/ft1_4FGL_J0159.0+3313_weekly_bin611.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312209/ft2_4FGL_J0159.0+3313_weekly_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312209/ft1_4FGL_J0159.0+3313_weekly_bin611.fits outfile=/scratch/kocevski/312209/ft1_filteredMKT_4FGL_J0159.0+3313_weekly_bin611.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=608515201.0 tmax=609120001.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.25
user 7.41
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312209/ft1_filtered_4FGL_J0159.0+3313_weekly_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/312209/ft2_4FGL_J0159.0+3313_weekly_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/312209/ltcube_608515201_609120001_4FGL_J0159.0+3313_weekly_bin611.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/312209/ft2_4FGL_J0159.0+3313_weekly_bin611.fits
.....................!
real 29.03
user 27.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312209/ft1_filtered_4FGL_J0159.0+3313_weekly_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/312209/ft2_4FGL_J0159.0+3313_weekly_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/312209/ltcube_608515201_609120001_4FGL_J0159.0+3313_weekly_bin611.fits outfile=/scratch/kocevski/312209/expmap_608515201_609120001_4FGL_J0159.0+3313_weekly_bin611.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/312209/ltcube_608515201_609120001_4FGL_J0159.0+3313_weekly_bin611.fits
.....................!
real 197.15
user 184.77
sys 5.20

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/312209/ft1_filtered_4FGL_J0159.0+3313_weekly_bin611.fits scfile=/scratch/kocevski/312209/ft2_4FGL_J0159.0+3313_weekly_bin611.fits outfile=/scratch/kocevski/312209/cmap_608515201_609120001_4FGL_J0159.0+3313_weekly_bin611.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 1.38
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312209/ft1_filtered_4FGL_J0159.0+3313_weekly_bin611.fits scfile=/scratch/kocevski/312209/ft2_4FGL_J0159.0+3313_weekly_bin611.fits outfile=/scratch/kocevski/312209/cmap_HighResolution_608515201_609120001_4FGL_J0159.0+3313_weekly_bin611.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.80
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5039       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.083       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7810       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    241.98       1.0000         .10000E-03   10000.    
     8 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38213E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74011E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.341       1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.484       1.0000         .10000E-03   10000.    
    14 'norm      '    .26013E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3157       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11226E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.703       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3933       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .28107       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.476       1.0000         .10000E-03   10000.    
    24 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .20048E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .75076E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92255       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95437       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=   4173.031     FROM MIGRAD    STATUS=CONVERGED   1356 CALLS     4523 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7354        .12053E-02** at limit **
   2  Prefactor     3.4963        90.762        .21599E-03   -.92639E-05
   3  Prefactor     .10000E-03    10.206        .36285E-03** at limit **
   4  Prefactor     10.073        22.125        .12619E-03   -.10793E-03
   5  norm          2.7808        1.6034        .60350E-04    .14110E-03
   6  Prefactor     .10000E-03    50.132        .18142E-02** at limit **
   7  Prefactor     242.13        159.49        .13016E-03    .28231E-04
   8  norm          .10000E-03    .99363        .93172E-03** at limit **
   9  Prefactor     .10002E-03    22.420        .81481E-01** at limit **
  10  Prefactor     .10000E-03    8.0308        .17865E-02** at limit **
  11  Prefactor     .61980E-01    73.300        .20210E-02    .69556E-03
  12  Prefactor     42.330        37.977        .61607E-04    .28160E-04
  13  Prefactor     61.450        60.734        .51172E-04   -.22750E-04
  14  norm          .10093E-03    8.0754        .48280E-01** at limit **
  15  Prefactor     .10001E-03    87.411        .18142E-02** at limit **
  16  Prefactor     2.3330        15.862        .26959E-03   -.88053E-04
  17  Prefactor     .10000E-03    9.7370        .18142E-02** at limit **
  18  norm          .10000E-03    6.8113        .32174E-02** at limit **
  19  Prefactor     10.694        14.935        .12247E-03    .98028E-04
  20  norm          1.3924        .95274        .48604E-04    .11932E-02
  21  norm          .10000E-03    69.908        .18142E-02** at limit **
  22  norm          .28079        .50056        .59887E-04   -.12216E-02
  23  Prefactor     11.478        8.7623        .11826E-03    .37790E-03
  24  norm          .10000E-03    7.5227        .17170E-02** at limit **
  25  Prefactor     .10001E-03    159.04        .18142E-02** at limit **
  26  norm          .10000E-03    .61808        .49474E-03** at limit **
  27  Prefactor     .10000E-03    361.26        .20940E-02** at limit **
  28  Normalizat    .92290        .33326        .32673E-03    .30898E-04
  29  Prefactor     .95447        .17888        .18346E-03    .10071E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 3.49634
  Prefactor  = 0.0001
  Prefactor  = 10.0728
  norm       = 2.78079
  Prefactor  = 0.0001
  Prefactor  = 242.129
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0619797
  Prefactor  = 42.3305
  Prefactor  = 61.4496
  norm       = 0.000100934
  Prefactor  = 0.000100009
  Prefactor  = 2.33305
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 10.6944
  norm       = 1.39244
  norm       = 0.000100004
  norm       = 0.28079
  Prefactor  = 11.4784
  norm       = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.922902
  Prefactor  = 0.954467
 **********
 **   18 **HESSE 
 **********

 FCN=   4173.031     FROM HESSE     STATUS=OK           543 CALLS     5066 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7405        .24107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4963        90.743        .86395E-05   -1.5334    
   3  Prefactor     .10000E-03    10.207        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.073        22.116        .50476E-05   -1.5073    
   5  norm          2.7808        1.6033        .24140E-05   -1.5374    
   6  Prefactor     .10000E-03    50.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     242.13        159.44        .26031E-04   -1.2583    
   8  norm          .10000E-03    .99468        .18634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    21.402        .84124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0311        .35729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .61980E-01    73.546        .80840E-04   -1.5658    
  12  Prefactor     42.330        37.968        .12321E-04   -1.4406    
  13  Prefactor     61.450        60.624        .10234E-04   -1.4139    
  14  norm          .10093E-03    7.9296        .48846E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    87.411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3330        15.811        .10783E-04   -1.5402    
  17  Prefactor     .10000E-03    9.7440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.8391        .64348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.694        14.930        .48987E-05   -1.5054    
  20  norm          1.3924        .95190        .19441E-05   -1.5472    
  21  norm          .10000E-03    69.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .28079        .50053        .23955E-05   -1.5602    
  23  Prefactor     11.478        8.7607        .47304E-05   -1.5030    
  24  norm          .10000E-03    7.5264        .34339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    159.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .61809        .98948E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    361.41        .41879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .92290        .33072        .13069E-04   -.95660    
  29  Prefactor     .95447        .17870        .36693E-04   -.94263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45921e-08
Minuit parameter uncertainties:
  1  6.77329e-05
  2  35.6839
  3  7.95526e-05
  4  22.1336
  5  1.60332
  6  6.91541e-05
  7  159.729
  8  4.97834e-06
  9  0.00117106
  10  3.40793e-06
  11  4.27187
  12  37.9901
  13  60.6846
  14  0.00544432
  15  0.00176656
  16  12.1515
  17  4.56576e-05
  18  0.000167943
  19  14.9349
  20  0.951911
  21  0.001117
  22  0.500534
  23  8.76168
  24  8.8912e-05
  25  0.00229
  26  3.48474e-07
  27  0.00113927
  28  0.331453
  29  0.178813
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  4.233e+01  3.799e+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:  9.545e-01  1.788e-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:  9.229e-01  3.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.41
Ra Dec: 29.767 33.218
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 3.69e-05 +/- 3.31e-05

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) = 4172.99481581
delta logL = 0.0361436801031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4172.99108184
delta logL = 0.0398776450756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.255       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7740       1.0000          .0000       10.000    
     3 'Normalizat'    .93731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95068       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=   4172.991     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      314 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.255        55.066        .56018E-04    .17900E-04
   2  Index         1.7740        .77424        .82682E-02    .28523E-04
   3  Normalizat    .93737        .30911        .32449E-03   -.10160E-04
   4  Prefactor     .95065        .17561        .18381E-03   -.24740E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.2555
  Index      = 1.77401
  Normalizat = 0.937365
  Prefactor  = 0.950647
 **********
 **   18 **HESSE 
 **********

 FCN=   4172.991     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.255        53.403        .11204E-04   -1.4275    
   2  Index         1.7740        .75026        .33073E-03   -.70128    
   3  Normalizat    .93737        .30887        .12980E-04   -.95159    
   4  Prefactor     .95065        .17569        .73525E-05   -.94393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24289e-11
Minuit parameter uncertainties:
  1  53.453
  2  0.755167
  3  0.309453
  4  0.175799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312209': 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) = 4172.99108182
delta logL = 0.0398776640641

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  5.126e+01  5.345e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.774e+00  7.552e-01  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.506e-01  1.758e-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:  9.374e-01  3.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.49
Ra Dec: 29.767 33.218
Photon Index (Free Index): 1.77 +/- 0.76
Photon Flux (Free Index): 3.71e-08 +/- 5.80e-08
Energy Flux (Free Index): 4.81e-05 +/- 6.72e-05

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/312209/cmap_HighResolution_608515201_609120001_4FGL_J0159.0+3313_weekly_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='4.81e-05', photon_flux_error='4.61e-08', dlogl='3.99e-02', energy_flux='3.69e-05', photon_flux2='3.71e-08', job_status='DONE', time_completed='2021-07-04 05:43:50.646083', photon_index_error2='0.76', photon_index2='1.77', ts='6.41', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='6.72e-05', EG='0.92', time_epoch_completed='1625402630.65', return_code='0', job_id='312209', GAL2='0.95', EG2='0.94', return_code2='0', energy_flux_error='3.31e-05', photon_flux_error2='5.80e-08', ts2='6.49', photon_index='1.98' WHERE bin_id='611' AND source_name='4FGL J0159.0+3313' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 05:43:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 312209: <4FGL_J0159.0+3313_weekly_bin611> in cluster <slac> Done

Job <4FGL_J0159.0+3313_weekly_bin611> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul  4 05:28:32 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 05:28:34 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:28:34 2021
Terminated at Sun Jul  4 05:43:58 2021
Results reported at Sun Jul  4 05:43:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_weekly_bin611 29.7665 33.2175 608515201 609120001 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 :                                   693.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             233.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

