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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin568
RA = 179.637, Dec = 48.4161
tmin = 386553601, tmax = 386812801
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='196408', job_status='RUN', time_executed='2021-09-04 17:31:53.781648', time_epoch_executed='1630801913.78' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196408

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196408/ft1_4FGL_J1158.5+4824_daily_bin568.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196408/ft2_4FGL_J1158.5+4824_daily_bin568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196408/ft1_4FGL_J1158.5+4824_daily_bin568.fits outfile=/scratch/kocevski/196408/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin568.fits ra=179.637 dec=48.4161 rad=12.0 tmin=386553601.0 tmax=386812801.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 4.70
user 4.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196408/ft2_4FGL_J1158.5+4824_daily_bin568.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/196408/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin568.fits evtable="EVENTS" outfile="/scratch/kocevski/196408/ft1_filtered_4FGL_J1158.5+4824_daily_bin568.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.53
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196408/ft1_filtered_4FGL_J1158.5+4824_daily_bin568.fits evtable="EVENTS" scfile=/scratch/kocevski/196408/ft2_4FGL_J1158.5+4824_daily_bin568.fits sctable="SC_DATA" expcube=/scratch/kocevski/196408/ltcube_386553601_386812801_4FGL_J1158.5+4824_daily_bin568.fits outfile=/scratch/kocevski/196408/expmap_386553601_386812801_4FGL_J1158.5+4824_daily_bin568.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/196408/ltcube_386553601_386812801_4FGL_J1158.5+4824_daily_bin568.fits
.....................!
real 190.89
user 185.65
sys 4.72

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/196408/ft1_filtered_4FGL_J1158.5+4824_daily_bin568.fits scfile=/scratch/kocevski/196408/ft2_4FGL_J1158.5+4824_daily_bin568.fits outfile=/scratch/kocevski/196408/cmap_386553601_386812801_4FGL_J1158.5+4824_daily_bin568.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196408/ft1_filtered_4FGL_J1158.5+4824_daily_bin568.fits scfile=/scratch/kocevski/196408/ft2_4FGL_J1158.5+4824_daily_bin568.fits outfile=/scratch/kocevski/196408/cmap_HighResolution_386553601_386812801_4FGL_J1158.5+4824_daily_bin568.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.57
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    108.40       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    43.383       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11307E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.047       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0535       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9605       1.0000         .10000E-03   10000.    
    11 'norm      '    .89335       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1551       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.028       1.0000         .10000E-03   10000.    
    15 'norm      '    .49804E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0325       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6027       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86423       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1909       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=   6054.090     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3045 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.599        .38470E-05** at limit **
   2  Prefactor     108.39        140.22       -.11083E-04    .33748E-04
   3  Prefactor     .10000E-03    94.447        .98460E-05** at limit **
   4  Prefactor     35.327        52.097        .95006E-05   -.71189E-04
   5  Prefactor     .10000E-03    39.491       -.35520E-05** at limit **
   6  norm          43.374        43.010       -.72448E-05    .10764E-03
   7  Prefactor     .10000E-03    4.2204       -.31635E-06** at limit **
   8  Prefactor     16.050        21.590       -.71009E-06    .50947E-04
   9  norm          3.0547        3.0663        .10494E-05    .18901E-03
  10  Prefactor     1.9187        140.23       -.80314E-04    .50085E-04
  11  norm          .89431        .82486        .98612E-06    .23514E-02
  12  norm          2.4508        5.2358       -.14214E-06   -.28012E-03
  13  Prefactor     3.1531        3.5671       -.33635E-06   -.34263E-03
  14  Prefactor     18.022        30.005       -.30760E-05    .88614E-04
  15  norm          .52004E-01    4.9485       -.60286E-06   -.45111E-04
  16  Prefactor     .10000E-03    28.264       -.19705E-05** at limit **
  17  norm          1.0314        1.6573       -.41925E-06   -.11606E-02
  18  norm          .10000E-03    3.8467       -.96581E-07** at limit **
  19  Prefactor     .10000E-03    7.3646       -.22986E-07** at limit **
  20  Prefactor     .10000E-03    2.1006        .15359E-06** at limit **
  21  Prefactor     .10000E-03    6.2430       -.97501E-07** at limit **
  22  norm          2.6025        2.4467       -.29437E-06   -.40251E-03
  23  Prefactor     .10000E-03    17.742       -.12188E-05** at limit **
  24  Normalizat    .86425        .15957        .13877E-05    .37304E-03
  25  Prefactor     1.1910        .19755        .82261E-06    .32181E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 108.392
  Prefactor  = 0.000100001
  Prefactor  = 35.3273
  Prefactor  = 0.0001
  norm       = 43.3736
  Prefactor  = 0.0001
  Prefactor  = 16.05
  norm       = 3.0547
  Prefactor  = 1.91872
  norm       = 0.894306
  norm       = 2.4508
  Prefactor  = 3.15309
  Prefactor  = 18.0217
  norm       = 0.0520039
  Prefactor  = 0.0001
  norm       = 1.03142
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.60254
  Prefactor  = 0.0001
  Normalizat = 0.86425
  Prefactor  = 1.19095
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.090     FROM HESSE     STATUS=OK           437 CALLS     3482 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     108.39        140.11        .38629E-04   -1.3622    
   3  Prefactor     .10000E-03    94.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.327        51.953        .67433E-04   -1.4519    
   5  Prefactor     .10000E-03    39.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          43.374        42.966        .30433E-03   -1.4390    
   7  Prefactor     .10000E-03    9.8325        .30407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.050        21.407        .99981E-04   -1.4907    
   9  norm          3.0547        3.0361        .12784E-03   -1.5358    
  10  Prefactor     1.9187        142.43        .29626E-03   -1.5431    
  11  norm          .89431        .79876        .60865E-03   -1.5519    
  12  norm          2.4508        5.2093        .25225E-03   -1.5395    
  13  Prefactor     3.1531        3.5546        .14645E-03   -1.5353    
  14  Prefactor     18.022        29.959        .94328E-04   -1.4859    
  15  norm          .52004E-01    5.5391        .50636E-01   -1.5662    
  16  Prefactor     .10000E-03    28.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0314        1.5119        .12062E-02   -1.5505    
  18  norm          .10000E-03    12.555        .29495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.3803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1153        .11012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.2514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6025        2.4400        .11341E-03   -1.5385    
  23  Prefactor     .10000E-03    17.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86425        .18693        .23319E-03   -.97728    
  25  Prefactor     1.1910        .23422        .25979E-03   -.86610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37994e-09
