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 20 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0158.5-3932_daily_bin1686
RA = 29.646, Dec = -39.5358
tmin = 676339201, tmax = 676598401
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='508828', job_status='RUN', time_executed='2022-06-11 00:06:58.151798', time_epoch_executed='1654931218.15' WHERE source_name='4FGL J0158.5-3932' and cadence='daily' and bin_id='1686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508828/ft1_4FGL_J0158.5-3932_daily_bin1686.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508828/ft2_4FGL_J0158.5-3932_daily_bin1686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508828/ft1_4FGL_J0158.5-3932_daily_bin1686.fits outfile=/scratch/kocevski/508828/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1686.fits ra=29.646 dec=-39.5358 rad=12.0 tmin=676339201.0 tmax=676598401.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 2.81
user 2.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508828/ft1_filtered_4FGL_J0158.5-3932_daily_bin1686.fits" evtable="EVENTS" scfile=/scratch/kocevski/508828/ft2_4FGL_J0158.5-3932_daily_bin1686.fits sctable="SC_DATA" outfile=/scratch/kocevski/508828/ltcube_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.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/508828/ft2_4FGL_J0158.5-3932_daily_bin1686.fits
.....................!
real 15.06
user 14.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508828/ft1_filtered_4FGL_J0158.5-3932_daily_bin1686.fits evtable="EVENTS" scfile=/scratch/kocevski/508828/ft2_4FGL_J0158.5-3932_daily_bin1686.fits sctable="SC_DATA" expcube=/scratch/kocevski/508828/ltcube_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.fits outfile=/scratch/kocevski/508828/expmap_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.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/508828/ltcube_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.fits
.....................!
real 193.35
user 187.75
sys 4.94

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_archive_v18/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/508828/ft1_filtered_4FGL_J0158.5-3932_daily_bin1686.fits scfile=/scratch/kocevski/508828/ft2_4FGL_J0158.5-3932_daily_bin1686.fits outfile=/scratch/kocevski/508828/cmap_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508828/ft1_filtered_4FGL_J0158.5-3932_daily_bin1686.fits scfile=/scratch/kocevski/508828/ft2_4FGL_J0158.5-3932_daily_bin1686.fits outfile=/scratch/kocevski/508828/cmap_HighResolution_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.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.63
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/508828/ft1_filtered_4FGL_J0158.5-3932_daily_bin1686.fits', '/scratch/kocevski/508828/ft2_4FGL_J0158.5-3932_daily_bin1686.fits', expMap='/scratch/kocevski/508828/expmap_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.fits', expCube='/scratch/kocevski/508828/ltcube_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/508828/Model_4FGL_J0158.5-3932_daily_bin1686.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  1.000e-04  1.000e+04 ( 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/508828/ft1_filtered_4FGL_J0158.5-3932_daily_bin1686.fits
Spacecraft file(s): /scratch/kocevski/508828/ft2_4FGL_J0158.5-3932_daily_bin1686.fits
Exposure map: /scratch/kocevski/508828/expmap_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.fits
Exposure cube: /scratch/kocevski/508828/ltcube_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/508828/Model_4FGL_J0158.5-3932_daily_bin1686.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) = 8892.24673145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5710       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .86878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1927       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0944       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.580       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6807       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.182       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.533       1.0000         .10000E-03   10000.    
    13 'Prefactor '    205.35       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8899       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6414       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20060E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0877       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8892.233     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2059 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7840        .34173E-06** at limit **
   2  Prefactor     .10000E-03    1.0205       -.97769E-08** at limit **
   3  Prefactor     3.5696        10.671        .73247E-05   -.78765E-03
   4  Prefactor     .10000E-03    12.239       -.86737E-06** at limit **
   5  Prefactor     .86863        2.1467        .52914E-06   -.42220E-03
   6  Prefactor     8.1910        5.4470       -.91425E-06   -.10120E-02
   7  norm          1.0965        2.9549        .24398E-06    .21528E-03
   8  Prefactor     .10000E-03    3.0575        .10692E-06** at limit **
   9  Prefactor     11.570        20.486       -.78751E-06   -.17037E-03
  10  norm          1.6807        1.0519       -.18897E-07   -.22713E-03
  11  Prefactor     14.186        18.815        .13507E-05    .76176E-04
  12  Prefactor     11.527        23.353       -.20158E-05   -.13493E-03
  13  Prefactor     205.33        53.010       -.44949E-05   -.10231E-02
  14  norm          1.8901        1.6061        .70488E-07   -.21966E-03
  15  Prefactor     2.6398        8.3167        .28637E-06   -.11518E-03
  16  Prefactor     .10000E-03    13.342       -.24869E-06** at limit **
  17  Prefactor     .10000E-03    13.940        .12428E-05** at limit **
  18  Prefactor     .10000E-03    1.7003        .70686E-07** at limit **
  19  norm          .10000E-03    .17849       -.73048E-08** at limit **
  20  Prefactor     .10000E-03    67.280        .14432E-06** at limit **
  21  Normalizat    1.0877        .12913       -.22193E-07   -.21601E-03
  22  Prefactor     .76793        .14268       -.28133E-06   -.11835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56957
  Prefactor  = 0.0001
  Prefactor  = 0.868635
  Prefactor  = 8.19103
  norm       = 1.09653
  Prefactor  = 0.0001
  Prefactor  = 11.5697
  norm       = 1.68065
  Prefactor  = 14.1859
  Prefactor  = 11.5274
  Prefactor  = 205.327
  norm       = 1.89012
  Prefactor  = 2.6398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0877
  Prefactor  = 0.767934
 **********
 **   18 **HESSE 
 **********

 FCN=   8892.233     FROM HESSE     STATUS=OK           346 CALLS     2405 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.0410        .92972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5696        11.917        .10693E-02   -1.5330    
   4  Prefactor     .10000E-03    12.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .86863        2.1260        .20735E-03   -1.5522    
   6  Prefactor     8.1910        5.4283        .14007E-03   -1.5135    
   7  norm          1.0965        2.3068        .22374E-02   -1.5499    
   8  Prefactor     .10000E-03    3.0740        .16101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.570        19.337        .11772E-03   -1.5028    
  10  norm          1.6807        1.0515        .32494E-04   -1.5449    
  11  Prefactor     14.186        18.668        .10636E-03   -1.4955    
  12  Prefactor     11.527        23.275        .11797E-03   -1.5029    
  13  Prefactor     205.33        56.799        .14102E-03   -1.2832    
  14  norm          1.8901        1.5964        .10567E-03   -1.5433    
  15  Prefactor     2.6398        8.2713        .25087E-03   -1.5383    
  16  Prefactor     .10000E-03    13.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.8511        .23949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .18008        .38858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    67.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0877        .15153        .20159E-03   -.90148    
  22  Prefactor     .76793        .16665        .26872E-03   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40597e-09
