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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1332
RA = 179.843, Dec = -21.7038
tmin = 584582401, tmax = 584841601
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='228597', job_status='RUN', time_executed='2021-09-04 19:01:55.260336', time_epoch_executed='1630807315.26' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228597/ft1_4FGL_J1159.3-2142_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228597/ft2_4FGL_J1159.3-2142_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228597/ft1_4FGL_J1159.3-2142_daily_bin1332.fits outfile=/scratch/kocevski/228597/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1332.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=584582401.0 tmax=584841601.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 2.87
user 2.63
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228597/ft1_filtered_4FGL_J1159.3-2142_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/228597/ft2_4FGL_J1159.3-2142_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/228597/ltcube_584582401_584841601_4FGL_J1159.3-2142_daily_bin1332.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/228597/ft2_4FGL_J1159.3-2142_daily_bin1332.fits
.....................!
real 27.06
user 12.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228597/ft1_filtered_4FGL_J1159.3-2142_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/228597/ft2_4FGL_J1159.3-2142_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/228597/ltcube_584582401_584841601_4FGL_J1159.3-2142_daily_bin1332.fits outfile=/scratch/kocevski/228597/expmap_584582401_584841601_4FGL_J1159.3-2142_daily_bin1332.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/228597/ltcube_584582401_584841601_4FGL_J1159.3-2142_daily_bin1332.fits
.....................!
real 191.31
user 185.64
sys 4.49

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/228597/ft1_filtered_4FGL_J1159.3-2142_daily_bin1332.fits scfile=/scratch/kocevski/228597/ft2_4FGL_J1159.3-2142_daily_bin1332.fits outfile=/scratch/kocevski/228597/cmap_584582401_584841601_4FGL_J1159.3-2142_daily_bin1332.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.70
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228597/ft1_filtered_4FGL_J1159.3-2142_daily_bin1332.fits scfile=/scratch/kocevski/228597/ft2_4FGL_J1159.3-2142_daily_bin1332.fits outfile=/scratch/kocevski/228597/cmap_HighResolution_584582401_584841601_4FGL_J1159.3-2142_daily_bin1332.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.71
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.241       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7600       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12366       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0250       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    46.828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7836       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26732E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12453E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.482       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31964E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7423       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11733E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.4171       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4094       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87235       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=   7528.021     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2669 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.210        26.293        .67902E-06    .35560E-04
   2  Prefactor     .10000E-03    28.970       -.28539E-04** at limit **
   3  Prefactor     6.7511        48.500       -.11679E-04   -.12797E-04
   4  Prefactor     5.1101        12.794        .10850E-05   -.57471E-04
   5  Prefactor     .10000E-03    25.325        .52795E-05** at limit **
   6  norm          .10000E-03    .46279       -.29834E-07** at limit **
   7  Prefactor     .10125        5.3452       -.19917E-05    .71523E-03
   8  Prefactor     .10000E-03    44.725        .15084E-04** at limit **
   9  Prefactor     .10000E-03    2.3593       -.18628E-09** at limit **
  10  Prefactor     6.0211        14.061       -.50054E-06   -.42211E-04
  11  Prefactor     .10000E-03    15.314        .69792E-06** at limit **
  12  norm          46.825        26.512       -.92202E-06   -.29365E-05
  13  Prefactor     .10000E-03    4.5682       -.17840E-07** at limit **
  14  norm          2.7825        3.2534       -.24636E-06   -.47976E-03
  15  Prefactor     .10000E-03    2.3296       -.25234E-06** at limit **
  16  Prefactor     .10000E-03    25.868        .55240E-06** at limit **
  17  Prefactor     .10000E-03    22.883        .13706E-04** at limit **
  18  Prefactor     34.471        22.817        .41502E-06    .35187E-04
  19  Prefactor     .10000E-03    39.485       -.37343E-05** at limit **
  20  Prefactor     .10000E-03    23.013        .13995E-04** at limit **
  21  Prefactor     .10000E-03    3.4911       -.56175E-08** at limit **
  22  Prefactor     4.7415        1.9355        .69257E-08    .98487E-04
  23  Prefactor     .10000E-03    20.010       -.14981E-04** at limit **
  24  norm          1.4169        1.0761       -.54477E-07   -.58738E-03
  25  Normalizat    1.4094        .21268        .69323E-06    .29000E-03
  26  Prefactor     .87243        .11128        .12653E-06    .34345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.21
  Prefactor  = 0.0001
  Prefactor  = 6.75107
  Prefactor  = 5.11013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.101245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.02107
  Prefactor  = 0.0001
  norm       = 46.8246
  Prefactor  = 0.0001
  norm       = 2.78252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.4712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.7415
  Prefactor  = 0.0001
  norm       = 1.41694
  Normalizat = 1.40941
  Prefactor  = 0.872428
 **********
 **   18 **HESSE 
 **********

 FCN=   7528.021     FROM HESSE     STATUS=OK           462 CALLS     3131 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.210        26.283        .11949E-03   -1.5038    
   2  Prefactor     .10000E-03    29.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7511        47.889        .15432E-03   -1.5188    
   4  Prefactor     5.1101        12.713        .17782E-03   -1.5256    
   5  Prefactor     .10000E-03    25.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .72201        .11426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10125        11.585        .58549E-01   -1.5644    
   8  Prefactor     .10000E-03    45.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4496        .26020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0211        14.063        .16358E-03   -1.5217    
  11  Prefactor     .10000E-03    15.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          46.825        26.522        .58594E-04   -1.4338    
  13  Prefactor     .10000E-03    4.5776        .18086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7825        3.2420        .16287E-03   -1.5374    
  15  Prefactor     .10000E-03    35.294        .25195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.471        22.767        .68244E-04   -1.4533    
  19  Prefactor     .10000E-03    39.555        .21363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5475        .15818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.7415        1.9346        .75050E-04   -1.5272    
  23  Prefactor     .10000E-03    20.473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.4169        1.0612        .75815E-04   -1.5470    
  25  Normalizat    1.4094        .25516        .29519E-03   -.80357    
  26  Prefactor     .87243        .13297        .19498E-03   -.97111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61481e-09
