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


Performing analysis on: 4FGL_J0158.5-3932_daily_bin1764
RA = 29.646, Dec = -39.5358
tmin = 696556801, tmax = 696816001
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='434321', job_status='RUN', time_executed='2023-01-31 00:08:44.879725', time_epoch_executed='1675152524.88' WHERE source_name='4FGL J0158.5-3932' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434321

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434321/ft1_4FGL_J0158.5-3932_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434321/ft2_4FGL_J0158.5-3932_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434321/ft1_4FGL_J0158.5-3932_daily_bin1764.fits outfile=/scratch/kocevski/434321/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1764.fits ra=29.646 dec=-39.5358 rad=12.0 tmin=696556801.0 tmax=696816001.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.79
user 3.48
sys 0.22

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

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

Number of photons that the gtmktime cut: 398

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434321/ft1_filtered_4FGL_J0158.5-3932_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/434321/ft2_4FGL_J0158.5-3932_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/434321/ltcube_696556801_696816001_4FGL_J0158.5-3932_daily_bin1764.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/434321/ft2_4FGL_J0158.5-3932_daily_bin1764.fits
.....................!
real 16.02
user 15.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434321/ft1_filtered_4FGL_J0158.5-3932_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/434321/ft2_4FGL_J0158.5-3932_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/434321/ltcube_696556801_696816001_4FGL_J0158.5-3932_daily_bin1764.fits outfile=/scratch/kocevski/434321/expmap_696556801_696816001_4FGL_J0158.5-3932_daily_bin1764.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/434321/ltcube_696556801_696816001_4FGL_J0158.5-3932_daily_bin1764.fits
.....................!
real 195.33
user 188.77
sys 5.28

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/434321/ft1_filtered_4FGL_J0158.5-3932_daily_bin1764.fits scfile=/scratch/kocevski/434321/ft2_4FGL_J0158.5-3932_daily_bin1764.fits outfile=/scratch/kocevski/434321/cmap_696556801_696816001_4FGL_J0158.5-3932_daily_bin1764.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.59
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434321/ft1_filtered_4FGL_J0158.5-3932_daily_bin1764.fits scfile=/scratch/kocevski/434321/ft2_4FGL_J0158.5-3932_daily_bin1764.fits outfile=/scratch/kocevski/434321/cmap_HighResolution_696556801_696816001_4FGL_J0158.5-3932_daily_bin1764.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/434321/ft1_filtered_4FGL_J0158.5-3932_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/434321/ft2_4FGL_J0158.5-3932_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/434321/Model_4FGL_J0158.5-3932_daily_bin1764.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/434321/ft1_filtered_4FGL_J0158.5-3932_daily_bin1764.fits.....................!
real 88.51
user 86.06
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19115E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    29.973       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.3426       1.0000          .0000       .10000E+07
     4 'Prefactor '    .26529E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .43037E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10578       1.0000          .0000       .10000E+07
     7 'Prefactor '    31.656       1.0000          .0000       .10000E+07
     8 'norm      '    .92705       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27843E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .23826E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    72.349       1.0000          .0000       .10000E+07
    12 'norm      '    .90026E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    15.694       1.0000          .0000       .10000E+07
    14 'Prefactor '    11.707       1.0000          .0000       .10000E+07
    15 'Prefactor '    34.692       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.6978       1.0000          .0000       .10000E+07
    17 'norm      '    .37865       1.0000          .0000       .10000E+07
    18 'Normalizat'    .98495       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76075       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=   4511.986     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     1529 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3724       -.11997E-06** at limit **
   2  Prefactor     29.993        3.3616       -.24522E-07    .18152E-02
   3  Prefactor     5.4220        5.1880       -.38586E-07   -.20949E-03
   4  Prefactor     .67335E-07    2.7590        .51588E-06** at limit **
   5  norm          .27423E-07    5.8397        .38179E-06** at limit **
   6  Prefactor     .28372E-06    2.4246        .33642E-06** at limit **
   7  Prefactor     32.329        27.176        .20468E-06    .56694E-03
   8  norm          .92662        .95476        .42179E-07   -.53963E-03
   9  Prefactor     .27756E-09    5.3524        .45659E-06** at limit **
  10  Prefactor     .11269E-07    6.3386        .55681E-06** at limit **
  11  Prefactor     72.352        1.6069       -.23413E-08   -.27158E-01
  12  norm          .23315E-08    9.6166       -.69397E-07** at limit **
  13  Prefactor     15.742        1.4028       -.64378E-09    .12890E-02
  14  Prefactor     11.681        16.726        .23521E-06   -.46900E-02
  15  Prefactor     36.430        35.302        .53646E-08   -.56512E-03
  16  Prefactor     1.6979        3.2792       -.12323E-06    .13445E-03
  17  norm          .37856        .64658       -.29428E-08    .18030E-03
  18  Normalizat    .98320        .20234       -.17068E-05    .33303E-04
  19  Prefactor     .76133        .21947        .11569E-05    .89373E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 29.9933
  Prefactor  = 5.422
  Prefactor  = 6.7335e-08
  norm       = 2.74225e-08
  Prefactor  = 2.83717e-07
  Prefactor  = 32.3295
  norm       = 0.926619
  Prefactor  = 2.77556e-10
  Prefactor  = 1.12688e-08
  Prefactor  = 72.3522
  norm       = 2.33147e-09
  Prefactor  = 15.7424
  Prefactor  = 11.6814
  Prefactor  = 36.4305
  Prefactor  = 1.69786
  norm       = 0.37856
  Normalizat = 0.983202
  Prefactor  = 0.761326
 **********
 **   18 **HESSE 
 **********

 FCN=   4511.986     FROM HESSE     STATUS=OK           320 CALLS     1849 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.993        28.736        .18269E-03   -1.5598    
   3  Prefactor     5.4220        5.2698        .43456E-03   -1.5661    
   4  Prefactor     .67335E-07    7.6115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .27423E-07    7.6452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .28372E-06    6.4204        .89316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.329        27.352        .17776E-03   -1.5594    
   8  norm          .92662        .95312        .43908E-03   -1.5689    
   9  Prefactor     .27756E-09    5.3479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11269E-07    6.9722        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     72.352        62.005        .11757E-03   -1.5538    
  12  norm          .23315E-08    1.8810        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.742        12.728        .25256E-03   -1.5629    
  14  Prefactor     11.681        17.132        .29253E-03   -1.5640    
  15  Prefactor     36.430        35.425        .16980E-03   -1.5587    
  16  Prefactor     1.6979        3.3440        .80715E-03   -1.5682    
  17  norm          .37856        .75281        .16434E-02   -1.5696    
  18  Normalizat    .98320        .17423        .45978E-01   -.93595    
  19  Prefactor     .76133        .18588        .43204E-01   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45413e-08
