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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1480
RA = 179.843, Dec = -21.7038
tmin = 622944001, tmax = 623203201
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='230054', job_status='RUN', time_executed='2021-09-04 19:07:34.966872', time_epoch_executed='1630807654.97' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230054/ft1_4FGL_J1159.3-2142_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230054/ft2_4FGL_J1159.3-2142_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230054/ft1_4FGL_J1159.3-2142_daily_bin1480.fits outfile=/scratch/kocevski/230054/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1480.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=622944001.0 tmax=623203201.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.09
user 2.86
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230054/ft2_4FGL_J1159.3-2142_daily_bin1480.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/230054/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1480.fits evtable="EVENTS" outfile="/scratch/kocevski/230054/ft1_filtered_4FGL_J1159.3-2142_daily_bin1480.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.57
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230054/ft1_filtered_4FGL_J1159.3-2142_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/230054/ft2_4FGL_J1159.3-2142_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/230054/ltcube_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.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/230054/ft2_4FGL_J1159.3-2142_daily_bin1480.fits
.....................!
real 14.00
user 13.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230054/ft1_filtered_4FGL_J1159.3-2142_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/230054/ft2_4FGL_J1159.3-2142_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/230054/ltcube_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.fits outfile=/scratch/kocevski/230054/expmap_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.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/230054/ltcube_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.fits
.....................!
real 190.58
user 185.33
sys 4.66

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/230054/ft1_filtered_4FGL_J1159.3-2142_daily_bin1480.fits scfile=/scratch/kocevski/230054/ft2_4FGL_J1159.3-2142_daily_bin1480.fits outfile=/scratch/kocevski/230054/cmap_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230054/ft1_filtered_4FGL_J1159.3-2142_daily_bin1480.fits scfile=/scratch/kocevski/230054/ft2_4FGL_J1159.3-2142_daily_bin1480.fits outfile=/scratch/kocevski/230054/cmap_HighResolution_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230054/ft1_filtered_4FGL_J1159.3-2142_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/230054/ft2_4FGL_J1159.3-2142_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230054/Model_4FGL_J1159.3-2142_daily_bin1480.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/230054/ft1_filtered_4FGL_J1159.3-2142_daily_bin1480.fits......................!
real 17.89
user 16.56
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230054/ft1_filtered_4FGL_J1159.3-2142_daily_bin1480.fits', '/scratch/kocevski/230054/ft2_4FGL_J1159.3-2142_daily_bin1480.fits', expMap='/scratch/kocevski/230054/expmap_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.fits', expCube='/scratch/kocevski/230054/ltcube_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230054/Model_4FGL_J1159.3-2142_daily_bin1480.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/230054/ft1_filtered_4FGL_J1159.3-2142_daily_bin1480.fits
Spacecraft file(s): /scratch/kocevski/230054/ft2_4FGL_J1159.3-2142_daily_bin1480.fits
Exposure map: /scratch/kocevski/230054/expmap_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.fits
Exposure cube: /scratch/kocevski/230054/ltcube_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230054/Model_4FGL_J1159.3-2142_daily_bin1480.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) = 521.751849698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12084E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    153.59       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.894       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.621       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10548E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    73.139       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11621E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11471E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11362E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24297E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12893E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    24 'norm      '    10000.       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96310       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=   507.5748     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3601 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.907       -.41667E-05** at limit **
   2  Prefactor     .10000E-03    96.653        .45994E-04** at limit **
   3  Prefactor     .10000E-03    54.502       -.37349E-04** at limit **
   4  Prefactor     .10000E-03    16.196        .78831E-08** at limit **
   5  Prefactor     153.60        178.51        .52140E-05   -.33678E-04
   6  norm          .10000E-03    1.5724       -.35196E-07** at limit **
   7  Prefactor     12.880        29.250       -.16800E-05   -.39818E-04
   8  Prefactor     .10000E-03    151.00       -.13645E-03** at limit **
   9  Prefactor     .10000E-03    11.350        .21316E-06** at limit **
  10  Prefactor     64.642        103.60        .14244E-04    .64452E-05
  11  Prefactor     .10000E-03    63.269        .51275E-05** at limit **
  12  norm          .10000E-03    49.084        .29790E-04** at limit **
  13  Prefactor     .10000E-03    374.63        .34975E-03** at limit **
  14  norm          73.181        62.239        .14129E-06   -.47677E-03
  15  Prefactor     .10000E-03    22.501       -.10907E-06** at limit **
  16  Prefactor     .10000E-03    870.66       -.19463E-03** at limit **
  17  Prefactor     .10000E-03    206.58        .39739E-04** at limit **
  18  Prefactor     .10000E-03    686.16        .37263E-04** at limit **
  19  Prefactor     .10000E-03    1123.1       -.45883E-03** at limit **
  20  Prefactor     .10000E-03    8061.4       -.16662E-02** at limit **
  21  Prefactor     10000.        6603.1        .13499E-02** at limit **
  22  Prefactor     10000.        6771.3        .14091E-02** at limit **
  23  Prefactor    10000.0        8842.8        .17481E-02** at limit **
  24  norm         10000.0        840.27        .15855E-03** at limit **
  25  Normalizat    .10000E-01    .42014        .10582E-04** at limit **
  26  Prefactor     .96311        .25446       -.15725E-05   -.10728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 153.599
  norm       = 0.0001
  Prefactor  = 12.8803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.6418
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 73.1808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 0.963113
 **********
 **   18 **HESSE 
 **********

 FCN=   507.5748     FROM HESSE     STATUS=OK           434 CALLS     4035 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.912        .14429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    96.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    54.513        .16265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.216        .88600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     153.60        179.20        .32527E-04   -1.3223    
   6  norm          .10000E-03    1.5767        .27562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.880        29.192        .11155E-03   -1.4990    
   8  Prefactor     .10000E-03    151.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.359        .74172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     64.642        103.65        .49922E-04   -1.4098    
  11  Prefactor     .10000E-03    63.269        .17527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    49.084        .15434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    374.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          73.181        62.208        .46945E-04   -1.3995    
  15  Prefactor     .10000E-03    22.501        .10446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    870.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    206.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    686.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1123.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8061.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10000.        6603.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10000.        6771.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        8843.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm         10000.0        840.51        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .46371        .83095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .96311        .24188        .16381E-03   -.93969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24468e-09
