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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1211
RA = 179.843, Dec = -21.7038
tmin = 553219201, tmax = 553478401
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='228428', job_status='RUN', time_executed='2021-09-04 19:01:58.233004', time_epoch_executed='1630807318.23' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228428

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228428/ft1_4FGL_J1159.3-2142_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228428/ft2_4FGL_J1159.3-2142_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228428/ft1_4FGL_J1159.3-2142_daily_bin1211.fits outfile=/scratch/kocevski/228428/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1211.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=553219201.0 tmax=553478401.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.79
user 2.50
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228428/ft1_filtered_4FGL_J1159.3-2142_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/228428/ft2_4FGL_J1159.3-2142_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/228428/ltcube_553219201_553478401_4FGL_J1159.3-2142_daily_bin1211.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/228428/ft2_4FGL_J1159.3-2142_daily_bin1211.fits
.....................!
real 12.61
user 12.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228428/ft1_filtered_4FGL_J1159.3-2142_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/228428/ft2_4FGL_J1159.3-2142_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/228428/ltcube_553219201_553478401_4FGL_J1159.3-2142_daily_bin1211.fits outfile=/scratch/kocevski/228428/expmap_553219201_553478401_4FGL_J1159.3-2142_daily_bin1211.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/228428/ltcube_553219201_553478401_4FGL_J1159.3-2142_daily_bin1211.fits
.....................!
real 191.39
user 185.43
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/228428/ft1_filtered_4FGL_J1159.3-2142_daily_bin1211.fits scfile=/scratch/kocevski/228428/ft2_4FGL_J1159.3-2142_daily_bin1211.fits outfile=/scratch/kocevski/228428/cmap_553219201_553478401_4FGL_J1159.3-2142_daily_bin1211.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.54
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228428/ft1_filtered_4FGL_J1159.3-2142_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/228428/ft2_4FGL_J1159.3-2142_daily_bin1211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228428/Model_4FGL_J1159.3-2142_daily_bin1211.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/228428/ft1_filtered_4FGL_J1159.3-2142_daily_bin1211.fits.....................!
real 74.65
user 72.96
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    154.36       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .38265       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9094       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.994       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.356       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.822       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6882       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2129       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5704       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1957       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80125       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=   9029.197     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3109 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.579        .11339E-06** at limit **
   2  Prefactor     154.35        88.307       -.25461E-06   -.24151E-04
   3  Prefactor     .10000E-03    8.1953        .62879E-07** at limit **
   4  Prefactor     .10000E-03    5.9312        .22055E-06** at limit **
   5  Prefactor     .10000E-03    25.417       -.35609E-06** at limit **
   6  norm          .38259        .68052        .98202E-06   -.24264E-03
   7  Prefactor     .10000E-03    2.7461        .59267E-07** at limit **
   8  Prefactor     .10000E-03    6.3104        .55564E-08** at limit **
   9  Prefactor     3.9092        4.2804        .33271E-06    .52038E-04
  10  Prefactor     33.965        16.128        .78502E-07   -.13157E-04
  11  Prefactor     .10000E-03    9.9777        .18153E-07** at limit **
  12  norm          11.993        16.965        .51017E-08   -.52242E-06
  13  Prefactor     .10000E-03    6.0126       -.70048E-07** at limit **
  14  norm          12.355        4.6066        .69222E-07    .11799E-03
  15  Prefactor     .10000E-03    3.4302       -.17546E-06** at limit **
  16  Prefactor     .10000E-03    38.544       -.15550E-05** at limit **
  17  Prefactor     40.822        26.360        .74287E-07    .30842E-04
  18  Prefactor     .10000E-03    27.609       -.92420E-05** at limit **
  19  Prefactor     9.6180        39.607       -.13476E-05   -.43873E-04
  20  Prefactor     .10000E-03    8.1022        .10781E-06** at limit **
  21  Prefactor     .10000E-03    1.4303        .42024E-07** at limit **
  22  Prefactor     9.2126        2.4017       -.51701E-09   -.90493E-06
  23  Prefactor     8.5704        10.068        .11237E-06   -.23288E-05
  24  norm          .10000E-03    .21471        .37881E-07** at limit **
  25  Normalizat    1.1957        .18662       -.16978E-05    .12777E-03
  26  Prefactor     .80122        .98025E-01    .74364E-06   -.52702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 154.349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.382586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.90921
  Prefactor  = 33.9648
  Prefactor  = 0.0001
  norm       = 11.9929
  Prefactor  = 0.0001
  norm       = 12.3553
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 40.8221
  Prefactor  = 0.0001
  Prefactor  = 9.61796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.21262
  Prefactor  = 8.57043
  norm       = 0.0001
  Normalizat = 1.19573
  Prefactor  = 0.801223
 **********
 **   18 **HESSE 
 **********

 FCN=   9029.197     FROM HESSE     STATUS=OK           454 CALLS     3563 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     154.35        88.371        .32447E-04   -1.3217    
   3  Prefactor     .10000E-03    8.1978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .38259        .68366        .21564E-03   -1.5584    
   7  Prefactor     .10000E-03    2.7611        .15375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9092        4.2736        .19580E-03   -1.5313    
  10  Prefactor     33.965        16.162        .68759E-04   -1.4542    
  11  Prefactor     .10000E-03    9.9927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.993        16.977        .11567E-03   -1.5015    
  13  Prefactor     .10000E-03    6.0287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.355        4.6123        .11396E-03   -1.5005    
  15  Prefactor     .10000E-03    3.5261        .34229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.822        26.303        .62738E-04   -1.4429    
  18  Prefactor     .10000E-03    27.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6180        39.668        .12875E-03   -1.5088    
  20  Prefactor     .10000E-03    8.1257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.4366        .11094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2126        2.4012        .73083E-04   -1.5101    
  23  Prefactor     8.5704        10.068        .13693E-03   -1.5122    
  24  norm          .10000E-03    .40486        .85798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1957        .21895        .29655E-03   -.86735    
  26  Prefactor     .80122        .11539        .19020E-03   -.99683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03372e-10
