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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1530
RA = 179.843, Dec = -21.7038
tmin = 635904001, tmax = 636163201
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='230147', job_status='RUN', time_executed='2021-09-04 19:06:51.826217', time_epoch_executed='1630807611.83' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230147/ft1_4FGL_J1159.3-2142_daily_bin1530.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230147/ft2_4FGL_J1159.3-2142_daily_bin1530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230147/ft1_4FGL_J1159.3-2142_daily_bin1530.fits outfile=/scratch/kocevski/230147/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1530.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=635904001.0 tmax=636163201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.15
user 3.90
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230147/ft1_filtered_4FGL_J1159.3-2142_daily_bin1530.fits" evtable="EVENTS" scfile=/scratch/kocevski/230147/ft2_4FGL_J1159.3-2142_daily_bin1530.fits sctable="SC_DATA" outfile=/scratch/kocevski/230147/ltcube_635904001_636163201_4FGL_J1159.3-2142_daily_bin1530.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/230147/ft2_4FGL_J1159.3-2142_daily_bin1530.fits
.....................!
real 11.41
user 11.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230147/ft1_filtered_4FGL_J1159.3-2142_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/230147/ft2_4FGL_J1159.3-2142_daily_bin1530.fits sctable="SC_DATA" expcube=/scratch/kocevski/230147/ltcube_635904001_636163201_4FGL_J1159.3-2142_daily_bin1530.fits outfile=/scratch/kocevski/230147/expmap_635904001_636163201_4FGL_J1159.3-2142_daily_bin1530.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/230147/ltcube_635904001_636163201_4FGL_J1159.3-2142_daily_bin1530.fits
.....................!
real 190.71
user 185.49
sys 4.25

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/230147/ft1_filtered_4FGL_J1159.3-2142_daily_bin1530.fits scfile=/scratch/kocevski/230147/ft2_4FGL_J1159.3-2142_daily_bin1530.fits outfile=/scratch/kocevski/230147/cmap_635904001_636163201_4FGL_J1159.3-2142_daily_bin1530.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230147/ft1_filtered_4FGL_J1159.3-2142_daily_bin1530.fits scfile=/scratch/kocevski/230147/ft2_4FGL_J1159.3-2142_daily_bin1530.fits outfile=/scratch/kocevski/230147/cmap_HighResolution_635904001_636163201_4FGL_J1159.3-2142_daily_bin1530.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230147/ft1_filtered_4FGL_J1159.3-2142_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/230147/ft2_4FGL_J1159.3-2142_daily_bin1530.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230147/Model_4FGL_J1159.3-2142_daily_bin1530.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/230147/ft1_filtered_4FGL_J1159.3-2142_daily_bin1530.fits.....................!
real 66.83
user 65.38
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0314       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84775       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5692       1.0000         .10000E-03   10000.    
     6 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    64.416       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8092       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.2584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    28.309       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1459       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.825       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3541       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.599       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.505       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6215       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.397       1.0000         .10000E-03   10000.    
    24 'norm      '    3.4170       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0505       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95466       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=   7917.106     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3126 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.949       -.10541E-06** at limit **
   2  Prefactor     .10000E-03    46.755        .99794E-07** at limit **
   3  Prefactor     9.0127        101.22       -.17048E-05   -.51340E-04
   4  Prefactor     .85507        20.655        .39492E-05   -.44359E-03
   5  Prefactor     2.5449        234.05       -.49005E-05   -.80768E-05
   6  norm          .10000E-03    1.0205       -.10606E-05** at limit **
   7  Prefactor     64.419        16.211        .16723E-06    .58763E-03
   8  Prefactor     10.588        18.237       -.15060E-06    .72755E-05
   9  Prefactor     .10000E-03    2.8408        .54231E-07** at limit **
  10  Prefactor     6.8071        20.374       -.76209E-06    .33030E-05
  11  Prefactor     .10000E-03    8.3653        .18751E-07** at limit **
  12  norm          9.2581        9.4056       -.14141E-05   -.55727E-03
  13  Prefactor     .10000E-03    10.926       -.21482E-07** at limit **
  14  norm          28.309        6.4412       -.61574E-07    .18083E-03
  15  Prefactor     6.1455        5.2733        .88739E-07    .21400E-03
  16  Prefactor     .10000E-03    12.839        .77053E-07** at limit **
  17  Prefactor     43.824        25.014       -.30952E-06   -.21792E-04
  18  Prefactor     6.3532        12.090        .40489E-07    .33558E-04
  19  Prefactor     .10000E-03    11.176        .84616E-07** at limit **
  20  Prefactor     44.598        23.312       -.41250E-06   -.58854E-04
  21  Prefactor     10.504        7.7709       -.70326E-07    .59465E-04
  22  Prefactor     5.6214        2.7086       -.26557E-07    .16138E-04
  23  Prefactor     26.396        14.943       -.29971E-06   -.11428E-04
  24  norm          3.4169        1.4765       -.45667E-07    .15708E-03
  25  Normalizat    1.0505        .23755        .20764E-05    .46105E-03
  26  Prefactor     .95468        .12271        .10920E-06    .78313E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.01273
  Prefactor  = 0.855068
  Prefactor  = 2.54487
  norm       = 0.0001
  Prefactor  = 64.4187
  Prefactor  = 10.5882
  Prefactor  = 0.0001
  Prefactor  = 6.80706
  Prefactor  = 0.0001
  norm       = 9.25813
  Prefactor  = 0.0001
  norm       = 28.3092
  Prefactor  = 6.1455
  Prefactor  = 0.0001
  Prefactor  = 43.8244
  Prefactor  = 6.3532
  Prefactor  = 0.0001
  Prefactor  = 44.5975
  Prefactor  = 10.5043
  Prefactor  = 5.62142
  Prefactor  = 26.396
  norm       = 3.41687
  Normalizat = 1.05048
  Prefactor  = 0.954677
 **********
 **   18 **HESSE 
 **********

 FCN=   7917.106     FROM HESSE     STATUS=OK           458 CALLS     3584 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.0127        105.37        .13337E-03   -1.5107    
   4  Prefactor     .85507        50.523        .48972E-02   -1.5523    
   5  Prefactor     2.5449        233.75        .25466E-03   -1.5389    
   6  norm          .10000E-03    1.6022        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.419        16.304        .50001E-04   -1.4101    
   8  Prefactor     10.588        18.235        .12313E-03   -1.5057    
   9  Prefactor     .10000E-03    2.8742        .14633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8071        20.444        .15376E-03   -1.5186    
  11  Prefactor     .10000E-03    8.3673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.2581        9.6431        .65857E-03   -1.5099    
  13  Prefactor     .10000E-03    10.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          28.309        6.4397        .75297E-04   -1.4643    
  15  Prefactor     6.1455        5.2615        .16194E-03   -1.5212    
  16  Prefactor     .10000E-03    12.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.824        25.025        .60559E-04   -1.4383    
  18  Prefactor     6.3532        12.090        .15923E-03   -1.5204    
  19  Prefactor     .10000E-03    11.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.598        23.398        .60033E-04   -1.4371    
  21  Prefactor     10.504        7.7878        .12362E-03   -1.5060    
  22  Prefactor     5.6214        2.7151        .91298E-04   -1.5234    
  23  Prefactor     26.396        14.991        .77971E-04   -1.4680    
  24  norm          3.4169        1.4768        .67773E-04   -1.5338    
  25  Normalizat    1.0505        .28093        .36632E-03   -.91358    
  26  Prefactor     .95468        .14530        .20255E-03   -.94256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63e-09
