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


Performing analysis on: 4FGL_J0158.5-3932_daily_bin1709
RA = 29.646, Dec = -39.5358
tmin = 682300801, tmax = 682560001
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='2571', job_status='RUN', time_executed='2022-09-16 10:23:21.620538', time_epoch_executed='1663349001.62' WHERE source_name='4FGL J0158.5-3932' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2571

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2571/ft1_4FGL_J0158.5-3932_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2571/ft2_4FGL_J0158.5-3932_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2571/ft1_4FGL_J0158.5-3932_daily_bin1709.fits outfile=/scratch/kocevski/2571/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1709.fits ra=29.646 dec=-39.5358 rad=12.0 tmin=682300801.0 tmax=682560001.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.78
user 3.53
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2571/ft2_4FGL_J0158.5-3932_daily_bin1709.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/2571/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/2571/ft1_filtered_4FGL_J0158.5-3932_daily_bin1709.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 377

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2571/ft1_filtered_4FGL_J0158.5-3932_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/2571/ft2_4FGL_J0158.5-3932_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/2571/ltcube_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.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/2571/ft2_4FGL_J0158.5-3932_daily_bin1709.fits
.....................!
real 16.37
user 15.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2571/ft1_filtered_4FGL_J0158.5-3932_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/2571/ft2_4FGL_J0158.5-3932_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/2571/ltcube_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.fits outfile=/scratch/kocevski/2571/expmap_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.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/2571/ltcube_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.fits
.....................!
real 193.28
user 186.44
sys 5.36

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/2571/ft1_filtered_4FGL_J0158.5-3932_daily_bin1709.fits scfile=/scratch/kocevski/2571/ft2_4FGL_J0158.5-3932_daily_bin1709.fits outfile=/scratch/kocevski/2571/cmap_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2571/ft1_filtered_4FGL_J0158.5-3932_daily_bin1709.fits scfile=/scratch/kocevski/2571/ft2_4FGL_J0158.5-3932_daily_bin1709.fits outfile=/scratch/kocevski/2571/cmap_HighResolution_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.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.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2571/ft1_filtered_4FGL_J0158.5-3932_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/2571/ft2_4FGL_J0158.5-3932_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2571/Model_4FGL_J0158.5-3932_daily_bin1709.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/2571/ft1_filtered_4FGL_J0158.5-3932_daily_bin1709.fits.....................!
real 83.07
user 81.57
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2571/ft1_filtered_4FGL_J0158.5-3932_daily_bin1709.fits', '/scratch/kocevski/2571/ft2_4FGL_J0158.5-3932_daily_bin1709.fits', expMap='/scratch/kocevski/2571/expmap_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.fits', expCube='/scratch/kocevski/2571/ltcube_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2571/Model_4FGL_J0158.5-3932_daily_bin1709.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/2571/ft1_filtered_4FGL_J0158.5-3932_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/2571/ft2_4FGL_J0158.5-3932_daily_bin1709.fits
Exposure map: /scratch/kocevski/2571/expmap_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.fits
Exposure cube: /scratch/kocevski/2571/ltcube_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2571/Model_4FGL_J0158.5-3932_daily_bin1709.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) = 4251.26319887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17947E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .75762E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13184E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .76862       1.0000          .0000       .10000E+07
     5 'norm      '    .20729E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    24.754       1.0000          .0000       .10000E+07
     7 'Prefactor '    .22789E-01   1.0000          .0000       .10000E+07
     8 'norm      '    1.2482       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21251E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.390       1.0000          .0000       .10000E+07
    11 'Prefactor '    119.89       1.0000          .0000       .10000E+07
    12 'norm      '    2.5283       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.7947       1.0000          .0000       .10000E+07
    14 'Prefactor '    .31300E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    50.128       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.7002       1.0000          .0000       .10000E+07
    17 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3789       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .57683       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=   4251.262     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     2295 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18169E-05    20.466        .22869E-06** at limit **
   2  Prefactor     .18263E-06    6.4276        .39626E-07** at limit **
   3  Prefactor     .72164E-09    2.3052       -.79319E-07** at limit **
   4  Prefactor     .75450        2.7355       -.76386E-07   -.15343E-02
   5  norm          .12990E-07    7.3362        .35275E-07** at limit **
   6  Prefactor     24.808        9.5915       -.10792E-07   -.51599E-01
   7  Prefactor     .97145E-08    82.720       -.52901E-06** at limit **
   8  norm          1.2492        1.5494        .31536E-07    .22386E-02
   9  Prefactor     .33307E-09    29.502        .53421E-06** at limit **
  10  Prefactor     10.623        1.9011       -.44204E-10   -.21487E-02
  11  Prefactor     119.98        12.375        .26596E-07   -.34852    
  12  norm          2.5285        2.7056       -.90771E-07   -.20516E-02
  13  Prefactor     2.7320        7.5038       -.31800E-07   -.20329E-01
  14  Prefactor     .46074E-08    16.167        .24582E-06** at limit **
  15  Prefactor     50.162        1.2490        .23753E-08   -.10503E-01
  16  Prefactor     2.6942        4.4804       -.19619E-06   -.18613E-02
  17  norm          .55511E-10    8.3007        .19248E-07** at limit **
  18  Normalizat    1.3789        .23397        .10862E-05    .19189E-03
  19  Prefactor     .57662        .24939        .28722E-05    .12289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81688e-06
  Prefactor  = 1.82632e-07
  Prefactor  = 7.21645e-10
  Prefactor  = 0.754504
  norm       = 1.29896e-08
  Prefactor  = 24.8081
  Prefactor  = 9.71445e-09
  norm       = 1.24919
  Prefactor  = 3.33067e-10
  Prefactor  = 10.6231
  Prefactor  = 119.984
  norm       = 2.52851
  Prefactor  = 2.73203
  Prefactor  = 4.60743e-09
  Prefactor  = 50.1621
  Prefactor  = 2.69418
  norm       = 5.55112e-11
  Normalizat = 1.37893
  Prefactor  = 0.57662
 **********
 **   18 **HESSE 
 **********

 FCN=   4251.262     FROM HESSE     STATUS=OK           326 CALLS     2621 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18169E-05    3.6570        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18263E-06    10.362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .72164E-09    2.3107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .75450        23.067        .55303E-03   -1.5691    
   5  norm          .12990E-07    10.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.808        14.821        .20104E-03   -1.5608    
   7  Prefactor     .97145E-08    79.659        .16860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2492        1.5858        .10012E-02   -1.5686    
   9  Prefactor     .33307E-09    20.244        .78250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.623        23.885        .31059E-03   -1.5643    
  11  Prefactor     119.98        72.443        .91335E-04   -1.5489    
  12  norm          2.5285        2.7362        .64213E-03   -1.5676    
  13  Prefactor     2.7320        20.003        .60834E-03   -1.5675    
  14  Prefactor     .46074E-08    17.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.162        45.758        .14125E-03   -1.5566    
  16  Prefactor     2.6942        4.5236        .61967E-03   -1.5675    
  17  norm          .55511E-10    .58277        .26260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3789        .20098        .45116E-01   -.81240    
  19  Prefactor     .57662        .21312        .71869E-01   -1.0858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65681e-06
