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 5 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1712
RA = 29.8858, Dec = 10.7737
tmin = 683078401, tmax = 683337601
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='2611', job_status='RUN', time_executed='2022-09-16 10:22:45.927844', time_epoch_executed='1663348965.93' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2611

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2611/ft1_4FGL_J0159.5+1046_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2611/ft2_4FGL_J0159.5+1046_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2611/ft1_4FGL_J0159.5+1046_daily_bin1712.fits outfile=/scratch/kocevski/2611/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1712.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.74
user 4.49
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2611/ft2_4FGL_J0159.5+1046_daily_bin1712.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/2611/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/2611/ft1_filtered_4FGL_J0159.5+1046_daily_bin1712.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.49
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 693

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2611/ft1_filtered_4FGL_J0159.5+1046_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/2611/ft2_4FGL_J0159.5+1046_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/2611/ltcube_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.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/2611/ft2_4FGL_J0159.5+1046_daily_bin1712.fits
.....................!
real 12.05
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2611/ft1_filtered_4FGL_J0159.5+1046_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/2611/ft2_4FGL_J0159.5+1046_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/2611/ltcube_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.fits outfile=/scratch/kocevski/2611/expmap_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.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/2611/ltcube_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.fits
.....................!
real 190.90
user 185.49
sys 5.07

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/2611/ft1_filtered_4FGL_J0159.5+1046_daily_bin1712.fits scfile=/scratch/kocevski/2611/ft2_4FGL_J0159.5+1046_daily_bin1712.fits outfile=/scratch/kocevski/2611/cmap_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.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.59
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2611/ft1_filtered_4FGL_J0159.5+1046_daily_bin1712.fits scfile=/scratch/kocevski/2611/ft2_4FGL_J0159.5+1046_daily_bin1712.fits outfile=/scratch/kocevski/2611/cmap_HighResolution_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.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.62
user 0.42
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2611/ft1_filtered_4FGL_J0159.5+1046_daily_bin1712.fits', '/scratch/kocevski/2611/ft2_4FGL_J0159.5+1046_daily_bin1712.fits', expMap='/scratch/kocevski/2611/expmap_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.fits', expCube='/scratch/kocevski/2611/ltcube_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2611/Model_4FGL_J0159.5+1046_daily_bin1712.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  0.000e+00  1.000e+06 ( 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/2611/ft1_filtered_4FGL_J0159.5+1046_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/2611/ft2_4FGL_J0159.5+1046_daily_bin1712.fits
Exposure map: /scratch/kocevski/2611/expmap_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.fits
Exposure cube: /scratch/kocevski/2611/ltcube_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2611/Model_4FGL_J0159.5+1046_daily_bin1712.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) = 7582.05968437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32550E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.4606       1.0000          .0000       .10000E+07
     3 'Prefactor '    .52101E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9830       1.0000          .0000       .10000E+07
     5 'norm      '    .16972E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.7188       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.6775       1.0000          .0000       .10000E+07
     8 'norm      '    9.5218       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5648       1.0000          .0000       .10000E+07
    10 'norm      '    1.9928       1.0000          .0000       .10000E+07
    11 'Prefactor '    29.643       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12980E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .28591E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .57971       1.0000          .0000       .10000E+07
    15 'Prefactor '    31.033       1.0000          .0000       .10000E+07
    16 'Prefactor '    .26688E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.5463       1.0000          .0000       .10000E+07
    18 'Prefactor '    8.8678       1.0000          .0000       .10000E+07
    19 'Prefactor '    .13789E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .83908E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23255E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1089       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99588       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=   7582.025     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1880 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16098E-08    6.2133        .73427E-07** at limit **
   2  Prefactor     .30531E-07    272.57       -.36977E-05** at limit **
   3  Prefactor     .98421E-06    7.7497       -.14165E-06** at limit **
   4  Prefactor     3.9817        3.7952       -.14417E-06   -.21333E-02
   5  norm          .27200E-08    8.3171        .33624E-07** at limit **
   6  Prefactor     3.6998        5.5403       -.25000E-06   -.12799E-02
   7  Prefactor     1.6751        2.2487       -.16322E-07   -.23010E-04
   8  norm          9.5029        5.3784       -.10180E-07   -.16313E-03
   9  Prefactor     1.5650        2.0688       -.12856E-07   -.77095E-04
  10  norm          1.9922        .93633       -.34900E-07   -.46669E-02
  11  Prefactor     29.575        1.1455       -.10530E-07   -.11305E-01
  12  Prefactor     .21389E-05    8.3306       -.16192E-06** at limit **
  13  Prefactor     .20983E-06    31.706       -.53729E-06** at limit **
  14  Prefactor     .68603        2.7115        .44289E-07    .51030E-01
  15  Prefactor     30.969        1.1868        .30471E-08   -.37157E-02
  16  Prefactor     .55511E-10    3.9617        .12169E-06** at limit **
  17  norm          1.5463        .57484       -.23187E-07   -.57245E-02
  18  Prefactor     8.1444        10.259       -.38531E-06    .30766E-01
  19  Prefactor     .98732E-06    17.222        .45148E-07** at limit **
  20  norm          .27756E-09    4.6198        .45255E-07** at limit **
  21  Prefactor     .42744E-08    10.531        .41541E-07** at limit **
  22  Normalizat    1.1098        .20962       -.22863E-05    .11769E-04
  23  Prefactor     .99573        .13093        .28225E-05    .88598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60982e-09
  Prefactor  = 3.05311e-08
  Prefactor  = 9.84213e-07
  Prefactor  = 3.98169
  norm       = 2.72005e-09
  Prefactor  = 3.69983
  Prefactor  = 1.67509
  norm       = 9.50286
  Prefactor  = 1.56499
  norm       = 1.99216
  Prefactor  = 29.5751
  Prefactor  = 2.1389e-06
  Prefactor  = 2.09832e-07
  Prefactor  = 0.686033
  Prefactor  = 30.9688
  Prefactor  = 5.55112e-11
  norm       = 1.54632
  Prefactor  = 8.14437
  Prefactor  = 9.87321e-07
  norm       = 2.77556e-10
  Prefactor  = 4.27436e-09
  Normalizat = 1.10981
  Prefactor  = 0.995734
 **********
 **   18 **HESSE 
 **********

 FCN=   7582.025     FROM HESSE     STATUS=OK           416 CALLS     2296 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16098E-08    6.2143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .30531E-07    291.89        .88994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .98421E-06    13.631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9817        3.7945        .50513E-03   -1.5668    
   5  norm          .27200E-08    8.3282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6998        5.5586        .52340E-03   -1.5669    
   7  Prefactor     1.6751        2.2734        .81320E-03   -1.5682    
   8  norm          9.5029        5.3959        .32452E-03   -1.5646    
   9  Prefactor     1.5650        2.1238        .84997E-03   -1.5683    
  10  norm          1.9922        .93917        .73358E-03   -1.5680    
  11  Prefactor     29.575        26.480        .18370E-03   -1.5599    
  12  Prefactor     .21389E-05    15.140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .20983E-06    32.187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .68603        26.523        .71066E-03   -1.5691    
  15  Prefactor     30.969        24.440        .17954E-03   -1.5597    
  16  Prefactor     .55511E-10    3.9579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5463        .57701        .85658E-03   -1.5683    
  18  Prefactor     8.1444        47.390        .33635E-03   -1.5651    
  19  Prefactor     .98732E-06    19.390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .27756E-09    4.6244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .42744E-08    11.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1098        .18496        .69014E-01   -.89437    
  23  Prefactor     .99573        .11576        .46216E-01   -.92872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93557e-07
