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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin464
RA = 179.843, Dec = -21.7038
tmin = 359596801, tmax = 359856001
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='223282', job_status='RUN', time_executed='2021-09-04 18:46:03.599364', time_epoch_executed='1630806363.6' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223282/ft1_4FGL_J1159.3-2142_daily_bin464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223282/ft2_4FGL_J1159.3-2142_daily_bin464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223282/ft1_4FGL_J1159.3-2142_daily_bin464.fits outfile=/scratch/kocevski/223282/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin464.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=359596801.0 tmax=359856001.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.76
user 3.52
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223282/ft1_filtered_4FGL_J1159.3-2142_daily_bin464.fits" evtable="EVENTS" scfile=/scratch/kocevski/223282/ft2_4FGL_J1159.3-2142_daily_bin464.fits sctable="SC_DATA" outfile=/scratch/kocevski/223282/ltcube_359596801_359856001_4FGL_J1159.3-2142_daily_bin464.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/223282/ft2_4FGL_J1159.3-2142_daily_bin464.fits
.....................!
real 11.67
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223282/ft1_filtered_4FGL_J1159.3-2142_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/223282/ft2_4FGL_J1159.3-2142_daily_bin464.fits sctable="SC_DATA" expcube=/scratch/kocevski/223282/ltcube_359596801_359856001_4FGL_J1159.3-2142_daily_bin464.fits outfile=/scratch/kocevski/223282/expmap_359596801_359856001_4FGL_J1159.3-2142_daily_bin464.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/223282/ltcube_359596801_359856001_4FGL_J1159.3-2142_daily_bin464.fits
.....................!
real 191.21
user 186.08
sys 4.79

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/223282/ft1_filtered_4FGL_J1159.3-2142_daily_bin464.fits scfile=/scratch/kocevski/223282/ft2_4FGL_J1159.3-2142_daily_bin464.fits outfile=/scratch/kocevski/223282/cmap_359596801_359856001_4FGL_J1159.3-2142_daily_bin464.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223282/ft1_filtered_4FGL_J1159.3-2142_daily_bin464.fits scfile=/scratch/kocevski/223282/ft2_4FGL_J1159.3-2142_daily_bin464.fits outfile=/scratch/kocevski/223282/cmap_HighResolution_359596801_359856001_4FGL_J1159.3-2142_daily_bin464.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/223282/ft1_filtered_4FGL_J1159.3-2142_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/223282/ft2_4FGL_J1159.3-2142_daily_bin464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223282/Model_4FGL_J1159.3-2142_daily_bin464.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/223282/ft1_filtered_4FGL_J1159.3-2142_daily_bin464.fits.....................!
real 53.37
user 52.10
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.974       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.756       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3652       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16226E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8763       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.957       1.0000         .10000E-03   10000.    
    12 'norm      '    5.6100       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.402       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5033       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16369E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.185       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.270       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8339       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.714       1.0000         .10000E-03   10000.    
    24 'norm      '    8.5281       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92568       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1185       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=   5798.531     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3126 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.960        43.865       -.91017E-05    .10156E-03
   2  Prefactor     .10000E-03    184.54        .59473E-05** at limit **
   3  Prefactor     .10000E-03    35.626       -.24338E-05** at limit **
   4  Prefactor     25.750        19.779        .23842E-05   -.12189E-04
   5  Prefactor     .10000E-03    35.409       -.35005E-05** at limit **
   6  norm          2.3647        1.3903        .66948E-07   -.59466E-05
   7  Prefactor     .10000E-03    4.5451        .30536E-07** at limit **
   8  Prefactor     .10000E-03    9.6781        .19168E-06** at limit **
   9  Prefactor     .10002E-03    5.9220       -.26491E-05** at limit **
  10  Prefactor     7.8724        15.605        .17931E-05   -.84099E-04
  11  Prefactor     38.000        38.273        .15350E-04   -.84806E-04
  12  norm          5.6046        35.491       -.54498E-05   -.38976E-03
  13  Prefactor     14.407        19.721       -.43723E-05    .31235E-03
  14  norm          5.5001        7.5793       -.17582E-05    .18424E-03
  15  Prefactor     .10000E-03    7.2664       -.56150E-06** at limit **
  16  Prefactor     .10000E-03    29.030        .77635E-06** at limit **
  17  Prefactor     69.192        48.063        .26933E-05    .39309E-04
  18  Prefactor     12.263        20.964        .21626E-05   -.58228E-04
  19  Prefactor     .10000E-03    36.830        .41502E-05** at limit **
  20  Prefactor     .10000E-03    35.988        .27142E-07** at limit **
  21  Prefactor     .10000E-03    11.624        .10081E-06** at limit **
  22  Prefactor     4.8355        2.5817       -.20628E-07    .43772E-04
  23  Prefactor     24.704        23.710        .43188E-05   -.17368E-03
  24  norm          8.5276        2.4251       -.48379E-07    .16281E-04
  25  Normalizat    .92601        .29029       -.36197E-06    .20408E-03
  26  Prefactor     1.1184        .14832       -.50226E-06    .41901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9602
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 25.7504
  Prefactor  = 0.0001
  norm       = 2.36475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 7.8724
  Prefactor  = 37.9998
  norm       = 5.60459
  Prefactor  = 14.4068
  norm       = 5.50005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.1923
  Prefactor  = 12.2635
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83546
  Prefactor  = 24.7037
  norm       = 8.52761
  Normalizat = 0.926008
  Prefactor  = 1.11839
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.531     FROM HESSE     STATUS=OK           452 CALLS     3578 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.960        43.780        .78602E-04   -1.4689    
   2  Prefactor     .10000E-03    184.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.750        19.758        .78934E-04   -1.4693    
   5  Prefactor     .10000E-03    35.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3647        1.3844        .66123E-04   -1.5400    
   7  Prefactor     .10000E-03    4.5586        .15852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.6795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    18.773        .34629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8724        15.572        .14287E-03   -1.5147    
  11  Prefactor     38.000        37.739        .65054E-04   -1.4474    
  12  norm          5.6046        37.825        .84805E-03   -1.5234    
  13  Prefactor     14.407        19.536        .10554E-03   -1.4949    
  14  norm          5.5001        7.5705        .17127E-03   -1.5239    
  15  Prefactor     .10000E-03    7.3555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     69.192        47.934        .48258E-04   -1.4042    
  18  Prefactor     12.263        20.937        .11436E-03   -1.5007    
  19  Prefactor     .10000E-03    36.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.8355        2.5766        .86650E-04   -1.5268    
  23  Prefactor     24.704        23.533        .80578E-04   -1.4713    
  24  norm          8.5276        2.4251        .60898E-04   -1.5124    
  25  Normalizat    .92601        .32546        .39999E-03   -.95552    
  26  Prefactor     1.1184        .16902        .19476E-03   -.88881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06946e-09
