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


Performing analysis on: 4FGL_J0159.0+3313_daily_bin1723
RA = 29.7665, Dec = 33.2175
tmin = 685929601, tmax = 686188801
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='430246', job_status='RUN', time_executed='2022-09-30 00:07:32.863918', time_epoch_executed='1664521652.86' WHERE source_name='4FGL J0159.0+3313' and cadence='daily' and bin_id='1723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430246

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430246/ft1_4FGL_J0159.0+3313_daily_bin1723.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430246/ft2_4FGL_J0159.0+3313_daily_bin1723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430246/ft1_4FGL_J0159.0+3313_daily_bin1723.fits outfile=/scratch/kocevski/430246/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1723.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=685929601.0 tmax=686188801.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.68
user 3.36
sys 0.21

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

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

Number of photons that the gtmktime cut: 857

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430246/ft1_filtered_4FGL_J0159.0+3313_daily_bin1723.fits" evtable="EVENTS" scfile=/scratch/kocevski/430246/ft2_4FGL_J0159.0+3313_daily_bin1723.fits sctable="SC_DATA" outfile=/scratch/kocevski/430246/ltcube_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.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/430246/ft2_4FGL_J0159.0+3313_daily_bin1723.fits
.....................!
real 12.91
user 12.42
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430246/ft1_filtered_4FGL_J0159.0+3313_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430246/ft2_4FGL_J0159.0+3313_daily_bin1723.fits sctable="SC_DATA" expcube=/scratch/kocevski/430246/ltcube_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.fits outfile=/scratch/kocevski/430246/expmap_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.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/430246/ltcube_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.fits
.....................!
real 191.30
user 185.52
sys 5.37

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/430246/ft1_filtered_4FGL_J0159.0+3313_daily_bin1723.fits scfile=/scratch/kocevski/430246/ft2_4FGL_J0159.0+3313_daily_bin1723.fits outfile=/scratch/kocevski/430246/cmap_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.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 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430246/ft1_filtered_4FGL_J0159.0+3313_daily_bin1723.fits scfile=/scratch/kocevski/430246/ft2_4FGL_J0159.0+3313_daily_bin1723.fits outfile=/scratch/kocevski/430246/cmap_HighResolution_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430246/ft1_filtered_4FGL_J0159.0+3313_daily_bin1723.fits', '/scratch/kocevski/430246/ft2_4FGL_J0159.0+3313_daily_bin1723.fits', expMap='/scratch/kocevski/430246/expmap_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.fits', expCube='/scratch/kocevski/430246/ltcube_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430246/Model_4FGL_J0159.0+3313_daily_bin1723.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/430246/ft1_filtered_4FGL_J0159.0+3313_daily_bin1723.fits
Spacecraft file(s): /scratch/kocevski/430246/ft2_4FGL_J0159.0+3313_daily_bin1723.fits
Exposure map: /scratch/kocevski/430246/expmap_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.fits
Exposure cube: /scratch/kocevski/430246/ltcube_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430246/Model_4FGL_J0159.0+3313_daily_bin1723.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) = 9038.4779406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8679       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17754E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .19753E-05   1.0000          .0000       .10000E+07
     4 'norm      '    1.1921       1.0000          .0000       .10000E+07
     5 'Prefactor '    .92850E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .47795E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.7617       1.0000          .0000       .10000E+07
     8 'Prefactor '    .23073E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .74767E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .57453E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.7949       1.0000          .0000       .10000E+07
    12 'norm      '    .13449E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .28223E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .24027E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    16 'norm      '    .34453       1.0000          .0000       .10000E+07
    17 'norm      '    .10018E-01   1.0000          .0000       .10000E+07
    18 'norm      '    .10454       1.0000          .0000       .10000E+07
    19 'Prefactor '    5.2091       1.0000          .0000       .10000E+07
    20 'norm      '    10.933       1.0000          .0000       .10000E+07
    21 'norm      '    2.6215       1.0000          .0000       .10000E+07
    22 'Prefactor '    50.824       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0743       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0935       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=   9038.463     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2084 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8713        1.3781       -.36709E-07   -.14810E-02
   2  Prefactor     .83061E-06    25.133       -.13594E-06** at limit **
   3  Prefactor     .68609E-04    47.584       -.32056E-06** at limit **
   4  norm          1.1929        .98214       -.47373E-08    .26616E-03
   5  Prefactor     .49933E-04    83.156       -.14680E-05** at limit **
   6  norm           .0000        .41292        .30790E-07** at limit **
   7  Prefactor     2.7969        13.332       -.44772E-06   -.14297E-03
   8  Prefactor     .13017E-03    90.106       -.14448E-05** at limit **
   9  Prefactor     .61062E-09    10.574        .15709E-06** at limit **
  10  Prefactor     .14988E-08    6.7792        .46593E-07** at limit **
  11  Prefactor     2.9856        5.3010        .99958E-07    .14042E-01
  12  norm           .0000        .84256       -.58341E-07** at limit **
  13  Prefactor     .22238E-06    35.930       -.26501E-06** at limit **
  14  Prefactor      .0000        2.4707        .13673E-06** at limit **
  15  norm           .0000        .56079       -.46364E-07** at limit **
  16  norm          .34461        .29643        .32955E-08    .49342E-04
  17  norm          .15707E-04    46.822       -.57133E-06** at limit **
  18  norm          .10452        .10877       -.56872E-08** at limit **
  19  Prefactor     5.2970        4.7326       -.89776E-08    .53720E-04
  20  norm          10.950        6.7181       -.37676E-07   -.58943E-03
  21  norm          2.6228        1.5458        .55238E-07    .33092E-02
  22  Prefactor     51.675        29.987        .21443E-06   -.79923E-01
  23  Normalizat    1.0738        .21795        .16950E-05    .14109E-03
  24  Prefactor     1.0933        .12592        .89051E-06    .22839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.87132
  Prefactor  = 8.30613e-07
  Prefactor  = 6.86093e-05
  norm       = 1.19289
  Prefactor  = 4.99334e-05
  norm       = 0
  Prefactor  = 2.79695
  Prefactor  = 0.000130172
  Prefactor  = 6.10623e-10
  Prefactor  = 1.4988e-09
  Prefactor  = 2.98557
  norm       = 0
  Prefactor  = 2.22378e-07
  Prefactor  = 0
  norm       = 0
  norm       = 0.34461
  norm       = 1.57067e-05
  norm       = 0.104517
  Prefactor  = 5.29698
  norm       = 10.9502
  norm       = 2.62278
  Prefactor  = 51.6746
  Normalizat = 1.07375
  Prefactor  = 1.09329
 **********
 **   18 **HESSE 
 **********

 FCN=   9038.463     FROM HESSE     STATUS=OK           465 CALLS     2549 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8713        1.3836        .59999E-03   -1.5674    
   2  Prefactor     .83061E-06    25.503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .68609E-04    70.700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1929        .99443        .10423E-02   -1.5686    
   5  Prefactor     .49933E-04    101.40        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .39517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7969        13.422        .61222E-03   -1.5675    
   8  Prefactor     .13017E-03    10.211        .70861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61062E-09    1.4670        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14988E-08    6.7929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9856        83.507        .60831E-03   -1.5673    
  12  norm           .0000        .84750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22238E-06    3.6220        .58819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        2.4858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .56327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .34461        .31523        .96217E-03   -1.5696    
  17  norm          .15707E-04    53.128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10452        .11714        .70226E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2970        4.7524        .44020E-03   -1.5662    
  20  norm          10.950        6.7419        .30275E-03   -1.5642    
  21  norm          2.6228        1.5520        .62964E-03   -1.5676    
  22  Prefactor     51.675        68.117        .14028E-03   -1.5564    
  23  Normalizat    1.0738        .19389        .73744E-01   -.90599    
  24  Prefactor     1.0933        .10965        .37838E-01   -.89681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49554e-06
