/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 87 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_bin1160
RA = 179.843, Dec = -21.7038
tmin = 540000001, tmax = 540259201
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='228345', job_status='RUN', time_executed='2021-09-04 19:02:14.735316', time_epoch_executed='1630807334.74' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228345/ft1_4FGL_J1159.3-2142_daily_bin1160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228345/ft2_4FGL_J1159.3-2142_daily_bin1160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228345/ft1_4FGL_J1159.3-2142_daily_bin1160.fits outfile=/scratch/kocevski/228345/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1160.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=540000001.0 tmax=540259201.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.54
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228345/ft1_filtered_4FGL_J1159.3-2142_daily_bin1160.fits" evtable="EVENTS" scfile=/scratch/kocevski/228345/ft2_4FGL_J1159.3-2142_daily_bin1160.fits sctable="SC_DATA" outfile=/scratch/kocevski/228345/ltcube_540000001_540259201_4FGL_J1159.3-2142_daily_bin1160.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/228345/ft2_4FGL_J1159.3-2142_daily_bin1160.fits
.....................!
real 12.39
user 12.03
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228345/ft1_filtered_4FGL_J1159.3-2142_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/228345/ft2_4FGL_J1159.3-2142_daily_bin1160.fits sctable="SC_DATA" expcube=/scratch/kocevski/228345/ltcube_540000001_540259201_4FGL_J1159.3-2142_daily_bin1160.fits outfile=/scratch/kocevski/228345/expmap_540000001_540259201_4FGL_J1159.3-2142_daily_bin1160.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/228345/ltcube_540000001_540259201_4FGL_J1159.3-2142_daily_bin1160.fits
.....................!
real 191.19
user 186.16
sys 4.57

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/228345/ft1_filtered_4FGL_J1159.3-2142_daily_bin1160.fits scfile=/scratch/kocevski/228345/ft2_4FGL_J1159.3-2142_daily_bin1160.fits outfile=/scratch/kocevski/228345/cmap_540000001_540259201_4FGL_J1159.3-2142_daily_bin1160.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228345/ft1_filtered_4FGL_J1159.3-2142_daily_bin1160.fits scfile=/scratch/kocevski/228345/ft2_4FGL_J1159.3-2142_daily_bin1160.fits outfile=/scratch/kocevski/228345/cmap_HighResolution_540000001_540259201_4FGL_J1159.3-2142_daily_bin1160.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.62
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228345/ft1_filtered_4FGL_J1159.3-2142_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/228345/ft2_4FGL_J1159.3-2142_daily_bin1160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228345/Model_4FGL_J1159.3-2142_daily_bin1160.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/228345/ft1_filtered_4FGL_J1159.3-2142_daily_bin1160.fits.....................!
real 67.62
user 65.96
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3532       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.173       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1276       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.199       1.0000         .10000E-03   10000.    
    14 'norm      '    7.8128       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.679       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.995       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.6809       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.2734       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4108       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79782       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=   7936.957     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3070 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0755       -.35841E-05** at limit **
   2  Prefactor     .10000E-03    22.368       -.79614E-05** at limit **
   3  Prefactor     .10000E-03    25.681        .63814E-05** at limit **
   4  Prefactor     8.3509        9.9956        .15201E-06   -.10157E-03
   5  Prefactor     30.172        39.130        .15245E-06   -.15307E-04
   6  norm          .10000E-03    .47458        .10184E-06** at limit **
   7  Prefactor     .10000E-03    3.8633       -.12794E-06** at limit **
   8  Prefactor     .10000E-03    12.648        .10595E-05** at limit **
   9  Prefactor     .10000E-03    2.6028        .13137E-06** at limit **
  10  Prefactor     .10000E-03    8.2720       -.29321E-06** at limit **
  11  Prefactor     7.1125        17.328       -.49010E-05    .16353E-04
  12  norm          .10000E-03    10.975        .18991E-05** at limit **
  13  Prefactor     20.205        22.325        .42001E-05    .13464E-03
  14  norm          7.8121        7.0620       -.13014E-05   -.14881E-03
  15  Prefactor     .10005E-03    2.7664       -.22567E-05** at limit **
  16  Prefactor     46.676        40.534       -.38448E-05    .29765E-04
  17  Prefactor     46.020        27.745        .17181E-04    .39156E-03
  18  Prefactor     .10000E-03    10.341        .89240E-07** at limit **
  19  Prefactor     .10000E-03    41.588        .34888E-05** at limit **
  20  Prefactor     .10000E-03    10.296       -.30727E-06** at limit **
  21  Prefactor     .10000E-03    5.5236       -.19596E-06** at limit **
  22  Prefactor     7.6817        2.4338        .73895E-07    .48692E-04
  23  Prefactor     .10000E-03    3.6224        .80414E-08** at limit **
  24  norm          8.2733        1.6612        .96373E-08    .50121E-04
  25  Normalizat    1.4106        .21359       -.21990E-05    .28617E-03
  26  Prefactor     .79797        .11125       -.30326E-06    .23605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.35089
  Prefactor  = 30.1721
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.11246
  norm       = 0.0001
  Prefactor  = 20.2046
  norm       = 7.81207
  Prefactor  = 0.000100051
  Prefactor  = 46.6756
  Prefactor  = 46.0202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.68169
  Prefactor  = 0.0001
  norm       = 8.27331
  Normalizat = 1.41057
  Prefactor  = 0.797966
 **********
 **   18 **HESSE 
 **********

 FCN=   7936.957     FROM HESSE     STATUS=OK           450 CALLS     3520 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.3509        9.9947        .13871E-03   -1.5130    
   5  Prefactor     30.172        38.893        .72941E-04   -1.4609    
   6  norm          .10000E-03    .86206        .11836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8802        .17098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6300        .14029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1125        17.286        .15025E-03   -1.5175    
  12  norm          .10000E-03    11.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.205        22.376        .89118E-04   -1.4809    
  14  norm          7.8121        7.0514        .14346E-03   -1.5149    
  15  Prefactor     .10005E-03    7.9915        .28492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     46.676        40.485        .58687E-04   -1.4341    
  17  Prefactor     46.020        27.797        .59120E-04   -1.4350    
  18  Prefactor     .10000E-03    10.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.6817        2.4310        .75982E-04   -1.5154    
  23  Prefactor     .10000E-03    3.6296        .16559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.2733        1.6614        .49713E-04   -1.5133    
  25  Normalizat    1.4106        .25444        .30310E-03   -.80323    
  26  Prefactor     .79797        .13264        .20565E-03   -.99803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79121e-09
