aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 228 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 = 7702
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0159.0+3313_daily_bin1672
RA = 29.7665, Dec = 33.2175
tmin = 672710401, tmax = 672969601
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='153958', job_status='RUN', time_executed='2022-04-30 00:13:37.484592', time_epoch_executed='1651302817.48' WHERE source_name='4FGL J0159.0+3313' and cadence='daily' and bin_id='1672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153958

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153958/ft1_4FGL_J0159.0+3313_daily_bin1672.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153958/ft2_4FGL_J0159.0+3313_daily_bin1672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153958/ft1_4FGL_J0159.0+3313_daily_bin1672.fits outfile=/scratch/kocevski/153958/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1672.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=672710401.0 tmax=672969601.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 3.16
user 2.93
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153958/ft2_4FGL_J0159.0+3313_daily_bin1672.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/153958/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1672.fits evtable="EVENTS" outfile="/scratch/kocevski/153958/ft1_filtered_4FGL_J0159.0+3313_daily_bin1672.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 140

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153958/ft1_filtered_4FGL_J0159.0+3313_daily_bin1672.fits" evtable="EVENTS" scfile=/scratch/kocevski/153958/ft2_4FGL_J0159.0+3313_daily_bin1672.fits sctable="SC_DATA" outfile=/scratch/kocevski/153958/ltcube_672710401_672969601_4FGL_J0159.0+3313_daily_bin1672.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/153958/ft2_4FGL_J0159.0+3313_daily_bin1672.fits
.....................!
real 16.51
user 16.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153958/ft1_filtered_4FGL_J0159.0+3313_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/153958/ft2_4FGL_J0159.0+3313_daily_bin1672.fits sctable="SC_DATA" expcube=/scratch/kocevski/153958/ltcube_672710401_672969601_4FGL_J0159.0+3313_daily_bin1672.fits outfile=/scratch/kocevski/153958/expmap_672710401_672969601_4FGL_J0159.0+3313_daily_bin1672.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/153958/ltcube_672710401_672969601_4FGL_J0159.0+3313_daily_bin1672.fits
.....................!
real 193.49
user 188.14
sys 4.98

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/153958/ft1_filtered_4FGL_J0159.0+3313_daily_bin1672.fits scfile=/scratch/kocevski/153958/ft2_4FGL_J0159.0+3313_daily_bin1672.fits outfile=/scratch/kocevski/153958/cmap_672710401_672969601_4FGL_J0159.0+3313_daily_bin1672.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153958/ft1_filtered_4FGL_J0159.0+3313_daily_bin1672.fits scfile=/scratch/kocevski/153958/ft2_4FGL_J0159.0+3313_daily_bin1672.fits outfile=/scratch/kocevski/153958/cmap_HighResolution_672710401_672969601_4FGL_J0159.0+3313_daily_bin1672.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.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34281E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    89.090       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5463       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13194E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1992       1.0000         .10000E-03   10000.    
     6 'Prefactor '    57.697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    173.14       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1033       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    50.022       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .63684       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.136       1.0000         .10000E-03   10000.    
    24 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    21.936       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12798E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .58065       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0988       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=   1577.493     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     4344 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3856        .84235E-06** at limit **
   2  Prefactor     89.136        91.255       -.27514E-06   -.10527E-04
   3  Prefactor     3.5626        13.126        .50310E-07   -.17653E-03
   4  Prefactor     .10000E-03    81.381       -.71655E-05** at limit **
   5  norm          2.1989        2.0453       -.13239E-08    .24850E-04
   6  Prefactor     57.488        105.19       -.49686E-06   -.50865E-05
   7  Prefactor     173.03        287.10       -.30967E-05   -.51998E-05
   8  norm          1.1024        1.8547       -.91433E-08   -.59278E-05
   9  Prefactor     .10000E-03    17.585       -.45566E-06** at limit **
  10  Prefactor     .10000E-03    11.924        .12049E-06** at limit **
  11  Prefactor     .10000E-03    3.9101        .13521E-06** at limit **
  12  Prefactor     .10000E-03    38.387        .87630E-07** at limit **
  13  Prefactor     .10000E-03    133.67        .42500E-06** at limit **
  14  norm          50.010        24.851        .18009E-06    .67166E-05
  15  Prefactor     .10000E-03    284.17        .11742E-06** at limit **
  16  Prefactor     .10000E-03    16.610        .86797E-08** at limit **
  17  Prefactor     .10000E-03    67.012        .50100E-06** at limit **
  18  norm          .10000E-03    7.0906        .50691E-07** at limit **
  19  Prefactor     .10000E-03    25.889        .73077E-07** at limit **
  20  norm          .10000E-03    1.3754        .68699E-07** at limit **
  21  norm          .10000E-03    431.93       -.11280E-06** at limit **
  22  norm          .63682        .68374        .23448E-08    .47842E-04
  23  Prefactor     26.132        25.575        .32725E-06    .80046E-05
  24  norm          .10000E-03    38.833       -.84074E-07** at limit **
  25  Prefactor     .10000E-03    85.900       -.59151E-07** at limit **
  26  norm          21.917        32.702        .10340E-06    .43192E-05
  27  Prefactor     .10000E-03    2134.7       -.12353E-05** at limit **
  28  Normalizat    .57954        .51475       -.10758E-04   -.85561E-04
  29  Prefactor     1.0996        .29797        .36733E-05   -.21729E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 89.1363
  Prefactor  = 3.56255
  Prefactor  = 0.000100001
  norm       = 2.19887
  Prefactor  = 57.4882
  Prefactor  = 173.026
  norm       = 1.10244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 50.01
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.636818
  Prefactor  = 26.1319
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.9166
  Prefactor  = 0.000100004
  Normalizat = 0.579538
  Prefactor  = 1.0996
 **********
 **   18 **HESSE 
 **********

 FCN=   1577.493     FROM HESSE     STATUS=OK           549 CALLS     4893 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9763        .10783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     89.136        91.171        .21285E-03   -1.3817    
   3  Prefactor     3.5626        12.876        .21464E-03   -1.5330    
   4  Prefactor     .10000E-03    81.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1989        2.0504        .53076E-04   -1.5411    
   6  Prefactor     57.488        105.34        .26407E-03   -1.4190    
   7  Prefactor     173.03        289.01        .15333E-03   -1.3070    
   8  norm          1.1024        1.8223        .60621E-03   -1.5498    
   9  Prefactor     .10000E-03    17.591        .16273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.944        .13399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9553        .76740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    133.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          50.010        24.833        .56701E-04   -1.4292    
  15  Prefactor     .10000E-03    284.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.619        .15808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    67.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.1103        .10330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4215        .45486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    431.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .63682        .68702        .33081E-04   -1.5548    
  23  Prefactor     26.132        25.506        .78359E-04   -1.4685    
  24  norm          .10000E-03    38.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    85.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          21.917        32.690        .85520E-04   -1.4771    
  27  Prefactor     .10000E-03    2138.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .57954        .53613        .40514E-03   -1.0886    
  29  Prefactor     1.0996        .31138        .18313E-03   -.89479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61989e-10
