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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin18
RA = 179.637, Dec = 48.4161
tmin = 243993601, tmax = 244252801
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='194935', job_status='RUN', time_executed='2021-09-04 17:28:48.226154', time_epoch_executed='1630801728.23' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194935/ft1_4FGL_J1158.5+4824_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194935/ft2_4FGL_J1158.5+4824_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194935/ft1_4FGL_J1158.5+4824_daily_bin18.fits outfile=/scratch/kocevski/194935/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin18.fits ra=179.637 dec=48.4161 rad=12.0 tmin=243993601.0 tmax=244252801.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.40
user 1.21
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194935/ft1_filtered_4FGL_J1158.5+4824_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/194935/ft2_4FGL_J1158.5+4824_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/194935/ltcube_243993601_244252801_4FGL_J1158.5+4824_daily_bin18.fits outfile=/scratch/kocevski/194935/expmap_243993601_244252801_4FGL_J1158.5+4824_daily_bin18.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/194935/ltcube_243993601_244252801_4FGL_J1158.5+4824_daily_bin18.fits
.....................!
real 190.84
user 185.51
sys 4.90

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/194935/ft1_filtered_4FGL_J1158.5+4824_daily_bin18.fits scfile=/scratch/kocevski/194935/ft2_4FGL_J1158.5+4824_daily_bin18.fits outfile=/scratch/kocevski/194935/cmap_243993601_244252801_4FGL_J1158.5+4824_daily_bin18.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.56
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194935/ft1_filtered_4FGL_J1158.5+4824_daily_bin18.fits scfile=/scratch/kocevski/194935/ft2_4FGL_J1158.5+4824_daily_bin18.fits outfile=/scratch/kocevski/194935/cmap_HighResolution_243993601_244252801_4FGL_J1158.5+4824_daily_bin18.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.637 yref=48.4161 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.108       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    98.330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    100.39       1.0000         .10000E-03   10000.    
     5 'Prefactor '    69.910       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6014       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1430       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.020       1.0000         .10000E-03   10000.    
    11 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.675       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12727E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .50507       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6006       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.8211       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3157       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .59181       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5469.126     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     2458 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.107        1.0189       -.18951E-06    .10856E-02
   2  Prefactor     .10010E-03    115.49       -.86570E-04** at limit **
   3  Prefactor     98.330        1.0041       -.82861E-07    .61364E-03
   4  Prefactor     100.39        1.0469       -.25586E-06    .16875E-02
   5  Prefactor     69.907        1.0893       -.45617E-06    .22698E-02
   6  norm          .10010E-03    10.629       -.59978E-04** at limit **
   7  Prefactor     1.1284        3.9618       -.29211E-05    .63091E-04
   8  Prefactor     5.5879        1.9758       -.51517E-05    .14858E-02
   9  norm          1.1411        2.5229       -.21976E-05   -.58367E-03
  10  Prefactor     38.038        2.6761        .31404E-05   -.70793E-02
  11  norm          .10000E-03    .36136        .46741E-06** at limit **
  12  norm          11.675        1.0022       -.14465E-06    .69220E-04
  13  Prefactor     .10000E-03    1.9505       -.10092E-05** at limit **
  14  Prefactor     .10001E-03    21.406        .75023E-04** at limit **
  15  norm          .10001E-03    12.765        .38802E-04** at limit **
  16  Prefactor     .10000E-03    5.1572        .18564E-05** at limit **
  17  norm          .50483        1.8493       -.12689E-06    .14700E-03
  18  norm          3.6005        1.0349       -.14908E-05   -.19367E-02
  19  Prefactor     12.636        1.0045       -.94723E-07   -.84120E-04
  20  Prefactor     .10000E-03    4.0312       -.18850E-05** at limit **
  21  Prefactor     .10000E-03    8.5708       -.61661E-05** at limit **
  22  norm          6.8210        2.9479        .10030E-05    .88932E-04
  23  Prefactor     .10022E-03    8.3352       -.32033E-04** at limit **
  24  Normalizat    1.3158        .19022       -.35633E-05    .21091E-03
  25  Prefactor     .59189        .22533        .11828E-05    .10821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.1065
  Prefactor  = 0.000100099
  Prefactor  = 98.3297
  Prefactor  = 100.39
  Prefactor  = 69.9071
  norm       = 0.000100102
  Prefactor  = 1.12843
  Prefactor  = 5.58788
  norm       = 1.14109
  Prefactor  = 38.0379
  norm       = 0.0001
  norm       = 11.6749
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.000100009
  Prefactor  = 0.000100001
  norm       = 0.50483
  norm       = 3.60048
  Prefactor  = 12.6362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.82097
  Prefactor  = 0.000100215
  Normalizat = 1.31575
  Prefactor  = 0.591892
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.126     FROM HESSE     STATUS=OK           487 CALLS     2945 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.107        81.763        .11149E-02   -1.3904    
   2  Prefactor     .10010E-03    116.15        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     98.330        105.45        .10135E-02   -1.3721    
   4  Prefactor     100.39        58.658        .10031E-02   -1.3701    
   5  Prefactor     69.907        80.016        .12002E-02   -1.4034    
   6  norm          .10010E-03    16.431        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1284        4.0730        .11023E-01   -1.5496    
   8  Prefactor     5.5879        54.995        .42436E-02   -1.5235    
   9  norm          1.1411        2.6256        .10859E-01   -1.5494    
  10  Prefactor     38.038        41.301        .16250E-02   -1.4474    
  11  norm          .10000E-03    .35226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.675        9.4937        .29310E-02   -1.5024    
  13  Prefactor     .10000E-03    1.8721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    23.031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    3.9960        .52708E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.1587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .50483        1.8560        .11291E-01   -1.5566    
  18  norm          3.6005        4.8564        .53236E-02   -1.5328    
  19  Prefactor     12.636        17.663        .28172E-02   -1.4997    
  20  Prefactor     .10000E-03    4.0000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.8210        2.9511        .38406E-02   -1.5186    
  23  Prefactor     .10022E-03    18.674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3158        .17857        .32529E-01   -.83097    
  25  Prefactor     .59189        .20538        .78190E-01   -1.0793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5464e-07
