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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1719
RA = 29.8858, Dec = 10.7737
tmin = 684892801, tmax = 685152001
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='644139', job_status='RUN', time_executed='2022-09-18 00:07:58.106876', time_epoch_executed='1663484878.11' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644139

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644139/ft1_4FGL_J0159.5+1046_daily_bin1719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644139/ft2_4FGL_J0159.5+1046_daily_bin1719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644139/ft1_4FGL_J0159.5+1046_daily_bin1719.fits outfile=/scratch/kocevski/644139/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1719.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=684892801.0 tmax=685152001.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.12
user 2.89
sys 0.22

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

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

Number of photons that the gtmktime cut: 507

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644139/ft1_filtered_4FGL_J0159.5+1046_daily_bin1719.fits" evtable="EVENTS" scfile=/scratch/kocevski/644139/ft2_4FGL_J0159.5+1046_daily_bin1719.fits sctable="SC_DATA" outfile=/scratch/kocevski/644139/ltcube_684892801_685152001_4FGL_J0159.5+1046_daily_bin1719.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/644139/ft2_4FGL_J0159.5+1046_daily_bin1719.fits
.....................!
real 13.61
user 13.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644139/ft1_filtered_4FGL_J0159.5+1046_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/644139/ft2_4FGL_J0159.5+1046_daily_bin1719.fits sctable="SC_DATA" expcube=/scratch/kocevski/644139/ltcube_684892801_685152001_4FGL_J0159.5+1046_daily_bin1719.fits outfile=/scratch/kocevski/644139/expmap_684892801_685152001_4FGL_J0159.5+1046_daily_bin1719.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/644139/ltcube_684892801_685152001_4FGL_J0159.5+1046_daily_bin1719.fits
.....................!
real 191.69
user 186.59
sys 4.73

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/644139/ft1_filtered_4FGL_J0159.5+1046_daily_bin1719.fits scfile=/scratch/kocevski/644139/ft2_4FGL_J0159.5+1046_daily_bin1719.fits outfile=/scratch/kocevski/644139/cmap_684892801_685152001_4FGL_J0159.5+1046_daily_bin1719.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644139/ft1_filtered_4FGL_J0159.5+1046_daily_bin1719.fits scfile=/scratch/kocevski/644139/ft2_4FGL_J0159.5+1046_daily_bin1719.fits outfile=/scratch/kocevski/644139/cmap_HighResolution_684892801_685152001_4FGL_J0159.5+1046_daily_bin1719.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21498       1.0000          .0000       .10000E+07
     2 'Prefactor '    30.180       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.848       1.0000          .0000       .10000E+07
     4 'Prefactor '    10.473       1.0000          .0000       .10000E+07
     5 'norm      '    .44181E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0415       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20262E-07   1.0000          .0000       .10000E+07
     8 'norm      '    6.4713       1.0000          .0000       .10000E+07
     9 'Prefactor '    .54338E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.7331       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12896E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .12492E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    18.306       1.0000          .0000       .10000E+07
    14 'Prefactor '    .34077       1.0000          .0000       .10000E+07
    15 'Prefactor '    .65268       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.660       1.0000          .0000       .10000E+07
    17 'norm      '    .92989       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16969E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    13.551       1.0000          .0000       .10000E+07
    20 'norm      '    .32078E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .15610E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    .87423       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1372       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=   5883.702     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1982 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31902E-06    53.618       -.23145E-06** at limit **
   2  Prefactor     30.464        33.178       -.55018E-06   -.87667E-01
   3  Prefactor     13.901        12.153        .21364E-06    .27632E-01
   4  Prefactor     10.488        14.619        .28244E-06    .74087E-02
   5  norm          .25535E-08    7.9188        .40029E-06** at limit **
   6  Prefactor     5.8279        7.1477        .76488E-07    .22959E-02
   7  Prefactor      .0000        1.1746       -.34344E-07** at limit **
   8  norm          6.5107        5.3322       -.76831E-07   -.29686E-03
   9  Prefactor     .40301E-07    15.963        .33598E-06** at limit **
  10  norm          2.7321        1.4917        .33212E-07   -.13155E-03
  11  Prefactor     .86986E-07    18.567        .30357E-06** at limit **
  12  Prefactor     .26174E-06    126.40        .37049E-05** at limit **
  13  Prefactor     18.702        31.608       -.10877E-05    .27774E-01
  14  Prefactor     .30730        2.7705        .36180E-06    .14437E-01
  15  Prefactor     .13391E-04    339.68        .67272E-05** at limit **
  16  Prefactor     17.688        9.7006        .18706E-06    .16749    
  17  norm          .92899        .56936       -.23467E-07   -.52322E-02
  18  Prefactor     .10498E-04    101.00       -.37432E-05** at limit **
  19  Prefactor     13.630        16.837        .80658E-06   -.54088E-01
  20  norm          .22760E-08    6.1614        .34721E-06** at limit **
  21  Prefactor     .86431E-07    20.515       -.69730E-06** at limit **
  22  Normalizat    .87506        .27815       -.46645E-05   -.10293E-03
  23  Prefactor     1.1375        .15400       -.23076E-05   -.23065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.19023e-07
  Prefactor  = 30.4644
  Prefactor  = 13.9009
  Prefactor  = 10.4884
  norm       = 2.55351e-09
  Prefactor  = 5.82795
  Prefactor  = 0
  norm       = 6.51072
  Prefactor  = 4.03011e-08
  norm       = 2.73209
  Prefactor  = 8.6986e-08
  Prefactor  = 2.61735e-07
  Prefactor  = 18.7017
  Prefactor  = 0.307301
  Prefactor  = 1.33911e-05
  Prefactor  = 17.6884
  norm       = 0.928985
  Prefactor  = 1.04983e-05
  Prefactor  = 13.6303
  norm       = 2.27596e-09
  Prefactor  = 8.64309e-08
  Normalizat = 0.875065
  Prefactor  = 1.13751
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.702     FROM HESSE     STATUS=OK           430 CALLS     2412 TOTAL
                     EDM=   .55E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31902E-06    52.864        .11515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.464        157.39        .18206E-03   -1.5598    
   3  Prefactor     13.901        12.294        .26890E-03   -1.5633    
   4  Prefactor     10.488        14.698        .30936E-03   -1.5643    
   5  norm          .25535E-08    7.9329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8279        7.1760        .40825E-03   -1.5660    
   7  Prefactor      .0000        1.1769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.5107        5.3414        .39429E-03   -1.5657    
   9  Prefactor     .40301E-07    15.257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7321        1.5004        .61565E-03   -1.5675    
  11  Prefactor     .86986E-07    18.788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .26174E-06    129.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.702        61.854        .23381E-03   -1.5621    
  14  Prefactor     .30730        7.4079        .96698E-02   -1.5697    
  15  Prefactor     .13391E-04    25.439        .97266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.688        15.377        .23806E-03   -1.5624    
  17  norm          .92899        .60082        .43715E-03   -1.5689    
  18  Prefactor     .10498E-04    43.949        .17245E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.630        26.915        .27184E-03   -1.5634    
  20  norm          .22760E-08    6.1727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .86431E-07    20.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .87506        .25047        .84751E-01   -.97342    
  23  Prefactor     1.1375        .13717        .36320E-01   -.88277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47537e-06
