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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin927
RA = 179.843, Dec = -21.7038
tmin = 479606401, tmax = 479865601
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='226736', job_status='RUN', time_executed='2021-09-04 18:58:08.480378', time_epoch_executed='1630807088.48' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226736/ft1_4FGL_J1159.3-2142_daily_bin927.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226736/ft2_4FGL_J1159.3-2142_daily_bin927.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226736/ft1_4FGL_J1159.3-2142_daily_bin927.fits outfile=/scratch/kocevski/226736/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin927.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=479606401.0 tmax=479865601.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.44
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226736/ft1_filtered_4FGL_J1159.3-2142_daily_bin927.fits" evtable="EVENTS" scfile=/scratch/kocevski/226736/ft2_4FGL_J1159.3-2142_daily_bin927.fits sctable="SC_DATA" outfile=/scratch/kocevski/226736/ltcube_479606401_479865601_4FGL_J1159.3-2142_daily_bin927.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/226736/ft2_4FGL_J1159.3-2142_daily_bin927.fits
.....................!
real 12.21
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226736/ft1_filtered_4FGL_J1159.3-2142_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/226736/ft2_4FGL_J1159.3-2142_daily_bin927.fits sctable="SC_DATA" expcube=/scratch/kocevski/226736/ltcube_479606401_479865601_4FGL_J1159.3-2142_daily_bin927.fits outfile=/scratch/kocevski/226736/expmap_479606401_479865601_4FGL_J1159.3-2142_daily_bin927.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/226736/ltcube_479606401_479865601_4FGL_J1159.3-2142_daily_bin927.fits
.....................!
real 190.55
user 185.60
sys 4.58

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/226736/ft1_filtered_4FGL_J1159.3-2142_daily_bin927.fits scfile=/scratch/kocevski/226736/ft2_4FGL_J1159.3-2142_daily_bin927.fits outfile=/scratch/kocevski/226736/cmap_479606401_479865601_4FGL_J1159.3-2142_daily_bin927.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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226736/ft1_filtered_4FGL_J1159.3-2142_daily_bin927.fits scfile=/scratch/kocevski/226736/ft2_4FGL_J1159.3-2142_daily_bin927.fits outfile=/scratch/kocevski/226736/cmap_HighResolution_479606401_479865601_4FGL_J1159.3-2142_daily_bin927.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226736/ft1_filtered_4FGL_J1159.3-2142_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/226736/ft2_4FGL_J1159.3-2142_daily_bin927.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226736/Model_4FGL_J1159.3-2142_daily_bin927.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/226736/ft1_filtered_4FGL_J1159.3-2142_daily_bin927.fits.....................!
real 55.11
user 53.77
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.863       1.0000         .10000E-03   10000.    
     6 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4312       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.200       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9746       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.978       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8887       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1673       1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.022       1.0000         .10000E-03   10000.    
    24 'norm      '    1.3616       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6722       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70670       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=   5702.497     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3043 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.171        .52452E-06** at limit **
   2  Prefactor     .10000E-03    83.456        .50134E-06** at limit **
   3  Prefactor     .10000E-03    39.639       -.51858E-06** at limit **
   4  Prefactor     .10000E-03    28.914       -.16183E-05** at limit **
   5  Prefactor     31.787        62.184       -.11715E-04   -.36966E-03
   6  norm          .10000E-03    .41896       -.29598E-06** at limit **
   7  Prefactor     .10000E-03    12.565        .30364E-06** at limit **
   8  Prefactor     .10000E-03    24.722        .61196E-06** at limit **
   9  Prefactor     4.4299        6.4608        .57288E-05   -.76219E-03
  10  Prefactor     .10000E-03    5.5240        .55601E-07** at limit **
  11  Prefactor     .10000E-03    42.625       -.93850E-06** at limit **
  12  norm          15.200        15.362       -.41081E-06    .31157E-04
  13  Prefactor     .10000E-03    8.5429       -.44182E-07** at limit **
  14  norm          2.9747        2.9714       -.11234E-06    .30619E-05
  15  Prefactor     .10000E-03    3.0088       -.88393E-07** at limit **
  16  Prefactor     .10000E-03    25.717        .20657E-06** at limit **
  17  Prefactor     50.970        35.978       -.87042E-06   -.82837E-04
  18  Prefactor     .10000E-03    7.7274        .45148E-07** at limit **
  19  Prefactor     .10000E-03    18.319       -.33189E-06** at limit **
  20  Prefactor     .10000E-03    6.8266        .29755E-07** at limit **
  21  Prefactor     5.8886        6.3213        .56940E-07   -.45354E-05
  22  Prefactor     6.1674        2.8485        .68073E-08   -.16794E-05
  23  Prefactor     59.021        25.795       -.33058E-09   -.12072E-04
  24  norm          1.3616        1.1303        .18363E-07   -.74160E-05
  25  Normalizat    1.6723        .25861        .38453E-06   -.24244E-04
  26  Prefactor     .70659        .12871       -.80084E-06    .47637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7875
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.42995
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 15.2004
  Prefactor  = 0.0001
  norm       = 2.97467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.9702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.8886
  Prefactor  = 6.16736
  Prefactor  = 59.0206
  norm       = 1.3616
  Normalizat = 1.67231
  Prefactor  = 0.706592
 **********
 **   18 **HESSE 
 **********

 FCN=   5702.497     FROM HESSE     STATUS=OK           448 CALLS     3491 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    83.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.787        66.378        .70985E-04   -1.4580    
   6  norm          .10000E-03    .42173        .47597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4299        6.6130        .95650E-03   -1.5287    
  10  Prefactor     .10000E-03    5.5281        .17334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.200        15.365        .51365E-03   -1.4928    
  13  Prefactor     .10000E-03    8.5666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9747        2.9794        .12641E-03   -1.5363    
  15  Prefactor     .10000E-03    3.0233        .12784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     50.970        36.010        .56169E-04   -1.4279    
  18  Prefactor     .10000E-03    7.7297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.8886        6.3221        .16549E-03   -1.5223    
  22  Prefactor     6.1674        2.8486        .82866E-04   -1.5211    
  23  Prefactor     59.021        25.855        .52222E-04   -1.4170    
  24  norm          1.3616        1.1361        .70894E-04   -1.5475    
  25  Normalizat    1.6723        .30269        .29790E-03   -.73045    
  26  Prefactor     .70659        .15014        .21799E-03   -1.0327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65966e-09
