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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1006
RA = 179.637, Dec = 48.4161
tmin = 500083201, tmax = 500342401
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='199656', job_status='RUN', time_executed='2021-09-04 17:43:59.882606', time_epoch_executed='1630802639.88' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199656/ft1_4FGL_J1158.5+4824_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199656/ft2_4FGL_J1158.5+4824_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199656/ft1_4FGL_J1158.5+4824_daily_bin1006.fits outfile=/scratch/kocevski/199656/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1006.fits ra=179.637 dec=48.4161 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.68
user 5.41
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/199656/ft2_4FGL_J1158.5+4824_daily_bin1006.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/199656/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/199656/ft1_filtered_4FGL_J1158.5+4824_daily_bin1006.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199656/ft1_filtered_4FGL_J1158.5+4824_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/199656/ft2_4FGL_J1158.5+4824_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/199656/ltcube_500083201_500342401_4FGL_J1158.5+4824_daily_bin1006.fits outfile=/scratch/kocevski/199656/expmap_500083201_500342401_4FGL_J1158.5+4824_daily_bin1006.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/199656/ltcube_500083201_500342401_4FGL_J1158.5+4824_daily_bin1006.fits
.....................!
real 190.68
user 185.98
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/199656/ft1_filtered_4FGL_J1158.5+4824_daily_bin1006.fits scfile=/scratch/kocevski/199656/ft2_4FGL_J1158.5+4824_daily_bin1006.fits outfile=/scratch/kocevski/199656/cmap_500083201_500342401_4FGL_J1158.5+4824_daily_bin1006.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/199656/ft1_filtered_4FGL_J1158.5+4824_daily_bin1006.fits scfile=/scratch/kocevski/199656/ft2_4FGL_J1158.5+4824_daily_bin1006.fits outfile=/scratch/kocevski/199656/cmap_HighResolution_500083201_500342401_4FGL_J1158.5+4824_daily_bin1006.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71145E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.075       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    36.637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.337       1.0000         .10000E-03   10000.    
     9 'norm      '    .44236E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.415       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8993       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.294       1.0000         .10000E-03   10000.    
    17 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7452       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2887       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1838       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .65021       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2150       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=   4417.239     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2901 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    230.59       -.31357E-04** at limit **
   2  Prefactor     72.721        116.80        .19911E-06   -.54368E-05
   3  Prefactor     .10000E-03    34.944        .48220E-05** at limit **
   4  Prefactor     58.047        54.416       -.46635E-05   -.17065E-03
   5  Prefactor     .10000E-03    30.666        .60438E-06** at limit **
   6  norm          36.642        35.997        .76143E-06    .41053E-04
   7  Prefactor     1.0886        10.354        .43992E-05   -.17623E-03
   8  Prefactor     13.373        40.117        .14645E-05    .11216E-03
   9  norm          .10000E-03    1.4708        .18500E-06** at limit **
  10  Prefactor     .10000E-03    17.139        .23825E-05** at limit **
  11  norm          .10000E-03    .34873        .46412E-07** at limit **
  12  norm          23.416        13.680        .52677E-07   -.76192E-05
  13  Prefactor     .10000E-03    2.1125        .66467E-08** at limit **
  14  Prefactor     .10000E-03    26.560       -.24810E-05** at limit **
  15  norm          3.8996        6.4036        .50003E-06    .21120E-04
  16  Prefactor     56.294        29.715        .35636E-06   -.17666E-04
  17  norm          .10000E-03    1.1544        .51527E-07** at limit **
  18  norm          .10000E-03    3.0999        .34725E-07** at limit **
  19  Prefactor     .10000E-03    14.939       -.10687E-05** at limit **
  20  Prefactor     3.7453        5.5367        .46019E-05   -.64258E-03
  21  Prefactor     7.2701        21.260       -.40098E-06   -.41034E-04
  22  norm          1.1840        1.4838       -.90241E-08   -.47286E-04
  23  Prefactor     .10000E-03    26.169       -.27071E-05** at limit **
  24  Normalizat    .65022        .17319       -.16249E-05   -.58993E-04
  25  Prefactor     1.2149        .21331       -.52482E-06   -.61185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100076
  Prefactor  = 72.7208
  Prefactor  = 0.000100003
  Prefactor  = 58.0472
  Prefactor  = 0.0001
  norm       = 36.6425
  Prefactor  = 1.08859
  Prefactor  = 13.3734
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 23.4159
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.89964
  Prefactor  = 56.2935
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74531
  Prefactor  = 7.27008
  norm       = 1.18402
  Prefactor  = 0.000100001
  Normalizat = 0.650224
  Prefactor  = 1.21493
 **********
 **   18 **HESSE 
 **********

 FCN=   4417.239     FROM HESSE     STATUS=OK           421 CALLS     3322 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    240.68        .20970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     72.721        116.80        .47079E-04   -1.4000    
   3  Prefactor     .10000E-03    35.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     58.047        54.884        .52644E-04   -1.4183    
   5  Prefactor     .10000E-03    30.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          36.642        36.013        .66212E-04   -1.4497    
   7  Prefactor     1.0886        10.188        .36352E-03   -1.5499    
   8  Prefactor     13.373        39.697        .10968E-03   -1.4976    
   9  norm          .10000E-03    9.0686        .15635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .35804        .76581E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.416        13.690        .82779E-04   -1.4740    
  13  Prefactor     .10000E-03    2.1280        .93990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8996        6.3852        .20432E-03   -1.5313    
  16  Prefactor     56.294        29.668        .53465E-04   -1.4206    
  17  norm          .10000E-03    1.1999        .13929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.1119        .11427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7453        5.6668        .94500E-03   -1.5321    
  21  Prefactor     7.2701        21.278        .14857E-03   -1.5169    
  22  norm          1.1840        1.4624        .88156E-04   -1.5490    
  23  Prefactor     .10000E-03    26.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .65022        .19996        .24964E-03   -1.0589    
  25  Prefactor     1.2149        .24721        .24085E-03   -.85873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37431e-09
