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


Performing analysis on: 4FGL_J0159.3-4523_daily_bin1679
RA = 29.8254, Dec = -45.3847
tmin = 674524801, tmax = 674784001
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='424780', job_status='RUN', time_executed='2022-05-21 00:08:42.321784', time_epoch_executed='1653116922.32' WHERE source_name='4FGL J0159.3-4523' and cadence='daily' and bin_id='1679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424780/ft1_4FGL_J0159.3-4523_daily_bin1679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424780/ft1_4FGL_J0159.3-4523_daily_bin1679.fits outfile=/scratch/kocevski/424780/ft1_filteredMKT_4FGL_J0159.3-4523_daily_bin1679.fits ra=29.8254 dec=-45.3847 rad=12.0 tmin=674524801.0 tmax=674784001.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.65
user 3.36
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.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/424780/ft1_filteredMKT_4FGL_J0159.3-4523_daily_bin1679.fits evtable="EVENTS" outfile="/scratch/kocevski/424780/ft1_filtered_4FGL_J0159.3-4523_daily_bin1679.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.35
sys 0.15

Number of photons that the gtmktime cut: 564

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424780/ft1_filtered_4FGL_J0159.3-4523_daily_bin1679.fits" evtable="EVENTS" scfile=/scratch/kocevski/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.fits sctable="SC_DATA" outfile=/scratch/kocevski/424780/ltcube_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.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/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.fits
.....................!
real 18.42
user 17.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424780/ft1_filtered_4FGL_J0159.3-4523_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.fits sctable="SC_DATA" expcube=/scratch/kocevski/424780/ltcube_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.fits outfile=/scratch/kocevski/424780/expmap_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.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/424780/ltcube_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.fits
.....................!
real 191.52
user 185.97
sys 4.91

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 183 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0159.3-4523 @ 29.8254 -45.3847

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/424780/ft1_filtered_4FGL_J0159.3-4523_daily_bin1679.fits scfile=/scratch/kocevski/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.fits outfile=/scratch/kocevski/424780/cmap_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.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.8254 yref=-45.3847 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424780/ft1_filtered_4FGL_J0159.3-4523_daily_bin1679.fits scfile=/scratch/kocevski/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.fits outfile=/scratch/kocevski/424780/cmap_HighResolution_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.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.8254 yref=-45.3847 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/424780/ft1_filtered_4FGL_J0159.3-4523_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/424780/Model_4FGL_J0159.3-4523_daily_bin1679.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/424780/ft1_filtered_4FGL_J0159.3-4523_daily_bin1679.fits.....................!
real 119.26
user 116.06
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/424780/ft1_filtered_4FGL_J0159.3-4523_daily_bin1679.fits', '/scratch/kocevski/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.fits', expMap='/scratch/kocevski/424780/expmap_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.fits', expCube='/scratch/kocevski/424780/ltcube_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/424780/Model_4FGL_J0159.3-4523_daily_bin1679.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.3-4523'

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  3.419e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.729e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  7.560e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/424780/ft1_filtered_4FGL_J0159.3-4523_daily_bin1679.fits
Spacecraft file(s): /scratch/kocevski/424780/ft2_4FGL_J0159.3-4523_daily_bin1679.fits
Exposure map: /scratch/kocevski/424780/expmap_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.fits
Exposure cube: /scratch/kocevski/424780/ltcube_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/424780/Model_4FGL_J0159.3-4523_daily_bin1679.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) = 6138.48383077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.399       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.741       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    32.095       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3096       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4687       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7705       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2154       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25857E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0043       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2852       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1359       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2056       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.090       1.0000         .10000E-03   10000.    
    20 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0445       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6138.471     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2379 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.602        .22830E-05** at limit **
   2  Prefactor     .10000E-03    33.790       -.31633E-05** at limit **
   3  norm          11.399        7.8223       -.10096E-05    .13339E-03
   4  Prefactor     12.728        21.210       -.29366E-05    .70190E-04
   5  Prefactor     4.3032        3.1186       -.13047E-07   -.81958E-04
   6  Prefactor     .10000E-03    5.5282       -.10058E-06** at limit **
   7  norm          32.100        31.724        .29124E-05   -.96297E-04
   8  norm          3.3094        3.9335       -.25396E-06   -.25037E-03
   9  Prefactor     2.4683        4.9939       -.11911E-05   -.28080E-03
  10  Prefactor     .10000E-03    36.898        .67850E-05** at limit **
  11  Prefactor     7.7704        4.4875        .77073E-07    .19744E-04
  12  norm          2.2155        1.5131       -.11230E-06   -.14598E-03
  13  Prefactor     .10003E-03    7.4954       -.41506E-05** at limit **
  14  Prefactor     7.0536        9.3866        .43205E-05    .93304E-03
  15  norm          2.2850        1.7406       -.92803E-07   -.16943E-03
  16  norm          4.1353        2.4159        .21032E-06   -.54962E-04
  17  Prefactor     2.2090        6.4422       -.14633E-05   -.26305E-03
  18  Prefactor     .10000E-03    67.618        .27810E-06** at limit **
  19  Prefactor     12.072        31.320       -.18015E-04    .24709E-03
  20  norm          .10000E-03    .31210       -.50608E-07** at limit **
  21  Normalizat    1.0445        .14702        .84112E-06    .36949E-03
  22  Prefactor     .75893        .16114        .83713E-06    .26206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3989
  Prefactor  = 12.7282
  Prefactor  = 4.30321
  Prefactor  = 0.0001
  norm       = 32.0998
  norm       = 3.3094
  Prefactor  = 2.46833
  Prefactor  = 0.000100001
  Prefactor  = 7.77036
  norm       = 2.21547
  Prefactor  = 0.000100027
  Prefactor  = 7.05364
  norm       = 2.285
  norm       = 4.13529
  Prefactor  = 2.20895
  Prefactor  = 0.0001
  Prefactor  = 12.0718
  norm       = 0.0001
  Normalizat = 1.04453
  Prefactor  = 0.758935
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.471     FROM HESSE     STATUS=OK           346 CALLS     2725 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.399        7.8246        .11866E-03   -1.5033    
   4  Prefactor     12.728        21.210        .11222E-03   -1.4994    
   5  Prefactor     4.3032        3.1145        .11299E-03   -1.5293    
   6  Prefactor     .10000E-03    5.6355        .17973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          32.100        31.665        .70728E-04   -1.4574    
   8  norm          3.3094        3.9245        .16314E-03   -1.5344    
   9  Prefactor     2.4683        5.0021        .24373E-03   -1.5394    
  10  Prefactor     .10000E-03    36.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7704        4.4815        .11848E-03   -1.5150    
  12  norm          2.2155        1.5034        .72963E-04   -1.5410    
  13  Prefactor     .10003E-03    33.488        .36987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0536        8.9157        .15158E-03   -1.5177    
  15  norm          2.2850        1.7368        .87378E-04   -1.5406    
  16  norm          4.1353        2.4100        .88727E-04   -1.5301    
  17  Prefactor     2.2090        6.4442        .27700E-03   -1.5411    
  18  Prefactor     .10000E-03    68.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.072        30.546        .11521E-03   -1.5013    
  20  norm          .10000E-03    .42573        .84767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0445        .16901        .20465E-03   -.91553    
  22  Prefactor     .75893        .18472        .26170E-03   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47571e-09