Minuit parameter uncertainties:
  1  2.87084e-05
  2  4.11523e-05
  3  61.77
  4  13.1563
  5  48.9766
  6  2.53887e-05
  7  16.3056
  8  18.2443
  9  3.63982e-06
  10  20.4645
  11  1.57555e-07
  12  9.64472
  13  1.56689e-05
  14  6.43986
  15  5.26186
  16  1.15361e-05
  17  25.0311
  18  12.0942
  19  1.24276e-05
  20  23.4027
  21  7.78856
  22  2.71519
  23  14.9933
  24  1.4768
  25  0.281332
  26  0.145363
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  2.831e+01  6.440e+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.547e-01  1.454e-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.050e+00  2.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 67.24
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 2.57e-07 +/- 5.84e-08
Energy Flux (Fixed Index): 8.86e-05 +/- 2.02e-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) = 7914.88335973
delta logL = 2.22273801464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7914.23043738
delta logL = 2.87566037146

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.813       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8537       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92894       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=   7914.230     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.813        10.687        .16295E-02    .52438E-02
   2  alpha         1.8543        .24440        .16904        .24740E-04
   3  Normalizat    1.1293        .22773        .80229E-01    .18863E-04
   4  Prefactor     .92892        .12038        .45373E-01    .57344E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 37.8128
  alpha      = 1.85426
  Normalizat = 1.12933
  Prefactor  = 0.928924
 **********
 **   18 **HESSE 
 **********

 FCN=   7914.230     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.813        9.0817        .65178E-04   -1.4477    
   2  alpha         1.8543        .21393        .72385E-02   -.26126    
   3  Normalizat    1.1293        .26832        .35516E-03   -.88816    
   4  Prefactor     .92892        .14229        .20507E-03   -.95138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86754e-09
Minuit parameter uncertainties:
  1  9.08206
  2  0.214212
  3  0.268646
  4  0.142343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230147': 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) = 7914.23043418
delta logL = 2.87566357203

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.781e+01  9.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.854e+00  2.142e-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.289e-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.129e+00  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 72.68
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 1.85 +/- 0.21
Photon Flux (Free Index): 1.86e-07 +/- 5.31e-08
Energy Flux (Free Index): 1.31e-04 +/- 4.19e-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/230147/cmap_HighResolution_635904001_636163201_4FGL_J1159.3-2142_daily_bin1530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.57e-07', energy_flux2='1.31e-04', photon_flux_error='5.84e-08', dlogl='2.88e+00', energy_flux='8.86e-05', photon_flux2='1.86e-07', job_status='DONE', time_completed='2021-09-04 19:19:49.061475', photon_index_error2='0.21', photon_index2='1.85', ts='67.24', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='4.19e-05', EG='1.05', time_epoch_completed='1630808389.06', return_code='0', job_id='230147', GAL2='0.93', EG2='1.13', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='5.31e-08', ts2='72.68', photon_index='2.38' WHERE bin_id='1530' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:19:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 230147: <4FGL_J1159.3-2142_daily_bin1530> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1530 179.843 -21.7038 635904001 636163201 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 :                                   767.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

