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


Performing analysis on: 4FGL_J0158.5-3932_daily_bin1718
RA = 29.646, Dec = -39.5358
tmin = 684633601, tmax = 684892801
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='2580', job_status='RUN', time_executed='2022-09-16 10:26:21.827593', time_epoch_executed='1663349181.83' WHERE source_name='4FGL J0158.5-3932' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2580/ft1_4FGL_J0158.5-3932_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2580/ft2_4FGL_J0158.5-3932_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2580/ft1_4FGL_J0158.5-3932_daily_bin1718.fits outfile=/scratch/kocevski/2580/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1718.fits ra=29.646 dec=-39.5358 rad=12.0 tmin=684633601.0 tmax=684892801.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.19
user 2.97
sys 0.20

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

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

Number of photons that the gtmktime cut: 110

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2580/ft1_filtered_4FGL_J0158.5-3932_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/2580/ft2_4FGL_J0158.5-3932_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/2580/ltcube_684633601_684892801_4FGL_J0158.5-3932_daily_bin1718.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/2580/ft2_4FGL_J0158.5-3932_daily_bin1718.fits
.....................!
real 15.68
user 15.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2580/ft1_filtered_4FGL_J0158.5-3932_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/2580/ft2_4FGL_J0158.5-3932_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/2580/ltcube_684633601_684892801_4FGL_J0158.5-3932_daily_bin1718.fits outfile=/scratch/kocevski/2580/expmap_684633601_684892801_4FGL_J0158.5-3932_daily_bin1718.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/2580/ltcube_684633601_684892801_4FGL_J0158.5-3932_daily_bin1718.fits
.....................!
real 190.58
user 185.08
sys 4.93

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/2580/ft1_filtered_4FGL_J0158.5-3932_daily_bin1718.fits scfile=/scratch/kocevski/2580/ft2_4FGL_J0158.5-3932_daily_bin1718.fits outfile=/scratch/kocevski/2580/cmap_684633601_684892801_4FGL_J0158.5-3932_daily_bin1718.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2580/ft1_filtered_4FGL_J0158.5-3932_daily_bin1718.fits scfile=/scratch/kocevski/2580/ft2_4FGL_J0158.5-3932_daily_bin1718.fits outfile=/scratch/kocevski/2580/cmap_HighResolution_684633601_684892801_4FGL_J0158.5-3932_daily_bin1718.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2580/ft1_filtered_4FGL_J0158.5-3932_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/2580/ft2_4FGL_J0158.5-3932_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2580/Model_4FGL_J0158.5-3932_daily_bin1718.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/2580/ft1_filtered_4FGL_J0158.5-3932_daily_bin1718.fits......................!
real 34.19
user 32.95
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.520       1.0000          .0000       .10000E+07
     2 'Prefactor '    .84191       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.9323       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.3603       1.0000          .0000       .10000E+07
     5 'norm      '    .67668E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23359       1.0000          .0000       .10000E+07
     7 'Prefactor '    .59012       1.0000          .0000       .10000E+07
     8 'norm      '    3.4999       1.0000          .0000       .10000E+07
     9 'Prefactor '    .89126E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .25239E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .39707E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .29913E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.8737       1.0000          .0000       .10000E+07
    14 'Prefactor '    .85242E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    270.11       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15857E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .43798E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    .83278       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89163       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=   1325.776     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     2082 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.294        20.294       -.62326E-07   -.81016E-01
   2  Prefactor     .56256E-04    364.91        .98829E-06** at limit **
   3  Prefactor     7.1296        11.475        .62430E-07   -.91260E-02
   4  Prefactor     8.3674        13.114        .72109E-07    .43664E-01
   5  norm           .0000        6.0384        .86274E-07** at limit **
   6  Prefactor     .31086E-08    38.189       -.98487E-08** at limit **
   7  Prefactor     .24561E-05    81.764        .12728E-06** at limit **
   8  norm          3.5046        2.9876        .18417E-07    .21623E-02
   9  Prefactor     .66253E-06    11.969        .10933E-06** at limit **
  10  Prefactor     .19124E-06    12.192       -.47166E-07** at limit **
  11  Prefactor     .12768E-08    53.874       -.16394E-06** at limit **
  12  norm          .28167E-01    127.18       -.84781E-06** at limit **
  13  Prefactor     6.2253        15.032        .14176E-06   -.27524E-01
  14  Prefactor     .20545E-06    17.028       -.31438E-06** at limit **
  15  Prefactor     270.05        2.6686        .43001E-09    .50765E-01
  16  Prefactor     .22204E-09    10.371        .11916E-06** at limit **
  17  norm          .55511E-10    2.3001        .13585E-07** at limit **
  18  Normalizat    .83766        .37488       -.24048E-05    .81009E-04
  19  Prefactor     .89161        .40152        .24160E-05    .10333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.2944
  Prefactor  = 5.62559e-05
  Prefactor  = 7.1296
  Prefactor  = 8.36741
  norm       = 0
  Prefactor  = 3.10862e-09
  Prefactor  = 2.45609e-06
  norm       = 3.50464
  Prefactor  = 6.62526e-07
  Prefactor  = 1.91236e-07
  Prefactor  = 1.27676e-09
  norm       = 0.0281671
  Prefactor  = 6.22529
  Prefactor  = 2.05447e-07
  Prefactor  = 270.046
  Prefactor  = 2.22045e-10
  norm       = 5.55112e-11
  Normalizat = 0.837661
  Prefactor  = 0.89161
 **********
 **   18 **HESSE 
 **********

 FCN=   1325.776     FROM HESSE     STATUS=OK           310 CALLS     2392 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.294        90.167        .19422E-03   -1.5603    
   2  Prefactor     .56256E-04    393.38        .49862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1296        30.958        .35577E-03   -1.5655    
   4  Prefactor     8.3674        13.817        .34647E-03   -1.5650    
   5  norm           .0000        6.0409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .31086E-08    38.087        .11206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24561E-05    100.13        .70118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.5046        2.9939        .54019E-03   -1.5671    
   9  Prefactor     .66253E-06    14.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .19124E-06    12.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12768E-08    53.960        .15977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .28167E-01    3.6255        .51260E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2253        23.170        .38244E-03   -1.5658    
  14  Prefactor     .20545E-06    17.750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     270.05        111.42        .60855E-04   -1.5379    
  16  Prefactor     .22204E-09    6.4930        .49572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    2.2391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .83766        .33388        .44037E-01   -.98687    
  19  Prefactor     .89161        .35010        .44898E-01   -.96435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34154e-06
