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


Performing analysis on: 4FGL_J0159.0+3313_daily_bin1722
RA = 29.7665, Dec = 33.2175
tmin = 685670401, tmax = 685929601
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='229259', job_status='RUN', time_executed='2022-09-27 00:05:44.750876', time_epoch_executed='1664262344.75' WHERE source_name='4FGL J0159.0+3313' and cadence='daily' and bin_id='1722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229259

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229259/ft1_4FGL_J0159.0+3313_daily_bin1722.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229259/ft1_4FGL_J0159.0+3313_daily_bin1722.fits outfile=/scratch/kocevski/229259/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1722.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=685670401.0 tmax=685929601.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.78
user 3.46
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.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/229259/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1722.fits evtable="EVENTS" outfile="/scratch/kocevski/229259/ft1_filtered_4FGL_J0159.0+3313_daily_bin1722.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.54
user 0.34
sys 0.18

Number of photons that the gtmktime cut: 755

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229259/ft1_filtered_4FGL_J0159.0+3313_daily_bin1722.fits" evtable="EVENTS" scfile=/scratch/kocevski/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.fits sctable="SC_DATA" outfile=/scratch/kocevski/229259/ltcube_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.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/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.fits
.....................!
real 15.69
user 15.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229259/ft1_filtered_4FGL_J0159.0+3313_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.fits sctable="SC_DATA" expcube=/scratch/kocevski/229259/ltcube_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.fits outfile=/scratch/kocevski/229259/expmap_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.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/229259/ltcube_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.fits
.....................!
real 193.63
user 187.17
sys 5.70

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J0159.0+3313 @ 29.7665 33.2175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/229259/ft1_filtered_4FGL_J0159.0+3313_daily_bin1722.fits scfile=/scratch/kocevski/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.fits outfile=/scratch/kocevski/229259/cmap_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.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.7665 yref=33.2175 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 1.06
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229259/ft1_filtered_4FGL_J0159.0+3313_daily_bin1722.fits scfile=/scratch/kocevski/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.fits outfile=/scratch/kocevski/229259/cmap_HighResolution_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.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.7665 yref=33.2175 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/229259/ft1_filtered_4FGL_J0159.0+3313_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229259/Model_4FGL_J0159.0+3313_daily_bin1722.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/229259/ft1_filtered_4FGL_J0159.0+3313_daily_bin1722.fits.....................!
real 89.89
user 87.07
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229259/ft1_filtered_4FGL_J0159.0+3313_daily_bin1722.fits', '/scratch/kocevski/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.fits', expMap='/scratch/kocevski/229259/expmap_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.fits', expCube='/scratch/kocevski/229259/ltcube_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229259/Model_4FGL_J0159.0+3313_daily_bin1722.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.0+3313'

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.345e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  1.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/229259/ft1_filtered_4FGL_J0159.0+3313_daily_bin1722.fits
Spacecraft file(s): /scratch/kocevski/229259/ft2_4FGL_J0159.0+3313_daily_bin1722.fits
Exposure map: /scratch/kocevski/229259/expmap_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.fits
Exposure cube: /scratch/kocevski/229259/ltcube_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229259/Model_4FGL_J0159.0+3313_daily_bin1722.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) = 8052.1062231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3894       1.0000          .0000       .10000E+07
     2 'Prefactor '    76.353       1.0000          .0000       .10000E+07
     3 'Prefactor '    .24329E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .70888E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .15321E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .30782       1.0000          .0000       .10000E+07
     7 'Prefactor '    16.957       1.0000          .0000       .10000E+07
     8 'Prefactor '    .26238E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11990E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .55349E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .45169       1.0000          .0000       .10000E+07
    12 'norm      '    .36695E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    23.770       1.0000          .0000       .10000E+07
    14 'Prefactor '    .46052E-03   1.0000          .0000       .10000E+07
    15 'norm      '    5.8098       1.0000          .0000       .10000E+07
    16 'norm      '    1.0294       1.0000          .0000       .10000E+07
    17 'norm      '    .63412       1.0000          .0000       .10000E+07
    18 'norm      '    .11585       1.0000          .0000       .10000E+07
    19 'Prefactor '    .98519E-05   1.0000          .0000       .10000E+07
    20 'norm      '    5.9973       1.0000          .0000       .10000E+07
    21 'norm      '    2.4948       1.0000          .0000       .10000E+07
    22 'Prefactor '    14.171       1.0000          .0000       .10000E+07
    23 'Normalizat'    .64886       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1256       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8052.086     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2041 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3893        1.3927       -.27257E-07   -.35694E-02
   2  Prefactor     76.672        18.252        .19370E-07   -.35778E-01
   3  Prefactor     .25535E-08    2.3892       -.28270E-06** at limit **
   4  norm           .0000        .38932       -.56093E-07** at limit **
   5  Prefactor      .0000        15.291        .89002E-07** at limit **
   6  norm          .30782        .40849       -.11627E-07   -.10456E-02
   7  Prefactor     16.927        12.491       -.25255E-07   -.31555E-01
   8  Prefactor     .85540E-04    59.042       -.66343E-06** at limit **
   9  Prefactor     .16653E-09    1.4708        .23867E-06** at limit **
  10  Prefactor     .21982E-07    8.6387       -.11164E-06** at limit **
  11  Prefactor     .44573        .81216        .81874E-08   -.44337E-02
  12  norm          .55511E-10    1.7163       -.10621E-06** at limit **
  13  Prefactor     23.741        9.2101        .56770E-08    .16927E-02
  14  Prefactor      .0000        2.7298       -.38062E-07** at limit **
  15  norm          5.8006        4.0381        .32055E-07    .93248E-03
  16  norm          1.0303        .69860       -.14830E-07   -.18849E-02
  17  norm          .16015E-03    84.799       -.61627E-06** at limit **
  18  norm          .11588        .19564        .29474E-07** at limit **
  19  Prefactor     .66613E-09    1.5195       -.21641E-06** at limit **
  20  norm          6.0464        5.1179       -.13417E-06   -.42130E-02
  21  norm          2.4947        1.6463       -.26235E-07   -.25322E-02
  22  Prefactor     14.629        34.174        .78765E-07   -.12115    
  23  Normalizat    .64896        .22942        .59634E-06    .26004E-04
  24  Prefactor     1.1254        .13154        .82131E-07    .53445E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.38931
  Prefactor  = 76.6718
  Prefactor  = 2.55351e-09
  norm       = 0
  Prefactor  = 0
  norm       = 0.307816
  Prefactor  = 16.927
  Prefactor  = 8.55403e-05
  Prefactor  = 1.66533e-10
  Prefactor  = 2.19824e-08
  Prefactor  = 0.445731
  norm       = 5.55112e-11
  Prefactor  = 23.7405
  Prefactor  = 0
  norm       = 5.80065
  norm       = 1.03026
  norm       = 0.000160148
  norm       = 0.115879
  Prefactor  = 6.66134e-10
  norm       = 6.04644
  norm       = 2.49467
  Prefactor  = 14.6285
  Normalizat = 0.648958
  Prefactor  = 1.12543
 **********
 **   18 **HESSE 
 **********

 FCN=   8052.086     FROM HESSE     STATUS=OK           457 CALLS     2498 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3893        1.4010        .66231E-03   -1.5677    
   2  Prefactor     76.672        47.750        .11445E-03   -1.5533    
   3  Prefactor     .25535E-08    3.7006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .38491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        15.321        .17366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .30782        .48114        .15783E-02   -1.5697    
   7  Prefactor     16.927        12.541        .24295E-03   -1.5626    
   8  Prefactor     .85540E-04    72.331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-09    1.4732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21982E-07    8.6663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44573        70.080        .13832E-01   -1.5695    
  12  norm          .55511E-10    1.7224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.741        9.3171        .20516E-03   -1.5611    
  14  Prefactor      .0000        2.7385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8006        3.9692        .41644E-03   -1.5660    
  16  norm          1.0303        .69876        .11179E-02   -1.5688    
  17  norm          .16015E-03    113.89        .66225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11588        .21384        .11402E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .66613E-09    3.8770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0464        5.1482        .40978E-03   -1.5659    
  21  norm          2.4947        1.6557        .64682E-03   -1.5676    
  22  Prefactor     14.629        59.507        .26582E-03   -1.5631    
  23  Normalizat    .64896        .21044        .87554E-01   -1.0594    
  24  Prefactor     1.1254        .11757        .36687E-01   -.88658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08747e-06