Minuit parameter uncertainties:
  1  0.000275134
  2  91.3145
  3  12.8858
  4  0.000404806
  5  2.05046
  6  105.681
  7  291.431
  8  1.82235
  9  1.71813e-05
  10  1.10926e-05
  11  1.36205e-05
  12  1.83948e-06
  13  0.000180318
  14  24.838
  15  0.000248002
  16  9.64362e-06
  17  7.27346e-05
  18  5.71865e-06
  19  1.22333e-05
  20  3.2556e-06
  21  0.000248817
  22  0.687032
  23  25.5163
  24  1.54738e-05
  25  5.34543e-05
  26  32.7167
  27  0.00634422
  28  0.54104
  29  0.311899
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.839e-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:  1.100e+00  3.119e-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:  5.795e-01  5.410e-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: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153958/likelihoodResults_672710401_672969601_4FGL_J0159.0+3313_daily_bin1672.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) = 1577.49317804
delta logL = -0.000121491280652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1577.49305719
delta logL = -6.50233914712e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10812E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1152       1.0000          .0000       10.000    
     3 'Normalizat'    .57956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0996       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=   1577.493     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      278 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10280E-03    6.1125        .18142E-01** at limit **
   2  Index         2.0266        5.0977        .50000        .14976E-04
   3  Normalizat    .57954        .45306E-02    .40516E-03    .18561E-03
   4  Prefactor     1.0996        .27744E-02    .18313E-03    .38180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102803
  Index      = 2.02664
  Normalizat = 0.579541
  Prefactor  = 1.0996
 **********
 **   18 **HESSE 
 **********

 FCN=   1577.493     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10280E-03    95.468        .22814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0266        6.0096        .50000       -.63686    
   3  Normalizat    .57954        .17953E-01    .81032E-04   -1.0886    
   4  Prefactor     1.0996        .10994E-01    .36625E-04   -.89479    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.31851e-10
Minuit parameter uncertainties:
  1  0.0327692
  2  130.26
  3  0.0179531
  4  0.0109939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153958': 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) = 1577.49305673
delta logL = -1.82061285159e-07

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.028e-04  3.277e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.027e+00  1.303e+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:  1.100e+00  1.099e-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:  5.795e-01  1.795e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/153958/cmap_HighResolution_672710401_672969601_4FGL_J0159.0+3313_daily_bin1672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.91e-07', time_completed='2022-04-30 00:21:24.428218', job_id='153958', GAL2='1.10', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1651303284.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-1.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1672' AND source_name='4FGL J0159.0+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 30 00:21:24 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 154041: <4FGL_J0159.0+3313_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:53 2022
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:11:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:11:52 2022
Terminated at Sat Apr 30 00:20:17 2022
Results reported at Sat Apr 30 00:20:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1672 29.7665 33.2175 672710401 672969601 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 :                                   467.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   504 sec.
    Turnaround time :                            864 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 153958: <4FGL_J0159.0+3313_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1672> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:48 2022
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:09:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:09:39 2022
Terminated at Sat Apr 30 00:21:25 2022
Results reported at Sat Apr 30 00:21:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1672 29.7665 33.2175 672710401 672969601 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 :                                   470.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            937 sec.

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

