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


Performing analysis on: 4FGL_J0158.5-3932_daily_bin1719
RA = 29.646, Dec = -39.5358
tmin = 684892801, tmax = 685152001
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='644134', job_status='RUN', time_executed='2022-09-18 00:08:48.824766', time_epoch_executed='1663484928.82' WHERE source_name='4FGL J0158.5-3932' and cadence='daily' and bin_id='1719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644134

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644134/ft1_4FGL_J0158.5-3932_daily_bin1719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644134/ft2_4FGL_J0158.5-3932_daily_bin1719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644134/ft1_4FGL_J0158.5-3932_daily_bin1719.fits outfile=/scratch/kocevski/644134/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1719.fits ra=29.646 dec=-39.5358 rad=12.0 tmin=684892801.0 tmax=685152001.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.15
user 2.90
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644134/ft2_4FGL_J0158.5-3932_daily_bin1719.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/644134/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1719.fits evtable="EVENTS" outfile="/scratch/kocevski/644134/ft1_filtered_4FGL_J0158.5-3932_daily_bin1719.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.32
sys 0.18

Number of photons that the gtmktime cut: 196

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644134/ft1_filtered_4FGL_J0158.5-3932_daily_bin1719.fits" evtable="EVENTS" scfile=/scratch/kocevski/644134/ft2_4FGL_J0158.5-3932_daily_bin1719.fits sctable="SC_DATA" outfile=/scratch/kocevski/644134/ltcube_684892801_685152001_4FGL_J0158.5-3932_daily_bin1719.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/644134/ft2_4FGL_J0158.5-3932_daily_bin1719.fits
.....................!
real 14.50
user 14.04
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644134/ft1_filtered_4FGL_J0158.5-3932_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/644134/ft2_4FGL_J0158.5-3932_daily_bin1719.fits sctable="SC_DATA" expcube=/scratch/kocevski/644134/ltcube_684892801_685152001_4FGL_J0158.5-3932_daily_bin1719.fits outfile=/scratch/kocevski/644134/expmap_684892801_685152001_4FGL_J0158.5-3932_daily_bin1719.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/644134/ltcube_684892801_685152001_4FGL_J0158.5-3932_daily_bin1719.fits
.....................!
real 193.72
user 187.24
sys 6.02

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/644134/ft1_filtered_4FGL_J0158.5-3932_daily_bin1719.fits scfile=/scratch/kocevski/644134/ft2_4FGL_J0158.5-3932_daily_bin1719.fits outfile=/scratch/kocevski/644134/cmap_684892801_685152001_4FGL_J0158.5-3932_daily_bin1719.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644134/ft1_filtered_4FGL_J0158.5-3932_daily_bin1719.fits scfile=/scratch/kocevski/644134/ft2_4FGL_J0158.5-3932_daily_bin1719.fits outfile=/scratch/kocevski/644134/cmap_HighResolution_684892801_685152001_4FGL_J0158.5-3932_daily_bin1719.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.55
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644134/ft1_filtered_4FGL_J0158.5-3932_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/644134/ft2_4FGL_J0158.5-3932_daily_bin1719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644134/Model_4FGL_J0158.5-3932_daily_bin1719.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/644134/ft1_filtered_4FGL_J0158.5-3932_daily_bin1719.fits......................!
real 51.72
user 50.30
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31521E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .52665E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    27.880       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87810E-02   1.0000          .0000       .10000E+07
     5 'norm      '    1.5444       1.0000          .0000       .10000E+07
     6 'Prefactor '    .62370E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    50.968       1.0000          .0000       .10000E+07
     8 'norm      '    2.7222       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44645E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21122E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21786E-03   1.0000          .0000       .10000E+07
    12 'norm      '    3.1119       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.532       1.0000          .0000       .10000E+07
    14 'Prefactor '    .43433E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    71.471       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10287E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .36111E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1472       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93575       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=   2227.359     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1463 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    6.4775       -.41329E-06** at limit **
   2  Prefactor     .19995E-06    52.846       -.14176E-05** at limit **
   3  Prefactor     27.912        13.882        .46327E-07   -.24657E-01
   4  Prefactor     .11657E-08    11.565        .20646E-06** at limit **
   5  norm          1.6339        14.142       -.28018E-05    .24912E-02
   6  Prefactor     .27756E-09    31.432       -.48914E-06** at limit **
   7  Prefactor     50.203        9.8932       -.28330E-07   -.73750E-01
   8  norm          2.7206        2.3054        .24048E-06   -.21886E-02
   9  Prefactor     .29110E-06    29.293        .10057E-05** at limit **
  10  Prefactor     .17264E-07    15.375        .65899E-06** at limit **
  11  Prefactor     .13445E-04    135.71       -.10137E-05** at limit **
  12  norm          3.1098        4.2365        .37296E-06   -.23554E-02
  13  Prefactor     11.511        9.6125       -.15290E-06   -.24805E-01
  14  Prefactor     .47845E-06    30.860       -.13086E-05** at limit **
  15  Prefactor     73.010        21.425        .20679E-06   -.15818    
  16  Prefactor     .11102E-09    2.1477        .42607E-06** at limit **
  17  norm           .0000        4.8301        .59301E-06** at limit **
  18  Normalizat    1.1474        .37023        .47962E-05    .97384E-04
  19  Prefactor     .93490        .40395       -.91940E-05    .75250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 1.99951e-07
  Prefactor  = 27.912
  Prefactor  = 1.16573e-09
  norm       = 1.63385
  Prefactor  = 2.77556e-10
  Prefactor  = 50.2026
  norm       = 2.7206
  Prefactor  = 2.911e-07
  Prefactor  = 1.7264e-08
  Prefactor  = 1.34448e-05
  norm       = 3.10975
  Prefactor  = 11.5111
  Prefactor  = 4.78451e-07
  Prefactor  = 73.0097
  Prefactor  = 1.11022e-10
  norm       = 0
  Normalizat = 1.14741
  Prefactor  = 0.934897
 **********
 **   18 **HESSE 
 **********

 FCN=   2227.359     FROM HESSE     STATUS=OK           308 CALLS     1771 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    6.4824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .19995E-06    53.034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.912        16.897        .18942E-03   -1.5602    
   4  Prefactor     .11657E-08    11.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6339        18.761        .85728E-03   -1.5682    
   6  Prefactor     .27756E-09    30.272        .15078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.203        56.021        .14008E-03   -1.5566    
   8  norm          2.7206        2.3097        .61697E-03   -1.5675    
   9  Prefactor     .29110E-06    29.732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .17264E-07    15.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13445E-04    155.17        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1098        4.2793        .57455E-03   -1.5673    
  13  Prefactor     11.511        17.866        .29476E-03   -1.5640    
  14  Prefactor     .47845E-06    31.259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     73.010        65.180        .11829E-03   -1.5537    
  16  Prefactor     .11102E-09    2.1509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.3289        .29023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1474        .31913        .54538E-01   -.88244    
  19  Prefactor     .93490        .33710        .45459E-01   -.94932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99827e-06