Minuit parameter uncertainties:
  1  1.38362
  2  0.00920488
  3  0.139296
  4  0.994426
  5  0.142317
  6  6.15768e-07
  7  12.254
  8  0.0729158
  9  5.98076e-05
  10  0.000201647
  11  31.58
  12  2.33067e-06
  13  0.001795
  14  1.52735e-06
  15  1.7687e-06
  16  0.315231
  17  0.057775
  18  0.117143
  19  4.75237
  20  6.74189
  21  1.55203
  22  68.1182
  23  0.194015
  24  0.109669
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.499e-09  2.016e-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.093e+00  1.097e-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:  1.074e+00  1.940e-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: 3.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430246/likelihoodResults_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.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) = 9038.53338407
delta logL = -0.0706308018289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9038.46275468
delta logL = -1.41619057104e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46769E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .59007       1.0000          .0000       10.000    
     3 'Normalizat'    1.0735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0935       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=   9038.463     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      204 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83267E-09    5.3586       -.12848E-05** at limit **
   2  Index         2.1915        6.0933        .14539E-03    .42879E-09
   3  Normalizat    1.0738        .21187       -.10724E-05   -.44512E-03
   4  Prefactor     1.0933        .12462        .63368E-05   -.72817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32667e-10
  Index      = 2.19154
  Normalizat = 1.07375
  Prefactor  = 1.09329
 **********
 **   18 **HESSE 
 **********

 FCN=   9038.463     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      239 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83267E-09    .35854E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1915        7.8759        .40918       -.59643    
   3  Normalizat    1.0738        .39720E-03    .73744E-01   -.90599    
   4  Prefactor     1.0933        .23289E-03    .37841E-01   -.89681    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.65738e-13
Minuit parameter uncertainties:
  1  1.09769e-05
  2  1476.47
  3  0.000397202
  4  0.000232888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430246': 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): 102
logL (Free Index) = 9038.46275327
delta logL = -8.18545231596e-11

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  8.327e-10  1.098e-05  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  2.192e+00  1.476e+03  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.093e+00  2.329e-04  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:  1.074e+00  3.972e-04  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/430246/cmap_HighResolution_685929601_686188801_4FGL_J0159.0+3313_daily_bin1723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-03', job_status='DONE', photon_flux_upper_limit='3.88e-08', time_completed='2022-09-30 00:20:52.959252', job_id='430246', GAL2='1.09', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1664522452.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-8.19e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1723' AND source_name='4FGL J0159.0+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 30 00:20:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 430246: <4FGL_J0159.0+3313_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1723> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 30 00:05:05 2022
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:05:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:05:18 2022
Terminated at Fri Sep 30 00:20:54 2022
Results reported at Fri Sep 30 00:20:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1723 29.7665 33.2175 685929601 686188801 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 :                                   801.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            949 sec.

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