Minuit parameter uncertainties:
  1  0.000131189
  2  0.000162154
  3  7.82528
  4  21.2223
  5  3.11461
  6  1.94078e-06
  7  31.6816
  8  3.92484
  9  5.00292
  10  0.000458947
  11  4.48165
  12  1.50344
  13  0.00191369
  14  8.91737
  15  1.73683
  16  2.41007
  17  6.44625
  18  0.000110893
  19  30.5852
  20  4.11946e-07
  21  0.169093
  22  0.184871
Done.

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

Extracting fit parameters...

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.589e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.729e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  7.560e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  7.589e-01  1.849e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.045e+00  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.825 -45.385
Photon Flux Upper Limit: 8.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424780/likelihoodResults_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.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) = 6138.47145256
delta logL = -0.000128809994749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6138.47132401
delta logL = -2.62677531282e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6570       1.0000          .0000       10.000    
     3 'Normalizat'    1.0445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75894       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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=   6138.471     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      272 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6680.9        .18142E-02** at limit **
   2  Index         2.7075        8.6457        .50000       -.16617E-04
   3  Normalizat    1.0445        .44845E-01    .20465E-03   -.20055E-04
   4  Prefactor     .75893        .49852E-01    .26170E-03    .28237E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.70751
  Normalizat = 1.04453
  Prefactor  = 0.758935
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.471     FROM HESSE     STATUS=OK            29 CALLS      301 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    69.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7075        6.2177        .50000       -.47630    
   3  Normalizat    1.0445        .16437        .81858E-05   -.91553    
   4  Prefactor     .75893        .18274        .10468E-04   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23879e-10
Minuit parameter uncertainties:
  1  0.00165428
  2  6.33627
  3  0.164451
  4  0.182884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424780': 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) = 6138.47132383
delta logL = -8.14952727524e-08

Extracting fit parameters...

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.654e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.708e+00  6.336e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  7.560e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  7.589e-01  1.829e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.045e+00  1.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.825 -45.385

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/424780/cmap_HighResolution_674524801_674784001_4FGL_J0159.3-4523_daily_bin1679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2022-05-21 00:20:44.458332', job_id='424780', GAL2='0.76', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1653117644.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='-8.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1679' AND source_name='4FGL J0159.3-4523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 21 00:20:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0145>
Subject: Job 424780: <4FGL_J0159.3-4523_daily_bin1679> in cluster <slac> Done

Job <4FGL_J0159.3-4523_daily_bin1679> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat May 21 00:05:12 2022
Job was executed on host(s) <bullet0145>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat May 21 00:08:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat May 21 00:08:05 2022
Terminated at Sat May 21 00:20:44 2022
Results reported at Sat May 21 00:20:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.3-4523_daily_bin1679 29.8254 -45.3847 674524801 674784001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.3-4523 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   719.84 sec.
    Max Memory :                                 642 MB
    Average Memory :                             339.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2943 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            932 sec.

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

