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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1742
RA = 29.8858, Dec = 10.7737
tmin = 690854401, tmax = 691113601
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='217377', job_status='RUN', time_executed='2022-11-26 00:11:48.922761', time_epoch_executed='1669450308.92' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217377/ft1_4FGL_J0159.5+1046_daily_bin1742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217377/ft2_4FGL_J0159.5+1046_daily_bin1742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217377/ft1_4FGL_J0159.5+1046_daily_bin1742.fits outfile=/scratch/kocevski/217377/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1742.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=690854401.0 tmax=691113601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.96
user 2.70
sys 0.21

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

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

Number of photons that the gtmktime cut: 177

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217377/ft1_filtered_4FGL_J0159.5+1046_daily_bin1742.fits" evtable="EVENTS" scfile=/scratch/kocevski/217377/ft2_4FGL_J0159.5+1046_daily_bin1742.fits sctable="SC_DATA" outfile=/scratch/kocevski/217377/ltcube_690854401_691113601_4FGL_J0159.5+1046_daily_bin1742.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/217377/ft2_4FGL_J0159.5+1046_daily_bin1742.fits
.....................!
real 18.15
user 17.68
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217377/ft1_filtered_4FGL_J0159.5+1046_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217377/ft2_4FGL_J0159.5+1046_daily_bin1742.fits sctable="SC_DATA" expcube=/scratch/kocevski/217377/ltcube_690854401_691113601_4FGL_J0159.5+1046_daily_bin1742.fits outfile=/scratch/kocevski/217377/expmap_690854401_691113601_4FGL_J0159.5+1046_daily_bin1742.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/217377/ltcube_690854401_691113601_4FGL_J0159.5+1046_daily_bin1742.fits
.....................!
real 193.83
user 187.27
sys 5.38

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/217377/ft1_filtered_4FGL_J0159.5+1046_daily_bin1742.fits scfile=/scratch/kocevski/217377/ft2_4FGL_J0159.5+1046_daily_bin1742.fits outfile=/scratch/kocevski/217377/cmap_690854401_691113601_4FGL_J0159.5+1046_daily_bin1742.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217377/ft1_filtered_4FGL_J0159.5+1046_daily_bin1742.fits scfile=/scratch/kocevski/217377/ft2_4FGL_J0159.5+1046_daily_bin1742.fits outfile=/scratch/kocevski/217377/cmap_HighResolution_690854401_691113601_4FGL_J0159.5+1046_daily_bin1742.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2053.5133458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.579       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21443E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .92800E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9993       1.0000          .0000       .10000E+07
     5 'norm      '    .29236E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    13.168       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.3650       1.0000          .0000       .10000E+07
     8 'norm      '    .46777E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.3522       1.0000          .0000       .10000E+07
    10 'norm      '    .84109       1.0000          .0000       .10000E+07
    11 'Prefactor '    70.032       1.0000          .0000       .10000E+07
    12 'Prefactor '    71.175       1.0000          .0000       .10000E+07
    13 'Prefactor '    36.010       1.0000          .0000       .10000E+07
    14 'Prefactor '    75.730       1.0000          .0000       .10000E+07
    15 'Prefactor '    .34597E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .41504E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .26712E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .98610E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.720       1.0000          .0000       .10000E+07
    20 'norm      '    .75610E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .22941       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4640       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .53672       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=   2053.481     FROM MIGRAD    STATUS=CONVERGED    267 CALLS     1940 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.429        22.241        .10193E-05   -.19187E-02
   2  Prefactor     .40523E-08    35.161       -.40798E-05** at limit **
   3  Prefactor     .55511E-10    14.504        .11972E-06** at limit **
   4  Prefactor     4.0096        4.8409       -.20854E-06    .58485E-03
   5  norm          .55511E-10    10.758        .53175E-06** at limit **
   6  Prefactor     13.312        12.403        .51372E-06   -.99860E-03
   7  Prefactor     7.4078        8.2049        .11425E-05   -.34785E-02
   8  norm          .51625E-08    35.181        .59917E-05** at limit **
   9  Prefactor     6.0110        6.2305        .11813E-05   -.14475E-02
  10  norm          .84077        1.2415       -.10928E-06    .17521E-02
  11  Prefactor     65.081        65.012        .16252E-05    .49202E-03
  12  Prefactor     68.423        162.82        .10069E-04   -.95854E-04
  13  Prefactor     114.79        351.68       -.13365E-04   -.78263E-04
  14  Prefactor     75.298        51.151        .19080E-05   -.19080E-02
  15  Prefactor     .33862E-08    73.222        .38158E-05** at limit **
  16  Prefactor     .13878E-08    46.793        .68841E-05** at limit **
  17  norm           .0000        1.0636       -.52503E-07** at limit **
  18  Prefactor     .11768E-07    119.55       -.65282E-05** at limit **
  19  Prefactor     23.334        132.01       -.42520E-04    .99939E-03
  20  norm          .55511E-10    24.537        .13020E-05** at limit **
  21  Prefactor     .88818E-09    142.07       -.17863E-05** at limit **
  22  Normalizat    1.4621        .37596       -.66343E-05   -.18629E-03
  23  Prefactor     .53359        .23060        .18722E-04   -.15622E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4286
  Prefactor  = 4.05231e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 4.00959
  norm       = 5.55112e-11
  Prefactor  = 13.3119
  Prefactor  = 7.40776
  norm       = 5.16254e-09
  Prefactor  = 6.01096
  norm       = 0.840774
  Prefactor  = 65.0808
  Prefactor  = 68.4231
  Prefactor  = 114.787
  Prefactor  = 75.2977
  Prefactor  = 3.38618e-09
  Prefactor  = 1.38778e-09
  norm       = 0
  Prefactor  = 1.17684e-08
  Prefactor  = 23.3338
  norm       = 5.55112e-11
  Prefactor  = 8.88178e-10
  Normalizat = 1.46211
  Prefactor  = 0.533587
 **********
 **   18 **HESSE 
 **********

 FCN=   2053.481     FROM HESSE     STATUS=OK           416 CALLS     2356 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.429        22.183        .18390E-03   -1.5599    
   2  Prefactor     .40523E-08    35.092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    14.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0096        4.8437        .50406E-03   -1.5668    
   5  norm          .55511E-10    10.759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.312        12.391        .27577E-03   -1.5635    
   7  Prefactor     7.4078        8.1776        .36934E-03   -1.5654    
   8  norm          .51625E-08    34.905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0110        6.2140        .39801E-03   -1.5659    
  10  norm          .84077        1.2487        .49921E-03   -1.5690    
  11  Prefactor     65.081        64.727        .11950E-03   -1.5547    
  12  Prefactor     68.423        160.96        .11854E-03   -1.5543    
  13  Prefactor     114.79        347.94        .16666E-03   -1.5494    
  14  Prefactor     75.298        51.024        .11492E-03   -1.5534    
  15  Prefactor     .33862E-08    73.140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .13878E-08    46.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.0652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11768E-07    119.01        .13967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.334        131.94        .24467E-03   -1.5611    
  20  norm          .55511E-10    24.203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .88818E-09    141.68        .11274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4621        .33326        .57863E-01   -.78849    
  23  Prefactor     .53359        .20547        .40184E-01   -1.1046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32552e-09
