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


Performing analysis on: 4FGL_J0158.5-3932_daily_bin1710
RA = 29.646, Dec = -39.5358
tmin = 682560001, tmax = 682819201
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='2572', job_status='RUN', time_executed='2022-09-16 10:26:06.079142', time_epoch_executed='1663349166.08' WHERE source_name='4FGL J0158.5-3932' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2572/ft1_4FGL_J0158.5-3932_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2572/ft1_4FGL_J0158.5-3932_daily_bin1710.fits outfile=/scratch/kocevski/2572/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1710.fits ra=29.646 dec=-39.5358 rad=12.0 tmin=682560001.0 tmax=682819201.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.68
user 3.43
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.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/2572/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/2572/ft1_filtered_4FGL_J0158.5-3932_daily_bin1710.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.51
user 0.36
sys 0.14

Number of photons that the gtmktime cut: 429

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2572/ft1_filtered_4FGL_J0158.5-3932_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/2572/ltcube_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.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/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.fits
.....................!
real 14.39
user 13.97
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2572/ft1_filtered_4FGL_J0158.5-3932_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/2572/ltcube_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.fits outfile=/scratch/kocevski/2572/expmap_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.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/2572/ltcube_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.fits
.....................!
real 191.87
user 186.76
sys 4.76

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 174 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 J0158.5-3932 @ 29.646 -39.5358

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/2572/ft1_filtered_4FGL_J0158.5-3932_daily_bin1710.fits scfile=/scratch/kocevski/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.fits outfile=/scratch/kocevski/2572/cmap_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.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.646 yref=-39.5358 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2572/ft1_filtered_4FGL_J0158.5-3932_daily_bin1710.fits scfile=/scratch/kocevski/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.fits outfile=/scratch/kocevski/2572/cmap_HighResolution_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.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.646 yref=-39.5358 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2572/ft1_filtered_4FGL_J0158.5-3932_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2572/Model_4FGL_J0158.5-3932_daily_bin1710.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/2572/ft1_filtered_4FGL_J0158.5-3932_daily_bin1710.fits.....................!
real 93.59
user 91.97
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2572/ft1_filtered_4FGL_J0158.5-3932_daily_bin1710.fits', '/scratch/kocevski/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.fits', expMap='/scratch/kocevski/2572/expmap_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.fits', expCube='/scratch/kocevski/2572/ltcube_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2572/Model_4FGL_J0158.5-3932_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0158.5-3932'

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  4.060e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.091e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/2572/ft1_filtered_4FGL_J0158.5-3932_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/2572/ft2_4FGL_J0158.5-3932_daily_bin1710.fits
Exposure map: /scratch/kocevski/2572/expmap_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.fits
Exposure cube: /scratch/kocevski/2572/ltcube_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2572/Model_4FGL_J0158.5-3932_daily_bin1710.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) = 4803.12001133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63042E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    71.147       1.0000          .0000       .10000E+07
     3 'Prefactor '    .59737E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .55685E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .13686E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    22.507       1.0000          .0000       .10000E+07
     7 'Prefactor '    82.118       1.0000          .0000       .10000E+07
     8 'norm      '    4.9626       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10728E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    20.356       1.0000          .0000       .10000E+07
    11 'Prefactor '    242.00       1.0000          .0000       .10000E+07
    12 'norm      '    4.7696       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.908       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14035E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    89.521       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.9339       1.0000          .0000       .10000E+07
    17 'norm      '    .18041E-06   1.0000          .0000       .10000E+07
    18 'Normalizat'    .94997       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0319       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4803.095     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1795 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    2.9267       -.26086E-06** at limit **
   2  Prefactor     71.627        40.913       -.81825E-05   -.19204    
   3  Prefactor     .55511E-10    3.1151        .21023E-07** at limit **
   4  Prefactor     .11102E-09    6.8705        .35331E-06** at limit **
   5  norm          .55511E-10    5.0150        .39730E-06** at limit **
   6  Prefactor     22.511        17.545        .48295E-05    .21377E-01
   7  Prefactor     83.036        40.169        .24362E-05    .50087E-01
   8  norm          4.9623        2.3558       -.27905E-06   -.12161E-01
   9  Prefactor     .94369E-09    5.3476       -.13032E-06** at limit **
  10  Prefactor     20.369        18.959        .68332E-05    .26054E-01
  11  Prefactor     243.90        85.757        .55157E-05   -.20052    
  12  norm          4.7651        3.6346        .46023E-06    .76518E-02
  13  Prefactor     11.877        12.427       -.47341E-06   -.26589E-02
  14  Prefactor     .68279E-08    19.658       -.14356E-05** at limit **
  15  Prefactor     90.648        48.400       -.34345E-05    .25597    
  16  Prefactor     4.9158        4.7244        .11052E-06    .73537E-02
  17  norm           .0000        1.2967       -.67069E-07** at limit **
  18  Normalizat    .94766        .25919        .14458E-04   -.23535E-03
  19  Prefactor     1.0327        .27380       -.12880E-04   -.17431E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 71.6273
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  norm       = 5.55112e-11
  Prefactor  = 22.5115
  Prefactor  = 83.0357
  norm       = 4.96226
  Prefactor  = 9.4369e-10
  Prefactor  = 20.3694
  Prefactor  = 243.902
  norm       = 4.76514
  Prefactor  = 11.8767
  Prefactor  = 6.82787e-09
  Prefactor  = 90.6483
  Prefactor  = 4.91576
  norm       = 0
  Normalizat = 0.947661
  Prefactor  = 1.03271
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.095     FROM HESSE     STATUS=OK           304 CALLS     2099 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    2.9182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     71.627        44.269        .11856E-03   -1.5539    
   3  Prefactor     .55511E-10    3.1019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    6.8557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    5.0027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.511        17.561        .21084E-03   -1.5613    
   7  Prefactor     83.036        40.132        .11036E-03   -1.5526    
   8  norm          4.9623        2.3556        .45122E-03   -1.5663    
   9  Prefactor     .94369E-09    5.3438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.369        18.964        .22171E-03   -1.5618    
  11  Prefactor     243.90        98.635        .64290E-04   -1.5396    
  12  norm          4.7651        3.6792        .46045E-03   -1.5664    
  13  Prefactor     11.877        12.434        .29004E-03   -1.5639    
  14  Prefactor     .68279E-08    19.634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     90.648        72.866        .10570E-03   -1.5518    
  16  Prefactor     4.9158        4.7297        .45256E-03   -1.5664    
  17  norm           .0000        1.2643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94766        .21444        .45537E-01   -.94805    
  19  Prefactor     1.0327        .22714        .62330E-01   -.91647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30149e-06
