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 221 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).

/nfs/farm/lsb_spool2/kocevski/1651561531.351035: line 8: 10976 Quit                    (core dumped) /nDone.


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1673
RA = 29.8858, Dec = 10.7737
tmin = 672969601, tmax = 673228801
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='351034', job_status='RUN', time_executed='2022-05-03 00:09:46.166807', time_epoch_executed='1651561786.17' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351034

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351034/ft1_4FGL_J0159.5+1046_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351034/ft2_4FGL_J0159.5+1046_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351034/ft1_4FGL_J0159.5+1046_daily_bin1673.fits outfile=/scratch/kocevski/351034/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1673.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=672969601.0 tmax=673228801.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.03
user 2.77
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351034/ft2_4FGL_J0159.5+1046_daily_bin1673.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/351034/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351034/ft1_filtered_4FGL_J0159.5+1046_daily_bin1673.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.56
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351034/ft1_filtered_4FGL_J0159.5+1046_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351034/ft2_4FGL_J0159.5+1046_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351034/ltcube_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.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/351034/ft2_4FGL_J0159.5+1046_daily_bin1673.fits
.....................!
real 15.91
user 15.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351034/ft1_filtered_4FGL_J0159.5+1046_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351034/ft2_4FGL_J0159.5+1046_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351034/ltcube_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.fits outfile=/scratch/kocevski/351034/expmap_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.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/351034/ltcube_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.fits
.....................!
real 191.33
user 185.97
sys 4.96

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/351034/ft1_filtered_4FGL_J0159.5+1046_daily_bin1673.fits scfile=/scratch/kocevski/351034/ft2_4FGL_J0159.5+1046_daily_bin1673.fits outfile=/scratch/kocevski/351034/cmap_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.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 0.55
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351034/ft1_filtered_4FGL_J0159.5+1046_daily_bin1673.fits scfile=/scratch/kocevski/351034/ft2_4FGL_J0159.5+1046_daily_bin1673.fits outfile=/scratch/kocevski/351034/cmap_HighResolution_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.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 0.58
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351034/ft1_filtered_4FGL_J0159.5+1046_daily_bin1673.fits', '/scratch/kocevski/351034/ft2_4FGL_J0159.5+1046_daily_bin1673.fits', expMap='/scratch/kocevski/351034/expmap_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.fits', expCube='/scratch/kocevski/351034/ltcube_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351034/Model_4FGL_J0159.5+1046_daily_bin1673.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/351034/ft1_filtered_4FGL_J0159.5+1046_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/351034/ft2_4FGL_J0159.5+1046_daily_bin1673.fits
Exposure map: /scratch/kocevski/351034/expmap_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.fits
Exposure cube: /scratch/kocevski/351034/ltcube_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351034/Model_4FGL_J0159.5+1046_daily_bin1673.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) = 967.281210862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11472E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.728       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    31.274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.322       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.431       1.0000         .10000E-03   10000.    
     8 'norm      '    .17462E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.316       1.0000         .10000E-03   10000.    
    10 'norm      '    .64864E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16841       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12984       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1789.3       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9950.3       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41361       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12407       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9387.6       1.0000         .10000E-03   10000.    
    19 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.246       1.0000         .10000E-03   10000.    
    21 'Prefactor '    87.394       1.0000         .10000E-03   10000.    
    22 'norm      '    102.24       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.519       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.7359       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   950.8434     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3217 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.602        .13072E-05** at limit **
   2  Prefactor     13.847        500.46        .13371E-04    .11009E-04
   3  Prefactor     .10000E-03    20.196       -.20075E-06** at limit **
   4  Prefactor     .10000E-03    6.0345        .10705E-06** at limit **
   5  norm          31.530        73.532        .13587E-05   -.18579E-05
   6  Prefactor     28.913        45.065        .53716E-06   -.76516E-05
   7  Prefactor     11.048        27.968        .11383E-05   -.24282E-04
   8  norm          .10000E-03    78.917        .93814E-05** at limit **
   9  Prefactor     38.672        57.675        .29046E-06    .11463E-04
  10  norm          .81415E-01    31.941       -.13025E-04   -.16439E-04
  11  Prefactor     .10000E-03    896.95        .56821E-05** at limit **
  12  Prefactor    10000.0        6571.1       -.32229E-05** at limit **
  13  Prefactor     .10000E-03    974.83        .23324E-05** at limit **
  14  Prefactor     6188.5        7790.3        .38647E-04   -.16285E-02
  15  Prefactor    10000.0        7393.4       -.12458E-04** at limit **
  16  Prefactor     .10000E-03    473.72       -.18592E-05** at limit **
  17  Prefactor     .10000E-03    789.78       -.21669E-06** at limit **
  18  Prefactor     9999.7        7529.5        .41838E-04    .23781E-02
  19  norm         10000.0        777.97       -.10033E-04** at limit **
  20  Prefactor     9948.7        9966.9        .30237E-04    .40676E-02
  21  Prefactor     92.867        217.91        .47120E-06   -.40779E-06
  22  norm          9995.8        9945.3        .11751E-04   -.30933E-02
  23  Prefactor     9995.9        5309.7        .10044E-03   -.12279E-02
  24  Normalizat    .10000E-01    .83855        .38804E-04** at limit **
  25  Prefactor     1.7311        .29028       -.27272E-06   -.28585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.8475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.5301
  Prefactor  = 28.9134
  Prefactor  = 11.0478
  norm       = 0.0001
  Prefactor  = 38.6717
  norm       = 0.0814147
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 6188.47
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9999.7
  norm       = 10000
  Prefactor  = 9948.75
  Prefactor  = 92.8671
  norm       = 9995.82
  Prefactor  = 9995.94
  Normalizat = 0.01
  Prefactor  = 1.73108
 **********
 **   18 **HESSE 
 **********

 FCN=   950.8434     FROM HESSE     STATUS=OK           479 CALLS     3696 TOTAL
                     EDM=   .80E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.435        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.847        462.79        .29245E-02   -1.4964    
   3  Prefactor     .10000E-03    20.157        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0473        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          31.530        73.317        .17912E-02   -1.4584    
   6  Prefactor     28.913        45.331        .18820E-02   -1.4632    
   7  Prefactor     11.048        28.541        .29622E-02   -1.5043    
   8  norm          .10000E-03    78.859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.672        63.113        .12708E-02   -1.4463    
  10  norm          .81415E-01    3.7673        .39503E-01   -1.5765    
  11  Prefactor     .10000E-03    913.63        .98325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        6586.8        .91161E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    979.06        .96525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6188.5        8086.0        .26089E-03    .23999    
  15  Prefactor    10000.0        7442.2        .14217E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    500.93        .10913E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    786.68        .96254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9999.7        8821.4        .41707E-03    1.5817    
  19  norm         10000.0        801.40        .97942E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9948.7        5246.2        .21231E-02    1.7141    
  21  Prefactor     92.867        219.16        .10744E-02   -1.3778    
  22  norm          9995.8        9648.3        .99409E-03    1.5299    
  23  Prefactor     9995.9        5318.8        .22105E-02    1.5305    
  24  Normalizat    .10000E-01    .61260        .23238       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.7311        .32468        .44860E-01   -.71257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000798219
