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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1758
RA = 329.714, Dec = -30.2251
tmin = 695001601, tmax = 695260801
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='383726', job_status='RUN', time_executed='2023-01-13 01:50:06.523222', time_epoch_executed='1673603406.52' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383726/ft1_4FGL_J2158.8-3013_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383726/ft1_4FGL_J2158.8-3013_daily_bin1758.fits outfile=/scratch/kocevski/383726/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1758.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=695001601.0 tmax=695260801.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.78
user 2.55
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.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/383726/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/383726/ft1_filtered_4FGL_J2158.8-3013_daily_bin1758.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.51
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 408

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383726/ft1_filtered_4FGL_J2158.8-3013_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/383726/ltcube_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.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/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.fits
.....................!
real 15.88
user 15.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383726/ft1_filtered_4FGL_J2158.8-3013_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/383726/ltcube_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.fits outfile=/scratch/kocevski/383726/expmap_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.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/383726/ltcube_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.fits
.....................!
real 192.26
user 186.79
sys 5.08

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
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2158.8-3013 @ 329.714 -30.2251

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/383726/ft1_filtered_4FGL_J2158.8-3013_daily_bin1758.fits scfile=/scratch/kocevski/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.fits outfile=/scratch/kocevski/383726/cmap_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.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=329.714 yref=-30.2251 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383726/ft1_filtered_4FGL_J2158.8-3013_daily_bin1758.fits scfile=/scratch/kocevski/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.fits outfile=/scratch/kocevski/383726/cmap_HighResolution_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.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=329.714 yref=-30.2251 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.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383726/ft1_filtered_4FGL_J2158.8-3013_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383726/Model_4FGL_J2158.8-3013_daily_bin1758.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 GAL_V02
Working on...
/scratch/kocevski/383726/ft1_filtered_4FGL_J2158.8-3013_daily_bin1758.fits.....................!
real 41.47
user 39.90
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/383726/ft1_filtered_4FGL_J2158.8-3013_daily_bin1758.fits', '/scratch/kocevski/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.fits', expMap='/scratch/kocevski/383726/expmap_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.fits', expCube='/scratch/kocevski/383726/ltcube_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/383726/Model_4FGL_J2158.8-3013_daily_bin1758.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2158.8-3013'

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.436e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  1.767e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  4.097e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/383726/ft1_filtered_4FGL_J2158.8-3013_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/383726/ft2_4FGL_J2158.8-3013_daily_bin1758.fits
Exposure map: /scratch/kocevski/383726/expmap_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.fits
Exposure cube: /scratch/kocevski/383726/ltcube_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/383726/Model_4FGL_J2158.8-3013_daily_bin1758.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) = 4582.48228522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45943E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .50681E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.3434       1.0000          .0000       .10000E+07
     4 'Prefactor '    48.367       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12576E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .84391E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .24227E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13414E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .98322E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.9079       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44159E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    13.845       1.0000          .0000       .10000E+07
    13 'Prefactor '    .97555E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .18399E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.591       1.0000          .0000       .10000E+07
    16 'Prefactor '    .29869E-02   1.0000          .0000       .10000E+07
    17 'norm      '    4.8327       1.0000          .0000       .10000E+07
    18 'Prefactor '    .99013E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    17.468       1.0000          .0000       .10000E+07
    20 'norm      '    .38284E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    .80509       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3978       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4582.423     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1358 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22204E-09    6.0009       -.18898E-07** at limit **
   2  Prefactor     .36082E-06    14.068       -.19687E-06** at limit **
   3  Prefactor     6.3150        8.4527        .26335E-07    .10667E-02
   4  Prefactor     48.003        7.4621        .55562E-08    .10499    
   5  Prefactor     .21566E-06    7.0021       -.20060E-06** at limit **
   6  norm          .55511E-10    2.9099       -.19468E-08** at limit **
   7  Prefactor     .14794E-06    6.8171       -.20807E-06** at limit **
   8  Prefactor     .39008E-06    76.485        .37448E-07** at limit **
   9  norm          .28631E-05    56.259        .16174E-06** at limit **
  10  norm          1.9077        .61501        .16490E-07    .14155E-01
  11  Prefactor     .11102E-09    5.1340       -.64900E-07** at limit **
  12  Prefactor     13.978        3.6855        .72253E-08    .15836E-01
  13  Prefactor      .0000        3.9197        .14500E-06** at limit **
  14  norm          .49794E-07    10.601       -.12429E-06** at limit **
  15  Prefactor     11.324        9.2819        .23308E-07    .65906E-01
  16  Prefactor     .55511E-10    4.4308        .14721E-09** at limit **
  17  norm          4.8338        2.9621       -.12751E-07   -.86477E-03
  18  Prefactor      .0000        1.1042       -.59275E-08** at limit **
  19  Prefactor     17.236        4.3074       -.64405E-08   -.19844E-01
  20  norm          .25591E-07    10.313        .10294E-07** at limit **
  21  Normalizat    .80668        .27977        .20666E-05    .50436E-04
  22  Prefactor     1.3975        .22470       -.11397E-05    .27012E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22045e-10
  Prefactor  = 3.60822e-07
  Prefactor  = 6.31497
  Prefactor  = 48.0028
  Prefactor  = 2.15661e-07
  norm       = 5.55112e-11
  Prefactor  = 1.47937e-07
  Prefactor  = 3.90077e-07
  norm       = 2.8631e-06
  norm       = 1.90773
  Prefactor  = 1.11022e-10
  Prefactor  = 13.9777
  Prefactor  = 0
  norm       = 4.97935e-08
  Prefactor  = 11.3242
  Prefactor  = 5.55112e-11
  norm       = 4.83378
  Prefactor  = 0
  Prefactor  = 17.2363
  norm       = 2.55906e-08
  Normalizat = 0.806685
  Prefactor  = 1.39751
 **********
 **   18 **HESSE 
 **********

 FCN=   4582.423     FROM HESSE     STATUS=OK           392 CALLS     1750 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    6.0595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .36082E-06    15.566        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3150        8.4765        .39829E-03   -1.5658    
   4  Prefactor     48.003        29.221        .14380E-03   -1.5569    
   5  Prefactor     .21566E-06    14.446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    2.9018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14794E-06    14.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .39008E-06    77.203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .28631E-05    8.3744        .53207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9077        .63743        .65657E-03   -1.5680    
  11  Prefactor     .11102E-09    5.1390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.978        20.936        .26893E-03   -1.5633    
  13  Prefactor      .0000        3.9180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .49794E-07    10.782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.324        27.144        .29401E-03   -1.5641    
  16  Prefactor     .55511E-10    4.4388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8338        2.9719        .45737E-03   -1.5664    
  18  Prefactor      .0000        65.956        .13956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.236        16.955        .23936E-03   -1.5625    
  20  norm          .25591E-07    10.111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .80668        .25580        .77555E-01   -.99821    
  22  Prefactor     1.3975        .19518        .49346E-01   -.80452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87111e-07
