/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 109 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 = 7479
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.3-2142_daily_bin147
RA = 179.843, Dec = -21.7038
tmin = 277430401, tmax = 277689601
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='221728', job_status='RUN', time_executed='2021-09-04 18:43:00.512805', time_epoch_executed='1630806180.51' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221728

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221728/ft1_4FGL_J1159.3-2142_daily_bin147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221728/ft2_4FGL_J1159.3-2142_daily_bin147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221728/ft1_4FGL_J1159.3-2142_daily_bin147.fits outfile=/scratch/kocevski/221728/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin147.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=277430401.0 tmax=277689601.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.53
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221728/ft1_filtered_4FGL_J1159.3-2142_daily_bin147.fits" evtable="EVENTS" scfile=/scratch/kocevski/221728/ft2_4FGL_J1159.3-2142_daily_bin147.fits sctable="SC_DATA" outfile=/scratch/kocevski/221728/ltcube_277430401_277689601_4FGL_J1159.3-2142_daily_bin147.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/221728/ft2_4FGL_J1159.3-2142_daily_bin147.fits
.....................!
real 12.70
user 12.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221728/ft1_filtered_4FGL_J1159.3-2142_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/221728/ft2_4FGL_J1159.3-2142_daily_bin147.fits sctable="SC_DATA" expcube=/scratch/kocevski/221728/ltcube_277430401_277689601_4FGL_J1159.3-2142_daily_bin147.fits outfile=/scratch/kocevski/221728/expmap_277430401_277689601_4FGL_J1159.3-2142_daily_bin147.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/221728/ltcube_277430401_277689601_4FGL_J1159.3-2142_daily_bin147.fits
.....................!
real 189.75
user 185.30
sys 4.01

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/221728/ft1_filtered_4FGL_J1159.3-2142_daily_bin147.fits scfile=/scratch/kocevski/221728/ft2_4FGL_J1159.3-2142_daily_bin147.fits outfile=/scratch/kocevski/221728/cmap_277430401_277689601_4FGL_J1159.3-2142_daily_bin147.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221728/ft1_filtered_4FGL_J1159.3-2142_daily_bin147.fits scfile=/scratch/kocevski/221728/ft2_4FGL_J1159.3-2142_daily_bin147.fits outfile=/scratch/kocevski/221728/cmap_HighResolution_277430401_277689601_4FGL_J1159.3-2142_daily_bin147.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.40
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221728/ft1_filtered_4FGL_J1159.3-2142_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/221728/ft2_4FGL_J1159.3-2142_daily_bin147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221728/Model_4FGL_J1159.3-2142_daily_bin147.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/221728/ft1_filtered_4FGL_J1159.3-2142_daily_bin147.fits.....................!
real 58.39
user 56.96
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    144.39       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.198       1.0000         .10000E-03   10000.    
     6 'norm      '    .94280       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11272E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.655       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.856       1.0000         .10000E-03   10000.    
    14 'norm      '    10.128       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.756       1.0000         .10000E-03   10000.    
    16 'Prefactor '    135.42       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.902       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.099       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1890       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2559       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.2032       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0927       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0392       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=   6347.180     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3062 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.333        38.739       -.79117E-06   -.12621E-04
   2  Prefactor     49.395        86.881        .47126E-05    .12655E-03
   3  Prefactor     144.38        73.267       -.34947E-06   -.64308E-04
   4  Prefactor     .10000E-03    8.6563       -.14124E-06** at limit **
   5  Prefactor     34.183        79.503       -.31874E-05   -.77120E-04
   6  norm          .94211        1.6552        .28742E-06    .24891E-03
   7  Prefactor     .10000E-03    12.593       -.98675E-06** at limit **
   8  Prefactor     .10000E-03    39.250        .18275E-05** at limit **
   9  Prefactor     .10000E-03    4.2425       -.56604E-06** at limit **
  10  Prefactor     24.655        21.860        .44712E-07   -.17861E-04
  11  Prefactor     .10001E-03    19.467       -.35170E-05** at limit **
  12  norm          .10000E-03    10.222        .81905E-06** at limit **
  13  Prefactor     39.844        27.656       -.11419E-05   -.66243E-04
  14  norm          10.129        7.4312        .63189E-06   -.14450E-03
  15  Prefactor     19.757        10.540        .14839E-06    .12244E-03
  16  Prefactor     135.45        84.231        .29352E-05    .21178E-03
  17  Prefactor     12.897        43.616       -.82279E-06   -.29498E-04
  18  Prefactor     13.075        28.836       -.23602E-05   -.12226E-03
  19  Prefactor     .10000E-03    98.420       -.20902E-05** at limit **
  20  Prefactor     .10000E-03    6.8069       -.50095E-09** at limit **
  21  Prefactor     5.1886        7.8761        .51186E-05   -.72988E-03
  22  Prefactor     4.2559        2.6099       -.64758E-06    .91544E-05
  23  Prefactor     .10001E-03    16.357        .38425E-05** at limit **
  24  norm          4.2030        1.8195        .40228E-07   -.43678E-04
  25  Normalizat    1.0927        .28091       -.14917E-05    .22587E-04
  26  Prefactor     1.0392        .14341        .12135E-06   -.26039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3333
  Prefactor  = 49.3949
  Prefactor  = 144.381
  Prefactor  = 0.0001
  Prefactor  = 34.1831
  norm       = 0.942108
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 24.6554
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 39.8435
  norm       = 10.1291
  Prefactor  = 19.7569
  Prefactor  = 135.446
  Prefactor  = 12.8966
  Prefactor  = 13.0748
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.18859
  Prefactor  = 4.25592
  Prefactor  = 0.000100006
  norm       = 4.20303
  Normalizat = 1.09273
  Prefactor  = 1.03919
 **********
 **   18 **HESSE 
 **********

 FCN=   6347.180     FROM HESSE     STATUS=OK           460 CALLS     3522 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.333        38.770        .79584E-04   -1.4701    
   2  Prefactor     49.395        87.705        .57073E-04   -1.4301    
   3  Prefactor     144.38        73.344        .33532E-04   -1.3299    
   4  Prefactor     .10000E-03    8.6737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.183        77.841        .68525E-04   -1.4538    
   6  norm          .94211        1.4608        .11660E-02   -1.5514    
   7  Prefactor     .10000E-03    12.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.427        .31384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.655        21.886        .80674E-04   -1.4714    
  11  Prefactor     .10001E-03    20.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.844        27.707        .63491E-04   -1.4445    
  14  norm          10.129        7.4345        .62953E-03   -1.5071    
  15  Prefactor     19.757        10.480        .90111E-04   -1.4819    
  16  Prefactor     135.45        85.414        .17304E-03   -1.3375    
  17  Prefactor     12.897        43.526        .11152E-03   -1.4990    
  18  Prefactor     13.075        29.076        .11067E-03   -1.4985    
  19  Prefactor     .10000E-03    98.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1886        8.1161        .88236E-03   -1.5252    
  22  Prefactor     4.2559        2.6198        .91707E-04   -1.5295    
  23  Prefactor     .10001E-03    17.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.2030        1.8189        .67891E-04   -1.5298    
  25  Normalizat    1.0927        .32081        .38659E-03   -.89986    
  26  Prefactor     1.0392        .16603        .20620E-03   -.91434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82173e-09