Minuit parameter uncertainties:
  1  4.29191e-05
  2  161.483
  3  1.03725e-06
  4  4.06784e-07
  5  73.5273
  6  45.3852
  7  28.5762
  8  0.00010997
  9  63.2224
  10  1.10703
  11  0.000249441
  12  0.00279519
  13  0.000647758
  14  9188.53
  15  0.169189
  16  0.00106339
  17  0.000276117
  18  116.307
  19  0.00383189
  20  4252.77
  21  221.111
  22  742.836
  23  1154.51
  24  7.15192e-06
  25  0.325083
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.891e+01  4.539e+01  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:  1.731e+00  3.251e-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:  1.000e-02  7.152e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/351034/likelihoodResults_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.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) = 950.055462952
delta logL = 0.787895543915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 950.011291731
delta logL = 0.832066764949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.694       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0350       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7309       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=   950.0113     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      222 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.675        59.701       -.41350E-05   -.42015E-04
   2  Index         1.0346        .69191       -.24051E-04    .35505E-04
   3  Normalizat    .10000E-01    .58895       -.12389E-04** at limit **
   4  Prefactor     1.7310        .29024        .23168E-05    .24486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.6753
  Index      = 1.03457
  Normalizat = 0.01
  Prefactor  = 1.73105
 **********
 **   18 **HESSE 
 **********

 FCN=   950.0113     FROM HESSE     STATUS=OK            27 CALLS      249 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.675        59.630        .59970E-04   -1.4370    
   2  Index         1.0346        .66906        .56132E-03   -.91586    
   3  Normalizat    .10000E-01    .88904        .12375E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7310        .24892        .19768E-03   -.71258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43039e-10
Minuit parameter uncertainties:
  1  59.7096
  2  0.674559
  3  1.01685e-05
  4  0.2491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351034': 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) = 950.011291313
delta logL = 0.83206718282

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  4.468e+01  5.971e+01  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.035e+00  6.746e-01  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:  1.731e+00  2.491e-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:  1.000e-02  1.017e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.03 +/- 0.67
Photon Flux (Free Index): 6.62e-08 +/- 8.33e-08
Energy Flux (Free Index): 8.77e-04 +/- 1.45e-03

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/351034/cmap_HighResolution_672969601_673228801_4FGL_J0159.5+1046_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-02', comment='SUCCESS', energy_flux2='8.77e-04', dlogl='8.32e-01', photon_flux2='6.62e-08', job_status='DONE', time_completed='2022-05-03 00:16:08.823857', photon_index_error2='0.67', photon_index2='1.03', ts='0.74', fit_tolerance='1e-08', GAL='1.73', photon_index_error='0.00', photon_flux_upper_limit='8.34e-07', energy_flux_error2='1.45e-03', EG='0.01', time_epoch_completed='1651562168.82', return_code='0', job_id='351034', GAL2='1.73', EG2='0.01', return_code2='0', photon_flux_error2='8.33e-08', ts2='2.40', photon_index='1.99' WHERE bin_id='1673' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:16:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 351034: <4FGL_J0159.5+1046_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:31 2022
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:07:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:07:24 2022
Terminated at Tue May  3 00:16:09 2022
Results reported at Tue May  3 00:16:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1673 29.8858 10.7737 672969601 673228801 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 :                                   384.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            638 sec.

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

