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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1085
RA = 179.637, Dec = 48.4161
tmin = 520560001, tmax = 520819201
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='199778', job_status='RUN', time_executed='2021-09-04 17:44:16.156665', time_epoch_executed='1630802656.16' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199778

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199778/ft1_4FGL_J1158.5+4824_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199778/ft2_4FGL_J1158.5+4824_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199778/ft1_4FGL_J1158.5+4824_daily_bin1085.fits outfile=/scratch/kocevski/199778/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1085.fits ra=179.637 dec=48.4161 rad=12.0 tmin=520560001.0 tmax=520819201.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.20
user 4.99
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199778/ft1_filtered_4FGL_J1158.5+4824_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/199778/ft2_4FGL_J1158.5+4824_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/199778/ltcube_520560001_520819201_4FGL_J1158.5+4824_daily_bin1085.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/199778/ft2_4FGL_J1158.5+4824_daily_bin1085.fits
.....................!
real 11.69
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199778/ft1_filtered_4FGL_J1158.5+4824_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/199778/ft2_4FGL_J1158.5+4824_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/199778/ltcube_520560001_520819201_4FGL_J1158.5+4824_daily_bin1085.fits outfile=/scratch/kocevski/199778/expmap_520560001_520819201_4FGL_J1158.5+4824_daily_bin1085.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/199778/ltcube_520560001_520819201_4FGL_J1158.5+4824_daily_bin1085.fits
.....................!
real 191.31
user 186.03
sys 4.93

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/199778/ft1_filtered_4FGL_J1158.5+4824_daily_bin1085.fits scfile=/scratch/kocevski/199778/ft2_4FGL_J1158.5+4824_daily_bin1085.fits outfile=/scratch/kocevski/199778/cmap_520560001_520819201_4FGL_J1158.5+4824_daily_bin1085.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199778/ft1_filtered_4FGL_J1158.5+4824_daily_bin1085.fits scfile=/scratch/kocevski/199778/ft2_4FGL_J1158.5+4824_daily_bin1085.fits outfile=/scratch/kocevski/199778/cmap_HighResolution_520560001_520819201_4FGL_J1158.5+4824_daily_bin1085.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    108.32       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    32.384       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.721       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5242       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.026       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9716       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.828       1.0000         .10000E-03   10000.    
    17 'norm      '    6.5390       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4773       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21740E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.900       1.0000         .10000E-03   10000.    
    22 'norm      '    5.8134       1.0000         .10000E-03   10000.    
    23 'Prefactor '    68.826       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2347       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74440       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=   4260.918     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2850 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.23        78.178       -.37524E-06   -.24351E-04
   2  Prefactor     .10000E-03    62.385        .22891E-06** at limit **
   3  Prefactor     3.5905        393.82       -.27327E-04   -.17455E-04
   4  Prefactor     .10000E-03    16.671       -.65306E-08** at limit **
   5  Prefactor     .10000E-03    23.823       -.29329E-07** at limit **
   6  norm          32.420        36.347        .14334E-06    .12859E-04
   7  Prefactor     10.721        8.7271       -.48159E-07    .37770E-04
   8  Prefactor     .10000E-03    22.931        .24935E-06** at limit **
   9  norm          1.5245        2.8064        .31237E-06    .72087E-04
  10  Prefactor     21.017        60.896       -.11885E-05   -.51162E-05
  11  norm          4.9719        1.8928       -.37861E-07   -.59613E-04
  12  norm          .10000E-03    3.7840        .31969E-07** at limit **
  13  Prefactor     3.1948        3.0148        .98424E-08   -.38555E-05
  14  Prefactor     .10000E-03    34.054        .13954E-06** at limit **
  15  norm          .10000E-03    3.1895        .14302E-06** at limit **
  16  Prefactor     11.839        16.409       -.20902E-06   -.47806E-05
  17  norm          6.5387        3.2009       -.25751E-07    .51751E-05
  18  norm          2.4685        8.9435       -.34964E-05   -.98871E-04
  19  Prefactor     .10001E-03    153.12       -.29569E-05** at limit **
  20  Prefactor     .10000E-03    4.0317        .19172E-06** at limit **
  21  Prefactor     12.871        28.825       -.20924E-05   -.25242E-04
  22  norm          5.8134        3.3136       -.17234E-07   -.18654E-04
  23  Prefactor     68.830        88.045       -.23385E-06   -.85725E-06
  24  Normalizat    1.2344        .22424        .36672E-05   -.27626E-03
  25  Prefactor     .74475        .26257       -.67339E-05   -.27231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.227
  Prefactor  = 0.0001
  Prefactor  = 3.59049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.4199
  Prefactor  = 10.7213
  Prefactor  = 0.0001
  norm       = 1.52449
  Prefactor  = 21.0168
  norm       = 4.97192
  norm       = 0.0001
  Prefactor  = 3.19484
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8387
  norm       = 6.53875
  norm       = 2.46848
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 12.8705
  norm       = 5.81345
  Prefactor  = 68.8298
  Normalizat = 1.23442
  Prefactor  = 0.744749
 **********
 **   18 **HESSE 
 **********

 FCN=   4260.918     FROM HESSE     STATUS=OK           431 CALLS     3281 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.23        78.365        .19322E-03   -1.3624    
   2  Prefactor     .10000E-03    62.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5905        415.09        .20791E-02   -1.5329    
   4  Prefactor     .10000E-03    16.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          32.420        36.366        .70413E-04   -1.4569    
   7  Prefactor     10.721        8.7644        .12236E-03   -1.5053    
   8  Prefactor     .10000E-03    22.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5245        2.7655        .14011E-03   -1.5461    
  10  Prefactor     21.017        60.937        .87349E-04   -1.4791    
  11  norm          4.9719        1.8998        .47784E-04   -1.5262    
  12  norm          .10000E-03    3.7844        .12402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1948        3.0085        .10512E-03   -1.5350    
  14  Prefactor     .10000E-03    34.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1962        .11386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.839        16.398        .11648E-03   -1.5020    
  17  norm          6.5387        3.2023        .78233E-04   -1.5196    
  18  norm          2.4685        8.8897        .25976E-03   -1.5394    
  19  Prefactor     .10001E-03    152.76        .40305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0528        .12802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.871        28.813        .11153E-03   -1.4990    
  22  norm          5.8134        3.3144        .87030E-04   -1.5226    
  23  Prefactor     68.830        88.073        .48383E-04   -1.4047    
  24  Normalizat    1.2344        .24721        .21866E-03   -.85546    
  25  Prefactor     .74475        .28383        .33380E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40095e-10
