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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1751
RA = 29.8858, Dec = 10.7737
tmin = 693187201, tmax = 693446401
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='67247', job_status='RUN', time_executed='2022-12-23 00:05:13.534416', time_epoch_executed='1671782713.53' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67247

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67247/ft1_4FGL_J0159.5+1046_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67247/ft2_4FGL_J0159.5+1046_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67247/ft1_4FGL_J0159.5+1046_daily_bin1751.fits outfile=/scratch/kocevski/67247/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1751.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=693187201.0 tmax=693446401.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.71
user 3.37
sys 0.23

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

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

Number of photons that the gtmktime cut: 631

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67247/ft1_filtered_4FGL_J0159.5+1046_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/67247/ft2_4FGL_J0159.5+1046_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/67247/ltcube_693187201_693446401_4FGL_J0159.5+1046_daily_bin1751.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/67247/ft2_4FGL_J0159.5+1046_daily_bin1751.fits
.....................!
real 11.84
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67247/ft1_filtered_4FGL_J0159.5+1046_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/67247/ft2_4FGL_J0159.5+1046_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/67247/ltcube_693187201_693446401_4FGL_J0159.5+1046_daily_bin1751.fits outfile=/scratch/kocevski/67247/expmap_693187201_693446401_4FGL_J0159.5+1046_daily_bin1751.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/67247/ltcube_693187201_693446401_4FGL_J0159.5+1046_daily_bin1751.fits
.....................!
real 191.66
user 187.35
sys 3.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 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/67247/ft1_filtered_4FGL_J0159.5+1046_daily_bin1751.fits scfile=/scratch/kocevski/67247/ft2_4FGL_J0159.5+1046_daily_bin1751.fits outfile=/scratch/kocevski/67247/cmap_693187201_693446401_4FGL_J0159.5+1046_daily_bin1751.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.90
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67247/ft1_filtered_4FGL_J0159.5+1046_daily_bin1751.fits scfile=/scratch/kocevski/67247/ft2_4FGL_J0159.5+1046_daily_bin1751.fits outfile=/scratch/kocevski/67247/cmap_HighResolution_693187201_693446401_4FGL_J0159.5+1046_daily_bin1751.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.86
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59736E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .56307E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.237       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11305E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.0078       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.0505       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.6213       1.0000          .0000       .10000E+07
     8 'norm      '    10.889       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.7718       1.0000          .0000       .10000E+07
    10 'norm      '    1.4214       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14137E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    17.223       1.0000          .0000       .10000E+07
    13 'Prefactor '    .37425E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .60791E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13070       1.0000          .0000       .10000E+07
    16 'Prefactor '    .27136E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .66105       1.0000          .0000       .10000E+07
    18 'Prefactor '    .92659E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .41999       1.0000          .0000       .10000E+07
    20 'norm      '    .45897E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    57.318       1.0000          .0000       .10000E+07
    22 'Normalizat'    .76075       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0526       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=   7138.870     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2293 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.5348        .55993E-08** at limit **
   2  Prefactor     .11102E-09    14.059       -.13244E-07** at limit **
   3  Prefactor     13.211        15.077        .27240E-07   -.14415E-02
   4  Prefactor     .11102E-09    3.3332        .26571E-07** at limit **
   5  norm          .98784        31.900        .67770E-07    .12207E-03
   6  Prefactor     4.0318        5.7989       -.91096E-07    .95303E-04
   7  Prefactor     4.6157        3.5516        .37798E-08   -.10303E-02
   8  norm          10.936        6.1677       -.36674E-08   -.19200E-02
   9  Prefactor     2.7709        2.3139       -.55099E-08   -.66311E-02
  10  norm          1.4218        .77128       -.16494E-08   -.10668E-01
  11  Prefactor     .55511E-10    17.379        .44944E-07** at limit **
  12  Prefactor     17.000        38.851       -.11399E-08    .18343E-05
  13  Prefactor      .0000        30.522        .61697E-08** at limit **
  14  Prefactor     .18874E-08    11.250       -.97727E-07** at limit **
  15  Prefactor     .51331E-05    77.586        .32002E-05** at limit **
  16  Prefactor     .27756E-09    5.7905       -.41414E-07** at limit **
  17  norm          .66120        .45020       -.46962E-08   -.12716E-01
  18  Prefactor     .13878E-08    24.835       -.10743E-06** at limit **
  19  Prefactor     .40590E-06    231.30        .62711E-05** at limit **
  20  norm          .99365E-08    21.958       -.29527E-06** at limit **
  21  Prefactor     57.314        45.368        .15132E-06   -.16843E-02
  22  Normalizat    .76164        .18060        .68327E-07   -.51690E-03
  23  Prefactor     1.0526        .11351       -.41929E-06   -.10865E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 13.2109
  Prefactor  = 1.11022e-10
  norm       = 0.987841
  Prefactor  = 4.03181
  Prefactor  = 4.61573
  norm       = 10.9363
  Prefactor  = 2.77093
  norm       = 1.42178
  Prefactor  = 5.55112e-11
  Prefactor  = 17.0001
  Prefactor  = 0
  Prefactor  = 1.88738e-09
  Prefactor  = 5.13306e-06
  Prefactor  = 2.77556e-10
  norm       = 0.661197
  Prefactor  = 1.38778e-09
  Prefactor  = 4.05898e-07
  norm       = 9.9365e-09
  Prefactor  = 57.3142
  Normalizat = 0.761639
  Prefactor  = 1.05258
 **********
 **   18 **HESSE 
 **********

 FCN=   7138.870     FROM HESSE     STATUS=OK           386 CALLS     2679 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.5356        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-09    14.057        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.211        15.084        .11002E-04   -1.5635    
   4  Prefactor     .11102E-09    3.3484        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .98784        32.027        .17616E-04   -1.5688    
   6  Prefactor     4.0318        5.8095        .10015E-03   -1.5668    
   7  Prefactor     4.6157        3.5448        .13028E-04   -1.5665    
   8  norm          10.936        6.1559        .60674E-04   -1.5642    
   9  Prefactor     2.7709        2.3038        .11134E-04   -1.5675    
  10  norm          1.4218        .76501        .52428E-05   -1.5684    
  11  Prefactor     .55511E-10    17.393        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.000        38.888        .96426E-05   -1.5626    
  13  Prefactor      .0000        30.567        .32164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18874E-08    11.318        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .51331E-05    27.333        .90094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .27756E-09    5.8017        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .66120        .44740        .45149E-05   -1.5692    
  18  Prefactor     .13878E-08    24.876        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .40590E-06    25.795        .10901E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .99365E-08    22.371        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     57.314        45.444        .52838E-05   -1.5557    
  22  Normalizat    .76164        .20063        .33119E-03   -1.0151    
  23  Prefactor     1.0526        .12732        .18197E-03   -.90997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55038e-09
