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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1395
RA = 179.637, Dec = 48.4161
tmin = 600912001, tmax = 601171201
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='201567', job_status='RUN', time_executed='2021-09-04 17:46:57.085306', time_epoch_executed='1630802817.09' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201567

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201567/ft1_4FGL_J1158.5+4824_daily_bin1395.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201567/ft2_4FGL_J1158.5+4824_daily_bin1395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201567/ft1_4FGL_J1158.5+4824_daily_bin1395.fits outfile=/scratch/kocevski/201567/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1395.fits ra=179.637 dec=48.4161 rad=12.0 tmin=600912001.0 tmax=601171201.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.56
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201567/ft1_filtered_4FGL_J1158.5+4824_daily_bin1395.fits" evtable="EVENTS" scfile=/scratch/kocevski/201567/ft2_4FGL_J1158.5+4824_daily_bin1395.fits sctable="SC_DATA" outfile=/scratch/kocevski/201567/ltcube_600912001_601171201_4FGL_J1158.5+4824_daily_bin1395.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/201567/ft2_4FGL_J1158.5+4824_daily_bin1395.fits
.....................!
real 12.29
user 11.84
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201567/ft1_filtered_4FGL_J1158.5+4824_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/201567/ft2_4FGL_J1158.5+4824_daily_bin1395.fits sctable="SC_DATA" expcube=/scratch/kocevski/201567/ltcube_600912001_601171201_4FGL_J1158.5+4824_daily_bin1395.fits outfile=/scratch/kocevski/201567/expmap_600912001_601171201_4FGL_J1158.5+4824_daily_bin1395.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/201567/ltcube_600912001_601171201_4FGL_J1158.5+4824_daily_bin1395.fits
.....................!
real 191.40
user 186.12
sys 4.96

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/201567/ft1_filtered_4FGL_J1158.5+4824_daily_bin1395.fits scfile=/scratch/kocevski/201567/ft2_4FGL_J1158.5+4824_daily_bin1395.fits outfile=/scratch/kocevski/201567/cmap_600912001_601171201_4FGL_J1158.5+4824_daily_bin1395.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    134.11       1.0000         .10000E-03   10000.    
     2 'Prefactor '    91.099       1.0000         .10000E-03   10000.    
     3 'Prefactor '    196.00       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.553       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    24.712       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.072       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6339       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.819       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6606       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6326       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3574       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.906       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0559       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1920       1.0000         .10000E-03   10000.    
    18 'norm      '    10.637       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1668       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5720       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4552       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.0898       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77803       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90755       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=   6037.349     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2960 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     134.13        110.33        .14088E-04   -.11439E-04
   2  Prefactor     91.094        89.574       -.52143E-05    .91832E-06
   3  Prefactor     196.01        134.70        .61426E-05   -.79982E-05
   4  Prefactor     29.564        61.698        .14878E-04   -.45333E-05
   5  Prefactor     .10000E-03    29.993        .26506E-06** at limit **
   6  norm          24.710        29.631        .60167E-06   -.89962E-06
   7  Prefactor     .10001E-03    4.6275       -.84473E-06** at limit **
   8  Prefactor     10.140        32.283        .15182E-04    .44187E-04
   9  norm          3.6335        2.8415       -.29917E-07   -.34796E-03
  10  Prefactor     38.825        36.909        .52994E-05   -.68864E-05
  11  norm          1.6605        1.0104       -.47047E-07   -.71646E-04
  12  norm          4.6317        6.5374       -.61262E-05   -.96089E-04
  13  Prefactor     8.3568        4.4110       -.25454E-07   -.40748E-03
  14  Prefactor     42.909        41.882        .27542E-05    .37501E-05
  15  norm          .10000E-03    3.3036        .23693E-09** at limit **
  16  Prefactor     3.0546        29.290        .92502E-05   -.69577E-04
  17  norm          2.1922        1.8365        .34697E-06   -.32725E-03
  18  norm          10.638        7.2388       -.72713E-05   -.26052E-03
  19  Prefactor     8.1607        21.391        .15940E-04   -.56255E-04
  20  Prefactor     .10000E-03    4.3278        .15712E-06** at limit **
  21  Prefactor     2.5733        33.862        .14232E-04   -.97586E-04
  22  norm          2.4552        1.5170        .79439E-07    .43531E-05
  23  Prefactor     8.0906        86.188        .81118E-05   -.16257E-04
  24  Normalizat    .77796        .16667       -.66440E-05    .17248E-03
  25  Prefactor     .90769        .18451        .21353E-05   -.30061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 134.13
  Prefactor  = 91.094
  Prefactor  = 196.008
  Prefactor  = 29.5642
  Prefactor  = 0.0001
  norm       = 24.7099
  Prefactor  = 0.000100011
  Prefactor  = 10.1398
  norm       = 3.63347
  Prefactor  = 38.8252
  norm       = 1.66046
  norm       = 4.63171
  Prefactor  = 8.35679
  Prefactor  = 42.9092
  norm       = 0.0001
  Prefactor  = 3.05456
  norm       = 2.19223
  norm       = 10.6379
  Prefactor  = 8.16071
  Prefactor  = 0.0001
  Prefactor  = 2.57334
  norm       = 2.45516
  Prefactor  = 8.09064
  Normalizat = 0.777961
  Prefactor  = 0.907687
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.349     FROM HESSE     STATUS=OK           441 CALLS     3401 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     134.13        110.13        .17387E-03   -1.3386    
   2  Prefactor     91.094        89.554        .42101E-04   -1.3796    
   3  Prefactor     196.01        134.70        .14428E-03   -1.2899    
   4  Prefactor     29.564        62.017        .73699E-04   -1.4620    
   5  Prefactor     .10000E-03    30.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.710        29.631        .80581E-04   -1.4713    
   7  Prefactor     .10001E-03    9.1844        .30822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.140        31.269        .12626E-03   -1.5071    
   9  norm          3.6335        2.8333        .11002E-03   -1.5327    
  10  Prefactor     38.825        36.868        .64331E-04   -1.4461    
  11  norm          1.6605        1.0092        .54226E-04   -1.5450    
  12  norm          4.6317        6.5385        .18699E-03   -1.5278    
  13  Prefactor     8.3568        4.3518        .97074E-04   -1.5130    
  14  Prefactor     42.909        41.954        .61202E-04   -1.4397    
  15  norm          .10000E-03    3.3296        .13787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0546        28.251        .23207E-03   -1.5358    
  17  norm          2.1922        1.8324        .91145E-04   -1.5412    
  18  norm          10.638        7.2503        .12285E-03   -1.5056    
  19  Prefactor     8.1607        21.219        .14029E-03   -1.5137    
  20  Prefactor     .10000E-03    4.4202        .15780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5733        33.230        .25451E-03   -1.5387    
  22  norm          2.4552        1.5202        .73155E-04   -1.5395    
  23  Prefactor     8.0906        86.498        .14096E-03   -1.5139    
  24  Normalizat    .77796        .19164        .23310E-03   -1.0089    
  25  Prefactor     .90769        .21368        .26739E-03   -.95873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84864e-09