Minuit parameter uncertainties:
  1  0.000150741
  2  140.544
  3  0.000645968
  4  52.0197
  5  0.000122514
  6  42.9965
  7  0.00013147
  8  21.4168
  9  3.03623
  10  33.1434
  11  0.798772
  12  5.21031
  13  3.55479
  14  29.9836
  15  1.07248
  16  8.09866e-05
  17  1.51195
  18  0.000188249
  19  7.37403e-06
  20  4.02072e-06
  21  4.81027e-06
  22  2.44013
  23  2.6612e-05
  24  0.187066
  25  0.234426
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  8.099e-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:  1.191e+00  2.344e-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.643e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/196408/likelihoodResults_386553601_386812801_4FGL_J1158.5+4824_daily_bin568.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) = 6054.0906387
delta logL = -0.000167489803061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6054.09047099
delta logL = 2.17100932787e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6897       1.0000          .0000       10.000    
     3 'Normalizat'    .86425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1910       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.

 FCN=   6054.090     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      250 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.378        .90712E-02** at limit **
   2  Index         2.6960        6.9667        .50000       -.15752E-05
   3  Normalizat    .86425        .31472E-02    .44443E-01    .28349E-04
   4  Prefactor     1.1910        .40652E-02    .58745E-01    .13776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.69604
  Normalizat = 0.864249
  Prefactor  = 1.19095
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.090     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    672.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6960        5.6218        .50000       -.47889    
   3  Normalizat    .86425        .17962E-01    .23319E-03   -.97728    
   4  Prefactor     1.1910        .23197E-01    .25978E-03   -.86610    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8215e-08
Minuit parameter uncertainties:
  1  0.00059763
  2  447.486
  3  0.017962
  4  0.0231972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196408': 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) = 6054.09047098
delta logL = 2.25963958655e-07

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  5.976e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.696e+00  4.475e+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:  1.191e+00  2.320e-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:  8.642e-01  1.796e-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/196408/cmap_HighResolution_386553601_386812801_4FGL_J1158.5+4824_daily_bin568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2021-09-04 17:45:06.317604', job_id='196408', GAL2='1.19', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630802706.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='568' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:45:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 196408: <4FGL_J1158.5+4824_daily_bin568> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin568 179.637 48.4161 386553601 386812801 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 :                                   790.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             367.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            807 sec.

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

