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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1001
RA = 179.637, Dec = 48.4161
tmin = 498787201, tmax = 499046401
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='199647', job_status='RUN', time_executed='2021-09-04 17:43:53.898639', time_epoch_executed='1630802633.9' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199647

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199647/ft1_4FGL_J1158.5+4824_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199647/ft2_4FGL_J1158.5+4824_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199647/ft1_4FGL_J1158.5+4824_daily_bin1001.fits outfile=/scratch/kocevski/199647/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1001.fits ra=179.637 dec=48.4161 rad=12.0 tmin=498787201.0 tmax=499046401.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 4.99
user 4.78
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199647/ft1_filtered_4FGL_J1158.5+4824_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/199647/ft2_4FGL_J1158.5+4824_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/199647/ltcube_498787201_499046401_4FGL_J1158.5+4824_daily_bin1001.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/199647/ft2_4FGL_J1158.5+4824_daily_bin1001.fits
.....................!
real 12.03
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199647/ft1_filtered_4FGL_J1158.5+4824_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/199647/ft2_4FGL_J1158.5+4824_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/199647/ltcube_498787201_499046401_4FGL_J1158.5+4824_daily_bin1001.fits outfile=/scratch/kocevski/199647/expmap_498787201_499046401_4FGL_J1158.5+4824_daily_bin1001.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/199647/ltcube_498787201_499046401_4FGL_J1158.5+4824_daily_bin1001.fits
.....................!
real 190.42
user 185.84
sys 4.10

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/199647/ft1_filtered_4FGL_J1158.5+4824_daily_bin1001.fits scfile=/scratch/kocevski/199647/ft2_4FGL_J1158.5+4824_daily_bin1001.fits outfile=/scratch/kocevski/199647/cmap_498787201_499046401_4FGL_J1158.5+4824_daily_bin1001.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199647/ft1_filtered_4FGL_J1158.5+4824_daily_bin1001.fits scfile=/scratch/kocevski/199647/ft2_4FGL_J1158.5+4824_daily_bin1001.fits outfile=/scratch/kocevski/199647/cmap_HighResolution_498787201_499046401_4FGL_J1158.5+4824_daily_bin1001.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   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 '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1786       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3092       1.0000         .10000E-03   10000.    
    11 'norm      '    .25011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18286E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .96958E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.294       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2111       1.0000         .10000E-03   10000.    
    18 'norm      '    22.440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21985E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.447       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4347       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1251       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1703       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=   5741.621     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2943 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.544       -.12146E-07** at limit **
   2  Prefactor     .10000E-03    38.898       -.89840E-06** at limit **
   3  Prefactor     .10000E-03    61.606       -.46505E-05** at limit **
   4  Prefactor     .10000E-03    52.512        .58157E-06** at limit **
   5  Prefactor     .10000E-03    48.942        .26794E-05** at limit **
   6  norm          .10000E-03    16.743       -.22170E-06** at limit **
   7  Prefactor     .10000E-03    8.7158        .50051E-07** at limit **
   8  Prefactor     .10000E-03    17.103        .25274E-06** at limit **
   9  norm          1.1788        2.2636        .19694E-06    .59338E-04
  10  Prefactor     1.1853        274.60        .12376E-04    .34195E-04
  11  norm          .10000E-03    .84526       -.64134E-06** at limit **
  12  norm          .10000E-03    12.582       -.85515E-07** at limit **
  13  Prefactor     .10000E-03    1.2330       -.10012E-07** at limit **
  14  Prefactor     .10000E-03    200.90       -.15171E-05** at limit **
  15  norm          .10005E-03    3.6806        .21176E-06** at limit **
  16  Prefactor     16.292        15.074       -.19200E-07   -.11760E-04
  17  norm          1.2108        1.8660        .15556E-06   -.11236E-03
  18  norm          22.433        10.561        .13964E-06   -.32062E-03
  19  Prefactor     .10016E-03    24.000        .56712E-06** at limit **
  20  Prefactor     .10000E-03    3.9193        .39521E-07** at limit **
  21  Prefactor     28.432        27.419        .24346E-06   -.56505E-04
  22  norm          2.4346        1.6776       -.13174E-07   -.28693E-04
  23  Prefactor     .10000E-03    107.09        .39875E-05** at limit **
  24  Normalizat    1.1254        .18521        .35415E-06    .73219E-04
  25  Prefactor     1.1701        .22736        .97469E-07    .77220E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.17877
  Prefactor  = 1.18529
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100053
  Prefactor  = 16.2916
  norm       = 1.21083
  norm       = 22.4334
  Prefactor  = 0.000100158
  Prefactor  = 0.0001
  Prefactor  = 28.4325
  norm       = 2.43465
  Prefactor  = 0.000100001
  Normalizat = 1.12535
  Prefactor  = 1.17006
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.621     FROM HESSE     STATUS=OK           429 CALLS     3372 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    62.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    49.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    16.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0676        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1788        2.2027        .15178E-03   -1.5491    
  10  Prefactor     1.1853        279.95        .38546E-03   -1.5490    
  11  norm          .10000E-03    3.1209        .11512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2430        .82116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    202.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10005E-03    52.165        .27991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.292        15.068        .99222E-04   -1.4900    
  17  norm          1.2108        1.8279        .12214E-03   -1.5488    
  18  norm          22.433        9.8760        .84556E-04   -1.4760    
  19  Prefactor     .10016E-03    130.46        .64500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9635        .14647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.432        27.192        .75115E-04   -1.4641    
  22  norm          2.4346        1.6771        .79337E-04   -1.5396    
  23  Prefactor     .10000E-03    107.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1254        .21550        .23334E-03   -.88942    
  25  Prefactor     1.1701        .26747        .29194E-03   -.87258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04045e-09