Minuit parameter uncertainties:
  1  6.99204e-05
  2  0.00473998
  3  8.47647
  4  29.2209
  5  0.00353015
  6  1.8941e-05
  7  0.00292783
  8  0.0109758
  9  0.00979324
  10  0.637428
  11  4.64851e-05
  12  20.9364
  13  2.0588e-05
  14  0.00146543
  15  27.1443
  16  2.51057e-05
  17  2.97192
  18  3.0642e-05
  19  16.9551
  20  0.00101756
  21  0.256184
  22  0.195278
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.908e+00  6.374e-01  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  1.767e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  4.097e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.398e+00  1.953e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.067e-01  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.85
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 5.28e-08
Energy Flux (Fixed Index): 1.79e-04 +/- 5.99e-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) = 4581.53768448
delta logL = 0.885597915629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4581.52990182
delta logL = 0.893380571533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7038       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1464       1.0000          .0000       5.0000    
     3 'Normalizat'    .72881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4274       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4581.530     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7038        6.7242        .56520E-03    .35075E-03
   2  alpha         2.1464        3.5500        .13925        .46023E-04
   3  Normalizat    .72881        .25668        .81045E-01    .20356E-04
   4  Prefactor     1.4274        .12813        .48843E-01   -.20304E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70382
  alpha      = 2.14636
  Normalizat = 0.728808
  Prefactor  = 1.42735
 **********
 **   18 **HESSE 
 **********

 FCN=   4581.530     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7038        .61021        .24984E-05   -1.5682    
   2  alpha         2.1464        .29412        .58869E-02   -.14193    
   3  Normalizat    .72881        .28294        .35887E-03   -1.0277    
   4  Prefactor     1.4274        .22597        .21591E-03   -.79595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80013e-10
Minuit parameter uncertainties:
  1  0.610207
  2  0.294818
  3  0.283512
  4  0.226132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383726': 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) = 4581.5299018
delta logL = 0.89338058764

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.704e+00  6.102e-01  0.000e+00  1.000e+06 ( 1.000e-11)
262        alpha:  2.146e+00  2.948e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  4.097e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.427e+00  2.261e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  7.288e-01  2.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.52
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.15 +/- 0.29
Photon Flux (Free Index): 2.34e-07 +/- 8.92e-08
Energy Flux (Free Index): 1.14e-04 +/- 4.62e-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/383726/cmap_HighResolution_695001601_695260801_4FGL_J2158.8-3013_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='1.14e-04', photon_flux_error='5.28e-08', dlogl='8.93e-01', energy_flux='1.79e-04', photon_flux2='2.34e-07', job_status='DONE', time_completed='2023-01-13 01:57:28.884005', photon_index_error2='0.29', photon_index2='2.15', ts='34.85', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='4.62e-05', EG='0.81', time_epoch_completed='1673603848.88', return_code='0', job_id='383726', GAL2='1.43', EG2='0.73', return_code2='0', energy_flux_error='5.99e-05', photon_flux_error2='8.92e-08', ts2='36.52', photon_index='1.77' WHERE bin_id='1758' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 01:57:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 383726: <4FGL_J2158.8-3013_daily_bin1758> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jan 13 01:45:32 2023
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 01:46:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 01:46:38 2023
Terminated at Fri Jan 13 01:57:29 2023
Results reported at Fri Jan 13 01:57:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1758 329.714 -30.2251 695001601 695260801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2158.8-3013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   445.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            717 sec.

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