Minuit parameter uncertainties:
  1  110.3
  2  89.6873
  3  134.909
  4  62.1523
  5  1.78641e-05
  6  29.6485
  7  0.0006394
  8  31.3193
  9  2.83341
  10  36.8891
  11  1.00925
  12  6.53955
  13  4.35195
  14  41.9833
  15  3.40538e-06
  16  18.5902
  17  1.83249
  18  7.25093
  19  21.2383
  20  3.44991e-05
  21  18.5068
  22  1.52025
  23  53.0063
  24  0.191805
  25  0.213881
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  3.055e+00  1.859e+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:  9.077e-01  2.139e-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:  7.780e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/201567/likelihoodResults_600912001_601171201_4FGL_J1158.5+4824_daily_bin1395.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) = 6037.34190848
delta logL = 0.00695907581121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6037.34151129
delta logL = 0.00735626919231

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7580       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6845       1.0000          .0000       10.000    
     3 'Normalizat'    .77594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90877       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6037.341     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      291 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6995        22.458        .12255E-02   -.34547E-04
   2  Index         2.7061        2.3509        .62387E-02   -.14343E-04
   3  Normalizat    .77623        .16985        .23333E-03   -.17492E-04
   4  Prefactor     .90878        .20907        .26723E-03   -.96146E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69949
  Index      = 2.7061
  Normalizat = 0.776226
  Prefactor  = 0.90878
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.341     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6995        18.869        .49020E-04   -1.5379    
   2  Index         2.7061        2.1737        .24955E-03   -.47662    
   3  Normalizat    .77623        .17002        .93330E-05   -1.0096    
   4  Prefactor     .90878        .20917        .10689E-04   -.95835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2485e-11
Minuit parameter uncertainties:
  1  14.2801
  2  2.27134
  3  0.170135
  4  0.209359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201567': 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) = 6037.3414559
delta logL = 0.00741165332784

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.699e+00  1.428e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.706e+00  2.271e+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:  9.088e-01  2.094e-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:  7.762e-01  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/201567/cmap_HighResolution_600912001_601171201_4FGL_J1158.5+4824_daily_bin1395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-09-04 17:59:53.568420', job_id='201567', GAL2='0.91', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630803593.57', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='7.41e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1395' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:59:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 201567: <4FGL_J1158.5+4824_daily_bin1395> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin1395> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 17:46:41 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:46: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:46:42 2021
Terminated at Sat Sep  4 17:59:54 2021
Results reported at Sat Sep  4 17:59:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1395 179.637 48.4161 600912001 601171201 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 :                                   772.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

