aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 8 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 = 17006
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1158.5+4824_weekly_bin344
RA = 179.637, Dec = 48.4161
tmin = 447033601, tmax = 447638401
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='60134', job_status='RUN', time_executed='2021-07-18 14:56:53.943346', time_epoch_executed='1626645413.94' WHERE source_name='4FGL J1158.5+4824' and cadence='weekly' and bin_id='344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60134

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60134/ft1_4FGL_J1158.5+4824_weekly_bin344.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60134/ft1_4FGL_J1158.5+4824_weekly_bin344.fits outfile=/scratch/kocevski/60134/ft1_filteredMKT_4FGL_J1158.5+4824_weekly_bin344.fits ra=179.637 dec=48.4161 rad=12.0 tmin=447033601.0 tmax=447638401.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 6.01
user 5.73
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.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/60134/ft1_filteredMKT_4FGL_J1158.5+4824_weekly_bin344.fits evtable="EVENTS" outfile="/scratch/kocevski/60134/ft1_filtered_4FGL_J1158.5+4824_weekly_bin344.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.53
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60134/ft1_filtered_4FGL_J1158.5+4824_weekly_bin344.fits" evtable="EVENTS" scfile=/scratch/kocevski/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.fits sctable="SC_DATA" outfile=/scratch/kocevski/60134/ltcube_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.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/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.fits
.....................!
real 30.40
user 29.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60134/ft1_filtered_4FGL_J1158.5+4824_weekly_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.fits sctable="SC_DATA" expcube=/scratch/kocevski/60134/ltcube_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.fits outfile=/scratch/kocevski/60134/expmap_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.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/60134/ltcube_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.fits
.....................!
real 158.21
user 153.20
sys 4.61

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

Setting source of interest to:
4FGL J1158.5+4824 @ 179.637 48.4161

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/60134/ft1_filtered_4FGL_J1158.5+4824_weekly_bin344.fits scfile=/scratch/kocevski/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.fits outfile=/scratch/kocevski/60134/cmap_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.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=179.637 yref=48.4161 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60134/ft1_filtered_4FGL_J1158.5+4824_weekly_bin344.fits scfile=/scratch/kocevski/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.fits outfile=/scratch/kocevski/60134/cmap_HighResolution_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.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=179.637 yref=48.4161 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.52
user 0.35
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/60134/ft1_filtered_4FGL_J1158.5+4824_weekly_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60134/Model_4FGL_J1158.5+4824_weekly_bin344.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/60134/ft1_filtered_4FGL_J1158.5+4824_weekly_bin344.fits.....................!
real 78.36
user 77.06
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/60134/ft1_filtered_4FGL_J1158.5+4824_weekly_bin344.fits', '/scratch/kocevski/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.fits', expMap='/scratch/kocevski/60134/expmap_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.fits', expCube='/scratch/kocevski/60134/ltcube_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/60134/Model_4FGL_J1158.5+4824_weekly_bin344.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1158.5+4824'

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.005e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/60134/ft1_filtered_4FGL_J1158.5+4824_weekly_bin344.fits
Spacecraft file(s): /scratch/kocevski/60134/ft2_4FGL_J1158.5+4824_weekly_bin344.fits
Exposure map: /scratch/kocevski/60134/expmap_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.fits
Exposure cube: /scratch/kocevski/60134/ltcube_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/60134/Model_4FGL_J1158.5+4824_weekly_bin344.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) = 12369.9852849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.702       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2558       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    30.103       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9861       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.817       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7063       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23199E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .74713       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1539       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.237       1.0000         .10000E-03   10000.    
    15 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.171       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7806       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0945       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.650       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0375       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0278       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92552       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12369.88     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2509 TOTAL
                     EDM=   .57E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.661        42.452        .36469E-05    .53237E-05
   2  Prefactor     .10000E-03    29.413       -.21377E-06** at limit **
   3  Prefactor     3.2204        146.21        .11022E-04   -.27764E-05
   4  Prefactor     .10000E-03    13.359       -.29571E-07** at limit **
   5  Prefactor     .10000E-03    39.003        .18413E-06** at limit **
   6  norm          30.105        24.987        .34576E-07   -.10494E-05
   7  Prefactor     4.9845        4.3798        .13746E-05   -.52596E-05
   8  Prefactor     22.813        19.434       -.46656E-06   -.38523E-05
   9  norm          1.7068        1.7017        .11113E-06    .30528E-04
  10  Prefactor     .10000E-03    90.861       -.68789E-06** at limit **
  11  norm          .74707        .55207        .43961E-07    .18987E-03
  12  norm          2.8024        2.9740       -.13402E-07    .19822E-05
  13  Prefactor     1.1533        1.3762        .42337E-07    .57340E-05
  14  Prefactor     23.239        22.077        .98510E-07    .18003E-05
  15  norm          .10000E-03    4.0541        .94623E-07** at limit **
  16  Prefactor     18.171        11.897        .64953E-07   -.77175E-05
  17  norm          2.7802        1.4346        .29930E-07   -.11122E-04
  18  norm          6.0937        4.3165        .43257E-06   -.12936E-04
  19  Prefactor     .10000E-03    12.770        .15952E-06** at limit **
  20  Prefactor     .10000E-03    1.7277        .13489E-07** at limit **
  21  Prefactor     18.644        14.313        .12328E-06   -.67143E-05
  22  norm          3.0374        1.3157        .13626E-07   -.50221E-05
  23  Prefactor     .10000E-03    38.834        .29789E-06** at limit **
  24  Normalizat    1.0281        .11611       -.48490E-06    .84058E-05
  25  Prefactor     .92513        .14045       -.20338E-06   -.50726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.661
  Prefactor  = 0.0001
  Prefactor  = 3.22045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.1046
  Prefactor  = 4.98452
  Prefactor  = 22.8129
  norm       = 1.70679
  Prefactor  = 0.0001
  norm       = 0.747071
  norm       = 2.80237
  Prefactor  = 1.15332
  Prefactor  = 23.2393
  norm       = 0.0001
  Prefactor  = 18.1707
  norm       = 2.78019
  norm       = 6.09366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6443
  norm       = 3.0374
  Prefactor  = 0.0001
  Normalizat = 1.02813
  Prefactor  = 0.925127
 **********
 **   18 **HESSE 
 **********

 FCN=   12369.88     FROM HESSE     STATUS=OK           431 CALLS     2940 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.661        42.504        .31415E-03   -1.4432    
   2  Prefactor     .10000E-03    29.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2204        146.76        .22445E-03   -1.5349    
   4  Prefactor     .10000E-03    13.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          30.105        24.991        .73024E-04   -1.4610    
   7  Prefactor     4.9845        4.3857        .90049E-03   -1.5261    
   8  Prefactor     22.813        19.435        .83856E-04   -1.4752    
   9  norm          1.7068        1.6838        .13849E-03   -1.5447    
  10  Prefactor     .10000E-03    94.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .74707        .54060        .66223E-04   -1.5535    
  12  norm          2.8024        2.9792        .19268E-03   -1.5373    
  13  Prefactor     1.1533        1.3431        .13460E-03   -1.5493    
  14  Prefactor     23.239        22.017        .83095E-04   -1.4743    
  15  norm          .10000E-03    4.1809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.171        11.829        .93956E-04   -1.4855    
  17  norm          2.7802        1.4326        .91430E-04   -1.5374    
  18  norm          6.0937        4.3111        .81315E-03   -1.5214    
  19  Prefactor     .10000E-03    12.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7473        .14275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.644        14.327        .92744E-04   -1.4844    
  22  norm          3.0374        1.3168        .81617E-04   -1.5359    
  23  Prefactor     .10000E-03    39.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0281        .13554        .21775E-03   -.92094    
  25  Prefactor     .92513        .16397        .28542E-03   -.95269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73988e-10
