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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1558
RA = 179.637, Dec = 48.4161
tmin = 643161601, tmax = 643420801
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='201799', job_status='RUN', time_executed='2021-09-04 17:47:18.713779', time_epoch_executed='1630802838.71' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201799

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201799/ft1_4FGL_J1158.5+4824_daily_bin1558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201799/ft2_4FGL_J1158.5+4824_daily_bin1558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201799/ft1_4FGL_J1158.5+4824_daily_bin1558.fits outfile=/scratch/kocevski/201799/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1558.fits ra=179.637 dec=48.4161 rad=12.0 tmin=643161601.0 tmax=643420801.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.46
user 3.24
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201799/ft1_filtered_4FGL_J1158.5+4824_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/201799/ft2_4FGL_J1158.5+4824_daily_bin1558.fits sctable="SC_DATA" expcube=/scratch/kocevski/201799/ltcube_643161601_643420801_4FGL_J1158.5+4824_daily_bin1558.fits outfile=/scratch/kocevski/201799/expmap_643161601_643420801_4FGL_J1158.5+4824_daily_bin1558.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/201799/ltcube_643161601_643420801_4FGL_J1158.5+4824_daily_bin1558.fits
.....................!
real 190.73
user 185.46
sys 4.88

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/201799/ft1_filtered_4FGL_J1158.5+4824_daily_bin1558.fits scfile=/scratch/kocevski/201799/ft2_4FGL_J1158.5+4824_daily_bin1558.fits outfile=/scratch/kocevski/201799/cmap_643161601_643420801_4FGL_J1158.5+4824_daily_bin1558.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.082       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2791       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.6146       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4597       1.0000         .10000E-03   10000.    
    11 'norm      '    4.2943       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5505       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .97425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3877       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.279       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1311       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75495       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=   6325.235     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2847 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.082        76.369        .10073E-06    .74596E-05
   2  Prefactor     .10000E-03    32.911        .99313E-05** at limit **
   3  Prefactor     .10000E-03    64.487       -.18019E-04** at limit **
   4  Prefactor     .10000E-03    10.862       -.58083E-05** at limit **
   5  Prefactor     .10000E-03    63.114       -.10438E-04** at limit **
   6  norm          .10000E-03    12.006        .49852E-05** at limit **
   7  Prefactor     3.2790        4.8673       -.55702E-06   -.35317E-03
   8  Prefactor     .10000E-03    29.919       -.99297E-05** at limit **
   9  norm          5.6145        2.7022        .72811E-07    .28424E-04
  10  Prefactor     2.4475        73.579       -.24835E-04   -.47917E-04
  11  norm          4.2940        1.4170        .29576E-06   -.25043E-03
  12  norm          7.5500        7.9180        .77217E-07    .34117E-06
  13  Prefactor     .97547        2.1678       -.57590E-06   -.12574E-02
  14  Prefactor     .10000E-03    57.020        .25536E-04** at limit **
  15  norm          3.3880        7.3170       -.62522E-06   -.30807E-03
  16  Prefactor     20.277        15.488        .30305E-06    .57078E-04
  17  norm          .10000E-03    .77969       -.30462E-07** at limit **
  18  norm          .10000E-03    5.7119        .50848E-07** at limit **
  19  Prefactor     .10000E-03    16.249       -.40855E-05** at limit **
  20  Prefactor     .10000E-03    9.5519        .35773E-05** at limit **
  21  Prefactor     .10000E-03    10.040       -.21459E-05** at limit **
  22  norm          .10000E-03    1.5721        .14771E-07** at limit **
  23  Prefactor     .10000E-03    15.708        .32969E-05** at limit **
  24  Normalizat    1.1310        .15496        .26506E-06    .14832E-03
  25  Prefactor     .75498        .19053        .75718E-06    .52795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.0824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.27904
  Prefactor  = 0.0001
  norm       = 5.61453
  Prefactor  = 2.44754
  norm       = 4.29398
  norm       = 7.54997
  Prefactor  = 0.975466
  Prefactor  = 0.0001
  norm       = 3.38801
  Prefactor  = 20.2765
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13103
  Prefactor  = 0.754981
 **********
 **   18 **HESSE 
 **********

 FCN=   6325.235     FROM HESSE     STATUS=OK           421 CALLS     3268 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.082        76.368        .41005E-04   -1.3744    
   2  Prefactor     .10000E-03    32.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    64.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    63.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2790        4.8663        .20551E-03   -1.5346    
   8  Prefactor     .10000E-03    30.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6145        2.6991        .87374E-04   -1.5234    
  10  Prefactor     2.4475        74.097        .26077E-03   -1.5395    
  11  norm          4.2940        1.4072        .48355E-04   -1.5293    
  12  norm          7.5500        7.9200        .14595E-03   -1.5158    
  13  Prefactor     .97547        2.0264        .16313E-02   -1.5510    
  14  Prefactor     .10000E-03    56.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3880        7.3268        .21983E-03   -1.5340    
  16  Prefactor     20.277        15.302        .88943E-04   -1.4807    
  17  norm          .10000E-03    .80197        .13702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.9206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.8533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.6273        .19458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1310        .18071        .20578E-03   -.88762    
  25  Prefactor     .75498        .22196        .30646E-03   -1.0141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11992e-10