Minuit parameter uncertainties:
  1  1.11602e-05
  2  8.32197e-05
  3  0.000540344
  4  3.15134e-05
  5  0.000263598
  6  1.40076e-05
  7  1.84974e-05
  8  7.80637e-06
  9  2.20282
  10  36.6046
  11  0.000171741
  12  6.56382e-07
  13  1.34981e-06
  14  5.36981e-05
  15  0.0033439
  16  15.0719
  17  1.82799
  18  9.87676
  19  0.00909295
  20  2.36861e-06
  21  27.2039
  22  1.67711
  23  0.000513652
  24  0.215668
  25  0.267784
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.629e+01  1.507e+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.170e+00  2.678e-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.125e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.29
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 8.50e-06 +/- 7.86e-06

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

Saving results to:
/scratch/kocevski/199647/likelihoodResults_498787201_499046401_4FGL_J1158.5+4824_daily_bin1001.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) = 5739.58248186
delta logL = 2.03819858959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5739.54958522
delta logL = 2.07109523043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.196       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1551       1.0000          .0000       10.000    
     3 'Normalizat'    1.1420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1645       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.

 FCN=   5739.550     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      215 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.196        11.551        .29933E-02    .21872E-02
   2  Index         1.1551        .38007        .20286       -.57254E-04
   3  Normalizat    1.1420        .17346        .52450E-01    .75241E-05
   4  Prefactor     1.1645        .22163        .66124E-01    .75648E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1956
  Index      = 1.15508
  Normalizat = 1.14203
  Prefactor  = 1.16451
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.550     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.196        17.523        .11973E-03   -1.5039    
   2  Index         1.1551        .61641        .83715E-02   -.87725    
   3  Normalizat    1.1420        .20889        .23190E-03   -.88414    
   4  Prefactor     1.1645        .26690        .29251E-03   -.87430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30768e-08
Minuit parameter uncertainties:
  1  17.5307
  2  0.620295
  3  0.209043
  4  0.267206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199647': 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) = 5739.5495852
delta logL = 2.07109524888

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.120e+01  1.753e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  1.155e+00  6.203e-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.165e+00  2.672e-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.142e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.42
Ra Dec: 179.637 48.416
Photon Index (Free Index): 1.16 +/- 0.62
Photon Flux (Free Index): 6.37e-09 +/- 8.25e-09
Energy Flux (Free Index): 6.07e-05 +/- 8.28e-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/199647/cmap_HighResolution_498787201_499046401_4FGL_J1158.5+4824_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='6.07e-05', photon_flux_error='2.53e-08', dlogl='2.07e+00', energy_flux='8.50e-06', photon_flux2='6.37e-09', job_status='DONE', time_completed='2021-09-04 17:56:35.771293', photon_index_error2='0.62', photon_index2='1.16', ts='3.29', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='9.46e-08', energy_flux_error2='8.28e-05', EG='1.13', time_epoch_completed='1630803395.77', return_code='0', job_id='199647', GAL2='1.16', EG2='1.14', return_code2='0', energy_flux_error='7.86e-06', photon_flux_error2='8.25e-09', ts2='7.42', photon_index='2.44' WHERE bin_id='1001' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:56:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 199647: <4FGL_J1158.5+4824_daily_bin1001> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1001 179.637 48.4161 498787201 499046401 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 :                                   759.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            908 sec.

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

