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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin39
RA = 179.637, Dec = 48.4161
tmin = 249436801, tmax = 249696001
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='194956', job_status='RUN', time_executed='2021-09-04 17:29:14.512008', time_epoch_executed='1630801754.51' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194956/ft1_4FGL_J1158.5+4824_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194956/ft2_4FGL_J1158.5+4824_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194956/ft1_4FGL_J1158.5+4824_daily_bin39.fits outfile=/scratch/kocevski/194956/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin39.fits ra=179.637 dec=48.4161 rad=12.0 tmin=249436801.0 tmax=249696001.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.42
user 1.26
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194956/ft2_4FGL_J1158.5+4824_daily_bin39.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/194956/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin39.fits evtable="EVENTS" outfile="/scratch/kocevski/194956/ft1_filtered_4FGL_J1158.5+4824_daily_bin39.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194956/ft1_filtered_4FGL_J1158.5+4824_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/194956/ft2_4FGL_J1158.5+4824_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/194956/ltcube_249436801_249696001_4FGL_J1158.5+4824_daily_bin39.fits outfile=/scratch/kocevski/194956/expmap_249436801_249696001_4FGL_J1158.5+4824_daily_bin39.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/194956/ltcube_249436801_249696001_4FGL_J1158.5+4824_daily_bin39.fits
.....................!
real 190.25
user 185.55
sys 4.38

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/194956/ft1_filtered_4FGL_J1158.5+4824_daily_bin39.fits scfile=/scratch/kocevski/194956/ft2_4FGL_J1158.5+4824_daily_bin39.fits outfile=/scratch/kocevski/194956/cmap_249436801_249696001_4FGL_J1158.5+4824_daily_bin39.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194956/ft1_filtered_4FGL_J1158.5+4824_daily_bin39.fits scfile=/scratch/kocevski/194956/ft2_4FGL_J1158.5+4824_daily_bin39.fits outfile=/scratch/kocevski/194956/cmap_HighResolution_249436801_249696001_4FGL_J1158.5+4824_daily_bin39.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.358       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14426E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.649       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12459E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .71316E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.602       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10995E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .40902       1.0000         .10000E-03   10000.    
    12 'norm      '    .12641E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24433E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.062       1.0000         .10000E-03   10000.    
    15 'norm      '    17.288       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.240       1.0000         .10000E-03   10000.    
    17 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60126       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3016       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=   4050.547     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2903 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.314        96.197       -.58670E-04   -.58698E-05
   2  Prefactor     .10000E-03    258.02       -.94214E-04** at limit **
   3  Prefactor     .10000E-03    95.977       -.10250E-04** at limit **
   4  Prefactor     57.602        68.598       -.34426E-04   -.86834E-04
   5  Prefactor     .10000E-03    51.185       -.72295E-05** at limit **
   6  norm          .10000E-03    168.87        .67721E-04** at limit **
   7  Prefactor     .10075E-03    9.3769        .79045E-05** at limit **
   8  Prefactor     20.579        51.738       -.18668E-04   -.36566E-03
   9  norm          .10000E-03    1.3876       -.57035E-07** at limit **
  10  Prefactor     .10000E-03    78.734       -.26205E-04** at limit **
  11  norm          .40608        .92205       -.64701E-06   -.13799E-02
  12  norm          .10000E-03    12.274       -.24021E-07** at limit **
  13  Prefactor     .10002E-03    3.1164        .10157E-05** at limit **
  14  Prefactor     32.089        32.408       -.38319E-06    .45221E-04
  15  norm          17.284        13.322       -.60307E-05   -.72054E-03
  16  Prefactor     22.301        25.123       -.79523E-05   -.32427E-03
  17  norm          .10000E-03    2.1239       -.85308E-07** at limit **
  18  norm          .10000E-03    3.4684       -.79677E-07** at limit **
  19  Prefactor     .10000E-03    11.565       -.20121E-06** at limit **
  20  Prefactor     .10000E-03    2.1371       -.32821E-07** at limit **
  21  Prefactor     .10000E-03    8.5126       -.18668E-06** at limit **
  22  norm          .10000E-03    1.4157       -.14166E-06** at limit **
  23  Prefactor     .10000E-03    106.23        .13636E-04** at limit **
  24  Normalizat    .60152        .18329        .86831E-05   -.83104E-03
  25  Prefactor     1.3015        .22075       -.54747E-06   -.45677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3137
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 57.6015
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.00010075
  Prefactor  = 20.5791
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.406084
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 32.089
  norm       = 17.2841
  Prefactor  = 22.3007
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.601515
  Prefactor  = 1.30154
 **********
 **   18 **HESSE 
 **********

 FCN=   4050.547     FROM HESSE     STATUS=OK           421 CALLS     3324 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.314        96.052        .70440E-04   -1.4570    
   2  Prefactor     .10000E-03    256.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    96.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.602        68.567        .52837E-04   -1.4189    
   5  Prefactor     .10000E-03    51.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    169.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10075E-03    59.459        .35700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.579        50.643        .88244E-04   -1.4800    
   9  norm          .10000E-03    1.4197        .73167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    79.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .40608        .87628        .85992E-03   -1.5581    
  12  norm          .10000E-03    12.849        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    13.933        .30835E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.089        32.308        .70764E-04   -1.4574    
  15  norm          17.284        13.321        .96327E-04   -1.4876    
  16  Prefactor     22.301        26.195        .84935E-04   -1.4763    
  17  norm          .10000E-03    2.1951        .18076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4886        .11574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1404        .90865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5235        .18136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.4756        .14783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    107.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .60152        .21043        .25475E-03   -1.0792    
  25  Prefactor     1.3015        .25784        .22865E-03   -.83261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49521e-08
