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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1474
RA = 179.843, Dec = -21.7038
tmin = 621388801, tmax = 621648001
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='230042', job_status='RUN', time_executed='2021-09-04 19:06:15.416088', time_epoch_executed='1630807575.42' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230042

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230042/ft1_4FGL_J1159.3-2142_daily_bin1474.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230042/ft2_4FGL_J1159.3-2142_daily_bin1474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230042/ft1_4FGL_J1159.3-2142_daily_bin1474.fits outfile=/scratch/kocevski/230042/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1474.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=621388801.0 tmax=621648001.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.33
user 3.04
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230042/ft1_filtered_4FGL_J1159.3-2142_daily_bin1474.fits" evtable="EVENTS" scfile=/scratch/kocevski/230042/ft2_4FGL_J1159.3-2142_daily_bin1474.fits sctable="SC_DATA" outfile=/scratch/kocevski/230042/ltcube_621388801_621648001_4FGL_J1159.3-2142_daily_bin1474.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/230042/ft2_4FGL_J1159.3-2142_daily_bin1474.fits
.....................!
real 13.81
user 13.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230042/ft1_filtered_4FGL_J1159.3-2142_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/230042/ft2_4FGL_J1159.3-2142_daily_bin1474.fits sctable="SC_DATA" expcube=/scratch/kocevski/230042/ltcube_621388801_621648001_4FGL_J1159.3-2142_daily_bin1474.fits outfile=/scratch/kocevski/230042/expmap_621388801_621648001_4FGL_J1159.3-2142_daily_bin1474.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/230042/ltcube_621388801_621648001_4FGL_J1159.3-2142_daily_bin1474.fits
.....................!
real 203.79
user 184.96
sys 4.68

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/230042/ft1_filtered_4FGL_J1159.3-2142_daily_bin1474.fits scfile=/scratch/kocevski/230042/ft2_4FGL_J1159.3-2142_daily_bin1474.fits outfile=/scratch/kocevski/230042/cmap_621388801_621648001_4FGL_J1159.3-2142_daily_bin1474.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230042/ft1_filtered_4FGL_J1159.3-2142_daily_bin1474.fits scfile=/scratch/kocevski/230042/ft2_4FGL_J1159.3-2142_daily_bin1474.fits outfile=/scratch/kocevski/230042/cmap_HighResolution_621388801_621648001_4FGL_J1159.3-2142_daily_bin1474.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230042/ft1_filtered_4FGL_J1159.3-2142_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/230042/ft2_4FGL_J1159.3-2142_daily_bin1474.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230042/Model_4FGL_J1159.3-2142_daily_bin1474.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/230042/ft1_filtered_4FGL_J1159.3-2142_daily_bin1474.fits.....................!
real 71.97
user 70.59
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.079       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59520E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11383E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .42810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    81.682       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.579       1.0000         .10000E-03   10000.    
    14 'norm      '    15.825       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29641E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.850       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8922       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.2747       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3265       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97119       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=   8667.269     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3091 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.119        55.700        .18431E-04    .49496E-04
   2  Prefactor     .10005E-03    356.15       -.20250E-04** at limit **
   3  Prefactor     .10000E-03    10.357        .10068E-06** at limit **
   4  Prefactor     .10000E-03    9.7518       -.86497E-07** at limit **
   5  Prefactor     .10000E-03    35.555        .64495E-06** at limit **
   6  norm          .42773        1.1463       -.91913E-06   -.26106E-02
   7  Prefactor     81.684        20.642       -.55151E-06    .74395E-04
   8  Prefactor     .10000E-03    21.719       -.59904E-06** at limit **
   9  Prefactor     8.0442        5.7006       -.28800E-06   -.25011E-03
  10  Prefactor     53.760        33.097        .96466E-05   -.31737E-05
  11  Prefactor     .10000E-03    6.9035        .35610E-07** at limit **
  12  norm          .10000E-03    8.1468       -.31116E-08** at limit **
  13  Prefactor     25.571        19.539        .16619E-05   -.32681E-04
  14  norm          15.826        7.3245       -.44153E-07   -.81318E-04
  15  Prefactor     .10000E-03    2.0058        .29910E-06** at limit **
  16  Prefactor     37.688        35.744       -.20686E-05   -.57312E-05
  17  Prefactor     .10000E-03    17.086        .31655E-06** at limit **
  18  Prefactor     .10000E-03    12.911       -.11713E-06** at limit **
  19  Prefactor     .10000E-03    61.786       -.15840E-05** at limit **
  20  Prefactor     19.858        22.274       -.31304E-05   -.35033E-04
  21  Prefactor     .10000E-03    1.6837        .18401E-07** at limit **
  22  Prefactor     2.8921        1.7773       -.37975E-09   -.53269E-04
  23  Prefactor     .10000E-03    6.7785        .54759E-07** at limit **
  24  norm          5.2746        1.4035        .52017E-07   -.10514E-03
  25  Normalizat    1.3265        .24572       -.17378E-05    .24244E-04
  26  Prefactor     .97123        .11824        .52326E-07   -.78994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.1192
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.42773
  Prefactor  = 81.6842
  Prefactor  = 0.0001
  Prefactor  = 8.04416
  Prefactor  = 53.7605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.5711
  norm       = 15.8259
  Prefactor  = 0.0001
  Prefactor  = 37.6879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.858
  Prefactor  = 0.0001
  Prefactor  = 2.89209
  Prefactor  = 0.0001
  norm       = 5.27457
  Normalizat = 1.32647
  Prefactor  = 0.971234
 **********
 **   18 **HESSE 
 **********

 FCN=   8667.269     FROM HESSE     STATUS=OK           452 CALLS     3543 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.119        55.658        .50928E-04   -1.4130    
   2  Prefactor     .10005E-03    359.56        .18952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .42773        1.1552        .15870E-03   -1.5577    
   7  Prefactor     81.684        20.641        .44441E-04   -1.3898    
   8  Prefactor     .10000E-03    21.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0442        5.7032        .14137E-03   -1.5141    
  10  Prefactor     53.760        32.735        .54685E-04   -1.4240    
  11  Prefactor     .10000E-03    6.9042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.1524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.571        19.560        .79206E-04   -1.4696    
  14  norm          15.826        7.3374        .10068E-03   -1.4912    
  15  Prefactor     .10000E-03    13.698        .25152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.688        35.730        .65295E-04   -1.4479    
  17  Prefactor     .10000E-03    17.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    62.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.858        22.296        .89898E-04   -1.4816    
  21  Prefactor     .10000E-03    1.6854        .11796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.8921        1.7760        .94734E-04   -1.5368    
  23  Prefactor     .10000E-03    6.8178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.2746        1.4031        .54829E-04   -1.5249    
  25  Normalizat    1.3265        .28981        .36357E-03   -.82780    
  26  Prefactor     .97123        .14067        .20965E-03   -.93695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42184e-09
