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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin69
RA = 179.637, Dec = 48.4161
tmin = 257212801, tmax = 257472001
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='194986', job_status='RUN', time_executed='2021-09-04 17:28:37.189729', time_epoch_executed='1630801717.19' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194986/ft1_4FGL_J1158.5+4824_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194986/ft2_4FGL_J1158.5+4824_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194986/ft1_4FGL_J1158.5+4824_daily_bin69.fits outfile=/scratch/kocevski/194986/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin69.fits ra=179.637 dec=48.4161 rad=12.0 tmin=257212801.0 tmax=257472001.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.79
user 1.59
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194986/ft2_4FGL_J1158.5+4824_daily_bin69.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/194986/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin69.fits evtable="EVENTS" outfile="/scratch/kocevski/194986/ft1_filtered_4FGL_J1158.5+4824_daily_bin69.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.41
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194986/ft1_filtered_4FGL_J1158.5+4824_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/194986/ft2_4FGL_J1158.5+4824_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/194986/ltcube_257212801_257472001_4FGL_J1158.5+4824_daily_bin69.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/194986/ft2_4FGL_J1158.5+4824_daily_bin69.fits
.....................!
real 9.67
user 9.38
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194986/ft1_filtered_4FGL_J1158.5+4824_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/194986/ft2_4FGL_J1158.5+4824_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/194986/ltcube_257212801_257472001_4FGL_J1158.5+4824_daily_bin69.fits outfile=/scratch/kocevski/194986/expmap_257212801_257472001_4FGL_J1158.5+4824_daily_bin69.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/194986/ltcube_257212801_257472001_4FGL_J1158.5+4824_daily_bin69.fits
.....................!
real 145.58
user 141.87
sys 3.47

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/194986/ft1_filtered_4FGL_J1158.5+4824_daily_bin69.fits scfile=/scratch/kocevski/194986/ft2_4FGL_J1158.5+4824_daily_bin69.fits outfile=/scratch/kocevski/194986/cmap_257212801_257472001_4FGL_J1158.5+4824_daily_bin69.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.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194986/ft1_filtered_4FGL_J1158.5+4824_daily_bin69.fits scfile=/scratch/kocevski/194986/ft2_4FGL_J1158.5+4824_daily_bin69.fits outfile=/scratch/kocevski/194986/cmap_HighResolution_257212801_257472001_4FGL_J1158.5+4824_daily_bin69.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.44
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66444       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0552       1.0000         .10000E-03   10000.    
     8 'Prefactor '    94.743       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11443E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.6961       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9604       1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.628       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2174       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2623       1.0000         .10000E-03   10000.    
    18 'norm      '    11.882       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.711       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4903       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.604       1.0000         .10000E-03   10000.    
    22 'norm      '    .86667       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67393       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=   5856.596     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2958 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.674        .38783E-05** at limit **
   2  Prefactor     .10000E-03    39.979       -.13475E-05** at limit **
   3  Prefactor     .10000E-03    114.34        .18214E-05** at limit **
   4  Prefactor     .10000E-03    15.642       -.98280E-05** at limit **
   5  Prefactor     .33331        49.691       -.23193E-05    .11355E-03
   6  norm          .10000E-03    14.636        .34709E-05** at limit **
   7  Prefactor     2.0636        3.2359        .13421E-05   -.20902E-02
   8  Prefactor     94.707        42.765        .67804E-05    .11680E-03
   9  norm          .10000E-03    .62664        .31421E-07** at limit **
  10  Prefactor     .10000E-03    9.4240        .60292E-07** at limit **
  11  norm          .10000E-03    .58016        .48137E-06** at limit **
  12  norm          5.6964        6.9391        .34565E-05    .19554E-04
  13  Prefactor     1.9584        2.6077        .43527E-07    .74740E-04
  14  Prefactor     64.681        54.307       -.89795E-05   -.20067E-03
  15  norm          7.2171        7.5961       -.42228E-06   -.25380E-04
  16  Prefactor     .10000E-03    22.572       -.41617E-05** at limit **
  17  norm          2.2625        2.1502       -.74871E-07   -.10497E-03
  18  norm          11.881        7.2961        .60497E-06    .51405E-04
  19  Prefactor     12.711        12.238       -.44553E-07    .56357E-05
  20  Prefactor     1.4908        5.4351        .35329E-06   -.12597E-03
  21  Prefactor     22.606        16.557        .88496E-06    .13254E-04
  22  norm          .86687        1.6562        .10411E-06    .10365E-04
  23  Prefactor     .10000E-03    16.631        .78149E-05** at limit **
  24  Normalizat    1.0415        .15507       -.62887E-06   -.93554E-04
  25  Prefactor     .67417        .18334        .19470E-06   -.10146E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.333306
  norm       = 0.0001
  Prefactor  = 2.06357
  Prefactor  = 94.7073
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 5.6964
  Prefactor  = 1.95837
  Prefactor  = 64.6811
  norm       = 7.21709
  Prefactor  = 0.0001
  norm       = 2.26254
  norm       = 11.8815
  Prefactor  = 12.7112
  Prefactor  = 1.49084
  Prefactor  = 22.6057
  norm       = 0.866868
  Prefactor  = 0.0001
  Normalizat = 1.04146
  Prefactor  = 0.674173
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.596     FROM HESSE     STATUS=OK           437 CALLS     3395 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    114.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33331        51.316        .18360       -1.5593    
   6  norm          .10000E-03    14.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0636        6.9867        .14416E-02   -1.5421    
   8  Prefactor     94.707        45.062        .20646E-03   -1.3759    
   9  norm          .10000E-03    .63489        .59149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1333        .10950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.6964        6.9241        .16830E-03   -1.5231    
  13  Prefactor     1.9584        2.5861        .13602E-03   -1.5428    
  14  Prefactor     64.681        53.740        .49920E-04   -1.4098    
  15  norm          7.2171        7.5896        .14931E-03   -1.5171    
  16  Prefactor     .10000E-03    22.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2625        2.1422        .10351E-03   -1.5407    
  18  norm          11.881        7.2934        .11621E-03   -1.5018    
  19  Prefactor     12.711        12.239        .11235E-03   -1.4995    
  20  Prefactor     1.4908        5.4568        .32854E-03   -1.5464    
  21  Prefactor     22.606        16.568        .84249E-04   -1.4757    
  22  norm          .86687        1.3746        .13146E-02   -1.5522    
  23  Prefactor     .10000E-03    16.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0415        .18504        .20223E-03   -.91654    
  25  Prefactor     .67417        .21561        .29873E-03   -1.0455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20755e-08