Minuit parameter uncertainties:
  1  96.5166
  2  0.00167392
  3  0.000110962
  4  68.6612
  5  5.63938e-05
  6  0.00112937
  7  0.0133659
  8  50.7495
  9  7.60972e-06
  10  1.39439e-05
  11  0.876303
  12  1.93785e-05
  13  0.0009624
  14  32.326
  15  13.3235
  16  26.2088
  17  1.31707e-05
  18  1.64206e-05
  19  4.81892e-05
  20  4.31504e-06
  21  3.32368e-05
  22  1.65965e-05
  23  0.000493032
  24  0.210709
  25  0.258092
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.230e+01  2.621e+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:  1.302e+00  2.581e-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:  6.015e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.37e-05

TS (Fixed Index): 1.58
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194956/likelihoodResults_249436801_249696001_4FGL_J1158.5+4824_daily_bin39.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) = 4050.11707254
delta logL = 0.430143190626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4050.09837804
delta logL = 0.448837690394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5804       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3487       1.0000          .0000       10.000    
     3 'Normalizat'    .55460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3366       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=   4050.098     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      303 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5761        23.117        .12947E-03   -.48703E-03
   2  Index         3.3502        1.4228        .46225E-02   -.11333E-03
   3  Normalizat    .55412        .21192        .26501E-03    .34000E-03
   4  Prefactor     1.3369        .26255        .22598E-03    .24634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.57608
  Index      = 3.35015
  Normalizat = 0.554123
  Prefactor  = 1.33695
 **********
 **   18 **HESSE 
 **********

 FCN=   4050.098     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5761        16.722        .51788E-05   -1.5089    
   2  Index         3.3502        1.0346        .18490E-03   -.33627    
   3  Normalizat    .55412        .21018        .10600E-04   -1.0997    
   4  Prefactor     1.3369        .26085        .45195E-04   -.82215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31504e-10
Minuit parameter uncertainties:
  1  16.7301
  2  1.04311
  3  0.210481
  4  0.261111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194956': 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) = 4050.0983725
delta logL = 0.44884322684

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  9.576e+00  1.673e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  3.350e+00  1.043e+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:  1.337e+00  2.611e-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:  5.541e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 179.637 48.416
Photon Index (Free Index): 3.35 +/- 1.04
Photon Flux (Free Index): 7.61e-08 +/- 6.43e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.03e-05

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/194956/cmap_HighResolution_249436801_249696001_4FGL_J1158.5+4824_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.32e-05', photon_flux_error='4.40e-08', dlogl='4.49e-01', energy_flux='1.16e-05', photon_flux2='7.61e-08', job_status='DONE', time_completed='2021-09-04 17:39:16.440447', photon_index_error2='1.04', photon_index2='3.35', ts='1.58', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.03e-05', EG='0.60', time_epoch_completed='1630802356.44', return_code='0', job_id='194956', GAL2='1.34', EG2='0.55', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='6.43e-08', ts2='2.55', photon_index='2.44' WHERE bin_id='39' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:39:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 194956: <4FGL_J1158.5+4824_daily_bin39> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin39 179.637 48.4161 249436801 249696001 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 :                                   602.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             251.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

