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


Performing analysis on: 4FGL_J0159.3-4523_daily_bin1714
RA = 29.8254, Dec = -45.3847
tmin = 683596801, tmax = 683856001
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='2598', job_status='RUN', time_executed='2022-09-16 10:22:39.006470', time_epoch_executed='1663348959.01' WHERE source_name='4FGL J0159.3-4523' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2598/ft1_4FGL_J0159.3-4523_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2598/ft2_4FGL_J0159.3-4523_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2598/ft1_4FGL_J0159.3-4523_daily_bin1714.fits outfile=/scratch/kocevski/2598/ft1_filteredMKT_4FGL_J0159.3-4523_daily_bin1714.fits ra=29.8254 dec=-45.3847 rad=12.0 tmin=683596801.0 tmax=683856001.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.62
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2598/ft2_4FGL_J0159.3-4523_daily_bin1714.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/2598/ft1_filteredMKT_4FGL_J0159.3-4523_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/2598/ft1_filtered_4FGL_J0159.3-4523_daily_bin1714.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 546

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2598/ft1_filtered_4FGL_J0159.3-4523_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/2598/ft2_4FGL_J0159.3-4523_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/2598/ltcube_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.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/2598/ft2_4FGL_J0159.3-4523_daily_bin1714.fits
.....................!
real 12.24
user 11.77
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2598/ft1_filtered_4FGL_J0159.3-4523_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/2598/ft2_4FGL_J0159.3-4523_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/2598/ltcube_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.fits outfile=/scratch/kocevski/2598/expmap_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.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/2598/ltcube_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.fits
.....................!
real 193.34
user 187.29
sys 5.69

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_8years/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/2598/ft1_filtered_4FGL_J0159.3-4523_daily_bin1714.fits scfile=/scratch/kocevski/2598/ft2_4FGL_J0159.3-4523_daily_bin1714.fits outfile=/scratch/kocevski/2598/cmap_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.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.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2598/ft1_filtered_4FGL_J0159.3-4523_daily_bin1714.fits scfile=/scratch/kocevski/2598/ft2_4FGL_J0159.3-4523_daily_bin1714.fits outfile=/scratch/kocevski/2598/cmap_HighResolution_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2598/ft1_filtered_4FGL_J0159.3-4523_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/2598/ft2_4FGL_J0159.3-4523_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2598/Model_4FGL_J0159.3-4523_daily_bin1714.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/2598/ft1_filtered_4FGL_J0159.3-4523_daily_bin1714.fits.....................!
real 113.66
user 111.96
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2598/ft1_filtered_4FGL_J0159.3-4523_daily_bin1714.fits', '/scratch/kocevski/2598/ft2_4FGL_J0159.3-4523_daily_bin1714.fits', expMap='/scratch/kocevski/2598/expmap_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.fits', expCube='/scratch/kocevski/2598/ltcube_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2598/Model_4FGL_J0159.3-4523_daily_bin1714.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  0.000e+00  1.000e+06 ( 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/2598/ft1_filtered_4FGL_J0159.3-4523_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/2598/ft2_4FGL_J0159.3-4523_daily_bin1714.fits
Exposure map: /scratch/kocevski/2598/expmap_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.fits
Exposure cube: /scratch/kocevski/2598/ltcube_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2598/Model_4FGL_J0159.3-4523_daily_bin1714.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) = 5880.05087618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.449       1.0000          .0000       .10000E+07
     2 'Prefactor '    16.175       1.0000          .0000       .10000E+07
     3 'Prefactor '    .75713E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    11.742       1.0000          .0000       .10000E+07
     5 'norm      '    .10643E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .53979E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .37316E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .53553E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.376       1.0000          .0000       .10000E+07
    10 'norm      '    2.6216       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20745E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    16.174       1.0000          .0000       .10000E+07
    13 'norm      '    2.8574       1.0000          .0000       .10000E+07
    14 'norm      '    2.0491       1.0000          .0000       .10000E+07
    15 'Prefactor '    15.866       1.0000          .0000       .10000E+07
    16 'Prefactor '    26.678       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.2295       1.0000          .0000       .10000E+07
    18 'norm      '    .21944E-06   1.0000          .0000       .10000E+07
    19 'Normalizat'    .90996       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99434       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5880.025     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1602 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.393        8.4796        .53065E-08    .11834E-01
   2  Prefactor     16.891        26.790       -.11419E-05    .20839E-01
   3  Prefactor     .43854E-08    6.6781        .61266E-06** at limit **
   4  Prefactor     11.653        8.7752       -.25694E-06    .73157E-02
   5  norm          .11147E-06    16.328        .28563E-06** at limit **
   6  norm           .0000        1.2788        .11163E-07** at limit **
   7  Prefactor     .75205E-05    7.2005       -.91641E-06** at limit **
   8  Prefactor     .13600E-07    4.7414       -.66846E-06** at limit **
   9  Prefactor     10.374        5.0721        .10670E-06    .15844E-02
  10  norm          2.6236        1.3909        .31279E-07    .25712E-03
  11  Prefactor     .39413E-08    9.8754       -.22320E-06** at limit **
  12  Prefactor     16.171        9.8896        .34265E-06    .16410    
  13  norm          2.8574        1.8548        .48013E-07    .84881E-03
  14  norm          2.0522        2.0254       -.69739E-07    .72886E-04
  15  Prefactor     15.914        10.596       -.11998E-06    .13170    
  16  Prefactor     26.662        3.7272        .12218E-06    .21549E-01
  17  Prefactor     1.8520        159.70       -.30446E-05    .13325E-01
  18  norm          .99920E-09    6.4970       -.12337E-05** at limit **
  19  Normalizat    .90915        .19062        .79003E-05   -.14890E-04
  20  Prefactor     .99508        .21061       -.73029E-05   -.34234E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.3935
  Prefactor  = 16.8913
  Prefactor  = 4.38538e-09
  Prefactor  = 11.653
  norm       = 1.11466e-07
  norm       = 0
  Prefactor  = 7.52054e-06
  Prefactor  = 1.36002e-08
  Prefactor  = 10.3737
  norm       = 2.62358
  Prefactor  = 3.94129e-09
  Prefactor  = 16.1709
  norm       = 2.85738
  norm       = 2.05218
  Prefactor  = 15.9145
  Prefactor  = 26.6616
  Prefactor  = 1.85202
  norm       = 9.99201e-10
  Normalizat = 0.909152
  Prefactor  = 0.995079
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.025     FROM HESSE     STATUS=OK           349 CALLS     1951 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.393        8.5030        .24668E-03   -1.5627    
   2  Prefactor     16.891        27.470        .24877E-03   -1.5626    
   3  Prefactor     .43854E-08    6.6041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.653        8.7893        .29210E-03   -1.5640    
   5  norm          .11147E-06    16.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.2793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .75205E-05    6.0201        .11605E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13600E-07    4.7606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.374        5.0718        .31081E-03   -1.5644    
  10  norm          2.6236        1.3953        .62963E-03   -1.5676    
  11  Prefactor     .39413E-08    9.8602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.171        15.485        .24877E-03   -1.5628    
  13  norm          2.8574        1.8595        .60116E-03   -1.5674    
  14  norm          2.0522        2.0676        .72191E-03   -1.5679    
  15  Prefactor     15.914        11.778        .25118E-03   -1.5628    
  16  Prefactor     26.662        22.557        .19364E-03   -1.5605    
  17  Prefactor     1.8520        204.23        .68825E-03   -1.5681    
  18  norm          .99920E-09    .41661        .27091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .90915        .16359        .45029E-01   -.96139    
  20  Prefactor     .99508        .17897        .46196E-01   -.92894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30096e-07
