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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin648
RA = 179.637, Dec = 48.4161
tmin = 407289601, tmax = 407548801
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='197765', job_status='RUN', time_executed='2021-09-04 17:36:30.866172', time_epoch_executed='1630802190.87' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='648'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197765

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197765/ft1_4FGL_J1158.5+4824_daily_bin648.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197765/ft2_4FGL_J1158.5+4824_daily_bin648.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197765/ft1_4FGL_J1158.5+4824_daily_bin648.fits outfile=/scratch/kocevski/197765/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin648.fits ra=179.637 dec=48.4161 rad=12.0 tmin=407289601.0 tmax=407548801.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.68
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197765/ft2_4FGL_J1158.5+4824_daily_bin648.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/197765/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin648.fits evtable="EVENTS" outfile="/scratch/kocevski/197765/ft1_filtered_4FGL_J1158.5+4824_daily_bin648.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.54
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197765/ft1_filtered_4FGL_J1158.5+4824_daily_bin648.fits evtable="EVENTS" scfile=/scratch/kocevski/197765/ft2_4FGL_J1158.5+4824_daily_bin648.fits sctable="SC_DATA" expcube=/scratch/kocevski/197765/ltcube_407289601_407548801_4FGL_J1158.5+4824_daily_bin648.fits outfile=/scratch/kocevski/197765/expmap_407289601_407548801_4FGL_J1158.5+4824_daily_bin648.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/197765/ltcube_407289601_407548801_4FGL_J1158.5+4824_daily_bin648.fits
.....................!
real 190.83
user 185.56
sys 4.85

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/197765/ft1_filtered_4FGL_J1158.5+4824_daily_bin648.fits scfile=/scratch/kocevski/197765/ft2_4FGL_J1158.5+4824_daily_bin648.fits outfile=/scratch/kocevski/197765/cmap_407289601_407548801_4FGL_J1158.5+4824_daily_bin648.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.637 yref=48.4161 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197765/ft1_filtered_4FGL_J1158.5+4824_daily_bin648.fits scfile=/scratch/kocevski/197765/ft2_4FGL_J1158.5+4824_daily_bin648.fits outfile=/scratch/kocevski/197765/cmap_HighResolution_407289601_407548801_4FGL_J1158.5+4824_daily_bin648.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.637 yref=48.4161 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.643       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.418       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.791       1.0000         .10000E-03   10000.    
     6 'norm      '    37.334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7569       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    71.250       1.0000         .10000E-03   10000.    
    11 'norm      '    5.2654       1.0000         .10000E-03   10000.    
    12 'norm      '    8.7935       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7366       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.862       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .80543E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6620       1.0000         .10000E-03   10000.    
    18 'norm      '    .60895       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.782       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.812       1.0000         .10000E-03   10000.    
    22 'norm      '    3.9411       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.365       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0622       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78005       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=   6339.892     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2978 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.306        .16938E-05** at limit **
   2  Prefactor     27.673        97.072        .38372E-05    .45436E-05
   3  Prefactor     .10000E-03    70.304       -.42322E-05** at limit **
   4  Prefactor     16.285        43.962       -.44957E-05   -.24467E-04
   5  Prefactor     30.776        92.155       -.15252E-05   -.90923E-06
   6  norm          37.331        36.212       -.92767E-07   -.43217E-06
   7  Prefactor     2.7595        5.5149       -.45875E-07   -.84073E-04
   8  Prefactor     .10000E-03    18.133       -.25715E-06** at limit **
   9  norm          .10000E-03    .72219       -.76711E-08** at limit **
  10  Prefactor     71.258        52.105        .55550E-06   -.11302E-04
  11  norm          5.2644        1.6216        .17368E-07   -.58232E-04
  12  norm          8.7924        9.8378       -.18516E-06   -.72406E-05
  13  Prefactor     5.7377        4.0059        .21522E-07   -.37963E-03
  14  Prefactor     .10000E-03    21.327       -.79379E-07** at limit **
  15  norm          14.864        8.3366        .25538E-06   -.18387E-04
  16  Prefactor     .10000E-03    110.75        .81666E-05** at limit **
  17  norm          1.6622        1.9583       -.11603E-06   -.16914E-03
  18  norm          .60657        6.5293       -.12486E-05   -.11871E-03
  19  Prefactor     27.776        23.064       -.16552E-05   -.15804E-03
  20  Prefactor     .10000E-03    1.3469       -.22788E-07** at limit **
  21  Prefactor     18.815        15.499        .85016E-07   -.26795E-04
  22  norm          3.9411        2.3662       -.25601E-07   -.41526E-04
  23  Prefactor     16.363        24.407       -.35560E-07   -.12782E-05
  24  Normalizat    1.0615        .17857       -.37807E-05   -.77893E-04
  25  Prefactor     .78080        .20695        .48699E-05   -.18243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.6727
  Prefactor  = 0.0001
  Prefactor  = 16.2846
  Prefactor  = 30.7756
  norm       = 37.3309
  Prefactor  = 2.75947
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 71.2578
  norm       = 5.26443
  norm       = 8.79242
  Prefactor  = 5.73773
  Prefactor  = 0.0001
  norm       = 14.8639
  Prefactor  = 0.0001
  norm       = 1.66223
  norm       = 0.606568
  Prefactor  = 27.776
  Prefactor  = 0.0001
  Prefactor  = 18.815
  norm       = 3.94107
  Prefactor  = 16.3631
  Normalizat = 1.06153
  Prefactor  = 0.780803
 **********
 **   18 **HESSE 
 **********

 FCN=   6339.892     FROM HESSE     STATUS=OK           431 CALLS     3409 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.673        97.148        .76198E-04   -1.4655    
   3  Prefactor     .10000E-03    70.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.285        44.588        .98845E-04   -1.4901    
   5  Prefactor     30.776        92.209        .72207E-04   -1.4598    
   6  norm          37.331        36.212        .65593E-04   -1.4485    
   7  Prefactor     2.7595        5.5209        .24515E-03   -1.5376    
   8  Prefactor     .10000E-03    18.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .72829        .66058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     71.258        52.437        .47559E-04   -1.4018    
  11  norm          5.2644        1.6319        .48286E-04   -1.5249    
  12  norm          8.7924        9.8359        .13517E-03   -1.5115    
  13  Prefactor     5.7377        3.7587        .11739E-03   -1.5229    
  14  Prefactor     .10000E-03    21.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.864        8.3321        .10389E-03   -1.4937    
  16  Prefactor     .10000E-03    108.31        .47546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6622        1.9405        .11447E-03   -1.5450    
  18  norm          .60657        6.6468        .38252E-03   -1.5552    
  19  Prefactor     27.776        23.329        .76007E-04   -1.4653    
  20  Prefactor     .10000E-03    1.3480        .90243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.815        15.502        .92343E-04   -1.4840    
  22  norm          3.9411        2.3666        .91576E-04   -1.5311    
  23  Prefactor     16.363        24.404        .99005E-04   -1.4899    
  24  Normalizat    1.0615        .18948        .22157E-03   -.90997    
  25  Prefactor     .78080        .21726        .30976E-03   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41441e-10