Minuit parameter uncertainties:
  1  55.7051
  2  0.00846273
  3  2.52242e-06
  4  1.34278e-05
  5  2.99858e-05
  6  1.15529
  7  20.6429
  8  1.76818e-05
  9  5.70357
  10  32.7459
  11  2.40063e-06
  12  4.04629e-06
  13  19.5645
  14  7.33778
  15  0.000112493
  16  35.7505
  17  3.86295e-05
  18  1.95968e-05
  19  0.000116575
  20  22.3057
  21  1.33547e-07
  22  1.77603
  23  8.47998e-06
  24  1.40307
  25  0.290164
  26  0.140728
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.583e+01  7.338e+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:  9.712e-01  1.407e-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.326e+00  2.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.75
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 6.65e-08
Energy Flux (Fixed Index): 4.95e-05 +/- 2.30e-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) = 8666.7595733
delta logL = 0.509591650685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8666.74974192
delta logL = 0.519423028803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.939       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99428       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=   8666.750     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      239 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.939        54.542        .28984E-02    .12976E-02
   2  alpha         2.8319        3.7972        .22461        .11986E-03
   3  Normalizat    1.2533        .15105        .83994E-01   -.31260E-04
   4  Prefactor     .99427        .54916E-01    .46196E-01   -.17821E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9392
  alpha      = 2.83189
  Normalizat = 1.25326
  Prefactor  = 0.994266
 **********
 **   18 **HESSE 
 **********

 FCN=   8666.750     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.939        6.8639        .10625E-03   -1.5017    
   2  alpha         2.8319        .47326        .89956E-02    .13315    
   3  Normalizat    1.2533        .28907        .37189E-03   -.84973    
   4  Prefactor     .99427        .14228        .20739E-03   -.92921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26524e-10
Minuit parameter uncertainties:
  1  6.86436
  2  0.476189
  3  0.289443
  4  0.142334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230042': 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) = 8666.74974192
delta logL = 0.519423036383

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.194e+01  6.864e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.832e+00  4.762e-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.943e-01  1.423e-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.253e+00  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.14
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.83 +/- 0.48
Photon Flux (Free Index): 2.07e-07 +/- 9.12e-08
Energy Flux (Free Index): 5.00e-05 +/- 1.75e-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/230042/cmap_HighResolution_621388801_621648001_4FGL_J1159.3-2142_daily_bin1474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='5.00e-05', photon_flux_error='6.65e-08', dlogl='5.19e-01', energy_flux='4.95e-05', photon_flux2='2.07e-07', job_status='DONE', time_completed='2021-09-04 19:20:13.038195', photon_index_error2='0.48', photon_index2='2.83', ts='14.75', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.33', time_epoch_completed='1630808413.04', return_code='0', job_id='230042', GAL2='0.99', EG2='1.25', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='9.12e-08', ts2='16.14', photon_index='2.38' WHERE bin_id='1474' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:20:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 230042: <4FGL_J1159.3-2142_daily_bin1474> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1474 179.843 -21.7038 621388801 621648001 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 :                                   816.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