Minuit parameter uncertainties:
  1  26.3102
  2  1.53302e-06
  3  36.0021
  4  12.7197
  5  5.19483e-06
  6  2.87994e-06
  7  2.16539
  8  7.56147e-05
  9  1.92924e-06
  10  14.0703
  11  5.06664e-06
  12  26.5286
  13  3.36509e-06
  14  3.24224
  15  0.00016993
  16  1.25667e-05
  17  3.54879e-05
  18  22.7727
  19  5.0242e-05
  20  6.04204e-05
  21  3.44821e-06
  22  1.93463
  23  0.000188484
  24  1.06121
  25  0.255393
  26  0.13302
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  2.783e+00  3.242e+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:  8.724e-01  1.330e-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.409e+00  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 2.52e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 8.71e-06 +/- 1.01e-05

TS (Fixed Index): 1.06
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 9.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228597/likelihoodResults_584582401_584841601_4FGL_J1159.3-2142_daily_bin1332.txt

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) = 7527.78646069
delta logL = 0.234801240371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7527.78272881
delta logL = 0.238533117483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7860       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0473       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87871       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7527.783     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      279 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7859        3.1704        .10781E-03   -.14331E-03
   2  alpha         3.0475        1.1454        .17346E-01    .20022E-03
   3  Normalizat    1.3884        .24762        .29701E-03   -.72995E-04
   4  Prefactor     .87872        .13174        .19431E-03   -.12269E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78589
  alpha      = 3.04752
  Normalizat = 1.38838
  Prefactor  = 0.878717
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.783     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7859        2.7617        .43123E-05   -1.5441    
   2  alpha         3.0475        1.0069        .34692E-02    .22080    
   3  Normalizat    1.3884        .24756        .11880E-04   -.80965    
   4  Prefactor     .87872        .13173        .77726E-05   -.96889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20882e-11
Minuit parameter uncertainties:
  1  2.76189
  2  1.03796
  3  0.24777
  4  0.131773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228597': 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) = 7527.78272878
delta logL = 0.238533147323

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.786e+00  2.762e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.048e+00  1.038e+00  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:  8.787e-01  1.318e-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.388e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 3.05 +/- 1.04
Photon Flux (Free Index): 4.33e-08 +/- 4.60e-08
Energy Flux (Free Index): 9.32e-06 +/- 9.01e-06

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/228597/cmap_HighResolution_584582401_584841601_4FGL_J1159.3-2142_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', comment='SUCCESS', photon_flux='2.52e-08', energy_flux2='9.32e-06', photon_flux_error='2.94e-08', dlogl='2.39e-01', energy_flux='8.71e-06', photon_flux2='4.33e-08', job_status='DONE', time_completed='2021-09-04 19:15:45.825377', photon_index_error2='1.04', photon_index2='3.05', ts='1.06', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.64e-08', energy_flux_error2='9.01e-06', EG='1.41', time_epoch_completed='1630808145.83', return_code='0', job_id='228597', GAL2='0.88', EG2='1.39', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.60e-08', ts2='1.55', photon_index='2.38' WHERE bin_id='1332' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:15:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 228597: <4FGL_J1159.3-2142_daily_bin1332> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1332> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 19:00:57 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:00:59 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:00:59 2021
Terminated at Sat Sep  4 19:15:46 2021
Results reported at Sat Sep  4 19:15:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1332 179.843 -21.7038 584582401 584841601 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 :                                   807.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