Minuit parameter uncertainties:
  1  6.31154e-05
  2  2.94319e-05
  3  8.73515e-05
  4  0.000119866
  5  8.27734
  6  4.22167e-05
  7  6.98947
  8  45.0782
  9  1.00005e-06
  10  1.09277e-05
  11  5.44983e-05
  12  6.92507
  13  2.58628
  14  53.7803
  15  7.59064
  16  1.3578e-05
  17  2.14222
  18  7.29398
  19  12.2419
  20  5.45862
  21  16.5715
  22  1.37463
  23  9.74067e-05
  24  0.18515
  25  0.215874
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.358e-05  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.742e-01  2.159e-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.041e+00  1.851e-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: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194986/likelihoodResults_257212801_257472001_4FGL_J1158.5+4824_daily_bin69.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) = 5856.59589805
delta logL = -0.000207224290534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5856.59569134
delta logL = -5.07658114657e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0519       1.0000          .0000       10.000    
     3 'Normalizat'    1.0415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67417       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5856.596     FROM MIGRAD    STATUS=FAILED        93 CALLS      277 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10405E-03    1549.8        .33294E-02** at limit **
   2  Index         2.7105        6.3239        .87963E-01    .24294E-05
   3  Normalizat    1.0415        .33567E-01    .20223E-03    .25009E-03
   4  Prefactor     .67417        .40828E-01    .29873E-03    .12593E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5856.596     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      426 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10405E-03    1549.8        .88465E-03** at limit **
   2  Index         2.7105        6.3239        .12804E-04    .24294E-05
   3  Normalizat    1.0415        .33567E-01    .29055E-06    .25009E-03
   4  Prefactor     .67417        .40828E-01    .23507E-06    .12593E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5856.596     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      465 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.015        .66588E-03** at limit **
   2  Index         2.6085        6.3936        .35185E-01    .14540E-07
   3  Normalizat    1.0415        .17544        .40446E-04   -.35203E-03
   4  Prefactor     .67417        .21330        .11949E-04   -.26735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60846
  Normalizat = 1.04145
  Prefactor  = 0.674172
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.596     FROM HESSE     STATUS=OK            23 CALLS      488 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.756        .13318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6085        5.6759        .14074E-02   -.49873    
   3  Normalizat    1.0415        .17570        .80891E-05   -.91654    
   4  Prefactor     .67417        .21371        .23899E-05   -1.0455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22292e-10
Minuit parameter uncertainties:
  1  0.000117743
  2  449.317
  3  0.175803
  4  0.213969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194986': 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) = 5856.59569076
delta logL = 6.74299371894e-08

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.177e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.608e+00  4.493e+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:  6.742e-01  2.140e-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.041e+00  1.758e-01  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/194986/cmap_HighResolution_257212801_257472001_4FGL_J1158.5+4824_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-04 17:38:17.675192', job_id='194986', GAL2='0.67', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630802297.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='6.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='69' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:38:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 194986: <4FGL_J1158.5+4824_daily_bin69> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin69 179.637 48.4161 257212801 257472001 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 :                                   579.19 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             306.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            717 sec.

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