Minuit parameter uncertainties:
  1  2.68522e-05
  2  2.46652e-06
  3  11.9252
  4  0.000113007
  5  2.12622
  6  5.42864
  7  2.30701
  8  4.55546e-06
  9  19.3475
  10  1.0515
  11  18.6752
  12  23.2936
  13  56.8144
  14  1.59641
  15  8.27484
  16  2.77681e-05
  17  0.00015546
  18  0.000172587
  19  3.25726e-07
  20  3.46384e-05
  21  0.151594
  22  0.166755
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  4.555e-06  1.000e-04  1.000e+04 ( 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.679e-01  1.668e-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.088e+00  1.516e-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: 2.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/508828/likelihoodResults_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.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) = 8892.23455005
delta logL = -0.00154835722969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8892.2330015
delta logL = 1.98779162019e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0732       1.0000          .0000       10.000    
     3 'Normalizat'    1.0877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8892.233     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10131E-03    42.799        .16295E-02** at limit **
   2  Index         2.0126        5.3404        .50000        .36971E-04
   3  Normalizat    1.0877        .11183E-01    .20159E-03   -.33386E-04
   4  Prefactor     .76793        .12802E-01    .26872E-03   -.62022E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010131
  Index      = 2.01264
  Normalizat = 1.0877
  Prefactor  = 0.767933
 **********
 **   18 **HESSE 
 **********

 FCN=   8892.233     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10131E-03    179.40        .32590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0126        5.6850        .50000       -.64034    
   3  Normalizat    1.0877        .24161E-01    .80636E-05   -.90148    
   4  Prefactor     .76793        .27657E-01    .10749E-04   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.21403e-08
Minuit parameter uncertainties:
  1  0.0307535
  2  530.71
  3  0.0241612
  4  0.0276574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508828': 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): 102
logL (Free Index) = 8892.23300109
delta logL = 6.04117303737e-07

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  1.013e-04  3.075e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.013e+00  5.307e+02  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.679e-01  2.766e-02  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.088e+00  2.416e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/508828/cmap_HighResolution_676339201_676598401_4FGL_J0158.5-3932_daily_bin1686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-03', job_status='DONE', photon_flux_upper_limit='2.91e-08', time_completed='2022-06-11 00:21:06.823393', job_id='508828', GAL2='0.77', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1654932066.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='6.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1686' AND source_name='4FGL J0158.5-3932' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jun 11 00:21:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 508828: <4FGL_J0158.5-3932_daily_bin1686> in cluster <slac> Done

Job <4FGL_J0158.5-3932_daily_bin1686> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jun 11 00:05:02 2022
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jun 11 00:06:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jun 11 00:06:25 2022
Terminated at Sat Jun 11 00:21:07 2022
Results reported at Sat Jun 11 00:21:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0158.5-3932_daily_bin1686 29.646 -39.5358 676339201 676598401 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 :                                   849.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             385.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            965 sec.

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