Minuit parameter uncertainties:
  1  1.40098
  2  47.75
  3  0.000193693
  4  3.95395e-06
  5  2.54556e-05
  6  0.481139
  7  12.5409
  8  0.157319
  9  2.89295e-05
  10  0.000872705
  11  11.1782
  12  2.26493e-05
  13  9.31713
  14  7.25074e-06
  15  3.96924
  16  0.698759
  17  0.27011
  18  0.213842
  19  0.000102285
  20  5.14823
  21  1.65572
  22  59.0096
  23  0.2107
  24  0.117595
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  2.198e-08  8.727e-04  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  1.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  1.125e+00  1.176e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  6.490e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.767 33.218
Photon Flux Upper Limit: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229259/likelihoodResults_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.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) = 8052.1412243
delta logL = -0.0552262366618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8052.08599821
delta logL = -1.47510945681e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58581E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .38342       1.0000          .0000       10.000    
     3 'Normalizat'    .64904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8052.086     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      215 TOTAL
                     EDM=   .52E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.5738        .42118E-03** at limit **
   2  Index         2.1906        1.5347       -.13529E-04     .0000    
   3  Normalizat    .64896        .98791        .19950E-05   -.39144E-05
   4  Prefactor     1.1254        1.1338        .24926E-06   -.22937E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19063
  Normalizat = 0.648958
  Prefactor  = 1.12543
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8052.086     FROM HESSE     STATUS=FAILED         9 CALLS      224 TOTAL
                     EDM=   .52E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.5738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .52898        1.8622       -.13529E-04   -.59665    
   3  Normalizat    .64896        .98791        .19950E-05   -1.0594    
   4  Prefactor     1.1254        1.1338        .24926E-06   -.88658    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.18856e-14
Minuit parameter uncertainties:
  1  1.80203e-06
  2  1.57224
  3  1.017
  4  1.15962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229259': 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): 101
logL (Free Index) = 8052.08599806
delta logL = 1.26874510897e-09

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  0.000e+00  1.802e-06  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  2.191e+00  1.572e+00  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  1.125e+00  1.160e+00  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  6.490e-01  1.017e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.767 33.218

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/229259/cmap_HighResolution_685670401_685929601_4FGL_J0159.0+3313_daily_bin1722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2022-09-27 00:18:32.237017', job_id='229259', GAL2='1.13', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1664263112.24', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.27e-09', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1722' AND source_name='4FGL J0159.0+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 27 00:18:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 229259: <4FGL_J0159.0+3313_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 27 00:04:57 2022
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:05:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:05:09 2022
Terminated at Tue Sep 27 00:18:33 2022
Results reported at Tue Sep 27 00:18:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1722 29.7665 33.2175 685670401 685929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.0+3313 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            816 sec.

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

