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


Performing analysis on: 4FGL_J1158.5+4824_weekly_bin601
RA = 179.637, Dec = 48.4161
tmin = 602467201, tmax = 603072001
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='61685', job_status='RUN', time_executed='2021-07-18 15:02:07.784462', time_epoch_executed='1626645727.78' WHERE source_name='4FGL J1158.5+4824' and cadence='weekly' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61685

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61685/ft1_4FGL_J1158.5+4824_weekly_bin601.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61685/ft2_4FGL_J1158.5+4824_weekly_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61685/ft1_4FGL_J1158.5+4824_weekly_bin601.fits outfile=/scratch/kocevski/61685/ft1_filteredMKT_4FGL_J1158.5+4824_weekly_bin601.fits ra=179.637 dec=48.4161 rad=12.0 tmin=602467201.0 tmax=603072001.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.56
user 6.24
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61685/ft2_4FGL_J1158.5+4824_weekly_bin601.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/61685/ft1_filteredMKT_4FGL_J1158.5+4824_weekly_bin601.fits evtable="EVENTS" outfile="/scratch/kocevski/61685/ft1_filtered_4FGL_J1158.5+4824_weekly_bin601.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.57
user 0.40
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61685/ft1_filtered_4FGL_J1158.5+4824_weekly_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/61685/ft2_4FGL_J1158.5+4824_weekly_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/61685/ltcube_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.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/61685/ft2_4FGL_J1158.5+4824_weekly_bin601.fits
.....................!
real 34.80
user 34.33
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61685/ft1_filtered_4FGL_J1158.5+4824_weekly_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/61685/ft2_4FGL_J1158.5+4824_weekly_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/61685/ltcube_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.fits outfile=/scratch/kocevski/61685/expmap_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.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/61685/ltcube_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.fits
.....................!
real 195.18
user 188.18
sys 6.34

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/61685/ft1_filtered_4FGL_J1158.5+4824_weekly_bin601.fits scfile=/scratch/kocevski/61685/ft2_4FGL_J1158.5+4824_weekly_bin601.fits outfile=/scratch/kocevski/61685/cmap_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.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.60
user 0.45
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61685/ft1_filtered_4FGL_J1158.5+4824_weekly_bin601.fits scfile=/scratch/kocevski/61685/ft2_4FGL_J1158.5+4824_weekly_bin601.fits outfile=/scratch/kocevski/61685/cmap_HighResolution_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.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.61
user 0.44
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/61685/ft1_filtered_4FGL_J1158.5+4824_weekly_bin601.fits', '/scratch/kocevski/61685/ft2_4FGL_J1158.5+4824_weekly_bin601.fits', expMap='/scratch/kocevski/61685/expmap_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.fits', expCube='/scratch/kocevski/61685/ltcube_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/61685/Model_4FGL_J1158.5+4824_weekly_bin601.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/61685/ft1_filtered_4FGL_J1158.5+4824_weekly_bin601.fits
Spacecraft file(s): /scratch/kocevski/61685/ft2_4FGL_J1158.5+4824_weekly_bin601.fits
Exposure map: /scratch/kocevski/61685/expmap_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.fits
Exposure cube: /scratch/kocevski/61685/ltcube_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/61685/Model_4FGL_J1158.5+4824_weekly_bin601.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) = 3560.92273525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10484E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20146E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10896E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .35989E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17184E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.9623       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.770       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3558       1.0000         .10000E-03   10000.    
    12 'norm      '    6.0859       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.101       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12030E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9690       1.0000         .10000E-03   10000.    
    16 'Prefactor '    83.147       1.0000         .10000E-03   10000.    
    17 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    79.776       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.042       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0208       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77188       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3558.821     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     2870 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        5.7128        .34691E-04** at limit **
   2  Prefactor    10000.0        .65526        .10317E-04   -.14487E-03
   3  Prefactor     .18815E-03    19.991       -.52813E-04** at limit **
   4  Prefactor     .28165E-03    449.41       -.12815E-03** at limit **
   5  Prefactor     .16584E-02    150.35       -.15540E-03** at limit **
   6  norm          .11093E-03    51.731        .13869E-03** at limit **
   7  Prefactor     .10008E-03    48.021        .27076E-04** at limit **
   8  Prefactor     .10453E-03    52.356       -.11230E-03** at limit **
   9  norm          6.9597        2.4621       -.38076E-05   -.38226E-02
  10  Prefactor     45.845        16.672        .18106E-04   -.90627E-02
  11  norm          2.3549        2.5670       -.20880E-05    .22570E-03
  12  norm          6.0669        4.9047        .20267E-04    .75083E-03
  13  Prefactor     12.096        8.0027       -.59124E-05   -.17830E-02
  14  Prefactor     .10476E-03    56.835        .91069E-04** at limit **
  15  norm          2.9690        5.5699        .37391E-06   -.63122E-04
  16  Prefactor     83.140        1.8290       -.10650E-05    .12919E-03
  17  norm          .10000E-03    2.3115        .73500E-07** at limit **
  18  norm          .10000E-03    7.1100        .27881E-06** at limit **
  19  Prefactor     79.770        1.5327        .64907E-06   -.13228E-02
  20  Prefactor     .10000E-03    20.239       -.93708E-06** at limit **
  21  Prefactor     .10000E-03    15.442       -.66258E-06** at limit **
  22  norm          2.5993        1.6649       -.50665E-06   -.10501E-03
  23  Prefactor     19.040        1.1550       -.72396E-06    .39899E-04
  24  Normalizat    1.0205        .26856        .34342E-05    .38464E-04
  25  Prefactor     .77235        .32200       -.24748E-05    .21805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 9999.96
  Prefactor  = 0.000188154
  Prefactor  = 0.000281653
  Prefactor  = 0.00165844
  norm       = 0.000110934
  Prefactor  = 0.000100084
  Prefactor  = 0.000104526
  norm       = 6.95974
  Prefactor  = 45.8445
  norm       = 2.35488
  norm       = 6.06686
  Prefactor  = 12.0965
  Prefactor  = 0.000104758
  norm       = 2.96896
  Prefactor  = 83.1404
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 79.7704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.59931
  Prefactor  = 19.0401
  Normalizat = 1.0205
  Prefactor  = 0.77235
 **********
 **   18 **HESSE 
 **********

 FCN=   3558.821     FROM HESSE     STATUS=OK           481 CALLS     3351 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        7325.5        .99119E-02    1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        6297.3        .92208E-02    1.5669    
   3  Prefactor     .18815E-03    1380.0        .10366E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .28165E-03    528.54        .90712E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16584E-02    1284.4        .90712E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11093E-03    190.33        .10656E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10008E-03    47.692        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10453E-03    61.748        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.9597        9.0771        .38011E-02   -1.5180    
  10  Prefactor     45.845        139.85        .14816E-02   -1.4353    
  11  norm          2.3549        3.1022        .66759E-02   -1.5401    
  12  norm          6.0669        20.192        .40687E-02   -1.5215    
  13  Prefactor     12.096        10.028        .28789E-02   -1.5012    
  14  Prefactor     .10476E-03    68.945        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9690        5.5968        .58912E-02   -1.5363    
  16  Prefactor     83.140        71.179        .11013E-02   -1.3882    
  17  norm          .10000E-03    2.2274        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.0828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     79.770        36.019        .11241E-02   -1.3919    
  20  Prefactor     .10000E-03    2.6728        .56891E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.394        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5993        1.6696        .63264E-02   -1.5386    
  23  Prefactor     19.040        60.644        .22946E-02   -1.4835    
  24  Normalizat    1.0205        .23669        .43237E-01   -.92347    
  25  Prefactor     .77235        .27664        .72040E-01   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15822e-06