Minuit parameter uncertainties:
  1  8.44176e-06
  2  8.21574e-05
  3  15.0837
  4  3.94556e-05
  5  11.2496
  6  5.80951
  7  3.54475
  8  6.15591
  9  2.30381
  10  0.765014
  11  6.80905e-05
  12  38.8891
  13  1.51417e-05
  14  0.000291204
  15  0.0236899
  16  8.00983e-05
  17  0.447398
  18  0.000373261
  19  0.00647158
  20  0.000941793
  21  45.4442
  22  0.200827
  23  0.127359
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  4.032e+00  5.810e+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:  1.053e+00  1.274e-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:  7.616e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/67247/likelihoodResults_693187201_693446401_4FGL_J0159.5+1046_daily_bin1751.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) = 7138.68436241
delta logL = 0.185495482518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7138.68103597
delta logL = 0.188821913725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4460       1.0000          .0000       .10000E+07
     2 'Index     '    2.5361       1.0000          .0000       10.000    
     3 'Normalizat'    .74537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0563       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=   7138.681     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      261 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4449        75.530        .65385E-03    .58099E-02
   2  Index         2.5359        3.3892        .12715        .14772E-03
   3  Normalizat    .74539        .63794E-01    .75536E-01    .31762E-04
   4  Prefactor     1.0561        .34866E-01    .39556E-01    .61314E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44488
  Index      = 2.53585
  Normalizat = 0.745389
  Prefactor  = 1.05615
 **********
 **   18 **HESSE 
 **********

 FCN=   7138.681     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4449        6.5827        .14466E-04   -1.5677    
   2  Index         2.5359        1.2660        .74119E-02   -.51534    
   3  Normalizat    .74539        .19668        .33437E-03   -1.0213    
   4  Prefactor     1.0561        .12417        .18164E-03   -.90881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42981e-11
Minuit parameter uncertainties:
  1  6.58269
  2  1.28456
  3  0.196863
  4  0.124203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67247': 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) = 7138.68103413
delta logL = 0.188823761136

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.445e+00  6.583e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  2.536e+00  1.285e+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.056e+00  1.242e-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:  7.454e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 29.886 10.774
Photon Index (Free Index): 2.54 +/- 1.28
Photon Flux (Free Index): 3.89e-08 +/- 5.18e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/67247/cmap_HighResolution_693187201_693446401_4FGL_J0159.5+1046_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-03', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='1.89e-01', photon_flux2='3.89e-08', job_status='DONE', time_completed='2022-12-23 00:16:46.014237', photon_index_error2='1.28', photon_index2='2.54', ts='0.67', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.69e-08', energy_flux_error2='1.44e-05', EG='0.76', time_epoch_completed='1671783406.01', return_code='0', job_id='67247', GAL2='1.06', EG2='0.75', return_code2='0', photon_flux_error2='5.18e-08', ts2='1.05', photon_index='1.99' WHERE bin_id='1751' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:16:46 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 67247: <4FGL_J0159.5+1046_daily_bin1751> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1751> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec 23 00:04:57 2022
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:04:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:04:59 2022
Terminated at Fri Dec 23 00:16:46 2022
Results reported at Fri Dec 23 00:16:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1751 29.8858 10.7737 693187201 693446401 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 :                                   688.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            709 sec.

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