Minuit parameter uncertainties:
  1  1.6882e-06
  2  5.63931e-06
  3  1.23783e-05
  4  9.99668
  5  38.9258
  6  8.03318e-06
  7  9.21897e-06
  8  1.11247e-05
  9  2.93458e-07
  10  1.49425e-05
  11  17.2982
  12  1.12175e-07
  13  22.3853
  14  7.05212
  15  0.00127237
  16  40.5092
  17  27.8052
  18  2.69193e-06
  19  2.75903e-05
  20  7.26677e-05
  21  1.88195e-05
  22  2.431
  23  4.25046e-06
  24  1.66136
  25  0.254664
  26  0.132688
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  7.812e+00  7.052e+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.980e-01  1.327e-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.411e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 7.09e-08 +/- 6.39e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 2.21e-05

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

Saving results to:
/scratch/kocevski/228345/likelihoodResults_540000001_540259201_4FGL_J1159.3-2142_daily_bin1160.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) = 7936.64265832
delta logL = 0.314585996332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7936.62258737
delta logL = 0.334656951187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0720       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1564       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82294       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=   7936.623     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      272 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0698        35.451        .49950E-02    .54127E-03
   2  alpha         3.1572        3.9562        .31587        .81168E-04
   3  Normalizat    1.3443        .74278E-01    .69816E-01    .67780E-05
   4  Prefactor     .82301        .35807E-01    .44015E-01    .42666E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.06984
  alpha      = 3.15719
  Normalizat = 1.34428
  Prefactor  = 0.823008
 **********
 **   18 **HESSE 
 **********

 FCN=   7936.623     FROM HESSE     STATUS=OK            33 CALLS      305 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0698        47.976        .98495E-04   -1.5304    
   2  alpha         3.1572        4.0569        .11465E-01    .26600    
   3  Normalizat    1.3443        .39869        .30889E-03   -.82254    
   4  Prefactor     .82301        .19865        .20283E-03   -.98886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38502e-07
Minuit parameter uncertainties:
  1  27.9743
  2  4.88087
  3  0.399609
  4  0.198821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228345': 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) = 7936.62258645
delta logL = 0.33465786625

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  4.070e+00  2.797e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.157e+00  4.881e+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.230e-01  1.988e-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.344e+00  3.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.86
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 3.16 +/- 4.88
Photon Flux (Free Index): 1.18e-07 +/- 1.44e-07
Energy Flux (Free Index): 2.41e-05 +/- 2.84e-05

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/228345/cmap_HighResolution_540000001_540259201_4FGL_J1159.3-2142_daily_bin1160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-05', comment='SUCCESS', photon_flux='7.09e-08', energy_flux2='2.41e-05', photon_flux_error='6.39e-08', dlogl='3.35e-01', energy_flux='2.44e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-04 19:17:09.119827', photon_index_error2='4.88', photon_index2='3.16', ts='3.08', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='2.84e-05', EG='1.41', time_epoch_completed='1630808229.12', return_code='0', job_id='228345', GAL2='0.82', EG2='1.34', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='1.44e-07', ts2='3.86', photon_index='2.38' WHERE bin_id='1160' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 228345: <4FGL_J1159.3-2142_daily_bin1160> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1160> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 19:00:35 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:00:36 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:36 2021
Terminated at Sat Sep  4 19:17:09 2021
Results reported at Sat Sep  4 19:17:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1160 179.843 -21.7038 540000001 540259201 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 :                                   890.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