Minuit parameter uncertainties:
  1  78.4398
  2  0.000112276
  3  77.7682
  4  3.5108e-06
  5  2.57676e-06
  6  36.3913
  7  8.76548
  8  1.80989e-05
  9  2.76574
  10  61.1184
  11  1.89985
  12  1.47718e-06
  13  3.00862
  14  1.48797e-05
  15  2.75237e-06
  16  16.4039
  17  3.20239
  18  8.89442
  19  0.00250342
  20  5.14007e-06
  21  28.8438
  22  3.31452
  23  88.2401
  24  0.247447
  25  0.284385
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.184e+01  1.640e+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.447e-01  2.844e-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.234e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/199778/likelihoodResults_520560001_520819201_4FGL_J1158.5+4824_daily_bin1085.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) = 4260.87071618
delta logL = 0.0477271448608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4260.86900111
delta logL = 0.0494422182846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.551       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0756       1.0000          .0000       10.000    
     3 'Normalizat'    1.2422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73854       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=   4260.869     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      302 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.561        20.451        .10500E-03    .10827E-05
   2  Index         2.0754        1.0907        .12074E-01    .29978E-04
   3  Normalizat    1.2422        .23148        .21806E-03    .33211E-04
   4  Prefactor     .73863        .28146        .33500E-03   -.18767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5607
  Index      = 2.07544
  Normalizat = 1.24217
  Prefactor  = 0.738632
 **********
 **   18 **HESSE 
 **********

 FCN=   4260.869     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.561        20.297        .42000E-05   -1.4945    
   2  Index         2.0754        1.0828        .24147E-02   -.62477    
   3  Normalizat    1.2422        .23160        .87223E-05   -.85310    
   4  Prefactor     .73863        .28164        .13400E-04   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80466e-11
Minuit parameter uncertainties:
  1  20.3063
  2  1.09607
  3  0.231794
  4  0.282191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199778': 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) = 4260.86900067
delta logL = 0.0494426539781

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.456e+01  2.031e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.075e+00  1.096e+00  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:  7.386e-01  2.822e-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.242e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 179.637 48.416
Photon Index (Free Index): 2.08 +/- 1.10
Photon Flux (Free Index): 1.44e-08 +/- 2.61e-08
Energy Flux (Free Index): 8.32e-06 +/- 1.55e-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/199778/cmap_HighResolution_520560001_520819201_4FGL_J1158.5+4824_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', comment='SUCCESS', energy_flux2='8.32e-06', dlogl='4.94e-02', photon_flux2='1.44e-08', job_status='DONE', time_completed='2021-09-04 17:55:09.463117', photon_index_error2='1.10', photon_index2='2.08', ts='0.95', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='9.87e-08', energy_flux_error2='1.55e-05', EG='1.23', time_epoch_completed='1630803309.46', return_code='0', job_id='199778', GAL2='0.74', EG2='1.24', return_code2='0', photon_flux_error2='2.61e-08', ts2='1.04', photon_index='2.44' WHERE bin_id='1085' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:55:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 199778: <4FGL_J1158.5+4824_daily_bin1085> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin1085> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:41:39 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:41:41 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:41:41 2021
Terminated at Sat Sep  4 17:55:10 2021
Results reported at Sat Sep  4 17:55:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1085 179.637 48.4161 520560001 520819201 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 :                                   650.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