Minuit parameter uncertainties:
  1  0.000201704
  2  0.00596856
  3  0.00732551
  4  3.79455
  5  0.000300483
  6  5.55865
  7  2.27343
  8  5.39588
  9  2.12384
  10  0.939168
  11  26.48
  12  0.0113811
  13  0.00519764
  14  8.53136
  15  24.4402
  16  2.85436e-05
  17  0.577005
  18  39.2923
  19  0.0087508
  20  6.8484e-05
  21  0.000438716
  22  0.185071
  23  0.115784
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  3.700e+00  5.559e+00  0.000e+00  1.000e+06 ( 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.957e-01  1.158e-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.110e+00  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2611/likelihoodResults_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.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) = 7581.58328496
delta logL = 0.441559292697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7581.57326274
delta logL = 0.451581507947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5437       1.0000          .0000       .10000E+07
     2 'Index     '    2.8533       1.0000          .0000       10.000    
     3 'Normalizat'    1.0744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0048       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.

 FCN=   7581.573     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5426        30.369        .85755E-03    .86116E-02
   2  Index         2.8536        2.8484        .96701E-01    .21895E-03
   3  Normalizat    1.0744        .59886E-01    .69958E-01    .16611E-04
   4  Prefactor     1.0048        .35227E-01    .44225E-01    .22199E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54258
  Index      = 2.85365
  Normalizat = 1.07438
  Prefactor  = 1.00482
 **********
 **   18 **HESSE 
 **********

 FCN=   7581.573     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5426        13.254        .95747E-05   -1.5683    
   2  Index         2.8536        2.4455        .59202E-02   -.44368    
   3  Normalizat    1.0744        .22351        .30953E-03   -.90579    
   4  Prefactor     1.0048        .13478        .19850E-03   -.92569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89334e-10
Minuit parameter uncertainties:
  1  9.04346
  2  2.58425
  3  0.22371
  4  0.134822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2611': 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) = 7581.57326266
delta logL = 0.45158158607

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.543e+00  9.043e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  2.854e+00  2.584e+00  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.005e+00  1.348e-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.074e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 29.886 10.774
Photon Index (Free Index): 2.85 +/- 2.58
Photon Flux (Free Index): 5.40e-08 +/- 6.50e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/2611/cmap_HighResolution_683078401_683337601_4FGL_J0159.5+1046_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='4.52e-01', photon_flux2='5.40e-08', job_status='DONE', time_completed='2022-09-16 10:33:50.051451', photon_index_error2='2.58', photon_index2='2.85', ts='0.61', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='1.45e-05', EG='1.11', time_epoch_completed='1663349630.05', return_code='0', job_id='2611', GAL2='1.00', EG2='1.07', return_code2='0', photon_flux_error2='6.50e-08', ts2='1.54', photon_index='1.99' WHERE bin_id='1712' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:33:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 2611: <4FGL_J0159.5+1046_daily_bin1712> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1712> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:21:01 2022
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:22:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:22:30 2022
Terminated at Fri Sep 16 10:33:50 2022
Results reported at Fri Sep 16 10:33:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1712 29.8858 10.7737 683078401 683337601 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 :                                   666.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            769 sec.

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

