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 11 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1666
RA = 29.8858, Dec = 10.7737
tmin = 671155201, tmax = 671414401
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='405320', job_status='RUN', time_executed='2022-04-12 00:05:54.738956', time_epoch_executed='1649747154.74' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405320/ft1_4FGL_J0159.5+1046_daily_bin1666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405320/ft2_4FGL_J0159.5+1046_daily_bin1666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405320/ft1_4FGL_J0159.5+1046_daily_bin1666.fits outfile=/scratch/kocevski/405320/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1666.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=671155201.0 tmax=671414401.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 5.84
user 5.01
sys 0.26

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

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

Number of photons that the gtmktime cut: 668

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405320/ft1_filtered_4FGL_J0159.5+1046_daily_bin1666.fits" evtable="EVENTS" scfile=/scratch/kocevski/405320/ft2_4FGL_J0159.5+1046_daily_bin1666.fits sctable="SC_DATA" outfile=/scratch/kocevski/405320/ltcube_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.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/405320/ft2_4FGL_J0159.5+1046_daily_bin1666.fits
.....................!
real 11.95
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405320/ft1_filtered_4FGL_J0159.5+1046_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/405320/ft2_4FGL_J0159.5+1046_daily_bin1666.fits sctable="SC_DATA" expcube=/scratch/kocevski/405320/ltcube_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.fits outfile=/scratch/kocevski/405320/expmap_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.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/405320/ltcube_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.fits
.....................!
real 192.68
user 186.08
sys 5.46

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/405320/ft1_filtered_4FGL_J0159.5+1046_daily_bin1666.fits scfile=/scratch/kocevski/405320/ft2_4FGL_J0159.5+1046_daily_bin1666.fits outfile=/scratch/kocevski/405320/cmap_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.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 2.68
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405320/ft1_filtered_4FGL_J0159.5+1046_daily_bin1666.fits scfile=/scratch/kocevski/405320/ft2_4FGL_J0159.5+1046_daily_bin1666.fits outfile=/scratch/kocevski/405320/cmap_HighResolution_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.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 2.96
user 0.39
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405320/ft1_filtered_4FGL_J0159.5+1046_daily_bin1666.fits', '/scratch/kocevski/405320/ft2_4FGL_J0159.5+1046_daily_bin1666.fits', expMap='/scratch/kocevski/405320/expmap_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.fits', expCube='/scratch/kocevski/405320/ltcube_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405320/Model_4FGL_J0159.5+1046_daily_bin1666.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  1.000e-04  1.000e+04 ( 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/405320/ft1_filtered_4FGL_J0159.5+1046_daily_bin1666.fits
Spacecraft file(s): /scratch/kocevski/405320/ft2_4FGL_J0159.5+1046_daily_bin1666.fits
Exposure map: /scratch/kocevski/405320/expmap_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.fits
Exposure cube: /scratch/kocevski/405320/ltcube_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405320/Model_4FGL_J0159.5+1046_daily_bin1666.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) = 7530.39430551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17731E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10596E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0397       1.0000         .10000E-03   10000.    
     8 'norm      '    12.832       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2860       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46386E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10645E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2107       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.746       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .83727       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.917       1.0000         .10000E-03   10000.    
    22 'norm      '    .13045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    71.351       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4394       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1180       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.

 FCN=   7530.390     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2948 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.936       -.74539E-05** at limit **
   2  Prefactor     .10000E-03    16.050        .20600E-07** at limit **
   3  Prefactor     .10000E-03    4.8694        .70535E-07** at limit **
   4  Prefactor     .10000E-03    1.5203        .64350E-07** at limit **
   5  norm          .10000E-03    22.856        .17834E-05** at limit **
   6  Prefactor     .10000E-03    3.3805        .12745E-06** at limit **
   7  Prefactor     2.0397        2.7689       -.67974E-06    .62827E-04
   8  norm          12.830        6.5717        .10213E-06    .12275E-03
   9  Prefactor     1.2872        2.4233       -.15329E-05   -.15734E-03
  10  norm          1.4971        .80756       -.32113E-07    .51427E-04
  11  Prefactor     .10000E-03    131.19       -.29113E-04** at limit **
  12  Prefactor     .10000E-03    22.674        .17569E-05** at limit **
  13  Prefactor     .10000E-03    14.657       -.73949E-06** at limit **
  14  Prefactor     .10000E-03    21.014        .23595E-05** at limit **
  15  Prefactor     8.1888        12.468       -.11029E-05    .21176E-03
  16  Prefactor     .10000E-03    47.747       -.26101E-05** at limit **
  17  Prefactor     12.749        13.944        .94821E-06    .72020E-04
  18  Prefactor     .10000E-03    8.5204       -.36016E-06** at limit **
  19  norm          .83669        .68726       -.40181E-06   -.42895E-03
  20  Prefactor     .10000E-03    26.918       -.27499E-05** at limit **
  21  Prefactor     11.934        34.019       -.26985E-05   -.28388E-04
  22  norm          .10000E-03    9.7495       -.11192E-05** at limit **
  23  Prefactor     71.382        68.773       -.36480E-05    .21822E-04
  24  Normalizat    1.4393        .22109        .90016E-06    .13997E-03
  25  Prefactor     1.1180        .13659        .66891E-06    .23738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.03966
  norm       = 12.8298
  Prefactor  = 1.2872
  norm       = 1.49706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.18875
  Prefactor  = 0.0001
  Prefactor  = 12.7495
  Prefactor  = 0.0001
  norm       = 0.836691
  Prefactor  = 0.0001
  Prefactor  = 11.9344
  norm       = 0.0001
  Prefactor  = 71.3821
  Normalizat = 1.43933
  Prefactor  = 1.11801
 **********
 **   18 **HESSE 
 **********

 FCN=   7530.390     FROM HESSE     STATUS=OK           427 CALLS     3375 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.751        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5252        .10448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    23.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3905        .15578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0397        2.7551        .16152E-03   -1.5422    
   8  norm          12.830        6.5663        .11182E-03   -1.4991    
   9  Prefactor     1.2872        2.3806        .17622E-03   -1.5481    
  10  norm          1.4971        .81094        .55412E-04   -1.5463    
  11  Prefactor     .10000E-03    127.47        .69965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.1888        12.358        .13991E-03   -1.5136    
  16  Prefactor     .10000E-03    48.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.749        13.912        .11220E-03   -1.4994    
  18  Prefactor     .10000E-03    8.5178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .83669        .66149        .62891E-03   -1.5525    
  20  Prefactor     .10000E-03    26.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.934        34.049        .11604E-03   -1.5017    
  22  norm          .10000E-03    9.7899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     71.382        68.967        .47525E-04   -1.4016    
  24  Normalizat    1.4393        .24934        .32463E-03   -.79498    
  25  Prefactor     1.1180        .15492        .22164E-03   -.88893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43231e-10
