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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1258
RA = 179.843, Dec = -21.7038
tmin = 565401601, tmax = 565660801
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='228501', job_status='RUN', time_executed='2021-09-04 19:01:06.892650', time_epoch_executed='1630807266.89' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228501

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228501/ft1_4FGL_J1159.3-2142_daily_bin1258.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228501/ft2_4FGL_J1159.3-2142_daily_bin1258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228501/ft1_4FGL_J1159.3-2142_daily_bin1258.fits outfile=/scratch/kocevski/228501/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1258.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=565401601.0 tmax=565660801.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.63
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228501/ft1_filtered_4FGL_J1159.3-2142_daily_bin1258.fits" evtable="EVENTS" scfile=/scratch/kocevski/228501/ft2_4FGL_J1159.3-2142_daily_bin1258.fits sctable="SC_DATA" outfile=/scratch/kocevski/228501/ltcube_565401601_565660801_4FGL_J1159.3-2142_daily_bin1258.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/228501/ft2_4FGL_J1159.3-2142_daily_bin1258.fits
.....................!
real 11.82
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228501/ft1_filtered_4FGL_J1159.3-2142_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/228501/ft2_4FGL_J1159.3-2142_daily_bin1258.fits sctable="SC_DATA" expcube=/scratch/kocevski/228501/ltcube_565401601_565660801_4FGL_J1159.3-2142_daily_bin1258.fits outfile=/scratch/kocevski/228501/expmap_565401601_565660801_4FGL_J1159.3-2142_daily_bin1258.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/228501/ltcube_565401601_565660801_4FGL_J1159.3-2142_daily_bin1258.fits
.....................!
real 190.76
user 184.92
sys 5.45

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/228501/ft1_filtered_4FGL_J1159.3-2142_daily_bin1258.fits scfile=/scratch/kocevski/228501/ft2_4FGL_J1159.3-2142_daily_bin1258.fits outfile=/scratch/kocevski/228501/cmap_565401601_565660801_4FGL_J1159.3-2142_daily_bin1258.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228501/ft1_filtered_4FGL_J1159.3-2142_daily_bin1258.fits scfile=/scratch/kocevski/228501/ft2_4FGL_J1159.3-2142_daily_bin1258.fits outfile=/scratch/kocevski/228501/cmap_HighResolution_565401601_565660801_4FGL_J1159.3-2142_daily_bin1258.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.59
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228501/ft1_filtered_4FGL_J1159.3-2142_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/228501/ft2_4FGL_J1159.3-2142_daily_bin1258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228501/Model_4FGL_J1159.3-2142_daily_bin1258.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/228501/ft1_filtered_4FGL_J1159.3-2142_daily_bin1258.fits.....................!
real 65.39
user 63.52
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .64326       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.888       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5000       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    69.749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.551       1.0000         .10000E-03   10000.    
    14 'norm      '    .10544E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4989       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.451       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.777       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.1590       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .64114       1.0000         .10000E-03   10000.    
    24 'norm      '    .53057       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1360       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95911       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=   7372.595     FROM MIGRAD    STATUS=CONVERGED   1087 CALLS     3576 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.397        .18142E-02** at limit **
   2  Prefactor     .10000E-03    26.542        .18142E-02** at limit **
   3  Prefactor     .56093        42.445        .15012        .13385E-03
   4  Prefactor     .10000E-03    8.6483        .18142E-02** at limit **
   5  Prefactor     42.908        38.773        .61214E-04   -.23401E-05
   6  norm          1.4999        .98122        .66561E-04   -.18276E-04
   7  Prefactor     10.736        9.6600        .12226E-03   -.14785E-04
   8  Prefactor     .10000E-03    9.8602        .18142E-02** at limit **
   9  Prefactor     6.8046        6.3568        .15381E-03    .82783E-05
  10  Prefactor     69.738        23.591        .24032E-03   -.13998E-03
  11  Prefactor     .10000E-03    16.870        .18142E-02** at limit **
  12  norm          18.677        18.931        .92655E-04   -.92662E-04
  13  Prefactor     11.556        14.798        .11787E-03   -.13522E-03
  14  norm          .10000E-03    2.3495        .12761E-02** at limit **
  15  Prefactor     3.4921        7.5372        .21615E-03   -.11803E-03
  16  Prefactor     11.485        37.855        .11839E-03   -.61459E-05
  17  Prefactor     13.681        44.152        .10841E-03    .12270E-04
  18  Prefactor     .10000E-03    6.5020        .18142E-02** at limit **
  19  Prefactor     .10000E-03    12.314        .18142E-02** at limit **
  20  Prefactor     50.771        33.007        .56280E-04    .18180E-04
  21  Prefactor     .10000E-03    1.5569        .10453E-02** at limit **
  22  Prefactor     7.1588        2.4477        .76447E-04    .12492E-04
  23  Prefactor     .63392        33.798        .45704E-02   -.13597E-03
  24  norm          .53056        .94619        .11780E-02    .60799E-03
  25  Normalizat    1.1361        .28261        .34002E-03   -.21833E-04
  26  Prefactor     .95909        .14583        .19519E-03   -.29662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.560935
  Prefactor  = 0.0001
  Prefactor  = 42.9084
  norm       = 1.49986
  Prefactor  = 10.7357
  Prefactor  = 0.0001
  Prefactor  = 6.80458
  Prefactor  = 69.7382
  Prefactor  = 0.0001
  norm       = 18.6774
  Prefactor  = 11.5564
  norm       = 0.0001
  Prefactor  = 3.49208
  Prefactor  = 11.4845
  Prefactor  = 13.6815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.7705
  Prefactor  = 0.0001
  Prefactor  = 7.15883
  Prefactor  = 0.633917
  norm       = 0.530557
  Normalizat = 1.13615
  Prefactor  = 0.959086
 **********
 **   18 **HESSE 
 **********

 FCN=   7372.595     FROM HESSE     STATUS=OK           444 CALLS     4020 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.542        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .56093        41.367        .15277       -1.5558    
   4  Prefactor     .10000E-03    8.6498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.908        38.771        .12243E-04   -1.4397    
   6  norm          1.4999        .98117        .26624E-05   -1.5463    
   7  Prefactor     10.736        9.6591        .48904E-05   -1.5053    
   8  Prefactor     .10000E-03    9.8603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8046        6.3555        .61525E-05   -1.5186    
  10  Prefactor     69.738        23.589        .96129E-05   -1.4036    
  11  Prefactor     .10000E-03    16.870        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.677        18.931        .18531E-04   -1.4843    
  13  Prefactor     11.556        14.795        .47149E-05   -1.5028    
  14  norm          .10000E-03    2.3498        .25522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4921        7.5286        .86459E-05   -1.5334    
  16  Prefactor     11.485        37.859        .47355E-05   -1.5030    
  17  Prefactor     13.681        44.106        .43362E-05   -1.4968    
  18  Prefactor     .10000E-03    6.5021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     50.771        33.007        .22512E-05   -1.4282    
  21  Prefactor     .10000E-03    1.5569        .20906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.1588        2.4477        .30579E-05   -1.5173    
  23  Prefactor     .63392        33.983        .18282E-03   -1.5549    
  24  norm          .53056        .94538        .47120E-04   -1.5562    
  25  Normalizat    1.1361        .28285        .13601E-04   -.88600    
  26  Prefactor     .95909        .14585        .39037E-04   -.94106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09939e-09
