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


Performing analysis on: 4FGL_J0158.5-3932_daily_bin1713
RA = 29.646, Dec = -39.5358
tmin = 683337601, tmax = 683596801
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='2575', job_status='RUN', time_executed='2022-09-16 10:24:39.421602', time_epoch_executed='1663349079.42' WHERE source_name='4FGL J0158.5-3932' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2575/ft1_4FGL_J0158.5-3932_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2575/ft2_4FGL_J0158.5-3932_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2575/ft1_4FGL_J0158.5-3932_daily_bin1713.fits outfile=/scratch/kocevski/2575/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1713.fits ra=29.646 dec=-39.5358 rad=12.0 tmin=683337601.0 tmax=683596801.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.64
user 3.34
sys 0.21

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

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

Number of photons that the gtmktime cut: 423

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2575/ft1_filtered_4FGL_J0158.5-3932_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/2575/ft2_4FGL_J0158.5-3932_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/2575/ltcube_683337601_683596801_4FGL_J0158.5-3932_daily_bin1713.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/2575/ft2_4FGL_J0158.5-3932_daily_bin1713.fits
.....................!
real 16.50
user 16.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2575/ft1_filtered_4FGL_J0158.5-3932_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/2575/ft2_4FGL_J0158.5-3932_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/2575/ltcube_683337601_683596801_4FGL_J0158.5-3932_daily_bin1713.fits outfile=/scratch/kocevski/2575/expmap_683337601_683596801_4FGL_J0158.5-3932_daily_bin1713.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/2575/ltcube_683337601_683596801_4FGL_J0158.5-3932_daily_bin1713.fits
.....................!
real 192.81
user 186.82
sys 5.08

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/2575/ft1_filtered_4FGL_J0158.5-3932_daily_bin1713.fits scfile=/scratch/kocevski/2575/ft2_4FGL_J0158.5-3932_daily_bin1713.fits outfile=/scratch/kocevski/2575/cmap_683337601_683596801_4FGL_J0158.5-3932_daily_bin1713.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2575/ft1_filtered_4FGL_J0158.5-3932_daily_bin1713.fits scfile=/scratch/kocevski/2575/ft2_4FGL_J0158.5-3932_daily_bin1713.fits outfile=/scratch/kocevski/2575/cmap_HighResolution_683337601_683596801_4FGL_J0158.5-3932_daily_bin1713.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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2575/ft1_filtered_4FGL_J0158.5-3932_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/2575/ft2_4FGL_J0158.5-3932_daily_bin1713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2575/Model_4FGL_J0158.5-3932_daily_bin1713.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/2575/ft1_filtered_4FGL_J0158.5-3932_daily_bin1713.fits.....................!
real 92.16
user 90.45
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79676E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.684       1.0000          .0000       .10000E+07
     3 'Prefactor '    .88827       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.6717       1.0000          .0000       .10000E+07
     5 'norm      '    5.8141       1.0000          .0000       .10000E+07
     6 'Prefactor '    .27257E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .68142       1.0000          .0000       .10000E+07
     8 'norm      '    .66019E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .81112E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .29410E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    82.697       1.0000          .0000       .10000E+07
    12 'norm      '    3.0909       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.2655       1.0000          .0000       .10000E+07
    14 'Prefactor '    .19503E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    20.263       1.0000          .0000       .10000E+07
    16 'Prefactor '    .74320E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .17175       1.0000          .0000       .10000E+07
    18 'Normalizat'    .94011       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83338       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=   4653.322     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     1470 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0656        .59663E-08** at limit **
   2  Prefactor     19.884        24.726       -.76281E-07    .11731E-02
   3  Prefactor     .91280        2.6497        .19761E-07   -.21797E-02
   4  Prefactor     8.6988        7.3034        .20425E-07    .21285E-02
   5  norm          5.9248        5.3196        .10616E-06    .72074E-02
   6  Prefactor      .0000        7.0280        .48508E-07** at limit **
   7  Prefactor     .59952E-08    2659.2       -.24411E-04** at limit **
   8  norm          .11102E-09    2.7623       -.13681E-07** at limit **
   9  Prefactor      .0000        5.7049       -.51690E-08** at limit **
  10  Prefactor     .38858E-09    6.2344       -.62483E-07** at limit **
  11  Prefactor     82.990        54.652        .30654E-06   -.59038E-04
  12  norm          3.0911        2.3687       -.35379E-08   -.22752E-02
  13  Prefactor     4.2736        10.730        .77837E-07   -.39072E-03
  14  Prefactor     .11102E-09    8.0529       -.60156E-07** at limit **
  15  Prefactor     20.160        20.389       -.58064E-07   -.88797E-03
  16  Prefactor      .0000        2.5526       -.91048E-09** at limit **
  17  norm          .17101        .84336        .48412E-08** at limit **
  18  Normalizat    .94040        .19695        .76655E-06    .15901E-03
  19  Prefactor     .83284        .21958       -.52793E-06    .67046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 19.8842
  Prefactor  = 0.912804
  Prefactor  = 8.69875
  norm       = 5.92476
  Prefactor  = 0
  Prefactor  = 5.9952e-09
  norm       = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 82.9902
  norm       = 3.09106
  Prefactor  = 4.27356
  Prefactor  = 1.11022e-10
  Prefactor  = 20.1599
  Prefactor  = 0
  norm       = 0.171012
  Normalizat = 0.940399
  Prefactor  = 0.832842
 **********
 **   18 **HESSE 
 **********

 FCN=   4653.322     FROM HESSE     STATUS=OK           318 CALLS     1788 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.0429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.884        24.806        .22547E-03   -1.5619    
   3  Prefactor     .91280        2.6668        .46574E-03   -1.5689    
   4  Prefactor     8.6988        7.3881        .34015E-03   -1.5649    
   5  norm          5.9248        6.2988        .41628E-03   -1.5659    
   6  Prefactor      .0000        7.0726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .59952E-08    68.786        .86181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .11102E-09    1.1516        .24569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.7253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .38858E-09    6.2591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     82.990        54.503        .10997E-03   -1.5526    
  12  norm          3.0911        2.3765        .57660E-03   -1.5673    
  13  Prefactor     4.2736        11.042        .48760E-03   -1.5667    
  14  Prefactor     .11102E-09    8.0760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.160        20.442        .22222E-03   -1.5618    
  16  Prefactor      .0000        2.5434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .17101        .86245        .12302E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94040        .16772        .45412E-01   -.95055    
  19  Prefactor     .83284        .18539        .44150E-01   -.98529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17394e-07
