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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin779
RA = 179.637, Dec = 48.4161
tmin = 441244801, tmax = 441504001
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='197976', job_status='RUN', time_executed='2021-09-04 17:36:54.995413', time_epoch_executed='1630802215.0' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197976/ft1_4FGL_J1158.5+4824_daily_bin779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197976/ft2_4FGL_J1158.5+4824_daily_bin779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197976/ft1_4FGL_J1158.5+4824_daily_bin779.fits outfile=/scratch/kocevski/197976/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin779.fits ra=179.637 dec=48.4161 rad=12.0 tmin=441244801.0 tmax=441504001.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 3.38
user 3.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197976/ft2_4FGL_J1158.5+4824_daily_bin779.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/197976/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin779.fits evtable="EVENTS" outfile="/scratch/kocevski/197976/ft1_filtered_4FGL_J1158.5+4824_daily_bin779.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.62
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197976/ft1_filtered_4FGL_J1158.5+4824_daily_bin779.fits" evtable="EVENTS" scfile=/scratch/kocevski/197976/ft2_4FGL_J1158.5+4824_daily_bin779.fits sctable="SC_DATA" outfile=/scratch/kocevski/197976/ltcube_441244801_441504001_4FGL_J1158.5+4824_daily_bin779.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/197976/ft2_4FGL_J1158.5+4824_daily_bin779.fits
.....................!
real 12.34
user 11.66
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197976/ft1_filtered_4FGL_J1158.5+4824_daily_bin779.fits evtable="EVENTS" scfile=/scratch/kocevski/197976/ft2_4FGL_J1158.5+4824_daily_bin779.fits sctable="SC_DATA" expcube=/scratch/kocevski/197976/ltcube_441244801_441504001_4FGL_J1158.5+4824_daily_bin779.fits outfile=/scratch/kocevski/197976/expmap_441244801_441504001_4FGL_J1158.5+4824_daily_bin779.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/197976/ltcube_441244801_441504001_4FGL_J1158.5+4824_daily_bin779.fits
.....................!
real 192.67
user 186.56
sys 4.68

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/197976/ft1_filtered_4FGL_J1158.5+4824_daily_bin779.fits scfile=/scratch/kocevski/197976/ft2_4FGL_J1158.5+4824_daily_bin779.fits outfile=/scratch/kocevski/197976/cmap_441244801_441504001_4FGL_J1158.5+4824_daily_bin779.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197976/ft1_filtered_4FGL_J1158.5+4824_daily_bin779.fits scfile=/scratch/kocevski/197976/ft2_4FGL_J1158.5+4824_daily_bin779.fits outfile=/scratch/kocevski/197976/cmap_HighResolution_441244801_441504001_4FGL_J1158.5+4824_daily_bin779.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    62.040       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.939       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.274       1.0000         .10000E-03   10000.    
     9 'norm      '    6.2471       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.909       1.0000         .10000E-03   10000.    
    11 'norm      '    9.6187       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8864       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23718E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.119       1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.298       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4485       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0240       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1983       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.462       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1785       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90287       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85883       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=   6892.588     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2894 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.941        .70990E-06** at limit **
   2  Prefactor     .10000E-03    82.192        .38036E-05** at limit **
   3  Prefactor     74.028        102.53       -.89104E-04    .77238E-06
   4  Prefactor     62.057        53.851        .14496E-04    .10281E-04
   5  Prefactor     .10000E-03    17.187       -.45866E-06** at limit **
   6  norm          18.938        24.785       -.59251E-06    .27106E-05
   7  Prefactor     .10000E-03    4.0292       -.43748E-07** at limit **
   8  Prefactor     25.276        24.748       -.68682E-06    .70698E-05
   9  norm          6.2479        3.1382        .72006E-06   -.34339E-04
  10  Prefactor     29.883        50.444       -.32414E-04   -.14016E-04
  11  norm          9.6183        2.1192       -.12442E-06    .10724E-03
  12  norm          2.8859        6.4520       -.39410E-05   -.34492E-03
  13  Prefactor     .10000E-03    1.5599       -.30063E-06** at limit **
  14  Prefactor     19.150        72.251        .58656E-04    .13565E-04
  15  norm          .10000E-03    3.2311       -.21858E-06** at limit **
  16  Prefactor     36.257        20.931       -.90934E-07    .17106E-03
  17  norm          3.4490        2.2415       -.32182E-06   -.31337E-03
  18  norm          3.0247        5.2001       -.27900E-05   -.56291E-03
  19  Prefactor     .10000E-03    7.8284       -.10777E-06** at limit **
  20  Prefactor     7.1996        5.7541       -.30823E-06   -.43925E-04
  21  Prefactor     12.467        15.347       -.17541E-05   -.15590E-05
  22  norm          1.1783        1.8225       -.32733E-06   -.97739E-03
  23  Prefactor     .10000E-03    28.669       -.89757E-06** at limit **
  24  Normalizat    .90252        .15647        .16904E-05    .13747E-03
  25  Prefactor     .85919        .18321        .20952E-05    .90192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.0278
  Prefactor  = 62.0565
  Prefactor  = 0.0001
  norm       = 18.9378
  Prefactor  = 0.0001
  Prefactor  = 25.2758
  norm       = 6.24787
  Prefactor  = 29.883
  norm       = 9.61832
  norm       = 2.88591
  Prefactor  = 0.0001
  Prefactor  = 19.1501
  norm       = 0.0001
  Prefactor  = 36.2574
  norm       = 3.44905
  norm       = 3.02468
  Prefactor  = 0.0001
  Prefactor  = 7.19962
  Prefactor  = 12.4665
  norm       = 1.17832
  Prefactor  = 0.0001
  Normalizat = 0.902521
  Prefactor  = 0.859189
 **********
 **   18 **HESSE 
 **********

 FCN=   6892.588     FROM HESSE     STATUS=OK           431 CALLS     3325 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     74.028        102.53        .23319E-03   -1.3985    
   4  Prefactor     62.057        54.055        .50944E-04   -1.4131    
   5  Prefactor     .10000E-03    17.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.938        24.786        .92034E-04   -1.4837    
   7  Prefactor     .10000E-03    4.1158        .16256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.276        24.744        .79681E-04   -1.4702    
   9  norm          6.2479        3.1341        .99082E-04   -1.5208    
  10  Prefactor     29.883        50.796        .73261E-04   -1.4614    
  11  norm          9.6183        2.1463        .43586E-04   -1.5088    
  12  norm          2.8859        6.4324        .23921E-03   -1.5368    
  13  Prefactor     .10000E-03    6.2209        .18867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.150        72.583        .91599E-04   -1.4832    
  15  norm          .10000E-03    3.2641        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.257        20.053        .66519E-04   -1.4503    
  17  norm          3.4490        2.2469        .93821E-04   -1.5337    
  18  norm          3.0247        5.1950        .23336E-03   -1.5360    
  19  Prefactor     .10000E-03    7.8557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1996        5.7570        .14951E-03   -1.5171    
  21  Prefactor     12.467        15.361        .11347E-03   -1.5002    
  22  norm          1.1783        1.7887        .13401E-03   -1.5491    
  23  Prefactor     .10000E-03    28.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90252        .18569        .23311E-03   -.96372    
  25  Prefactor     .85919        .21637        .29413E-03   -.97582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04314e-10
