/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 123 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1158.5+4824_daily_bin88
RA = 179.637, Dec = 48.4161
tmin = 262137601, tmax = 262396801
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='195005', job_status='RUN', time_executed='2021-09-04 17:28:40.883942', time_epoch_executed='1630801720.88' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195005/ft1_4FGL_J1158.5+4824_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195005/ft2_4FGL_J1158.5+4824_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195005/ft1_4FGL_J1158.5+4824_daily_bin88.fits outfile=/scratch/kocevski/195005/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin88.fits ra=179.637 dec=48.4161 rad=12.0 tmin=262137601.0 tmax=262396801.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 1.40
user 1.21
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195005/ft2_4FGL_J1158.5+4824_daily_bin88.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/195005/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin88.fits evtable="EVENTS" outfile="/scratch/kocevski/195005/ft1_filtered_4FGL_J1158.5+4824_daily_bin88.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195005/ft1_filtered_4FGL_J1158.5+4824_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/195005/ft2_4FGL_J1158.5+4824_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/195005/ltcube_262137601_262396801_4FGL_J1158.5+4824_daily_bin88.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/195005/ft2_4FGL_J1158.5+4824_daily_bin88.fits
.....................!
real 13.68
user 13.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195005/ft1_filtered_4FGL_J1158.5+4824_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/195005/ft2_4FGL_J1158.5+4824_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/195005/ltcube_262137601_262396801_4FGL_J1158.5+4824_daily_bin88.fits outfile=/scratch/kocevski/195005/expmap_262137601_262396801_4FGL_J1158.5+4824_daily_bin88.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/195005/ltcube_262137601_262396801_4FGL_J1158.5+4824_daily_bin88.fits
.....................!
real 192.38
user 185.95
sys 5.70

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/195005/ft1_filtered_4FGL_J1158.5+4824_daily_bin88.fits scfile=/scratch/kocevski/195005/ft2_4FGL_J1158.5+4824_daily_bin88.fits outfile=/scratch/kocevski/195005/cmap_262137601_262396801_4FGL_J1158.5+4824_daily_bin88.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195005/ft1_filtered_4FGL_J1158.5+4824_daily_bin88.fits scfile=/scratch/kocevski/195005/ft2_4FGL_J1158.5+4824_daily_bin88.fits outfile=/scratch/kocevski/195005/cmap_HighResolution_262137601_262396801_4FGL_J1158.5+4824_daily_bin88.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.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2151       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6992       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    64.578       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5395       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21367E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3205       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.315       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6707       1.0000         .10000E-03   10000.    
    12 'norm      '    8.3289       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5141       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.585       1.0000         .10000E-03   10000.    
    15 'norm      '    .45532E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8381       1.0000         .10000E-03   10000.    
    18 'norm      '    16.545       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.840       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2125       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1646       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4310       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .38965       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=   6105.608     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2948 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1978        277.94       -.61042E-05    .12278E-05
   2  Prefactor     4.7051        235.70        .13198E-05    .15208E-05
   3  Prefactor     .10000E-03    79.930        .12893E-05** at limit **
   4  Prefactor     .10000E-03    32.222        .18117E-05** at limit **
   5  Prefactor     64.667        83.568        .63523E-05    .22773E-04
   6  norm          .10000E-03    13.816       -.48748E-07** at limit **
   7  Prefactor     2.5552        6.4618       -.31236E-06    .36441E-04
   8  Prefactor     .10000E-03    171.32       -.11477E-05** at limit **
   9  norm          4.3200        2.6850       -.39074E-08    .57883E-04
  10  Prefactor     17.312        24.216        .12410E-07    .15429E-04
  11  norm          2.6705        1.1371       -.39056E-09    .17663E-03
  12  norm          8.3270        11.037       -.17598E-07    .14221E-04
  13  Prefactor     1.5137        2.4769       -.74921E-07    .19992E-04
  14  Prefactor     16.586        48.139        .14086E-06    .95040E-05
  15  norm          .10000E-03    47.602       -.93101E-05** at limit **
  16  Prefactor     .10000E-03    5.3976       -.15928E-07** at limit **
  17  norm          1.8381        1.7818       -.31527E-06   -.15228E-03
  18  norm          16.544        8.9953       -.60230E-07    .59828E-04
  19  Prefactor     37.834        26.504       -.62858E-07    .40745E-04
  20  Prefactor     9.2124        6.8534        .14163E-08    .39900E-04
  21  Prefactor     .10000E-03    5.2452        .39178E-07** at limit **
  22  norm          1.1645        1.1960        .11686E-07    .34193E-04
  23  Prefactor     .10000E-03    29.241       -.96549E-06** at limit **
  24  Normalizat    1.4310        .18763        .12325E-05   -.66156E-04
  25  Prefactor     .38978        .21321       -.29654E-05    .19896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.19778
  Prefactor  = 4.70508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.6673
  norm       = 0.0001
  Prefactor  = 2.55521
  Prefactor  = 0.0001
  norm       = 4.32005
  Prefactor  = 17.3117
  norm       = 2.67049
  norm       = 8.327
  Prefactor  = 1.51365
  Prefactor  = 16.5857
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.83809
  norm       = 16.5438
  Prefactor  = 37.8342
  Prefactor  = 9.2124
  Prefactor  = 0.0001
  norm       = 1.16449
  Prefactor  = 0.0001
  Normalizat = 1.43096
  Prefactor  = 0.389784
 **********
 **   18 **HESSE 
 **********

 FCN=   6105.608     FROM HESSE     STATUS=OK           439 CALLS     3387 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1978        279.15        .17602E-03   -1.5252    
   2  Prefactor     4.7051        235.64        .18563E-03   -1.5274    
   3  Prefactor     .10000E-03    80.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     64.667        84.486        .24969E-03   -1.4098    
   6  norm          .10000E-03    13.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5552        6.4283        .25627E-03   -1.5388    
   8  Prefactor     .10000E-03    175.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3200        2.6800        .96992E-04   -1.5292    
  10  Prefactor     17.312        24.207        .96252E-04   -1.4876    
  11  norm          2.6705        1.1365        .24938E-04   -1.5381    
  12  norm          8.3270        11.015        .13891E-03   -1.5131    
  13  Prefactor     1.5137        2.4459        .15050E-03   -1.5462    
  14  Prefactor     16.586        48.022        .98346E-04   -1.4893    
  15  norm          .10000E-03    46.236        .36825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.4004        .17726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8381        1.7849        .49621E-03   -1.5437    
  18  norm          16.544        8.9907        .98467E-04   -1.4894    
  19  Prefactor     37.834        26.555        .65155E-04   -1.4477    
  20  Prefactor     9.2124        6.8589        .13204E-03   -1.5101    
  21  Prefactor     .10000E-03    5.2477        .17478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1645        1.2113        .84404E-04   -1.5492    
  23  Prefactor     .10000E-03    29.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4310        .19985        .19643E-03   -.79737    
  25  Prefactor     .38978        .22394        .41952E-03   -1.1733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34278e-11