Minuit parameter uncertainties:
  1  8.50301
  2  27.4705
  3  0.000341165
  4  8.7893
  5  0.00271026
  6  1.13754e-05
  7  0.0134573
  8  0.000508916
  9  5.07183
  10  1.39527
  11  0.000394649
  12  15.4853
  13  1.85948
  14  2.06764
  15  11.7783
  16  22.5566
  17  38.8978
  18  4.0752e-05
  19  0.163681
  20  0.179074
Done.

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

Extracting fit parameters...

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  1.360e-08  5.089e-04  0.000e+00  1.000e+06 ( 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:  9.951e-01  1.791e-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:  9.092e-01  1.637e-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: 3.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2598/likelihoodResults_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.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) = 5880.02641722
delta logL = -0.00105023799097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5880.02536771
delta logL = -7.26279722585e-07

Fit tolerance = 1e-08

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

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

 FCN=   5880.025     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      307 TOTAL
                     EDM=   .43E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .42268E-02    .42118E-03** at limit **
   2  Index         3.7537        6.7850        .50000        .13642E-09
   3  Normalizat    .90915        .21701E-03    .45016E-01   -.52338E-03
   4  Prefactor     .99508        .24694E-03    .46209E-01   -.55837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 3.75365
  Normalizat = 0.909152
  Prefactor  = 0.995078
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.025     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      336 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .22787E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7537        5.5629        .50000       -.25193    
   3  Normalizat    .90915        .50332E-03    .22849E-03   -.96139    
   4  Prefactor     .99508        .57279E-03    .24834E-03   -.92894    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.32863e-13
Minuit parameter uncertainties:
  1  1.98125e-06
  2  9430.42
  3  0.000503324
  4  0.000572791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2598': 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) = 5880.02536698
delta logL = 1.2323653209e-09

Extracting fit parameters...

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  5.551e-11  1.981e-06  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  3.754e+00  9.430e+03  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:  9.951e-01  5.728e-04  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:  9.092e-01  5.033e-04  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/2598/cmap_HighResolution_683596801_683856001_4FGL_J0159.3-4523_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.88e-08', time_completed='2022-09-16 10:33:01.806902', job_id='2598', GAL2='1.00', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1663349581.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.23e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1714' AND source_name='4FGL J0159.3-4523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:33:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 2598: <4FGL_J0159.3-4523_daily_bin1714> in cluster <slac> Done

Job <4FGL_J0159.3-4523_daily_bin1714> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:21:00 2022
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:22:30 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:30 2022
Terminated at Fri Sep 16 10:33:02 2022
Results reported at Fri Sep 16 10:33:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.3-4523_daily_bin1714 29.8254 -45.3847 683596801 683856001 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 :                                   624.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            722 sec.

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