Minuit parameter uncertainties:
  1  1.79357e-05
  2  0.000278625
  3  102.779
  4  54.0982
  5  4.01824e-06
  6  24.7997
  7  3.98745e-05
  8  24.7539
  9  3.13418
  10  50.87
  11  2.14629
  12  6.43392
  13  5.6878e-05
  14  72.9202
  15  1.08191e-05
  16  20.0564
  17  2.24698
  18  5.19576
  19  1.92229e-05
  20  5.75742
  21  15.3661
  22  1.78881
  23  3.19395e-05
  24  0.185822
  25  0.216583
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  3.626e+01  2.006e+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:  8.592e-01  2.166e-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.025e-01  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.30
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.09e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.05e-05

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) = 6892.50162127
delta logL = 0.0865042018622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6892.49423601
delta logL = 0.0938894653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.929       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7392       1.0000          .0000       10.000    
     3 'Normalizat'    .87355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88089       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=   6892.494     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      292 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.925        26.431        .73236E-04    .25620E-03
   2  Index         2.7391        .75393        .56871E-02    .76407E-04
   3  Normalizat    .87347        .18868        .23645E-03   -.26603E-03
   4  Prefactor     .88109        .22159        .29085E-03   -.46952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9254
  Index      = 2.73906
  Normalizat = 0.873468
  Prefactor  = 0.881086
 **********
 **   18 **HESSE 
 **********

 FCN=   6892.494     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.925        23.270        .14647E-04   -1.4613    
   2  Index         2.7391        .66265        .22748E-03   -.46922    
   3  Normalizat    .87347        .18650        .94581E-05   -.97399    
   4  Prefactor     .88109        .22031        .58169E-04   -.96805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70303e-10
Minuit parameter uncertainties:
  1  23.277
  2  0.665116
  3  0.186634
  4  0.220529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197976': 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) = 6892.4942352
delta logL = 0.093890273768

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.993e+01  2.328e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.739e+00  6.651e-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.811e-01  2.205e-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:  8.735e-01  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.46
Ra Dec: 179.637 48.416
Photon Index (Free Index): 2.74 +/- 0.67
Photon Flux (Free Index): 8.13e-08 +/- 5.72e-08
Energy Flux (Free Index): 1.90e-05 +/- 9.29e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/197976/cmap_HighResolution_441244801_441504001_4FGL_J1158.5+4824_daily_bin779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.09e-08', energy_flux2='1.90e-05', photon_flux_error='3.37e-08', dlogl='9.39e-02', energy_flux='1.89e-05', photon_flux2='8.13e-08', job_status='DONE', time_completed='2021-09-04 17:49:24.954722', photon_index_error2='0.67', photon_index2='2.74', ts='8.30', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='9.29e-06', EG='0.90', time_epoch_completed='1630802964.95', return_code='0', job_id='197976', GAL2='0.88', EG2='0.87', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='5.72e-08', ts2='8.46', photon_index='2.44' WHERE bin_id='779' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:49:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 197976: <4FGL_J1158.5+4824_daily_bin779> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin779> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:36:36 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:36:38 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:38 2021
Terminated at Sat Sep  4 17:49:25 2021
Results reported at Sat Sep  4 17:49:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin779 179.637 48.4161 441244801 441504001 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 :                                   747.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             335.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