Minuit parameter uncertainties:
  1  38.809
  2  87.9358
  3  73.3906
  4  6.15888e-07
  5  78.0736
  6  1.46081
  7  0.000168795
  8  0.000509636
  9  0.000409383
  10  21.8927
  11  0.000708246
  12  0.000118801
  13  27.7157
  14  7.43515
  15  10.4807
  16  85.4924
  17  43.6331
  18  29.1076
  19  0.000619058
  20  1.26571e-06
  21  8.11785
  22  2.61985
  23  0.000652766
  24  1.81893
  25  0.321382
  26  0.166116
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.013e+01  7.435e+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.039e+00  1.661e-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.093e+00  3.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.18
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 9.19e-08 +/- 6.74e-08
Energy Flux (Fixed Index): 3.17e-05 +/- 2.33e-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) = 6345.91237642
delta logL = 1.26794380133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6345.86713875
delta logL = 1.31318146962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0640       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2875       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0291       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=   6345.867     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0606        5.5069        .35297E-02    .25128E-03
   2  alpha         1.2871        .41303        .35840       -.82619E-04
   3  Normalizat    1.1402        .26821        .85814E-01   -.58708E-04
   4  Prefactor     1.0291        .14056        .41333E-01   -.17449E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.06062
  alpha      = 1.28709
  Normalizat = 1.14021
  Prefactor  = 1.02906
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.867     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0606        7.0610        .14119E-03   -1.5140    
   2  alpha         1.2871        .57933        .14410E-01   -.50655    
   3  Normalizat    1.1402        .31048        .37999E-03   -.88471    
   4  Prefactor     1.0291        .16316        .20729E-03   -.91767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1704e-10
Minuit parameter uncertainties:
  1  7.06176
  2  0.586336
  3  0.310977
  4  0.163236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221728': 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) = 6345.86713855
delta logL = 1.31318166553

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  8.061e+00  7.062e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.287e+00  5.863e-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.029e+00  1.632e-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.140e+00  3.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.90
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 1.29 +/- 0.59
Photon Flux (Free Index): 2.84e-08 +/- 2.66e-08
Energy Flux (Free Index): 6.65e-05 +/- 6.61e-05

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/221728/cmap_HighResolution_277430401_277689601_4FGL_J1159.3-2142_daily_bin147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.19e-08', energy_flux2='6.65e-05', photon_flux_error='6.74e-08', dlogl='1.31e+00', energy_flux='3.17e-05', photon_flux2='2.84e-08', job_status='DONE', time_completed='2021-09-04 18:54:06.763394', photon_index_error2='0.59', photon_index2='1.29', ts='7.18', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='6.61e-05', EG='1.09', time_epoch_completed='1630806846.76', return_code='0', job_id='221728', GAL2='1.03', EG2='1.14', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='2.66e-08', ts2='9.90', photon_index='2.38' WHERE bin_id='147' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:54:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 221728: <4FGL_J1159.3-2142_daily_bin147> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin147> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:41:00 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:41:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 18:41:02 2021
Terminated at Sat Sep  4 18:54:07 2021
Results reported at Sat Sep  4 18:54:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin147 179.843 -21.7038 277430401 277689601 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 :                                   663.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            787 sec.

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