Minuit parameter uncertainties:
  1  1.80148e-05
  2  44.2695
  3  2.90958e-05
  4  5.75537e-05
  5  3.54723e-05
  6  17.561
  7  40.1325
  8  2.35557
  9  0.000140646
  10  18.9641
  11  98.6354
  12  3.67922
  13  12.4341
  14  0.000731144
  15  72.8663
  16  4.72969
  17  6.01833e-06
  18  0.214634
  19  0.227356
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  2.251e+01  1.756e+01  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.091e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.033e+00  2.274e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  9.477e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.34
Ra Dec: 29.646 -39.536
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.02e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 2.19e-05

TS (Fixed Index): 3.34
Ra Dec: 29.646 -39.536
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2572/likelihoodResults_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4803.06508712
delta logL = 0.0298937242533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4803.05456727
delta logL = 0.0404135673807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.847       1.0000          .0000       .10000E+07
     2 'Index     '    2.3065       1.0000          .0000       10.000    
     3 'Normalizat'    .92755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+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=   4803.055     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      255 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.838        21.078        .89816E-05    .16215E-02
   2  Index         2.3069        .82567        .67274E-02    .45060E-03
   3  Normalizat    .92757        .25661        .25940E-03    .22134E-03
   4  Prefactor     1.0464        .27794        .27405E-03    .13317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8381
  Index      = 2.30693
  Normalizat = 0.927574
  Prefactor  = 1.0464
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.055     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.838        19.547        .35927E-06   -1.5619    
   2  Index         2.3069        .76481        .13455E-02   -.56879    
   3  Normalizat    .92757        .25537        .51880E-04   -.95498    
   4  Prefactor     1.0464        .27726        .10962E-04   -.91198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45177e-10
Minuit parameter uncertainties:
  1  19.5467
  2  0.769071
  3  0.255707
  4  0.27764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2572': 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) = 4803.05456707
delta logL = 0.040413771555

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  1.984e+01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.307e+00  7.691e-01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.046e+00  2.776e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  9.276e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 29.646 -39.536
Photon Index (Free Index): 2.31 +/- 0.77
Photon Flux (Free Index): 6.52e-08 +/- 6.81e-08
Energy Flux (Free Index): 2.44e-05 +/- 2.05e-05

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/2572/cmap_HighResolution_682560001_682819201_4FGL_J0158.5-3932_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='5.02e-08', energy_flux2='2.44e-05', photon_flux_error='3.91e-08', dlogl='4.04e-02', energy_flux='2.81e-05', photon_flux2='6.52e-08', job_status='DONE', time_completed='2022-09-16 10:35:22.691495', photon_index_error2='0.77', photon_index2='2.31', ts='3.34', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='2.05e-05', EG='0.95', time_epoch_completed='1663349722.69', return_code='0', job_id='2572', GAL2='1.05', EG2='0.93', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='6.81e-08', ts2='3.41', photon_index='2.09' WHERE bin_id='1710' AND source_name='4FGL J0158.5-3932' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:35:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 2572: <4FGL_J0158.5-3932_daily_bin1710> in cluster <slac> Done

Job <4FGL_J0158.5-3932_daily_bin1710> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:20:58 2022
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:22:21 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:21 2022
Terminated at Fri Sep 16 10:35:23 2022
Results reported at Fri Sep 16 10:35:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0158.5-3932_daily_bin1710 29.646 -39.5358 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0158.5-3932 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   558.62 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            865 sec.

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

