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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1718
RA = 29.8858, Dec = 10.7737
tmin = 684633601, tmax = 684892801
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='2619', job_status='RUN', time_executed='2022-09-16 10:23:44.134520', time_epoch_executed='1663349024.13' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2619/ft1_4FGL_J0159.5+1046_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2619/ft2_4FGL_J0159.5+1046_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2619/ft1_4FGL_J0159.5+1046_daily_bin1718.fits outfile=/scratch/kocevski/2619/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1718.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=684633601.0 tmax=684892801.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.37
user 2.95
sys 0.23

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

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

Number of photons that the gtmktime cut: 427

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2619/ft1_filtered_4FGL_J0159.5+1046_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/2619/ft2_4FGL_J0159.5+1046_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/2619/ltcube_684633601_684892801_4FGL_J0159.5+1046_daily_bin1718.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/2619/ft2_4FGL_J0159.5+1046_daily_bin1718.fits
.....................!
real 16.33
user 15.87
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2619/ft1_filtered_4FGL_J0159.5+1046_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/2619/ft2_4FGL_J0159.5+1046_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/2619/ltcube_684633601_684892801_4FGL_J0159.5+1046_daily_bin1718.fits outfile=/scratch/kocevski/2619/expmap_684633601_684892801_4FGL_J0159.5+1046_daily_bin1718.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/2619/ltcube_684633601_684892801_4FGL_J0159.5+1046_daily_bin1718.fits
.....................!
real 193.76
user 187.68
sys 5.67

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/2619/ft1_filtered_4FGL_J0159.5+1046_daily_bin1718.fits scfile=/scratch/kocevski/2619/ft2_4FGL_J0159.5+1046_daily_bin1718.fits outfile=/scratch/kocevski/2619/cmap_684633601_684892801_4FGL_J0159.5+1046_daily_bin1718.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2619/ft1_filtered_4FGL_J0159.5+1046_daily_bin1718.fits scfile=/scratch/kocevski/2619/ft2_4FGL_J0159.5+1046_daily_bin1718.fits outfile=/scratch/kocevski/2619/cmap_HighResolution_684633601_684892801_4FGL_J0159.5+1046_daily_bin1718.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.162       1.0000          .0000       .10000E+07
     2 'Prefactor '    .60796E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.9111       1.0000          .0000       .10000E+07
     4 'Prefactor '    .57189E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .12528E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13257E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.2890       1.0000          .0000       .10000E+07
     8 'norm      '    22.040       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.8626       1.0000          .0000       .10000E+07
    10 'norm      '    .24840E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .25780E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .60562E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13253       1.0000          .0000       .10000E+07
    14 'Prefactor '    22.087       1.0000          .0000       .10000E+07
    15 'Prefactor '    .30521E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.0299       1.0000          .0000       .10000E+07
    17 'norm      '    1.2079       1.0000          .0000       .10000E+07
    18 'Prefactor '    .94900E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    38.515       1.0000          .0000       .10000E+07
    20 'norm      '    .26090E-08   1.0000          .0000       .10000E+07
    21 'Prefactor '    .21406E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1511       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88255       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=   4981.330     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     1879 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.123        1.7887       -.37005E-06   -.36992E-03
   2  Prefactor     .89707E-05    185.00       -.46942E-05** at limit **
   3  Prefactor     4.8738        10.190        .12790E-05    .54597E-02
   4  Prefactor      .0000        6.4834       -.28889E-06** at limit **
   5  norm          .73275E-08    13.775        .75587E-06** at limit **
   6  Prefactor     .16653E-09    5.4484       -.11382E-06** at limit **
   7  Prefactor     2.2905        2.8359       -.16539E-06    .29410E-02
   8  norm          22.044        10.099        .41230E-06    .93358E-02
   9  Prefactor     4.8689        4.1274       -.37339E-06    .14492E-02
  10  norm           .0000        1.0420       -.19103E-06** at limit **
  11  Prefactor     .44409E-09    27.118       -.78244E-06** at limit **
  12  Prefactor     .45822E-05    23.981       -.99148E-05** at limit **
  13  Prefactor     .13323E-08    41.357       -.30657E-06** at limit **
  14  Prefactor     22.276        11.977        .27927E-05    .94335E-01
  15  Prefactor     .16434E-05    43.217       -.28666E-06** at limit **
  16  Prefactor     6.7474        11.205       -.37679E-05   -.64019E-01
  17  norm          1.2120        .66602        .12659E-06   -.74483E-02
  18  Prefactor     .14519E-05    21.767        .86899E-05** at limit **
  19  Prefactor     39.203        24.902       -.60521E-05    .16495    
  20  norm          .55511E-10    7.7469        .24840E-06** at limit **
  21  Prefactor     .65503E-08    21.021       -.76044E-06** at limit **
  22  Normalizat    1.1501        .30056        .18911E-04    .44160E-05
  23  Prefactor     .88278        .16141       -.15926E-04    .19971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1233
  Prefactor  = 8.97071e-06
  Prefactor  = 4.87379
  Prefactor  = 0
  norm       = 7.32747e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 2.29049
  norm       = 22.0444
  Prefactor  = 4.8689
  norm       = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 4.58217e-06
  Prefactor  = 1.33227e-09
  Prefactor  = 22.2758
  Prefactor  = 1.64335e-06
  Prefactor  = 6.74741
  norm       = 1.21196
  Prefactor  = 1.45195e-06
  Prefactor  = 39.203
  norm       = 5.55112e-11
  Prefactor  = 6.55032e-09
  Normalizat = 1.15011
  Prefactor  = 0.882781
 **********
 **   18 **HESSE 
 **********

 FCN=   4981.330     FROM HESSE     STATUS=OK           412 CALLS     2291 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.123        24.304        .18521E-03   -1.5600    
   2  Prefactor     .89707E-05    188.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8738        10.229        .45363E-03   -1.5664    
   4  Prefactor      .0000        6.4804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .73275E-08    13.784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    5.4459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2905        2.8554        .67821E-03   -1.5678    
   8  norm          22.044        10.125        .21306E-03   -1.5614    
   9  Prefactor     4.8689        4.1382        .45593E-03   -1.5664    
  10  norm           .0000        1.0259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44409E-09    26.970        .16683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .45822E-05    31.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .13323E-08    41.297        .13127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.276        14.966        .21284E-03   -1.5614    
  15  Prefactor     .16434E-05    44.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7474        17.674        .37812E-03   -1.5656    
  17  norm          1.2120        .69905        .87431E-03   -1.5686    
  18  Prefactor     .14519E-05    27.787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.203        49.339        .16115E-03   -1.5583    
  20  norm          .55511E-10    7.7343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .65503E-08    21.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1501        .26618        .75985E-01   -.88159    
  23  Prefactor     .88278        .13968        .44782E-01   -.96745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30918e-06