Minuit parameter uncertainties:
  1  0.00821333
  2  138.496
  3  12.2945
  4  14.6984
  5  0.000283419
  6  7.17598
  7  3.08783e-06
  8  5.34137
  9  0.00156797
  10  1.50036
  11  0.00255678
  12  0.0116357
  13  61.8558
  14  3.01758
  15  0.0369137
  16  15.3766
  17  0.600819
  18  0.04296
  19  26.9153
  20  0.00023825
  21  0.00268284
  22  0.250803
  23  0.137216
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.828e+00  7.176e+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.138e+00  1.372e-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:  8.751e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 2.33e-05

TS (Fixed Index): 1.17
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644139/likelihoodResults_684892801_685152001_4FGL_J0159.5+1046_daily_bin1719.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) = 5883.42386851
delta logL = 0.278417180896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5883.40950143
delta logL = 0.292784262881

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0618       1.0000          .0000       .10000E+07
     2 'Index     '    2.7438       1.0000          .0000       10.000    
     3 'Normalizat'    .82006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1522       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=   5883.410     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      251 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0631        64.701        .57949E-03    .11968E-01
   2  Index         2.7439        3.2816        .95997E-01    .31483E-03
   3  Normalizat    .82009        .10162        .87249E-01    .71951E-05
   4  Prefactor     1.1522        .46736E-01    .35872E-01   -.23283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.06311
  Index      = 2.74389
  Normalizat = 0.820094
  Prefactor  = 1.15222
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.410     FROM HESSE     STATUS=OK            31 CALLS      282 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0631        9.6621        .11195E-04   -1.5673    
   2  Index         2.7439        1.5888        .57221E-02   -.46813    
   3  Normalizat    .82009        .29668        .38642E-03   -.99328    
   4  Prefactor     1.1522        .15880        .18625E-03   -.87815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85425e-10
Minuit parameter uncertainties:
  1  9.66212
  2  1.62441
  3  0.297268
  4  0.158868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644139': 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) = 5883.40950114
delta logL = 0.292784551697

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  3.063e+00  9.662e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  2.744e+00  1.624e+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.152e+00  1.589e-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:  8.201e-01  2.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 29.886 10.774
Photon Index (Free Index): 2.74 +/- 1.62
Photon Flux (Free Index): 8.14e-08 +/- 1.11e-07
Energy Flux (Free Index): 1.89e-05 +/- 1.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/644139/cmap_HighResolution_684892801_685152001_4FGL_J0159.5+1046_daily_bin1719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.89e-05', photon_flux_error='3.33e-08', dlogl='2.93e-01', energy_flux='1.89e-05', photon_flux2='8.14e-08', job_status='DONE', time_completed='2022-09-18 00:17:44.689852', photon_index_error2='1.62', photon_index2='2.74', ts='1.17', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.71e-05', EG='0.88', time_epoch_completed='1663485464.69', return_code='0', job_id='644139', GAL2='1.15', EG2='0.82', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.11e-07', ts2='1.79', photon_index='1.99' WHERE bin_id='1719' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 18 00:17:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 644139: <4FGL_J0159.5+1046_daily_bin1719> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1719> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 18 00:04:49 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 18 00:06:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 18 00:06:08 2022
Terminated at Sun Sep 18 00:17:45 2022
Results reported at Sun Sep 18 00:17:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1719 29.8858 10.7737 684892801 685152001 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 :                                   588.41 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             348.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            776 sec.

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

