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


Performing analysis on: 4FGL_J0158.5-3932_daily_bin1696
RA = 29.646, Dec = -39.5358
tmin = 678931201, tmax = 679190401
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='785106', job_status='RUN', time_executed='2022-07-11 00:05:23.812348', time_epoch_executed='1657523123.81' WHERE source_name='4FGL J0158.5-3932' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/785106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/785106/ft1_4FGL_J0158.5-3932_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/785106/ft2_4FGL_J0158.5-3932_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/785106/ft1_4FGL_J0158.5-3932_daily_bin1696.fits outfile=/scratch/kocevski/785106/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin1696.fits ra=29.646 dec=-39.5358 rad=12.0 tmin=678931201.0 tmax=679190401.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.66
user 3.32
sys 0.21

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

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

Number of photons that the gtmktime cut: 590

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/785106/ft1_filtered_4FGL_J0158.5-3932_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/785106/ft2_4FGL_J0158.5-3932_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/785106/ltcube_678931201_679190401_4FGL_J0158.5-3932_daily_bin1696.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/785106/ft2_4FGL_J0158.5-3932_daily_bin1696.fits
.....................!
real 11.98
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/785106/ft1_filtered_4FGL_J0158.5-3932_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/785106/ft2_4FGL_J0158.5-3932_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/785106/ltcube_678931201_679190401_4FGL_J0158.5-3932_daily_bin1696.fits outfile=/scratch/kocevski/785106/expmap_678931201_679190401_4FGL_J0158.5-3932_daily_bin1696.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/785106/ltcube_678931201_679190401_4FGL_J0158.5-3932_daily_bin1696.fits
.....................!
real 192.73
user 187.39
sys 4.44

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/785106/ft1_filtered_4FGL_J0158.5-3932_daily_bin1696.fits scfile=/scratch/kocevski/785106/ft2_4FGL_J0158.5-3932_daily_bin1696.fits outfile=/scratch/kocevski/785106/cmap_678931201_679190401_4FGL_J0158.5-3932_daily_bin1696.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 3.76
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/785106/ft1_filtered_4FGL_J0158.5-3932_daily_bin1696.fits scfile=/scratch/kocevski/785106/ft2_4FGL_J0158.5-3932_daily_bin1696.fits outfile=/scratch/kocevski/785106/cmap_HighResolution_678931201_679190401_4FGL_J0158.5-3932_daily_bin1696.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 1.28
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/785106/ft1_filtered_4FGL_J0158.5-3932_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/785106/ft2_4FGL_J0158.5-3932_daily_bin1696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/785106/Model_4FGL_J0158.5-3932_daily_bin1696.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/785106/ft1_filtered_4FGL_J0158.5-3932_daily_bin1696.fits.....................!
real 140.17
user 121.91
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2093       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.412       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6920       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.643       1.0000         .10000E-03   10000.    
    10 'norm      '    .23128       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.920       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    230.88       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9047       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5771       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.812       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1584       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4204       1.0000         .10000E-03   10000.    
    20 'Prefactor '    409.80       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90390       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91170       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6398.735     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2710 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2103        33.077         .0000        .64179E-02
   2  Prefactor     .10000E-03    1.5057         .0000    ** at limit **
   3  Prefactor     .10000E-03    8.8854         .0000    ** at limit **
   4  Prefactor     19.412        23.841         .0000       -.44706E-04
   5  Prefactor     19.205        5.4980         .0000        .75944E-03
   6  Prefactor     2.6921        5.3919         .0000       -.52411E-03
   7  norm          .10000E-03    2.3983         .0000    ** at limit **
   8  Prefactor     15.226        10.927         .0000        .19491E-03
   9  Prefactor     35.643        23.701         .0000       -.12715E-02
  10  norm          .23129        .90765         .0000        .25358E-02
  11  Prefactor     18.919        14.686         .0000       -.56157E-03
  12  Prefactor     .10000E-03    14.809         .0000    ** at limit **
  13  Prefactor     230.88        66.651         .0000       -.36462E-03
  14  norm          1.9044        2.7238         .0000        .94110E-03
  15  Prefactor     3.5767        10.472         .0000        .47928E-02
  16  Prefactor     17.812        19.119         .0000       -.17874E-03
  17  Prefactor     8.1585        56.910         .0000       -.20115E-03
  18  Prefactor     .10000E-03    1.3715         .0000    ** at limit **
  19  norm          1.4204        1.1186         .0000        .54203E-03
  20  Prefactor     409.80        247.92         .0000       -.17540E-03
  21  Normalizat    .90397        .16187         .0000        .61416E-04
  22  Prefactor     .91162        .17566         .0000        .59591E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4121
  Prefactor  = 19.2052
  Prefactor  = 2.69215
  norm       = 0.0001
  Prefactor  = 15.2265
  Prefactor  = 35.6431
  norm       = 0.231293
  Prefactor  = 18.919
  Prefactor  = 0.0001
  Prefactor  = 230.879
  norm       = 1.9044
  Prefactor  = 3.57667
  Prefactor  = 17.812
  Prefactor  = 8.15854
  Prefactor  = 0.0001
  norm       = 1.42038
  Prefactor  = 409.797
  Normalizat = 0.903967
  Prefactor  = 0.911616
 **********
 **   18 **HESSE 
 **********

 FCN=   6398.735     FROM HESSE     STATUS=OK           342 CALLS     3052 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2103        33.725        .20580E-02   -1.5488    
   2  Prefactor     .10000E-03    1.5448        .19159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.412        23.852        .90906E-04   -1.4826    
   5  Prefactor     19.205        5.5096        .91393E-04   -1.4831    
   6  Prefactor     2.6921        5.3619        .24831E-03   -1.5380    
   7  norm          .10000E-03    2.4155        .12069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.226        10.927        .10264E-03   -1.4927    
   9  Prefactor     35.643        23.698        .67126E-04   -1.4513    
  10  norm          .23129        .90834        .14560E-03   -1.5612    
  11  Prefactor     18.919        14.626        .92079E-04   -1.4838    
  12  Prefactor     .10000E-03    14.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     230.88        66.654        .13317E-03   -1.2657    
  14  norm          1.9044        2.6957        .14322E-03   -1.5432    
  15  Prefactor     3.5767        10.399        .10684E-02   -1.5330    
  16  Prefactor     17.812        19.071        .94900E-04   -1.4864    
  17  Prefactor     8.1585        56.668        .14036E-03   -1.5137    
  18  Prefactor     .10000E-03    1.3779        .91478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4204        1.0959        .69806E-04   -1.5470    
  20  Prefactor     409.80        247.92        .10089E-03   -1.1631    
  21  Normalizat    .90397        .18831        .23234E-03   -.96321    
  22  Prefactor     .91162        .20351        .26382E-03   -.95736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16786e-09
