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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1714
RA = 29.8858, Dec = 10.7737
tmin = 683596801, tmax = 683856001
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='2615', job_status='RUN', time_executed='2022-09-16 10:25:40.989234', time_epoch_executed='1663349140.99' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2615/ft1_4FGL_J0159.5+1046_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2615/ft2_4FGL_J0159.5+1046_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2615/ft1_4FGL_J0159.5+1046_daily_bin1714.fits outfile=/scratch/kocevski/2615/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1714.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=683596801.0 tmax=683856001.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 2.94
user 2.68
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2615/ft1_filtered_4FGL_J0159.5+1046_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/2615/ft2_4FGL_J0159.5+1046_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/2615/ltcube_683596801_683856001_4FGL_J0159.5+1046_daily_bin1714.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/2615/ft2_4FGL_J0159.5+1046_daily_bin1714.fits
.....................!
real 12.21
user 11.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2615/ft1_filtered_4FGL_J0159.5+1046_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/2615/ft2_4FGL_J0159.5+1046_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/2615/ltcube_683596801_683856001_4FGL_J0159.5+1046_daily_bin1714.fits outfile=/scratch/kocevski/2615/expmap_683596801_683856001_4FGL_J0159.5+1046_daily_bin1714.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/2615/ltcube_683596801_683856001_4FGL_J0159.5+1046_daily_bin1714.fits
.....................!
real 158.20
user 152.57
sys 5.13

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/2615/ft1_filtered_4FGL_J0159.5+1046_daily_bin1714.fits scfile=/scratch/kocevski/2615/ft2_4FGL_J0159.5+1046_daily_bin1714.fits outfile=/scratch/kocevski/2615/cmap_683596801_683856001_4FGL_J0159.5+1046_daily_bin1714.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2615/ft1_filtered_4FGL_J0159.5+1046_daily_bin1714.fits scfile=/scratch/kocevski/2615/ft2_4FGL_J0159.5+1046_daily_bin1714.fits outfile=/scratch/kocevski/2615/cmap_HighResolution_683596801_683856001_4FGL_J0159.5+1046_daily_bin1714.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.48
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6486       1.0000          .0000       .10000E+07
     2 'Prefactor '    73.754       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.460       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22604E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .36559E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.6983       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.6881       1.0000          .0000       .10000E+07
     8 'norm      '    20.629       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.2790       1.0000          .0000       .10000E+07
    10 'norm      '    1.7858       1.0000          .0000       .10000E+07
    11 'Prefactor '    17.453       1.0000          .0000       .10000E+07
    12 'Prefactor '    .20025E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    24.754       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.8945       1.0000          .0000       .10000E+07
    15 'Prefactor '    .57695E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    8.6998       1.0000          .0000       .10000E+07
    17 'norm      '    .77331       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70273E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .48458E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .31681       1.0000          .0000       .10000E+07
    21 'Prefactor '    34.598       1.0000          .0000       .10000E+07
    22 'Normalizat'    .96360       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96741       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=   8341.924     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1971 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6446        6.5474        .57470E-07    .46428E-04
   2  Prefactor     74.418        62.049       -.21037E-06   -.71923E-01
   3  Prefactor     19.488        4.0406        .86757E-07    .13842    
   4  Prefactor      .0000        1.1249        .22515E-07** at limit **
   5  norm          .38858E-09    11.380        .53331E-06** at limit **
   6  Prefactor     6.7694        5.8147        .19544E-06   -.76986E-03
   7  Prefactor     2.6851        2.9126       -.76449E-07   -.13372E-03
   8  norm          20.655        6.8188        .49660E-07   -.15975E-02
   9  Prefactor     6.2704        3.3868        .16694E-06   -.52847E-03
  10  norm          1.7870        .96956       -.37597E-07    .90083E-03
  11  Prefactor     17.552        18.952        .59351E-06   -.14206    
  12  Prefactor     .22149E-07    7.0643       -.10438E-06** at limit **
  13  Prefactor     24.794        3.8232        .96451E-08   -.17853E-01
  14  Prefactor     2.8706        7.5899        .45209E-06    .11483E-03
  15  Prefactor     .58009E-07    6.9407       -.47209E-06** at limit **
  16  Prefactor     8.6479        11.428        .41059E-06   -.67346E-03
  17  norm          .77463        .49912       -.45989E-07    .15644E-02
  18  Prefactor     .84099E-07    17.956        .65293E-06** at limit **
  19  Prefactor     .33307E-09    9.4735        .56128E-06** at limit **
  20  norm          .46637E-04    82.847       -.27076E-05** at limit **
  21  Prefactor     35.154        43.158       -.44440E-06    .56235E-01
  22  Normalizat    .96270        .20122        .77051E-05   -.14441E-03
  23  Prefactor     .96798        .12170       -.25133E-05   -.15636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.64464
  Prefactor  = 74.4176
  Prefactor  = 19.4879
  Prefactor  = 0
  norm       = 3.88578e-10
  Prefactor  = 6.76936
  Prefactor  = 2.68515
  norm       = 20.6546
  Prefactor  = 6.27037
  norm       = 1.787
  Prefactor  = 17.5524
  Prefactor  = 2.21489e-08
  Prefactor  = 24.7937
  Prefactor  = 2.87065
  Prefactor  = 5.80092e-08
  Prefactor  = 8.64792
  norm       = 0.774635
  Prefactor  = 8.40994e-08
  Prefactor  = 3.33067e-10
  norm       = 4.6637e-05
  Prefactor  = 35.1538
  Normalizat = 0.962699
  Prefactor  = 0.967982
 **********
 **   18 **HESSE 
 **********

 FCN=   8341.924     FROM HESSE     STATUS=OK           424 CALLS     2395 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6446        6.5533        .46655E-03   -1.5665    
   2  Prefactor     74.418        68.406        .11645E-03   -1.5535    
   3  Prefactor     19.488        13.303        .22677E-03   -1.5620    
   4  Prefactor      .0000        1.1275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .38858E-09    11.336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7694        5.8190        .38747E-03   -1.5656    
   7  Prefactor     2.6851        2.9286        .62118E-03   -1.5675    
   8  norm          20.655        6.8270        .22024E-03   -1.5617    
   9  Prefactor     6.2704        3.5328        .40035E-03   -1.5658    
  10  norm          1.7870        .97615        .78261E-03   -1.5681    
  11  Prefactor     17.552        26.178        .23947E-03   -1.5624    
  12  Prefactor     .22149E-07    7.1553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.794        73.266        .20103E-03   -1.5608    
  14  Prefactor     2.8706        7.6851        .59704E-03   -1.5674    
  15  Prefactor     .58009E-07    7.0886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6479        11.460        .33960E-03   -1.5649    
  17  norm          .77463        .49943        .54946E-03   -1.5690    
  18  Prefactor     .84099E-07    18.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .33307E-09    9.5021        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .46637E-04    7.6112        .99837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.154        46.860        .17003E-03   -1.5589    
  22  Normalizat    .96270        .18090        .73044E-01   -.94291    
  23  Prefactor     .96798        .10814        .45858E-01   -.93805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52825e-06