Minuit parameter uncertainties:
  1  81.8769
  2  0.0067794
  3  105.648
  4  58.6918
  5  80.1392
  6  0.00258933
  7  4.07404
  8  35.102
  9  2.62588
  10  41.3322
  11  1.79437e-06
  12  9.49492
  13  4.24949e-05
  14  0.000960339
  15  0.000375774
  16  0.000155858
  17  1.85617
  18  4.85696
  19  17.6703
  20  6.24226e-05
  21  4.56162e-05
  22  2.95115
  23  0.00401299
  24  0.178649
  25  0.205642
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.559e-04  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:  5.919e-01  2.056e-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.316e+00  1.786e-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: 4.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194935/likelihoodResults_243993601_244252801_4FGL_J1158.5+4824_daily_bin18.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) = 5469.1272846
delta logL = -0.000914034716516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5469.12637054
delta logL = 2.20106812776e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4266       1.0000          .0000       10.000    
     3 'Normalizat'    1.3158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59185       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=   5469.126     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      227 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    422.81        .16575E-01** at limit **
   2  Index         1.8067        5.9033        .47604E-01    .10269E-07
   3  Normalizat    1.3158        .36644E-01    .20206E-03    .14777E-03
   4  Prefactor     .59189        .43890E-01    .34624E-03    .66982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80667
  Normalizat = 1.31575
  Prefactor  = 0.591892
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.126     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6206        .18572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8067        9.0966        .19042E-02   -.69276    
   3  Normalizat    1.3158        .18840        .40411E-04   -.83097    
   4  Prefactor     .59189        .22544        .13850E-04   -1.0793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96419e-11
Minuit parameter uncertainties:
  1  1.5811e-05
  2  281.413
  3  0.188499
  4  0.225786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194935': 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) = 5469.12636843
delta logL = 2.12716804526e-06

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.581e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  1.807e+00  2.814e+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:  5.919e-01  2.258e-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.316e+00  1.885e-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/194935/cmap_HighResolution_243993601_244252801_4FGL_J1158.5+4824_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-03', job_status='DONE', photon_flux_upper_limit='4.64e-08', time_completed='2021-09-04 17:40:19.478280', job_id='194935', GAL2='0.59', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630802419.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='2.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='18' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:40:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 194935: <4FGL_J1158.5+4824_daily_bin18> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin18 179.637 48.4161 243993601 244252801 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 :                                   691.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