Minuit parameter uncertainties:
  1  12.7849
  2  3.99549e-06
  3  2.07029e-06
  4  23.8635
  5  5.50976
  6  5.3629
  7  5.20466e-07
  8  10.9288
  9  23.7039
  10  0.908395
  11  14.629
  12  3.73876e-05
  13  66.6761
  14  2.69587
  15  10.4039
  16  19.0778
  17  43.0616
  18  3.66084e-06
  19  1.09591
  20  248.571
  21  0.188447
  22  0.203676
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  1.523e+01  1.093e+01  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:  9.116e-01  2.037e-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.040e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.05
Ra Dec: 29.646 -39.536
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 1.36e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6398.71662351
delta logL = 0.0182127960734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6398.71014834
delta logL = 0.0246879703691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.866       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2118       1.0000          .0000       10.000    
     3 'Normalizat'    .89906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91467       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=   6398.710     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      214 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.873        264.10        .26892E-02    .61655E-03
   2  Index         2.2118        6.0737        .13660        .96336E-04
   3  Normalizat    .89890        .97071E-01    .44890E-01    .12002E-04
   4  Prefactor     .91490        .77205E-01    .45192E-01    .11829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8729
  Index      = 2.21176
  Normalizat = 0.898898
  Prefactor  = 0.914898
 **********
 **   18 **HESSE 
 **********

 FCN=   6398.710     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.873        12.541        .53783E-03   -1.4963    
   2  Index         2.2118        .57914        .69596E-02   -.59155    
   3  Normalizat    .89890        .17725        .23290E-03   -.96499    
   4  Prefactor     .91490        .20136        .26338E-03   -.95622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8608e-09
Minuit parameter uncertainties:
  1  12.5433
  2  0.581034
  3  0.177368
  4  0.201525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/785106': 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) = 6398.71014743
delta logL = 0.0246888788815

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  1.387e+01  1.254e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.212e+00  5.810e-01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  9.149e-01  2.015e-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.989e-01  1.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 29.646 -39.536
Photon Index (Free Index): 2.21 +/- 0.58
Photon Flux (Free Index): 3.83e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.53e-05

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/785106/cmap_HighResolution_678931201_679190401_4FGL_J0158.5-3932_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='1.68e-05', photon_flux_error='2.43e-08', dlogl='2.47e-02', energy_flux='1.90e-05', photon_flux2='3.83e-08', job_status='DONE', time_completed='2022-07-11 00:17:10.343272', photon_index_error2='0.58', photon_index2='2.21', ts='4.05', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='0.90', time_epoch_completed='1657523830.34', return_code='0', job_id='785106', GAL2='0.91', EG2='0.90', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.25e-08', ts2='4.09', photon_index='2.09' WHERE bin_id='1696' AND source_name='4FGL J0158.5-3932' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:17:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 785106: <4FGL_J0158.5-3932_daily_bin1696> in cluster <slac> Done

Job <4FGL_J0158.5-3932_daily_bin1696> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Jul 11 00:04:50 2022
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:04:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:04:51 2022
Terminated at Mon Jul 11 00:17:11 2022
Results reported at Mon Jul 11 00:17:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0158.5-3932_daily_bin1696 29.646 -39.5358 678931201 679190401 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 :                                   677.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            741 sec.

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

