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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin909
RA = 179.637, Dec = 48.4161
tmin = 474940801, tmax = 475200001
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='198228', job_status='RUN', time_executed='2021-09-04 17:37:06.499278', time_epoch_executed='1630802226.5' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198228/ft1_4FGL_J1158.5+4824_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198228/ft2_4FGL_J1158.5+4824_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198228/ft1_4FGL_J1158.5+4824_daily_bin909.fits outfile=/scratch/kocevski/198228/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin909.fits ra=179.637 dec=48.4161 rad=12.0 tmin=474940801.0 tmax=475200001.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.65
user 3.32
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198228/ft1_filtered_4FGL_J1158.5+4824_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/198228/ft2_4FGL_J1158.5+4824_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/198228/ltcube_474940801_475200001_4FGL_J1158.5+4824_daily_bin909.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/198228/ft2_4FGL_J1158.5+4824_daily_bin909.fits
.....................!
real 13.56
user 13.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198228/ft1_filtered_4FGL_J1158.5+4824_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/198228/ft2_4FGL_J1158.5+4824_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/198228/ltcube_474940801_475200001_4FGL_J1158.5+4824_daily_bin909.fits outfile=/scratch/kocevski/198228/expmap_474940801_475200001_4FGL_J1158.5+4824_daily_bin909.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/198228/ltcube_474940801_475200001_4FGL_J1158.5+4824_daily_bin909.fits
.....................!
real 191.21
user 185.07
sys 5.40

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/198228/ft1_filtered_4FGL_J1158.5+4824_daily_bin909.fits scfile=/scratch/kocevski/198228/ft2_4FGL_J1158.5+4824_daily_bin909.fits outfile=/scratch/kocevski/198228/cmap_474940801_475200001_4FGL_J1158.5+4824_daily_bin909.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198228/ft1_filtered_4FGL_J1158.5+4824_daily_bin909.fits scfile=/scratch/kocevski/198228/ft2_4FGL_J1158.5+4824_daily_bin909.fits outfile=/scratch/kocevski/198228/cmap_HighResolution_474940801_475200001_4FGL_J1158.5+4824_daily_bin909.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.470       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.957       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.459       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.979       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.369       1.0000         .10000E-03   10000.    
     6 'norm      '    28.255       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18552E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2649       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.200       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3861       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5838       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .17289E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.132       1.0000         .10000E-03   10000.    
    17 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4180       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.255       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2485       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.535       1.0000         .10000E-03   10000.    
    22 'norm      '    2.5786       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.509       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69757       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3678       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=   5553.868     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2983 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.313        98.885        .10853E-05    .75914E-05
   2  Prefactor     54.943        134.80       -.35352E-07    .46542E-05
   3  Prefactor     51.457        89.244       -.34287E-06   -.48870E-07
   4  Prefactor     34.980        59.223       -.34217E-06    .15064E-05
   5  Prefactor     48.356        66.898       -.76564E-07    .42088E-05
   6  norm          28.257        29.926       -.55055E-08    .85206E-06
   7  Prefactor     .10000E-03    6.0883       -.41854E-06** at limit **
   8  Prefactor     .10000E-03    99.842       -.14888E-05** at limit **
   9  norm          3.2649        2.6730       -.61052E-07    .16581E-03
  10  Prefactor     23.202        28.902       -.17541E-06    .15643E-04
  11  norm          2.3861        1.1445       -.35358E-07    .30909E-03
  12  norm          4.5838        6.8987       -.68910E-07    .40377E-04
  13  Prefactor     .10000E-03    2.0873       -.26677E-06** at limit **
  14  Prefactor     .10000E-03    35.471       -.35196E-06** at limit **
  15  norm          .10000E-03    40.309       -.14079E-04** at limit **
  16  Prefactor     14.134        12.774        .15234E-06    .14418E-03
  17  norm          .10000E-03    1.6692       -.28109E-06** at limit **
  18  norm          3.4255        12.520       -.10081E-05    .10904E-03
  19  Prefactor     31.244        32.129        .64418E-06    .16750E-03
  20  Prefactor     3.2486        7.5179       -.28079E-06    .22470E-03
  21  Prefactor     10.539        22.116       -.41650E-06    .17014E-05
  22  norm          2.5786        2.0751       -.18043E-07    .14585E-03
  23  Prefactor     10.385        94.894        .69043E-06    .32765E-05
  24  Normalizat    .69751        .16969        .17083E-05    .57438E-03
  25  Prefactor     1.3678        .21672       -.18375E-06    .38617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3126
  Prefactor  = 54.9434
  Prefactor  = 51.4565
  Prefactor  = 34.9797
  Prefactor  = 48.3561
  norm       = 28.2566
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.26491
  Prefactor  = 23.2022
  norm       = 2.38614
  norm       = 4.58383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 14.1339
  norm       = 0.0001
  norm       = 3.42555
  Prefactor  = 31.244
  Prefactor  = 3.24864
  Prefactor  = 10.539
  norm       = 2.57862
  Prefactor  = 10.3853
  Normalizat = 0.697513
  Prefactor  = 1.36781
 **********
 **   18 **HESSE 
 **********

 FCN=   5553.868     FROM HESSE     STATUS=OK           427 CALLS     3410 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.313        99.587        .90771E-04   -1.4829    
   2  Prefactor     54.943        134.87        .54108E-04   -1.4224    
   3  Prefactor     51.457        89.272        .55907E-04   -1.4272    
   4  Prefactor     34.980        59.250        .67758E-04   -1.4524    
   5  Prefactor     48.356        66.911        .57657E-04   -1.4316    
   6  norm          28.257        29.927        .75369E-04   -1.4644    
   7  Prefactor     .10000E-03    6.2672        .35914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    101.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2649        2.6662        .10634E-03   -1.5347    
  10  Prefactor     23.202        28.917        .83161E-04   -1.4744    
  11  norm          2.3861        1.1439        .51462E-04   -1.5399    
  12  norm          4.5838        6.8920        .18801E-03   -1.5280    
  13  Prefactor     .10000E-03    2.1591        .21021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    39.706        .35369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.134        12.768        .10655E-03   -1.4956    
  17  norm          .10000E-03    1.7352        .18747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4255        12.169        .21880E-03   -1.5338    
  19  Prefactor     31.244        31.269        .71670E-04   -1.4589    
  20  Prefactor     3.2486        7.5089        .22471E-03   -1.5347    
  21  Prefactor     10.539        22.134        .12344E-03   -1.5059    
  22  norm          2.5786        2.0720        .93116E-04   -1.5387    
  23  Prefactor     10.385        95.739        .12359E-03   -1.5063    
  24  Normalizat    .69751        .20043        .26332E-03   -1.0399    
  25  Prefactor     1.3678        .25380        .25324E-03   -.81312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42053e-10