Minuit parameter uncertainties:
  1  0.000189042
  2  8.23757e-06
  3  5.00315e-06
  4  2.86384e-06
  5  4.38536e-05
  6  4.58238e-06
  7  2.75532
  8  6.56663
  9  2.38073
  10  0.810943
  11  0.000268524
  12  6.05417e-05
  13  0.000159011
  14  7.72594e-05
  15  12.3615
  16  0.000130889
  17  13.9159
  18  0.000105721
  19  0.661492
  20  7.98716e-05
  21  34.1042
  22  5.89559e-05
  23  69.0446
  24  0.249552
  25  0.15498
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  4.582e-06  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.118e+00  1.550e-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.439e+00  2.496e-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: 7.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405320/likelihoodResults_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.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): 102
logL (Free Index) = 7530.39174492
delta logL = -0.00139992170534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7530.39034497
delta logL = 3.29810063704e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9814       1.0000          .0000       10.000    
     3 'Normalizat'    1.4394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1180       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=   7530.390     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    45.020        .15682E-02** at limit **
   2  Index         1.9364        5.7049        .50000        .23371E-04
   3  Normalizat    1.4393        .21796E-01    .32463E-03    .47277E-05
   4  Prefactor     1.1180        .13420E-01    .22164E-03    .73863E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100641
  Index      = 1.93645
  Normalizat = 1.43933
  Prefactor  = 1.11801
 **********
 **   18 **HESSE 
 **********

 FCN=   7530.390     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10064E-03    207.55        .31365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9364        7.4434        .50000       -.65949    
   3  Normalizat    1.4393        .49735E-01    .12985E-04   -.79498    
   4  Prefactor     1.1180        .30592E-01    .88656E-05   -.88893    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.83701e-08
Minuit parameter uncertainties:
  1  0.0231527
  2  591.797
  3  0.0497365
  4  0.0305923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405320': 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) = 7530.39034469
delta logL = 3.07013579004e-07

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.006e-04  2.315e-02  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.936e+00  5.918e+02  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.118e+00  3.059e-02  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.439e+00  4.974e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/405320/cmap_HighResolution_671155201_671414401_4FGL_J0159.5+1046_daily_bin1666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2022-04-12 00:20:08.895118', job_id='405320', GAL2='1.12', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1649748008.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1666' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Apr 12 00:20:08 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 405243: <4FGL_J0159.5+1046_daily_bin1666> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1666> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Apr 12 00:05:22 2022
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 00:05:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 00:05:24 2022
Terminated at Tue Apr 12 00:19:47 2022
Results reported at Tue Apr 12 00:19:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1666 29.8858 10.7737 671155201 671414401 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 :                                   778.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 405320: <4FGL_J0159.5+1046_daily_bin1666> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1666> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Apr 12 00:05:25 2022
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 00:05:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 00:05:27 2022
Terminated at Tue Apr 12 00:20:09 2022
Results reported at Tue Apr 12 00:20:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1666 29.8858 10.7737 671155201 671414401 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 :                                   782.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

