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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1501
RA = 179.843, Dec = -21.7038
tmin = 628387201, tmax = 628646401
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='230094', job_status='RUN', time_executed='2021-09-04 19:06:44.540984', time_epoch_executed='1630807604.54' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230094

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230094/ft1_4FGL_J1159.3-2142_daily_bin1501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230094/ft1_4FGL_J1159.3-2142_daily_bin1501.fits outfile=/scratch/kocevski/230094/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1501.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=628387201.0 tmax=628646401.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.70
user 3.34
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.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/230094/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1501.fits evtable="EVENTS" outfile="/scratch/kocevski/230094/ft1_filtered_4FGL_J1159.3-2142_daily_bin1501.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.55
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230094/ft1_filtered_4FGL_J1159.3-2142_daily_bin1501.fits" evtable="EVENTS" scfile=/scratch/kocevski/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.fits sctable="SC_DATA" outfile=/scratch/kocevski/230094/ltcube_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.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/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.fits
.....................!
real 12.04
user 11.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230094/ft1_filtered_4FGL_J1159.3-2142_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.fits sctable="SC_DATA" expcube=/scratch/kocevski/230094/ltcube_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.fits outfile=/scratch/kocevski/230094/expmap_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.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/230094/ltcube_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.fits
.....................!
real 190.62
user 185.12
sys 5.08

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.3-2142 @ 179.843 -21.7038

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/230094/ft1_filtered_4FGL_J1159.3-2142_daily_bin1501.fits scfile=/scratch/kocevski/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.fits outfile=/scratch/kocevski/230094/cmap_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.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.843 yref=-21.7038 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/230094/ft1_filtered_4FGL_J1159.3-2142_daily_bin1501.fits scfile=/scratch/kocevski/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.fits outfile=/scratch/kocevski/230094/cmap_HighResolution_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.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.843 yref=-21.7038 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230094/ft1_filtered_4FGL_J1159.3-2142_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230094/Model_4FGL_J1159.3-2142_daily_bin1501.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/230094/ft1_filtered_4FGL_J1159.3-2142_daily_bin1501.fits.....................!
real 82.01
user 80.51
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230094/ft1_filtered_4FGL_J1159.3-2142_daily_bin1501.fits', '/scratch/kocevski/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.fits', expMap='/scratch/kocevski/230094/expmap_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.fits', expCube='/scratch/kocevski/230094/ltcube_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230094/Model_4FGL_J1159.3-2142_daily_bin1501.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.3-2142'

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.158e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/230094/ft1_filtered_4FGL_J1159.3-2142_daily_bin1501.fits
Spacecraft file(s): /scratch/kocevski/230094/ft2_4FGL_J1159.3-2142_daily_bin1501.fits
Exposure map: /scratch/kocevski/230094/expmap_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.fits
Exposure cube: /scratch/kocevski/230094/ltcube_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230094/Model_4FGL_J1159.3-2142_daily_bin1501.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) = 10505.2244471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.770       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.633       1.0000         .10000E-03   10000.    
     6 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.934       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42116E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3682       1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13755E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.571       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.896       1.0000         .10000E-03   10000.    
    14 'norm      '    6.4019       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8463       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5296       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71613E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7702       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9465       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.2874       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75047       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10505.19     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     2736 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.770        17.805        .14165E-06    .42311E-04
   2  Prefactor     .10000E-03    31.034       -.24063E-05** at limit **
   3  Prefactor     .10000E-03    20.132        .68451E-06** at limit **
   4  Prefactor     .10000E-03    8.1120       -.14091E-07** at limit **
   5  Prefactor     15.630        22.142       -.13675E-06   -.17697E-04
   6  norm          .10000E-03    .22881        .10587E-06** at limit **
   7  Prefactor     17.936        8.2925       -.56320E-06   -.48209E-03
   8  Prefactor     .10001E-03    97.544       -.41327E-04** at limit **
   9  Prefactor     2.3693        .60626        .45503E-07   -.75102E-03
  10  Prefactor     47.790        18.198       -.35839E-06   -.19683E-03
  11  Prefactor     .10000E-03    62.773        .11758E-04** at limit **
  12  norm          17.570        15.923        .15040E-06    .26457E-05
  13  Prefactor     15.895        11.166       -.23788E-06   -.33720E-03
  14  norm          6.4015        4.0390        .60478E-07   -.31730E-03
  15  Prefactor     2.5285        4.0302       -.30470E-06   -.54586E-03
  16  Prefactor     .10000E-03    12.884        .14815E-06** at limit **
  17  Prefactor     5.8499        21.237        .25927E-05    .19133E-04
  18  Prefactor     7.5292        8.0294       -.80426E-07   -.60501E-04
  19  Prefactor     .10000E-03    8.7107        .11671E-06** at limit **
  20  Prefactor     .10001E-03    52.857        .30634E-04** at limit **
  21  Prefactor     1.7699        4.2104        .53541E-06    .13298E-03
  22  Prefactor     8.9462        2.4531       -.17299E-07   -.70555E-04
  23  Prefactor     .10000E-03    4.4331        .22910E-06** at limit **
  24  norm          7.2874        1.4505        .48293E-07    .16198E-03
  25  Normalizat    .75060        .19070       -.51936E-06   -.52821E-03
  26  Prefactor     1.0933        .10321       -.10002E-06   -.10707E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6299
  norm       = 0.0001
  Prefactor  = 17.9357
  Prefactor  = 0.000100005
  Prefactor  = 2.36925
  Prefactor  = 47.7898
  Prefactor  = 0.000100002
  norm       = 17.57
  Prefactor  = 15.8945
  norm       = 6.40145
  Prefactor  = 2.52853
  Prefactor  = 0.0001
  Prefactor  = 5.84986
  Prefactor  = 7.52919
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 1.76987
  Prefactor  = 8.94625
  Prefactor  = 0.0001
  norm       = 7.28737
  Normalizat = 0.750599
  Prefactor  = 1.09326
 **********
 **   18 **HESSE 
 **********

 FCN=   10505.19     FROM HESSE     STATUS=OK           468 CALLS     3204 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.770        17.803        .47506E-03   -1.4865    
   2  Prefactor     .10000E-03    31.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.630        22.089        .10130E-03   -1.4917    
   6  norm          .10000E-03    .30196        .95054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.936        8.2685        .47288E-03   -1.4861    
   8  Prefactor     .10001E-03    158.24        .86740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3693        4.1505        .13030E-02   -1.5400    
  10  Prefactor     47.790        18.209        .58003E-04   -1.4324    
  11  Prefactor     .10000E-03    62.682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.570        15.937        .95547E-04   -1.4869    
  13  Prefactor     15.895        11.163        .10046E-03   -1.4910    
  14  norm          6.4015        4.0309        .14409E-03   -1.5202    
  15  Prefactor     2.5285        3.9700        .23025E-03   -1.5390    
  16  Prefactor     .10000E-03    12.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8499        20.937        .16609E-03   -1.5224    
  18  Prefactor     7.5292        8.0299        .14615E-03   -1.5159    
  19  Prefactor     .10000E-03    8.7163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    97.032        .64189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7699        4.1867        .30161E-03   -1.5442    
  22  Prefactor     8.9462        2.4454        .78266E-04   -1.5110    
  23  Prefactor     .10000E-03    4.4542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.2874        1.4506        .53289E-04   -1.5168    
  25  Normalizat    .75060        .21979        .38092E-03   -1.0193    
  26  Prefactor     1.0933        .11917        .17946E-03   -.89682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15428e-09