Minuit parameter uncertainties:
  1  42.536
  2  9.34381e-07
  3  43.5941
  4  9.08216e-06
  5  1.1946e-05
  6  24.9992
  7  4.38594
  8  19.4407
  9  1.68388
  10  0.000121121
  11  0.540602
  12  2.97938
  13  1.34309
  14  22.0243
  15  4.16923e-06
  16  11.831
  17  1.43265
  18  4.31137
  19  8.69207e-06
  20  1.30505e-06
  21  14.3293
  22  1.31681
  23  1.67469e-05
  24  0.135587
  25  0.164053
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.817e+01  1.183e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  9.251e-01  1.641e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.028e+00  1.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.18
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.05e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 9.48e-06 +/- 6.17e-06

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) = 12369.5827167
delta logL = 0.293935658465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12369.5681611
delta logL = 0.308491217431

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12369.57     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      267 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.483        385.50        .21618E-02    .57070E-04
   2  Index         2.0261        5.9828        .25648        .60181E-04
   3  Normalizat    1.0402        .59040E-01    .41264E-01    .56660E-03
   4  Prefactor     .91728        .55377E-01    .64832E-01    .80048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4827
  Index      = 2.0261
  Normalizat = 1.04018
  Prefactor  = 0.917284
 **********
 **   18 **HESSE 
 **********

 FCN=   12369.57     FROM HESSE     STATUS=OK            29 CALLS      296 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.483        15.075        .86472E-04   -1.4781    
   2  Index         2.0261        .53448        .95779E-02   -.63699    
   3  Normalizat    1.0402        .13092        .21665E-03   -.91696    
   4  Prefactor     .91728        .16356        .28675E-03   -.95540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59203e-10
Minuit parameter uncertainties:
  1  15.0775
  2  0.536067
  3  0.13096
  4  0.163648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60134': 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) = 12369.5681566
delta logL = 0.30849571898

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.148e+01  1.508e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.026e+00  5.361e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  9.173e-01  1.636e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.040e+00  1.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.81
Ra Dec: 179.637 48.416
Photon Index (Free Index): 2.03 +/- 0.54
Photon Flux (Free Index): 1.99e-08 +/- 2.01e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.15e-05

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/60134/cmap_HighResolution_447033601_447638401_4FGL_J1158.5+4824_weekly_bin344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.05e-08', energy_flux2='1.29e-05', photon_flux_error='1.99e-08', dlogl='3.08e-01', energy_flux='9.48e-06', photon_flux2='1.99e-08', job_status='DONE', time_completed='2021-07-18 15:11:45.182791', photon_index_error2='0.54', photon_index2='2.03', ts='5.18', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='1.03', time_epoch_completed='1626646305.18', return_code='0', job_id='60134', GAL2='0.92', EG2='1.04', return_code2='0', energy_flux_error='6.17e-06', photon_flux_error2='2.01e-08', ts2='5.81', photon_index='2.44' WHERE bin_id='344' AND source_name='4FGL J1158.5+4824' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 18 15:11:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0175>
Subject: Job 60134: <4FGL_J1158.5+4824_weekly_bin344> in cluster <slac> Done

Job <4FGL_J1158.5+4824_weekly_bin344> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul 18 14:55:46 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 18 14:56:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 18 14:56:38 2021
Terminated at Sun Jul 18 15:11:46 2021
Results reported at Sun Jul 18 15:11:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_weekly_bin344 179.637 48.4161 447033601 447638401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1158.5+4824 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   884.14 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             333.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            960 sec.

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