Minuit parameter uncertainties:
  1  9.10739e-07
  2  24.8057
  3  2.66681
  4  7.38813
  5  6.29879
  6  2.79547e-05
  7  0.00128438
  8  2.40162e-05
  9  1.37072e-05
  10  0.000100122
  11  54.5034
  12  2.3765
  13  11.0424
  14  6.35354e-05
  15  20.4425
  16  4.61641e-06
  17  0.768085
  18  0.167811
  19  0.185525
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  0.000e+00  2.795e-05  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:  8.328e-01  1.855e-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.404e-01  1.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 29.646 -39.536
Photon Flux Upper Limit: 5.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2575/likelihoodResults_683337601_683596801_4FGL_J0158.5-3932_daily_bin1713.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) = 4653.32457009
delta logL = -0.0030493013428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4653.32152104
delta logL = -2.56703060586e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12600E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.2559       1.0000          .0000       10.000    
     3 'Normalizat'    .94038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83292       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4653.322     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      222 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.5462        .42118E-03** at limit **
   2  Index         1.0298        .73716        .75155E-05     .0000    
   3  Normalizat    .94040        1.2737       -.37987E-05   -.20368E-04
   4  Prefactor     .83284        1.1805        .45754E-05    .80159E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.02978
  Normalizat = 0.940398
  Prefactor  = 0.832843
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4653.322     FROM HESSE     STATUS=FAILED         9 CALLS      231 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.5462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .51295E-01    1.0970        .75155E-05   -.91743    
   3  Normalizat    .94040        1.2737       -.37987E-05   -.95055    
   4  Prefactor     .83284        1.1805        .45754E-05   -.98529    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.30074e-12
Minuit parameter uncertainties:
  1  6.25417e-06
  2  0.744588
  3  1.31854
  4  1.21975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2575': 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): 101
logL (Free Index) = 4653.32152079
delta logL = 1.81898940355e-11

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  0.000e+00  6.254e-06  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  1.030e+00  7.446e-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:  8.328e-01  1.220e+00  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.404e-01  1.319e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 29.646 -39.536

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/2575/cmap_HighResolution_683337601_683596801_4FGL_J0158.5-3932_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2022-09-16 10:33:39.240110', job_id='2575', GAL2='0.83', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1663349619.24', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.82e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1713' AND source_name='4FGL J0158.5-3932' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:33:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 2575: <4FGL_J0158.5-3932_daily_bin1713> in cluster <slac> Done

Job <4FGL_J0158.5-3932_daily_bin1713> 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) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:22:24 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:24 2022
Terminated at Fri Sep 16 10:33:40 2022
Results reported at Fri Sep 16 10:33:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0158.5-3932_daily_bin1713 29.646 -39.5358 683337601 683596801 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 :                                   541.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            762 sec.

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