Minuit parameter uncertainties:
  1  3.75231e-05
  2  1.68635e-05
  3  9.64022
  4  5.94422e-06
  5  38.7942
  6  0.981176
  7  9.66053
  8  3.12995e-05
  9  6.35613
  10  23.5921
  11  2.35274e-05
  12  18.9366
  13  14.7993
  14  1.12527e-05
  15  7.53059
  16  37.9384
  17  44.2112
  18  5.11621e-06
  19  5.47942e-06
  20  33.0184
  21  4.57637e-07
  22  2.44776
  23  9.28755
  24  0.945408
  25  0.283225
  26  0.145911
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  1.125e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.591e-01  1.459e-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.136e+00  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/228501/likelihoodResults_565401601_565660801_4FGL_J1159.3-2142_daily_bin1258.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) = 7372.59677228
delta logL = -0.00202866849941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7372.59474672
delta logL = -3.10444283969e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3828       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95894       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=   7372.595     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      192 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    39.666        .90712E-02** at limit **
   2  alpha         2.3829        3.2601        .41209       -.17071E-06
   3  Normalizat    1.1361        .24137E-01    .76820E-01   -.21729E-04
   4  Prefactor     .95909        .12914E-01    .45752E-01   -.53970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.38288
  Normalizat = 1.13614
  Prefactor  = 0.959088
 **********
 **   18 **HESSE 
 **********

 FCN=   7372.595     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      223 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    556.00        .12763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3829        3.6374        .16484       -.46863E-01
   3  Normalizat    1.1361        .21181        .34002E-03   -.88600    
   4  Prefactor     .95909        .11353        .19519E-03   -.94106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.2012e-08
Minuit parameter uncertainties:
  1  0.000101069
  2  3151.12
  3  0.211969
  4  0.113561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228501': 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): 102
logL (Free Index) = 7372.59474361
delta logL = 9.09494701773e-11

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  1.011e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  3.151e+03  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.591e-01  1.136e-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.136e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.843 -21.704

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/228501/cmap_HighResolution_565401601_565660801_4FGL_J1159.3-2142_daily_bin1258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-09-04 19:15:22.875729', job_id='228501', GAL2='0.96', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630808122.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1258' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:15:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 228501: <4FGL_J1159.3-2142_daily_bin1258> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1258 179.843 -21.7038 565401601 565660801 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 :                                   851.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