Minuit parameter uncertainties:
  1  24.3043
  2  0.0823053
  3  10.2292
  4  1.35942e-06
  5  0.000636647
  6  5.8449e-05
  7  2.85537
  8  10.1247
  9  4.13819
  10  5.61583e-06
  11  0.00022515
  12  0.0239136
  13  0.000473738
  14  14.966
  15  0.0170626
  16  17.6743
  17  0.699051
  18  0.0127038
  19  49.3392
  20  2.93311e-05
  21  0.000749676
  22  0.266496
  23  0.139739
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.665e-10  5.845e-05  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:  8.828e-01  1.397e-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:  1.150e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/2619/likelihoodResults_684633601_684892801_4FGL_J0159.5+1046_daily_bin1718.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) = 4981.42000254
delta logL = -0.0899024879773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4981.33010036
delta logL = -3.07402842736e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19518E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .92179       1.0000          .0000       10.000    
     3 'Normalizat'    1.1503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88267       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=   4981.330     FROM MIGRAD    STATUS=CONVERGED     25 CALLS      184 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42744E-08    5.3522        .23823E-06** at limit **
   2  Index         2.1696        2.4311        .37058E-05    .10336E-08
   3  Normalizat    1.1501        .29303        .78599E-04   -.22648E-03
   4  Prefactor     .88278        .15826       -.72425E-04   -.25043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.27436e-09
  Index      = 2.16962
  Normalizat = 1.15011
  Prefactor  = 0.88278
 **********
 **   18 **HESSE 
 **********

 FCN=   4981.330     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      219 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42744E-08    .10870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1696        6.0810        .45282       -.60174    
   3  Normalizat    1.1501        .10155E-02    .75985E-01   -.88159    
   4  Prefactor     .88278        .54563E-03    .44784E-01   -.96745    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4479e-11
Minuit parameter uncertainties:
  1  4.30648e-05
  2  1790.72
  3  0.00101553
  4  0.000545634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2619': 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) = 4981.33010006
delta logL = -4.1563907871e-10

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  4.274e-09  4.306e-05  0.000e+00  1.000e+06 ( 1.000e-13)
220        Index:  2.170e+00  1.791e+03  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:  8.828e-01  5.456e-04  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:  1.150e+00  1.016e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.886 10.774

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/2619/cmap_HighResolution_684633601_684892801_4FGL_J0159.5+1046_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.43e-08', time_completed='2022-09-16 10:32:53.239625', job_id='2619', GAL2='0.88', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1663349573.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-4.16e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1718' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:32:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 2619: <4FGL_J0159.5+1046_daily_bin1718> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1718> 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) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:22:40 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:40 2022
Terminated at Fri Sep 16 10:32:53 2022
Results reported at Fri Sep 16 10:32:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1718 29.8858 10.7737 684633601 684892801 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 :                                   547.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            711 sec.

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