Minuit parameter uncertainties:
  1  43.834
  2  0.000618703
  3  6.1243e-05
  4  19.763
  5  0.00019782
  6  1.38442
  7  5.12618e-06
  8  3.57722e-06
  9  0.00113294
  10  15.5796
  11  37.7624
  12  29.1464
  13  19.5446
  14  7.5718
  15  8.32529e-05
  16  1.26807e-05
  17  47.9607
  18  20.9498
  19  0.000295585
  20  5.66563e-05
  21  5.178e-06
  22  2.57667
  23  23.5423
  24  2.42514
  25  0.326154
  26  0.169098
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  5.500e+00  7.572e+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.118e+00  1.691e-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:  9.260e-01  3.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 1.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223282/likelihoodResults_359596801_359856001_4FGL_J1159.3-2142_daily_bin464.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) = 5798.43018559
delta logL = 0.100963996313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5798.42636371
delta logL = 0.104785875203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0804       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8686       1.0000          .0000       5.0000    
     3 'Normalizat'    .89527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1284       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=   5798.426     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      252 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0804        102.36        .49897E-02    .42032E-03
   2  alpha         2.8680        3.8402        .41731        .41005E-04
   3  Normalizat    .89627        .87597E-01    .91635E-01    .39490E-04
   4  Prefactor     1.1280        .41511E-01    .36594E-01   -.20860E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 4.08036
  alpha      = 2.86803
  Normalizat = 0.896272
  Prefactor  = 1.12798
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.426     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0804        7.2617        .15434E-03   -1.5304    
   2  alpha         2.8680        1.2046        .16012E-01    .14775    
   3  Normalizat    .89627        .32333        .40588E-03   -.96591    
   4  Prefactor     1.1280        .16899        .19402E-03   -.88577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79206e-11
Minuit parameter uncertainties:
  1  7.26326
  2  1.25818
  3  0.324035
  4  0.16907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223282': 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) = 5798.42635895
delta logL = 0.104790642686

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  4.080e+00  7.263e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.868e+00  1.258e+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:  1.128e+00  1.691e-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:  8.963e-01  3.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.87 +/- 1.26
Photon Flux (Free Index): 7.46e-08 +/- 8.89e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.94e-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/223282/cmap_HighResolution_359596801_359856001_4FGL_J1159.3-2142_daily_bin464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-05', comment='SUCCESS', energy_flux2='1.77e-05', dlogl='1.05e-01', photon_flux2='7.46e-08', job_status='DONE', time_completed='2021-09-04 18:58:10.331849', photon_index_error2='1.26', photon_index2='2.87', ts='0.88', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='1.94e-05', EG='0.93', time_epoch_completed='1630807090.33', return_code='0', job_id='223282', GAL2='1.13', EG2='0.90', return_code2='0', photon_flux_error2='8.89e-08', ts2='1.11', photon_index='2.38' WHERE bin_id='464' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:58:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 223282: <4FGL_J1159.3-2142_daily_bin464> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin464> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 18:45:41 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:45:43 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:45:43 2021
Terminated at Sat Sep  4 18:58:11 2021
Results reported at Sat Sep  4 18:58:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin464 179.843 -21.7038 359596801 359856001 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            750 sec.

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