Minuit parameter uncertainties:
  1  76.4457
  2  2.73428e-07
  3  1.56355e-06
  4  1.86988e-07
  5  6.41343e-06
  6  2.80687e-07
  7  4.86693
  8  5.94835e-05
  9  2.69917
  10  26.9699
  11  1.40717
  12  7.92106
  13  2.02657
  14  7.98146e-05
  15  7.32871
  16  15.305
  17  6.27413e-07
  18  4.19352e-06
  19  3.11352e-06
  20  5.74722e-05
  21  2.46477e-06
  22  4.00163e-06
  23  2.01377e-06
  24  0.180813
  25  0.222225
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.028e+01  1.531e+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:  7.550e-01  2.222e-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.131e+00  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.21
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.41e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 7.99e-06

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) = 6323.67209717
delta logL = 1.56260750816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6323.64801628
delta logL = 1.58668839476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.514       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4518       1.0000          .0000       10.000    
     3 'Normalizat'    1.1568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73632       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=   6323.648     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.528        23.684        .99451E-05   -.19153E-03
   2  Index         1.4520        .50417        .51432E-04    .25862E-04
   3  Normalizat    1.1568        .15252       -.91741E-06   -.51170E-03
   4  Prefactor     .73632        .19017       -.35711E-06   -.29770E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5282
  Index      = 1.45196
  Normalizat = 1.15683
  Prefactor  = 0.736319
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.648     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.528        23.052        .80905E-04   -1.4717    
   2  Index         1.4520        .49048        .77899E-02   -.78894    
   3  Normalizat    1.1568        .17726        .20371E-03   -.87948    
   4  Prefactor     .73632        .22062        .30985E-03   -1.0212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24331e-10
Minuit parameter uncertainties:
  1  23.0599
  2  0.492078
  3  0.17735
  4  0.220879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201799': 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) = 6323.64801602
delta logL = 1.58668865571

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.453e+01  2.306e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  1.452e+00  4.921e-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:  7.363e-01  2.209e-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.157e+00  1.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.40
Ra Dec: 179.637 48.416
Photon Index (Free Index): 1.45 +/- 0.49
Photon Flux (Free Index): 1.36e-08 +/- 1.43e-08
Energy Flux (Free Index): 5.04e-05 +/- 5.99e-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/201799/cmap_HighResolution_643161601_643420801_4FGL_J1158.5+4824_daily_bin1558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.41e-08', energy_flux2='5.04e-05', photon_flux_error='2.57e-08', dlogl='1.59e+00', energy_flux='1.06e-05', photon_flux2='1.36e-08', job_status='DONE', time_completed='2021-09-04 17:58:58.961078', photon_index_error2='0.49', photon_index2='1.45', ts='7.21', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='5.99e-05', EG='1.13', time_epoch_completed='1630803538.96', return_code='0', job_id='201799', GAL2='0.74', EG2='1.16', return_code2='0', energy_flux_error='7.99e-06', photon_flux_error2='1.43e-08', ts2='10.40', photon_index='2.44' WHERE bin_id='1558' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:58:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 201799: <4FGL_J1158.5+4824_daily_bin1558> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin1558> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 17:47:03 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:47:05 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:47:05 2021
Terminated at Sat Sep  4 17:58:59 2021
Results reported at Sat Sep  4 17:58:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1558 179.637 48.4161 643161601 643420801 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 :                                   689.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