Minuit parameter uncertainties:
  1  90.1719
  2  0.297544
  3  29.7135
  4  13.8171
  5  1.7e-05
  6  0.000687126
  7  0.0313652
  8  2.9939
  9  0.00615057
  10  0.0031304
  11  0.000529861
  12  0.639123
  13  23.1702
  14  0.00381952
  15  111.417
  16  7.68793e-05
  17  1.95154e-05
  18  0.334702
  19  0.35099
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  3.109e-09  6.871e-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:  8.916e-01  3.510e-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:  8.377e-01  3.347e-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.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2580/likelihoodResults_684633601_684892801_4FGL_J0158.5-3932_daily_bin1718.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) = 1325.78817427
delta logL = -0.0126342392514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1325.77554039
delta logL = -3.68337168766e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48989E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.6023       1.0000          .0000       10.000    
     3 'Normalizat'    .83736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89192       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=   1325.776     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      253 TOTAL
                     EDM=   .11E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    5.5668        .42118E-03** at limit **
   2  Index         1.3530        7.4943        .50000       -.11369E-11
   3  Normalizat    .83766        .16878E-02    .44096E-01   -.39933E-05
   4  Prefactor     .89161        .18415E-02    .44902E-01   -.29630E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.35302
  Normalizat = 0.837662
  Prefactor  = 0.891608
 **********
 **   18 **HESSE 
 **********

 FCN=   1325.776     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .37E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    18.788        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3530        8.4421        .51000       -.81744    
   3  Normalizat    .83766        .30908E-02    .23593E-03   -.98687    
   4  Prefactor     .89161        .33725E-02    .24875E-03   -.96435    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.71034e-14
Minuit parameter uncertainties:
  1  6.34072e-05
  2  153056
  3  0.00309077
  4  0.00337249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2580': 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) = 1325.77554003
delta logL = 6.79847289575e-11

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  5.551e-11  6.341e-05  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  1.353e+00  1.531e+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:  8.916e-01  3.372e-03  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:  8.377e-01  3.091e-03  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/2580/cmap_HighResolution_684633601_684892801_4FGL_J0158.5-3932_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', job_status='DONE', photon_flux_upper_limit='2.21e-07', time_completed='2022-09-16 10:32:43.460785', job_id='2580', GAL2='0.89', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1663349563.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.80e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1718' AND source_name='4FGL J0158.5-3932' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:32:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 2580: <4FGL_J0158.5-3932_daily_bin1718> in cluster <slac> Done

Job <4FGL_J0158.5-3932_daily_bin1718> 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) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:22:25 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:25 2022
Terminated at Fri Sep 16 10:32:43 2022
Results reported at Fri Sep 16 10:32:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0158.5-3932_daily_bin1718 29.646 -39.5358 684633601 684892801 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 :                                   384.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             244.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            705 sec.

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