Minuit parameter uncertainties:
  1  0.00859501
  2  117.173
  3  0.000601224
  4  54.9319
  5  8.34705e-05
  6  36.0344
  7  6.66153
  8  39.7751
  9  6.97845e-05
  10  0.000210018
  11  1.08581e-06
  12  13.6923
  13  3.36223e-06
  14  0.000258197
  15  6.38631
  16  29.6761
  17  6.44164e-08
  18  4.53267e-06
  19  6.5948e-05
  20  5.66757
  21  21.3003
  22  1.46247
  23  0.000282547
  24  0.200186
  25  0.24745
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.629e+01  2.968e+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.215e+00  2.475e-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.502e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.43
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 9.46e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 1.55e-05

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) = 4417.23752472
delta logL = 0.00196778834834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4417.23527306
delta logL = 0.00421945745802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.869       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4954       1.0000          .0000       10.000    
     3 'Normalizat'    .64533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2188       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=   4417.235     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      257 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.856        41.786        .54649E-04    .97795E-03
   2  Index         2.4960        .62360        .47649E-02    .43853E-03
   3  Normalizat    .64498        .20144        .25055E-03   -.62965E-03
   4  Prefactor     1.2192        .24992        .24048E-03   -.11244E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.8562
  Index      = 2.49603
  Normalizat = 0.64498
  Prefactor  = 1.21923
 **********
 **   18 **HESSE 
 **********

 FCN=   4417.235     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.856        39.382        .10930E-04   -1.4239    
   2  Index         2.4960        .58674        .19060E-03   -.52452    
   3  Normalizat    .64498        .20067        .50110E-04   -1.0611    
   4  Prefactor     1.2192        .24938        .48097E-04   -.85741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57038e-09
Minuit parameter uncertainties:
  1  39.4005
  2  0.588555
  3  0.200894
  4  0.249623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199656': 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) = 4417.23527112
delta logL = 0.0042213957704

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.386e+01  3.940e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.496e+00  5.886e-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.219e+00  2.496e-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.450e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.40
Ra Dec: 179.637 48.416
Photon Index (Free Index): 2.50 +/- 0.59
Photon Flux (Free Index): 9.85e-08 +/- 6.52e-08
Energy Flux (Free Index): 2.87e-05 +/- 1.64e-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/199656/cmap_HighResolution_500083201_500342401_4FGL_J1158.5+4824_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.46e-08', energy_flux2='2.87e-05', photon_flux_error='4.98e-08', dlogl='4.22e-03', energy_flux='2.94e-05', photon_flux2='9.85e-08', job_status='DONE', time_completed='2021-09-04 17:54:00.581571', photon_index_error2='0.59', photon_index2='2.50', ts='6.43', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.65', time_epoch_completed='1630803240.58', return_code='0', job_id='199656', GAL2='1.22', EG2='0.64', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='6.52e-08', ts2='6.40', photon_index='2.44' WHERE bin_id='1006' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:54:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 199656: <4FGL_J1158.5+4824_daily_bin1006> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin1006> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:41:29 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:41:30 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:41:30 2021
Terminated at Sat Sep  4 17:54:01 2021
Results reported at Sat Sep  4 17:54:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1006 179.637 48.4161 500083201 500342401 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 :                                   598.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             302.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            752 sec.

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