Minuit parameter uncertainties:
  1  0.00515532
  2  0.00275127
  3  8.11349e-05
  4  8.34366
  5  0.000749977
  6  14.8213
  7  0.00175866
  8  1.58585
  9  0.000167428
  10  23.8856
  11  72.4438
  12  2.73622
  13  14.7851
  14  0.000570607
  15  45.7582
  16  4.52356
  17  1.24184e-05
  18  0.201098
  19  0.213415
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  2.481e+01  1.482e+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:  5.766e-01  2.134e-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:  1.379e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.40
Ra Dec: 29.646 -39.536
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 1.85e-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) = 4251.1638255
delta logL = 0.0985343543025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4251.16029915
delta logL = 0.102060703692

Fit tolerance = 1e-08

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

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

 FCN=   4251.160     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      260 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.747        277.59        .21956E-03    .12849E-02
   2  Index         2.3133        3.4928        .12461        .62115E-04
   3  Normalizat    1.3640        .12809        .31745E-01    .60966E-04
   4  Prefactor     .58596        .97841E-01    .71326E-01    .65981E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7473
  Index      = 2.31326
  Normalizat = 1.36396
  Prefactor  = 0.585955
 **********
 **   18 **HESSE 
 **********

 FCN=   4251.160     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.747        16.457        .87824E-05   -1.5617    
   2  Index         2.3133        .51961        .47656E-02   -.56729    
   3  Normalizat    1.3640        .23457        .20026E-03   -.81677    
   4  Prefactor     .58596        .25002        .31573E-03   -1.0818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01837e-09
Minuit parameter uncertainties:
  1  16.457
  2  0.520931
  3  0.234753
  4  0.250495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2571': 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) = 4251.16029589
delta logL = 0.102063966569

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  2.075e+01  1.646e+01  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.313e+00  5.209e-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:  5.860e-01  2.505e-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:  1.364e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.58
Ra Dec: 29.646 -39.536
Photon Index (Free Index): 2.31 +/- 0.52
Photon Flux (Free Index): 6.90e-08 +/- 4.94e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.75e-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/2571/cmap_HighResolution_682300801_682560001_4FGL_J0158.5-3932_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='2.56e-05', photon_flux_error='3.30e-08', dlogl='1.02e-01', energy_flux='3.10e-05', photon_flux2='6.90e-08', job_status='DONE', time_completed='2022-09-16 10:32:22.029484', photon_index_error2='0.52', photon_index2='2.31', ts='7.40', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.38', time_epoch_completed='1663349542.03', return_code='0', job_id='2571', GAL2='0.59', EG2='1.36', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='4.94e-08', ts2='7.58', photon_index='2.09' WHERE bin_id='1709' AND source_name='4FGL J0158.5-3932' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:32:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 2571: <4FGL_J0158.5-3932_daily_bin1709> in cluster <slac> Done

Job <4FGL_J0158.5-3932_daily_bin1709> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:20:57 2022
Job was executed on host(s) <bullet0113>, 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:32:22 2022
Results reported at Fri Sep 16 10:32:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0158.5-3932_daily_bin1709 29.646 -39.5358 682300801 682560001 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 :                                   539.28 sec.
    Max Memory :                                 792 MB
    Average Memory :                             324.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            685 sec.

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