Minuit parameter uncertainties:
  1  17.8083
  2  0.000234384
  3  5.42532e-05
  4  4.57186e-06
  5  22.1006
  6  6.52654e-06
  7  8.26899
  8  0.00178874
  9  4.15104
  10  18.2109
  11  0.000682636
  12  15.9413
  13  11.1642
  14  4.03106
  15  3.97043
  16  9.71415e-06
  17  20.9629
  18  8.03107
  19  4.41104e-06
  20  0.00230652
  21  4.18736
  22  2.44539
  23  8.06888e-06
  24  1.45061
  25  0.220049
  26  0.1192
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  6.401e+00  4.031e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.093e+00  1.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  7.506e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.25
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.26e-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) = 10505.0609012
delta logL = 0.126259668745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10505.0522921
delta logL = 0.134868715302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8648       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0812       1.0000          .0000       5.0000    
     3 'Normalizat'    .76757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0889       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10505.05     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8648        105.74        .38282E-02    .20473E-03
   2  alpha         2.0811        3.1420        .41906        .26168E-04
   3  Normalizat    .76751        .12002        .85157E-01    .51287E-04
   4  Prefactor     1.0889        .43392E-01    .38025E-01   -.20180E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.86484
  alpha      = 2.0811
  Normalizat = 0.76751
  Prefactor  = 1.08893
 **********
 **   18 **HESSE 
 **********

 FCN=   10505.05     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8648        4.3582        .15313E-03   -1.5184    
   2  alpha         2.0811        .59985        .17588E-01   -.16835    
   3  Normalizat    .76751        .21033        .37712E-03   -1.0129    
   4  Prefactor     1.0889        .11720        .17982E-03   -.89821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50319e-12
Minuit parameter uncertainties:
  1  4.3584
  2  0.605939
  3  0.210554
  4  0.117224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230094': 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) = 10505.0522921
delta logL = 0.134868786907

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  6.865e+00  4.358e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.081e+00  6.059e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.089e+00  1.172e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  7.675e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.53
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.08 +/- 0.61
Photon Flux (Free Index): 4.28e-08 +/- 4.04e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/230094/cmap_HighResolution_628387201_628646401_4FGL_J1159.3-2142_daily_bin1501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='2.12e-05', photon_flux_error='3.65e-08', dlogl='1.35e-01', energy_flux='2.00e-05', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-09-04 19:21:29.089094', photon_index_error2='0.61', photon_index2='2.08', ts='9.25', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.75', time_epoch_completed='1630808489.09', return_code='0', job_id='230094', GAL2='1.09', EG2='0.77', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.04e-08', ts2='9.53', photon_index='2.38' WHERE bin_id='1501' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:21:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 230094: <4FGL_J1159.3-2142_daily_bin1501> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1501> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:50 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:05:52 2021
Terminated at Sat Sep  4 19:21:29 2021
Results reported at Sat Sep  4 19:21:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1501 179.843 -21.7038 628387201 628646401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.3-2142 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   869.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