Minuit parameter uncertainties:
  1  22.183
  2  0.000755419
  3  4.55234e-05
  4  4.84374
  5  4.01121e-05
  6  12.3913
  7  8.17765
  8  0.000846922
  9  6.21396
  10  1.24873
  11  64.7277
  12  160.97
  13  348.004
  14  51.0239
  15  0.000991488
  16  0.000502281
  17  6.2136e-06
  18  0.00236881
  19  110.974
  20  8.89131e-05
  21  0.000718947
  22  0.333763
  23  0.205757
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.331e+01  1.239e+01  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:  5.336e-01  2.058e-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.462e+00  3.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.52
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 6.18e-08 +/- 5.75e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 4.03e-05

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) = 2052.25300918
delta logL = 1.2280163961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2052.20303933
delta logL = 1.27798624514

Fit tolerance = 1e-08

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

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

 FCN=   2052.203     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      210 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7726        9.6414        .33783E-03   -.52945E-03
   2  Index         .88242        .49955        .16139       -.12827E-04
   3  Normalizat    1.4889        .32729        .57461E-01    .32933E-06
   4  Prefactor     .53263        .20038        .40127E-01    .79551E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.77264
  Index      = 0.882425
  Normalizat = 1.48891
  Prefactor  = 0.532626
 **********
 **   18 **HESSE 
 **********

 FCN=   2052.203     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7726        12.890        .13089E-04   -1.5649    
   2  Index         .88242        .66631        .71187E-03   -.96758    
   3  Normalizat    1.4889        .36700        .25407E-03   -.78091    
   4  Prefactor     .53263        .22467        .24572E-03   -1.1050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01572e-14
Minuit parameter uncertainties:
  1  12.8904
  2  0.672593
  3  0.367654
  4  0.22505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217377': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2052.20303837
delta logL = 1.27798720583

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  5.326e-01  2.250e-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.489e+00  3.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.07
Ra Dec: 29.886 10.774
Photon Index (Free Index): 0.88 +/- 0.67
Photon Flux (Free Index): 1.41e-08 +/- 1.58e-08
Energy Flux (Free Index): 2.67e-04 +/- 3.59e-04

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/217377/cmap_HighResolution_690854401_691113601_4FGL_J0159.5+1046_daily_bin1742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.18e-08', energy_flux2='2.67e-04', photon_flux_error='5.75e-08', dlogl='1.28e+00', energy_flux='4.33e-05', photon_flux2='1.41e-08', job_status='DONE', time_completed='2022-11-26 00:18:35.430302', photon_index_error2='0.67', photon_index2='0.88', ts='10.52', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='3.59e-04', EG='1.46', time_epoch_completed='1669450715.43', return_code='0', job_id='217377', GAL2='0.53', EG2='1.49', return_code2='0', energy_flux_error='4.03e-05', photon_flux_error2='1.58e-08', ts2='13.07', photon_index='1.99' WHERE bin_id='1742' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov 26 00:18:35 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 217377: <4FGL_J0159.5+1046_daily_bin1742> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1742> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Nov 26 00:04:57 2022
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov 26 00:11:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov 26 00:11:06 2022
Terminated at Sat Nov 26 00:18:36 2022
Results reported at Sat Nov 26 00:18:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1742 29.8858 10.7737 690854401 691113601 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 :                                   408.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   449 sec.
    Turnaround time :                            819 sec.

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