Minuit parameter uncertainties:
  1  0.00015457
  2  97.71
  3  0.000103837
  4  44.6799
  5  92.6405
  6  36.2331
  7  5.52192
  8  1.43304e-06
  9  6.35912e-07
  10  52.4714
  11  1.63196
  12  9.83775
  13  3.75887
  14  5.84855e-07
  15  8.33277
  16  8.72558e-05
  17  1.94055
  18  4.01606
  19  23.3367
  20  5.90699e-07
  21  15.5051
  22  2.36667
  23  24.4193
  24  0.189597
  25  0.217495
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  8.726e-05  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.808e-01  2.175e-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.062e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/197765/likelihoodResults_407289601_407548801_4FGL_J1158.5+4824_daily_bin648.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): 102
logL (Free Index) = 6339.89188601
delta logL = -4.31579346696e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6339.891886
delta logL = -4.31507160101e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96348E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4425       1.0000          .0000       10.000    
     3 'Normalizat'    1.0615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78080       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6339.864     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      328 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1698        21.217        .18143E-02    .15076E-03
   2  Index         1.8097        1.3885        .15491E-01   -.25590E-05
   3  Normalizat    1.0646        .17468        .22127E-03   -.14438E-04
   4  Prefactor     .77356        .21467        .31108E-03   -.21416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1698
  Index      = 1.80971
  Normalizat = 1.0646
  Prefactor  = 0.773559
 **********
 **   18 **HESSE 
 **********

 FCN=   6339.864     FROM HESSE     STATUS=OK            27 CALLS      355 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1698        21.177        .36285E-03   -1.5300    
   2  Index         1.8097        1.3884        .61965E-03   -.69197    
   3  Normalizat    1.0646        .17478        .88508E-05   -.90897    
   4  Prefactor     .77356        .21476        .12443E-04   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25115e-12
Minuit parameter uncertainties:
  1  18.8042
  2  1.42035
  3  0.174875
  4  0.214997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197765': 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) = 6339.86447557
delta logL = 0.0273672796557

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  4.170e+00  1.880e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  1.810e+00  1.420e+00  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  7.736e-01  2.150e-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.065e+00  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

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/197765/cmap_HighResolution_407289601_407548801_4FGL_J1158.5+4824_daily_bin648.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-09-04 17:49:54.915446', job_id='197765', GAL2='0.77', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630802994.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.74e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='648' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:49:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 197765: <4FGL_J1158.5+4824_daily_bin648> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin648 179.637 48.4161 407289601 407548801 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 :                                   802.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