Minuit parameter uncertainties:
  1  6.55332
  2  68.407
  3  13.3032
  4  1.00395e-07
  5  0.000133839
  6  5.81899
  7  2.92863
  8  6.827
  9  3.53285
  10  0.976152
  11  26.1779
  12  0.000795701
  13  73.2685
  14  7.68514
  15  0.0012823
  16  11.4603
  17  0.499426
  18  0.00246376
  19  0.000108486
  20  0.0376811
  21  46.8607
  22  0.181017
  23  0.108167
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  6.769e+00  5.819e+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.680e-01  1.082e-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:  9.627e-01  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.55
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.14e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.89e-05

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

Saving results to:
/scratch/kocevski/2615/likelihoodResults_683596801_683856001_4FGL_J0159.5+1046_daily_bin1714.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) = 8341.84647767
delta logL = 0.0774847628309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8341.84198905
delta logL = 0.0819733759272

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8341.842     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      308 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3778        6.7166        .14751E-04   -.46242E-05
   2  Index         1.7727        .56878        .98899E-02    .23489E-03
   3  Normalizat    .96800        .19287        .32246E-03   -.33846E-04
   4  Prefactor     .96810        .11958        .19844E-03   -.36094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.37784
  Index      = 1.77274
  Normalizat = 0.967999
  Prefactor  = 0.968105
 **********
 **   18 **HESSE 
 **********

 FCN=   8341.842     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3778        6.7165        .59004E-06   -1.5654    
   2  Index         1.7727        .56889        .19780E-02   -.70161    
   3  Normalizat    .96800        .19296        .12899E-04   -.94110    
   4  Prefactor     .96810        .11966        .79374E-05   -.93800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65575e-12
Minuit parameter uncertainties:
  1  6.71648
  2  0.57101
  3  0.193098
  4  0.119688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2615': 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) = 8341.84198614
delta logL = 0.0819762880474

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  7.378e+00  6.716e+00  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  1.773e+00  5.710e-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:  9.681e-01  1.197e-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:  9.680e-01  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.77 +/- 0.57
Photon Flux (Free Index): 2.22e-08 +/- 3.09e-08
Energy Flux (Free Index): 2.88e-05 +/- 3.30e-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/2615/cmap_HighResolution_683596801_683856001_4FGL_J0159.5+1046_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', photon_flux='3.14e-08', energy_flux2='2.88e-05', photon_flux_error='2.70e-08', dlogl='8.20e-02', energy_flux='2.20e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2022-09-16 10:35:32.637993', photon_index_error2='0.57', photon_index2='1.77', ts='3.55', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.68e-08', energy_flux_error2='3.30e-05', EG='0.96', time_epoch_completed='1663349732.64', return_code='0', job_id='2615', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='3.09e-08', ts2='3.72', photon_index='1.99' WHERE bin_id='1714' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:35:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 2615: <4FGL_J0159.5+1046_daily_bin1714> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1714> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:21:02 2022
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:22:31 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:31 2022
Terminated at Fri Sep 16 10:35:33 2022
Results reported at Fri Sep 16 10:35:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1714 29.8858 10.7737 683596801 683856001 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 :                                   593.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            871 sec.

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