Minuit parameter uncertainties:
  1  8.64297e-05
  2  0.00651266
  3  16.8975
  4  0.000235877
  5  11.0731
  6  0.000175395
  7  56.0217
  8  2.30968
  9  0.00588372
  10  0.00103897
  11  0.0913529
  12  4.27926
  13  17.8658
  14  0.00773475
  15  65.1802
  16  2.68587e-05
  17  7.96648e-06
  18  0.319668
  19  0.337853
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  2.776e-10  1.754e-04  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:  9.349e-01  3.379e-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.147e+00  3.197e-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: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644134/likelihoodResults_684892801_685152001_4FGL_J0158.5-3932_daily_bin1719.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) = 2227.37489698
delta logL = -0.0161519055855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2227.33451627
delta logL = 0.0242287999331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54890       1.0000          .0000       .10000E+07
     2 'Index     '    3.3778       1.0000          .0000       10.000    
     3 'Normalizat'    1.1302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94458       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=   2227.335     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54708        110.04        .73936E-03    .56796E-02
   2  Index         3.3807        6.6727        .21365        .22512E-04
   3  Normalizat    1.1301        .47623E-01    .54888E-01    .25116E-05
   4  Prefactor     .94476        .51473E-01    .45571E-01    .50499E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.54708
  Index      = 3.38067
  Normalizat = 1.1301
  Prefactor  = 0.944765
 **********
 **   18 **HESSE 
 **********

 FCN=   2227.335     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54708        32.985        .15830E-04   -1.5693    
   2  Index         3.3807        6.6341        .10258E-01   -.32981    
   3  Normalizat    1.1301        .37557        .24271E-03   -.88791    
   4  Prefactor     .94476        .40227        .28479E-03   -.94594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55359e-11
Minuit parameter uncertainties:
  1  8.496
  2  6.87532
  3  0.376464
  4  0.403548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644134': 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) = 2227.33451577
delta logL = 0.024229300871

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  5.471e-01  8.496e+00  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  3.381e+00  6.875e+00  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:  9.448e-01  4.035e-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.130e+00  3.765e-01  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/644134/cmap_HighResolution_684892801_685152001_4FGL_J0158.5-3932_daily_bin1719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2022-09-18 00:15:50.133884', job_id='644134', GAL2='0.94', fit_tolerance='1e-08', EG2='1.13', EG='1.15', time_epoch_completed='1663485350.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.42e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1719' AND source_name='4FGL J0158.5-3932' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 18 00:15:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 644134: <4FGL_J0158.5-3932_daily_bin1719> in cluster <slac> Done

Job <4FGL_J0158.5-3932_daily_bin1719> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 18 00:04:48 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 18 00:06:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 18 00:06:08 2022
Terminated at Sun Sep 18 00:15:50 2022
Results reported at Sun Sep 18 00:15:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0158.5-3932_daily_bin1719 29.646 -39.5358 684892801 685152001 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 :                                   423.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            662 sec.

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