Minuit parameter uncertainties:
  1  2.91006e-06
  2  1.35035e-05
  3  4.58265e-06
  4  2.20337e-06
  5  179.837
  6  8.92446e-07
  7  29.2248
  8  8.56014e-06
  9  1.17447e-06
  10  103.936
  11  6.1626e-06
  12  1.73524e-06
  13  0.00144322
  14  62.2635
  15  1.65807e-06
  16  0.000172036
  17  5.97947e-07
  18  9.89075e-05
  19  8.4919e-05
  20  0.000135469
  21  4.48162e-05
  22  5.48777e-05
  23  0.00672067
  24  0.000144488
  25  2.60838e-06
  26  0.242154
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  7.318e+01  6.226e+01  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:  9.631e-01  2.422e-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:  1.000e-02  2.608e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 6.64e-07 +/- 5.65e-07
Energy Flux (Fixed Index): 2.29e-04 +/- 1.95e-04

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) = 507.381233107
delta logL = 0.193596395738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 507.335829275
delta logL = 0.239000227571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    95.808       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8214       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96527       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=   507.3358     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      201 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          95.808        87.119        .10266E-02   -.14202E-02
   2  alpha         1.8220        .79501        .15692        .47670E-06
   3  Normalizat    .10000E-01    .42702        .21946    ** at limit **
   4  Prefactor     .96527        .24050        .45832E-01    .12922E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 95.8079
  alpha      = 1.82201
  Normalizat = 0.01
  Prefactor  = 0.965267
 **********
 **   18 **HESSE 
 **********

 FCN=   507.3358     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          95.808        81.300        .20532E-03   -1.3747    
   2  alpha         1.8220        .75558        .68267E-03   -.27464    
   3  Normalizat    .10000E-01    .48095        .83813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96527        .22022        .16369E-03   -.93896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4055e-08
Minuit parameter uncertainties:
  1  81.3945
  2  0.768586
  3  3.41023e-07
  4  0.220428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230054': 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) = 507.335828801
delta logL = 0.2390007018

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  9.581e+01  8.139e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.822e+00  7.686e-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:  9.653e-01  2.204e-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:  1.000e-02  3.410e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 1.82 +/- 0.77
Photon Flux (Free Index): 4.57e-07 +/- 4.65e-07
Energy Flux (Free Index): 3.42e-04 +/- 3.98e-04

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/230054/cmap_HighResolution_622944001_623203201_4FGL_J1159.3-2142_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.64e-07', energy_flux2='3.42e-04', photon_flux_error='5.65e-07', dlogl='2.39e-01', energy_flux='2.29e-04', photon_flux2='4.57e-07', job_status='DONE', time_completed='2021-09-04 19:13:34.740264', photon_index_error2='0.77', photon_index2='1.82', ts='4.34', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.98e-04', EG='0.01', time_epoch_completed='1630808014.74', return_code='0', job_id='230054', GAL2='0.97', EG2='0.01', return_code2='0', energy_flux_error='1.95e-04', photon_flux_error2='4.65e-07', ts2='4.81', photon_index='2.38' WHERE bin_id='1480' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:13:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 230054: <4FGL_J1159.3-2142_daily_bin1480> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1480> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:48 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:50 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:50 2021
Terminated at Sat Sep  4 19:13:35 2021
Results reported at Sat Sep  4 19:13:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1480 179.843 -21.7038 622944001 623203201 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 :                                   353.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   464 sec.
    Turnaround time :                            467 sec.

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