Minuit parameter uncertainties:
  1  76.5612
  2  66.8743
  3  3.06848e-05
  4  8.38683e-08
  5  84.6429
  6  4.41543e-06
  7  6.42999
  8  0.000164473
  9  2.68012
  10  24.2205
  11  1.13649
  12  11.0172
  13  2.44607
  14  48.1342
  15  4.34956e-05
  16  1.11073e-06
  17  1.78498
  18  8.99147
  19  26.5635
  20  6.85948
  21  7.46406e-07
  22  1.21128
  23  1.14713e-05
  24  0.199956
  25  0.224441
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.111e-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:  3.898e-01  2.244e-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.431e+00  2.000e-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: 4.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/195005/likelihoodResults_262137601_262396801_4FGL_J1158.5+4824_daily_bin88.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) = 6105.60910283
delta logL = -0.000873312741533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6105.60822947
delta logL = 4.26825863542e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4220       1.0000          .0000       10.000    
     3 'Normalizat'    1.4310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38979       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=   6105.608     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      259 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.921        .18037E-01** at limit **
   2  Index         1.8820        7.4170        .50000        .18126E-06
   3  Normalizat    1.4310        .62421E-02    .19643E-03   -.51373E-03
   4  Prefactor     .38978        .73711E-02    .41952E-03   -.23915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88199
  Normalizat = 1.43096
  Prefactor  = 0.389782
 **********
 **   18 **HESSE 
 **********

 FCN=   6105.608     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    158.59        .20233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8820        5.8323        .50000       -.67334    
   3  Normalizat    1.4310        .19556E-01    .39285E-04   -.79737    
   4  Prefactor     .38978        .23093E-01    .16781E-04   -1.1733    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29708e-09
Minuit parameter uncertainties:
  1  6.95905e-05
  2  665.448
  3  0.0195564
  4  0.0230938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195005': 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) = 6105.60822736
delta logL = 2.1566520445e-06

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  6.959e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  1.882e+00  6.654e+02  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:  3.898e-01  2.309e-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.431e+00  1.956e-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/195005/cmap_HighResolution_262137601_262396801_4FGL_J1158.5+4824_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.58e-08', time_completed='2021-09-04 17:41:45.467150', job_id='195005', GAL2='0.39', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1630802505.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='2.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='88' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:41:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 195005: <4FGL_J1158.5+4824_daily_bin88> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin88> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:26:24 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:26:26 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:26:26 2021
Terminated at Sat Sep  4 17:41:45 2021
Results reported at Sat Sep  4 17:41:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin88 179.637 48.4161 262137601 262396801 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 :                                   783.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

