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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin685
RA = 179.637, Dec = 48.4161
tmin = 416880001, tmax = 417139201
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='197825', job_status='RUN', time_executed='2021-09-04 17:36:41.590893', time_epoch_executed='1630802201.59' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197825/ft1_4FGL_J1158.5+4824_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197825/ft2_4FGL_J1158.5+4824_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197825/ft1_4FGL_J1158.5+4824_daily_bin685.fits outfile=/scratch/kocevski/197825/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin685.fits ra=179.637 dec=48.4161 rad=12.0 tmin=416880001.0 tmax=417139201.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 5.33
user 5.06
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197825/ft2_4FGL_J1158.5+4824_daily_bin685.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/197825/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin685.fits evtable="EVENTS" outfile="/scratch/kocevski/197825/ft1_filtered_4FGL_J1158.5+4824_daily_bin685.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197825/ft1_filtered_4FGL_J1158.5+4824_daily_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/197825/ft2_4FGL_J1158.5+4824_daily_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/197825/ltcube_416880001_417139201_4FGL_J1158.5+4824_daily_bin685.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/197825/ft2_4FGL_J1158.5+4824_daily_bin685.fits
.....................!
real 12.25
user 11.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197825/ft1_filtered_4FGL_J1158.5+4824_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/197825/ft2_4FGL_J1158.5+4824_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/197825/ltcube_416880001_417139201_4FGL_J1158.5+4824_daily_bin685.fits outfile=/scratch/kocevski/197825/expmap_416880001_417139201_4FGL_J1158.5+4824_daily_bin685.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/197825/ltcube_416880001_417139201_4FGL_J1158.5+4824_daily_bin685.fits
.....................!
real 189.28
user 184.93
sys 3.88

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/197825/ft1_filtered_4FGL_J1158.5+4824_daily_bin685.fits scfile=/scratch/kocevski/197825/ft2_4FGL_J1158.5+4824_daily_bin685.fits outfile=/scratch/kocevski/197825/cmap_416880001_417139201_4FGL_J1158.5+4824_daily_bin685.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197825/ft1_filtered_4FGL_J1158.5+4824_daily_bin685.fits scfile=/scratch/kocevski/197825/ft2_4FGL_J1158.5+4824_daily_bin685.fits outfile=/scratch/kocevski/197825/cmap_HighResolution_416880001_417139201_4FGL_J1158.5+4824_daily_bin685.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.902       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.131       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0345       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3241       1.0000         .10000E-03   10000.    
     9 'norm      '    8.2511       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.2806       1.0000         .10000E-03   10000.    
    12 'norm      '    12.060       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .38049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.903       1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .25310E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    64.450       1.0000         .10000E-03   10000.    
    22 'norm      '    2.7110       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.797       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1328       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64211       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=   3903.045     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     2944 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.903        115.94       -.90093E-08   -.19261E-05
   2  Prefactor     48.113        109.88       -.43507E-06   -.33538E-05
   3  Prefactor     .10000E-03    82.484       -.17245E-06** at limit **
   4  Prefactor     .10000E-03    63.105       -.61096E-06** at limit **
   5  Prefactor     .10000E-03    33.172       -.20137E-07** at limit **
   6  norm          .10000E-03    30.398       -.13906E-06** at limit **
   7  Prefactor     4.0366        10.271        .34664E-05    .21826E-04
   8  Prefactor     4.2359        176.03       -.14754E-04   -.58505E-05
   9  norm          8.2511        3.9239       -.14420E-07   -.49295E-05
  10  Prefactor     .10000E-03    15.605       -.87919E-07** at limit **
  11  norm          4.2815        1.8627        .37925E-07   -.28943E-04
  12  norm          12.062        13.020       -.37931E-07    .12258E-05
  13  Prefactor     .10000E-03    2.3381       -.26098E-06** at limit **
  14  Prefactor     45.836        87.060       -.56745E-06   -.79315E-05
  15  norm          .10000E-03    3.8764        .39796E-06** at limit **
  16  Prefactor     .10000E-03    9.3807       -.76198E-07** at limit **
  17  norm          .10000E-03    1.6501       -.27027E-06** at limit **
  18  norm          .10000E-03    3.2878       -.45847E-08** at limit **
  19  Prefactor     .10000E-03    28.464        .18837E-06** at limit **
  20  Prefactor     .10000E-03    3.4922       -.78024E-07** at limit **
  21  Prefactor     64.434        31.115        .15395E-06    .23773E-04
  22  norm          2.7109        2.4505       -.13643E-08    .50519E-05
  23  Prefactor     19.009        102.45        .19149E-06    .15338E-04
  24  Normalizat    1.1327        .20715       -.99959E-06    .16525E-03
  25  Prefactor     .64216        .23756        .24276E-05    .21521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.9033
  Prefactor  = 48.1125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.03664
  Prefactor  = 4.23595
  norm       = 8.25106
  Prefactor  = 0.0001
  norm       = 4.28149
  norm       = 12.0615
  Prefactor  = 0.000100001
  Prefactor  = 45.8356
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.434
  norm       = 2.71085
  Prefactor  = 19.0094
  Normalizat = 1.13275
  Prefactor  = 0.642161
 **********
 **   18 **HESSE 
 **********

 FCN=   3903.045     FROM HESSE     STATUS=OK           423 CALLS     3367 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.903        116.22        .56768E-04   -1.4294    
   2  Prefactor     48.113        109.86        .57799E-04   -1.4320    
   3  Prefactor     .10000E-03    82.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    63.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    30.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0366        10.238        .20076E-03   -1.5306    
   8  Prefactor     4.2359        180.61        .19372E-03   -1.5296    
   9  norm          8.2511        3.9217        .82416E-04   -1.5133    
  10  Prefactor     .10000E-03    15.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.2815        1.8708        .48772E-04   -1.5294    
  12  norm          12.062        13.024        .11535E-03   -1.5013    
  13  Prefactor     .10000E-03    12.511        .18214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.836        87.507        .59178E-04   -1.4353    
  15  norm          .10000E-03    3.8859        .12009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.3872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.0462        .15189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.2942        .11062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5144        .11401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     64.434        31.128        .49988E-04   -1.4101    
  22  norm          2.7109        2.4443        .89660E-04   -1.5379    
  23  Prefactor     19.009        100.41        .92379E-04   -1.4836    
  24  Normalizat    1.1327        .23293        .20594E-03   -.88707    
  25  Prefactor     .64216        .26588        .32042E-03   -1.0584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28402e-10