Minuit parameter uncertainties:
  1  5.96428e-06
  2  28.7361
  3  5.26981
  4  0.00143208
  5  0.000915869
  6  0.00269923
  7  27.352
  8  0.953116
  9  7.50935e-05
  10  0.000560874
  11  62.006
  12  0.000132382
  13  12.7284
  14  17.1324
  15  35.4249
  16  3.34396
  17  0.752812
  18  0.174326
  19  0.18603
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  2.837e-07  2.699e-03  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:  7.613e-01  1.860e-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.832e-01  1.743e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/434321/likelihoodResults_696556801_696816001_4FGL_J0158.5-3932_daily_bin1764.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) = 4511.99812978
delta logL = -0.0125099831212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4510.81865051
delta logL = 1.16696929142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28652       1.0000          .0000       .10000E+07
     2 'Index     '    .44439E-04   1.0000          .0000       10.000    
     3 'Normalizat'    .96281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77908       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=   4510.819     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      262 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28663        .61312        .91273E-03   -.31321E-02
   2  Index         .20700E-09    1.3508        .50000    ** at limit **
   3  Normalizat    .96256        .16584        .45699E-01    .78893E-05
   4  Prefactor     .77938        .18548        .43444E-01    .23317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.286634
  Index      = 2.07003e-10
  Normalizat = 0.962555
  Prefactor  = 0.779376
 **********
 **   18 **HESSE 
 **********

 FCN=   4510.819     FROM HESSE     STATUS=OK            39 CALLS      301 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28663        .34958        .41962E-04   -1.5697    
   2  Index         .20700E-09    .49021        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96256        .19456        .20837E-03   -.94296    
   4  Prefactor     .77938        .21766        .25535E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25084e-11
Minuit parameter uncertainties:
  1  0.349582
  2  2.03153e-05
  3  0.194699
  4  0.217899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434321': 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) = 4510.81864614
delta logL = 1.16697365628

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  2.866e-01  3.496e-01  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.070e-10  2.032e-05  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:  7.794e-01  2.179e-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.626e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 29.646 -39.536
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.86e-09 +/- 3.49e-09
Energy Flux (Free Index): 1.44e-04 +/- 1.75e-04

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/434321/cmap_HighResolution_696556801_696816001_4FGL_J0158.5-3932_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', comment='SUCCESS', energy_flux2='1.44e-04', dlogl='1.17e+00', photon_flux2='2.86e-09', job_status='DONE', time_completed='2023-01-31 00:17:46.047689', photon_index_error2='0.00', photon_index2='0.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='5.91e-08', energy_flux_error2='1.75e-04', EG='0.98', time_epoch_completed='1675153066.05', return_code='0', job_id='434321', GAL2='0.78', EG2='0.96', return_code2='0', photon_flux_error2='3.49e-09', ts2='2.35', photon_index='2.09' WHERE bin_id='1764' AND source_name='4FGL J0158.5-3932' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 00:17:46 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 434321: <4FGL_J0158.5-3932_daily_bin1764> in cluster <slac> Done

Job <4FGL_J0158.5-3932_daily_bin1764> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jan 31 00:04:47 2023
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 00:07:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 00:07:26 2023
Terminated at Tue Jan 31 00:17:46 2023
Results reported at Tue Jan 31 00:17:46 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0158.5-3932_daily_bin1764 29.646 -39.5358 696556801 696816001 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 :                                   536.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            779 sec.

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