Minuit parameter uncertainties:
  1  0.000147321
  2  0.000436019
  3  0.000139626
  4  0.000202763
  5  66.5326
  6  5.42328e-06
  7  2.29889e-05
  8  9.91311e-05
  9  6.61407
  10  3.19606e-07
  11  0.000321994
  12  15.3689
  13  1.80729e-05
  14  2.97952
  15  7.1872e-06
  16  2.60846e-05
  17  36.025
  18  5.23135e-07
  19  7.44659e-05
  20  6.35483e-07
  21  6.3228
  22  2.8487
  23  25.8595
  24  1.13609
  25  0.303022
  26  0.150229
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  2.975e+00  2.980e+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:  7.066e-01  1.502e-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.672e+00  3.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.04
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 9.31e-06 +/- 9.32e-06

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) = 5701.18415435
delta logL = 1.31293830556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5701.01585053
delta logL = 1.48124211915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3653       1.0000         .10000E-03   10000.    
     2 'alpha     '    .82116       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70341       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=   5701.016     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3623        1.4556        .93365E-02   -.44511E-03
   2  alpha         .81991        .54798        .45741       -.24256E-04
   3  Normalizat    1.6919        .25314        .67021E-01    .79217E-05
   4  Prefactor     .70328        .12762        .42447E-01    .12771E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36229
  alpha      = 0.819914
  Normalizat = 1.69191
  Prefactor  = 0.703277
 **********
 **   18 **HESSE 
 **********

 FCN=   5701.016     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3623        2.0865        .84871E-04   -1.5475    
   2  alpha         .81991        .75043        .20448E-02   -.73695    
   3  Normalizat    1.6919        .29626        .29644E-03   -.72520    
   4  Prefactor     .70328        .14941        .21842E-03   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41499e-12
Minuit parameter uncertainties:
  1  2.08666
  2  0.772668
  3  0.296571
  4  0.1495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226736': 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) = 5701.01584872
delta logL = 1.4812439371

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.362e+00  2.087e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  8.199e-01  7.727e-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:  7.033e-01  1.495e-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.692e+00  2.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.00
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 0.82 +/- 0.77
Photon Flux (Free Index): 5.61e-09 +/- 6.23e-09
Energy Flux (Free Index): 3.96e-05 +/- 6.33e-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/226736/cmap_HighResolution_479606401_479865601_4FGL_J1159.3-2142_daily_bin927.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='3.96e-05', photon_flux_error='2.70e-08', dlogl='1.48e+00', energy_flux='9.31e-06', photon_flux2='5.61e-09', job_status='DONE', time_completed='2021-09-04 19:08:39.853301', photon_index_error2='0.77', photon_index2='0.82', ts='5.04', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='6.33e-05', EG='1.67', time_epoch_completed='1630807719.85', return_code='0', job_id='226736', GAL2='0.70', EG2='1.69', return_code2='0', energy_flux_error='9.32e-06', photon_flux_error2='6.23e-09', ts2='8.00', photon_index='2.38' WHERE bin_id='927' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:08:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 226736: <4FGL_J1159.3-2142_daily_bin927> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin927> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 18:55:38 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:55:40 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:55:40 2021
Terminated at Sat Sep  4 19:08:40 2021
Results reported at Sat Sep  4 19:08:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin927 179.843 -21.7038 479606401 479865601 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