Minuit parameter uncertainties:
  1  6.53658
  2  102.471
  3  0.714701
  4  0.625307
  5  2.89399
  6  0.0915303
  7  0.00400507
  8  0.0334684
  9  9.07889
  10  140.873
  11  3.10246
  12  20.2151
  13  10.0293
  14  0.036264
  15  5.59775
  16  71.2521
  17  5.49551e-06
  18  2.38301e-05
  19  36.0289
  20  1.27949e-05
  21  9.66828e-06
  22  1.66962
  23  60.841
  24  0.236931
  25  0.277135
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  8.314e+01  7.125e+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:  7.723e-01  2.771e-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.020e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.65
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 1.20e-07
Energy Flux (Fixed Index): 4.34e-05 +/- 3.72e-05

TS (Fixed Index): 2.65
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 3.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61685/likelihoodResults_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.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): 0
logL (Free Index) = 3558.46001063
delta logL = 0.361396703617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3558.44891047
delta logL = 0.372496866081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.921       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9559       1.0000          .0000       10.000    
     3 'Normalizat'    .98462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80182       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3558.449     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      286 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.933        60.734        .56758E-04   -.49713E-03
   2  Index         2.9558        .71199        .40742E-02   -.30688E-03
   3  Normalizat    .98428        .27384        .23854E-03    .72964E-03
   4  Prefactor     .80223        .32422        .31330E-03    .73173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.9332
  Index      = 2.95584
  Normalizat = 0.984283
  Prefactor  = 0.802229
 **********
 **   18 **HESSE 
 **********

 FCN=   3558.449     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.933        55.052        .11352E-04   -1.4294    
   2  Index         2.9558        .64525        .16297E-03   -.42117    
   3  Normalizat    .98428        .27387        .47708E-04   -.93559    
   4  Prefactor     .80223        .32410        .62660E-04   -.99646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.646e-09
Minuit parameter uncertainties:
  1  55.1083
  2  0.647421
  3  0.27426
  4  0.324876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61685': 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) = 3558.44890962
delta logL = 0.372497716198

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  4.993e+01  5.511e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.956e+00  6.474e-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:  8.022e-01  3.249e-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:  9.843e-01  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.52
Ra Dec: 179.637 48.416
Photon Index (Free Index): 2.96 +/- 0.65
Photon Flux (Free Index): 1.96e-07 +/- 1.30e-07
Energy Flux (Free Index): 4.01e-05 +/- 2.56e-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/61685/cmap_HighResolution_602467201_603072001_4FGL_J1158.5+4824_weekly_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-02', comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='4.01e-05', photon_flux_error='1.20e-07', dlogl='3.72e-01', energy_flux='4.34e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-07-18 15:12:56.530850', photon_index_error2='0.65', photon_index2='2.96', ts='2.65', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='3.37e-07', energy_flux_error2='2.56e-05', EG='1.02', time_epoch_completed='1626646376.53', return_code='0', job_id='61685', GAL2='0.80', EG2='0.98', return_code2='0', energy_flux_error='3.72e-05', photon_flux_error2='1.30e-07', ts2='3.52', photon_index='2.44' WHERE bin_id='601' AND source_name='4FGL J1158.5+4824' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 18 15:12:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0284>
Subject: Job 61685: <4FGL_J1158.5+4824_weekly_bin601> in cluster <slac> Done

Job <4FGL_J1158.5+4824_weekly_bin601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jul 18 15:00:59 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 18 15:01:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 18 15:01:53 2021
Terminated at Sun Jul 18 15:12:57 2021
Results reported at Sun Jul 18 15:12:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_weekly_bin601 179.637 48.4161 602467201 603072001 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 :                                   641.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             297.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            718 sec.

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