Minuit parameter uncertainties:
  1  0.000126538
  2  88.4474
  3  3.7379e-06
  4  7.50016e-06
  5  0.000170283
  6  0.683678
  7  4.86517e-07
  8  5.49258e-06
  9  4.27395
  10  16.1636
  11  1.60848e-05
  12  16.9841
  13  2.23828e-06
  14  4.61243
  15  6.25398e-06
  16  0.000355364
  17  26.31
  18  4.43456e-05
  19  39.11
  20  9.97421e-06
  21  5.86648e-07
  22  2.40126
  23  10.0701
  24  1.64065e-06
  25  0.219115
  26  0.115429
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.236e+01  4.612e+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.012e-01  1.154e-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.196e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.95
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 4.18e-08
Energy Flux (Fixed Index): 3.87e-05 +/- 1.44e-05

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) = 9028.59352077
delta logL = 0.603091301382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9028.55656476
delta logL = 0.640047309451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1805       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8258       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81923       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=   9028.557     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      273 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1808        4.8402        .88401E-04    .15708E-02
   2  alpha         2.8258        .40949        .82898E-02    .14825E-03
   3  Normalizat    1.1379        .21897        .30257E-03    .45382E-03
   4  Prefactor     .81922        .11501        .18818E-03    .44108E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.18077
  alpha      = 2.82582
  Normalizat = 1.13793
  Prefactor  = 0.819222
 **********
 **   18 **HESSE 
 **********

 FCN=   9028.557     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1808        4.5455        .35361E-05   -1.5102    
   2  alpha         2.8258        .38440        .33159E-03    .13070    
   3  Normalizat    1.1379        .21879        .60514E-04   -.88543    
   4  Prefactor     .81922        .11499        .37635E-04   -.99024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06245e-10
Minuit parameter uncertainties:
  1  4.54565
  2  0.385957
  3  0.218967
  4  0.115028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228428': 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) = 9028.55656475
delta logL = 0.64004732242

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  8.192e-01  1.150e-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.138e+00  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.36
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.83 +/- 0.39
Photon Flux (Free Index): 1.57e-07 +/- 6.14e-08
Energy Flux (Free Index): 3.82e-05 +/- 1.25e-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/228428/cmap_HighResolution_553219201_553478401_4FGL_J1159.3-2142_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.82e-05', photon_flux_error='4.18e-08', dlogl='6.40e-01', energy_flux='3.87e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-04 19:16:06.528449', photon_index_error2='0.39', photon_index2='2.83', ts='19.95', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='1.20', time_epoch_completed='1630808166.53', return_code='0', job_id='228428', GAL2='0.82', EG2='1.14', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.14e-08', ts2='21.36', photon_index='2.38' WHERE bin_id='1211' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:16:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 228428: <4FGL_J1159.3-2142_daily_bin1211> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1211> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 19:00:41 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:00: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 19:00:43 2021
Terminated at Sat Sep  4 19:16:07 2021
Results reported at Sat Sep  4 19:16:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1211 179.843 -21.7038 553219201 553478401 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 :                                   842.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