Minuit parameter uncertainties:
  1  116.755
  2  110.332
  3  5.03259e-06
  4  1.87313e-05
  5  2.07895e-05
  6  4.51894e-05
  7  10.2421
  8  55.4991
  9  3.92182
  10  1.30697e-07
  11  1.87086
  12  13.0269
  13  0.000268454
  14  87.7536
  15  4.64647e-07
  16  1.39184e-06
  17  0.000146295
  18  3.23752e-07
  19  1.59964e-05
  20  8.38982e-09
  21  31.1359
  22  2.44438
  23  87.6082
  24  0.23314
  25  0.266409
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.392e-06  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:  6.422e-01  2.664e-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.133e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 7.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197825/likelihoodResults_416880001_417139201_4FGL_J1158.5+4824_daily_bin685.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3903.04553101
delta logL = -0.000506413337462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3903.04502459
delta logL = 9.12132236408e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4276       1.0000          .0000       10.000    
     3 'Normalizat'    1.1327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64217       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=   3903.045     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      250 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.836        .18142E-01** at limit **
   2  Index         1.9009        8.5068        .50000        .79694E-07
   3  Normalizat    1.1327        .98105E-02    .20594E-03    .74425E-03
   4  Prefactor     .64217        .11835E-01    .32042E-03    .50848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90094
  Normalizat = 1.13275
  Prefactor  = 0.642166
 **********
 **   18 **HESSE 
 **********

 FCN=   3903.045     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    632.64        .20568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9009        8.7416        .50000       -.66850    
   3  Normalizat    1.1327        .38326E-01    .41189E-04   -.88707    
   4  Prefactor     .64217        .46232E-01    .64083E-04   -1.0584    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11197e-10
Minuit parameter uncertainties:
  1  0.000983024
  2  1768.24
  3  0.0383267
  4  0.046235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197825': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3903.04502367
delta logL = 9.29002453631e-07

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  9.830e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  1.901e+00  1.768e+03  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:  6.422e-01  4.624e-02  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.133e+00  3.833e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

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/197825/cmap_HighResolution_416880001_417139201_4FGL_J1158.5+4824_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-04 17:47:03.304946', job_id='197825', GAL2='0.64', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630802823.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='9.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='685' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:47:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 197825: <4FGL_J1158.5+4824_daily_bin685> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin685> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:36:25 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:36:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:36:27 2021
Terminated at Sat Sep  4 17:47:04 2021
Results reported at Sat Sep  4 17:47:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin685 179.637 48.4161 416880001 417139201 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 :                                   620.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             305.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            639 sec.

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