Minuit parameter uncertainties:
  1  87.9421
  2  135.631
  3  89.5048
  4  59.3498
  5  67.0148
  6  29.9432
  7  5.28446e-05
  8  0.000636322
  9  2.66633
  10  28.9345
  11  1.14394
  12  6.89315
  13  2.08809e-05
  14  2.3415e-05
  15  0.000458116
  16  12.7702
  17  3.82514e-05
  18  12.1782
  19  31.2853
  20  7.51107
  21  22.1517
  22  2.07203
  23  63.1981
  24  0.200639
  25  0.254034
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.413e+01  1.277e+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.368e+00  2.540e-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.975e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.81
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.38e-08 +/- 2.14e-08
Energy Flux (Fixed Index): 7.37e-06 +/- 6.66e-06

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

Saving results to:
/scratch/kocevski/198228/likelihoodResults_474940801_475200001_4FGL_J1158.5+4824_daily_bin909.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) = 5552.87746295
delta logL = 0.990459594762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5552.77302557
delta logL = 1.09489697986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.083       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5904       1.0000          .0000       10.000    
     3 'Normalizat'    .71172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3554       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=   5552.773     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      221 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.087        19.443        .25531E-05   -.81138E-04
   2  Index         1.5904        .50210        .15972E-04    .62226E-05
   3  Normalizat    .71176        .16369       -.37747E-06   -.20059E-03
   4  Prefactor     1.3553        .21408       -.21367E-06   -.16773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.087
  Index      = 1.59043
  Normalizat = 0.711758
  Prefactor  = 1.35533
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.773     FROM HESSE     STATUS=OK            29 CALLS      250 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.087        19.252        .85237E-04   -1.4768    
   2  Index         1.5904        .49790        .83999E-02   -.75038    
   3  Normalizat    .71176        .19195        .26079E-03   -1.0343    
   4  Prefactor     1.3553        .25089        .25407E-03   -.81676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97163e-10
Minuit parameter uncertainties:
  1  19.2578
  2  0.499449
  3  0.192129
  4  0.25112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198228': 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) = 5552.77302551
delta logL = 1.09489704337

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.209e+01  1.926e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  1.590e+00  4.994e-01  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.355e+00  2.511e-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.118e-01  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 179.637 48.416
Photon Index (Free Index): 1.59 +/- 0.50
Photon Flux (Free Index): 1.31e-08 +/- 1.33e-08
Energy Flux (Free Index): 3.07e-05 +/- 4.23e-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/198228/cmap_HighResolution_474940801_475200001_4FGL_J1158.5+4824_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', comment='SUCCESS', photon_flux='2.38e-08', energy_flux2='3.07e-05', photon_flux_error='2.14e-08', dlogl='1.09e+00', energy_flux='7.37e-06', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-09-04 17:49:26.502898', photon_index_error2='0.50', photon_index2='1.59', ts='2.81', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='8.23e-08', energy_flux_error2='4.23e-05', EG='0.70', time_epoch_completed='1630802966.5', return_code='0', job_id='198228', GAL2='1.36', EG2='0.71', return_code2='0', energy_flux_error='6.66e-06', photon_flux_error2='1.33e-08', ts2='5.01', photon_index='2.44' WHERE bin_id='909' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:49:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 198228: <4FGL_J1158.5+4824_daily_bin909> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin909> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:36:52 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:36:54 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:36:54 2021
Terminated at Sat Sep  4 17:49:27 2021
Results reported at Sat Sep  4 17:49:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin909 179.637 48.4161 474940801 475200001 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 :                                   737.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            755 sec.

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

