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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1165
RA = 179.843, Dec = -21.7038
tmin = 541296001, tmax = 541555201
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='228354', job_status='RUN', time_executed='2021-09-04 19:01:02.908912', time_epoch_executed='1630807262.91' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228354

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228354/ft1_4FGL_J1159.3-2142_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228354/ft2_4FGL_J1159.3-2142_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228354/ft1_4FGL_J1159.3-2142_daily_bin1165.fits outfile=/scratch/kocevski/228354/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1165.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=541296001.0 tmax=541555201.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.72
user 3.48
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228354/ft1_filtered_4FGL_J1159.3-2142_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/228354/ft2_4FGL_J1159.3-2142_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/228354/ltcube_541296001_541555201_4FGL_J1159.3-2142_daily_bin1165.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/228354/ft2_4FGL_J1159.3-2142_daily_bin1165.fits
.....................!
real 11.65
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228354/ft1_filtered_4FGL_J1159.3-2142_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/228354/ft2_4FGL_J1159.3-2142_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/228354/ltcube_541296001_541555201_4FGL_J1159.3-2142_daily_bin1165.fits outfile=/scratch/kocevski/228354/expmap_541296001_541555201_4FGL_J1159.3-2142_daily_bin1165.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/228354/ltcube_541296001_541555201_4FGL_J1159.3-2142_daily_bin1165.fits
.....................!
real 190.30
user 185.67
sys 4.16

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/228354/ft1_filtered_4FGL_J1159.3-2142_daily_bin1165.fits scfile=/scratch/kocevski/228354/ft2_4FGL_J1159.3-2142_daily_bin1165.fits outfile=/scratch/kocevski/228354/cmap_541296001_541555201_4FGL_J1159.3-2142_daily_bin1165.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228354/ft1_filtered_4FGL_J1159.3-2142_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/228354/ft2_4FGL_J1159.3-2142_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228354/Model_4FGL_J1159.3-2142_daily_bin1165.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/228354/ft1_filtered_4FGL_J1159.3-2142_daily_bin1165.fits.....................!
real 77.39
user 75.28
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.828       1.0000         .10000E-03   10000.    
     6 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.472       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.822       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.773       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9831       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.242       1.0000         .10000E-03   10000.    
    14 'norm      '    13.903       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0831       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.069       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.890       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7827       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3841       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.044       1.0000         .10000E-03   10000.    
    24 'norm      '    6.7398       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65234       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0334       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=   10004.70     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2692 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.612        .78793E-07** at limit **
   2  Prefactor     .10000E-03    24.317        .16264E-06** at limit **
   3  Prefactor     .10000E-03    12.053       -.62505E-07** at limit **
   4  Prefactor     .10000E-03    3.3552        .29428E-07** at limit **
   5  Prefactor     54.869        36.679       -.11044E-05   -.28782E-03
   6  norm          .10000E-03    .60999        .95080E-06** at limit **
   7  Prefactor     .10028E-03    4.3766        .13058E-05** at limit **
   8  Prefactor     29.466        23.173        .16894E-06   -.71719E-04
   9  Prefactor     .10000E-03    3.0465       -.15914E-06** at limit **
  10  Prefactor     35.821        17.192        .19086E-06   -.34138E-04
  11  Prefactor     19.772        20.189       -.24789E-07   -.31724E-05
  12  norm          4.9836        9.8528        .28532E-06    .36758E-04
  13  Prefactor     14.238        17.941       -.66175E-07   -.14412E-04
  14  norm          13.904        6.4202        .86149E-07    .16887E-04
  15  Prefactor     3.0857        4.0807        .95767E-06    .51772E-03
  16  Prefactor     26.086        34.255        .84489E-07    .24580E-04
  17  Prefactor     .10000E-03    10.011        .22421E-08** at limit **
  18  Prefactor     .10000E-03    8.7237        .35058E-06** at limit **
  19  Prefactor     .10000E-03    48.164        .58836E-06** at limit **
  20  Prefactor     31.890        17.839        .85566E-07   -.78063E-05
  21  Prefactor     8.7835        6.5671        .23668E-06    .78027E-04
  22  Prefactor     8.3841        2.5492       -.14398E-07   -.24681E-04
  23  Prefactor     10.045        9.4593        .21522E-06    .24326E-04
  24  norm          6.7399        1.4557        .26296E-07   -.18416E-05
  25  Normalizat    .65234        .18420       -.10877E-05   -.48715E-03
  26  Prefactor     1.0333        .10040       -.17138E-06   -.90191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.8687
  norm       = 0.0001
  Prefactor  = 0.000100277
  Prefactor  = 29.4662
  Prefactor  = 0.0001
  Prefactor  = 35.8206
  Prefactor  = 19.7724
  norm       = 4.98363
  Prefactor  = 14.2377
  norm       = 13.9038
  Prefactor  = 3.08574
  Prefactor  = 26.0859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.8896
  Prefactor  = 8.78347
  Prefactor  = 8.38412
  Prefactor  = 10.0446
  norm       = 6.73994
  Normalizat = 0.65234
  Prefactor  = 1.03332
 **********
 **   18 **HESSE 
 **********

 FCN=   10004.70     FROM HESSE     STATUS=OK           470 CALLS     3162 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3781        .17892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.869        37.211        .27086E-03   -1.4225    
   6  norm          .10000E-03    .73340        .11661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10028E-03    4.0756        .56408E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.466        23.173        .73801E-04   -1.4622    
   9  Prefactor     .10000E-03    3.1678        .33993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.821        17.235        .66959E-04   -1.4510    
  11  Prefactor     19.772        20.156        .90072E-04   -1.4818    
  12  norm          4.9836        9.8545        .18015E-03   -1.5261    
  13  Prefactor     14.238        18.024        .10613E-03   -1.4953    
  14  norm          13.904        6.4578        .10742E-03   -1.4962    
  15  Prefactor     3.0857        4.1840        .22319E-03   -1.5357    
  16  Prefactor     26.086        34.201        .78459E-04   -1.4686    
  17  Prefactor     .10000E-03    10.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    48.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.890        17.855        .70954E-04   -1.4578    
  21  Prefactor     8.7835        6.5932        .13525E-03   -1.5115    
  22  Prefactor     8.3841        2.5530        .80840E-04   -1.5129    
  23  Prefactor     10.045        9.4716        .12644E-03   -1.5074    
  24  norm          6.7399        1.4567        .53969E-04   -1.5189    
  25  Normalizat    .65234        .20944        .38708E-03   -1.0581    
  26  Prefactor     1.0333        .11467        .17608E-03   -.91627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42837e-09
Minuit parameter uncertainties:
  1  1.24568e-05
  2  1.89336e-05
  3  5.20058e-06
  4  3.97743e-06
  5  37.2265
  6  2.1058e-05
  7  0.00212402
  8  23.1801
  9  7.82522e-06
  10  17.2372
  11  20.1628
  12  9.85774
  13  18.0306
  14  6.45808
  15  4.18439
  16  34.2265
  17  1.19528e-05
  18  3.37727e-05
  19  0.000109853
  20  17.8579
  21  6.59379
  22  2.553
  23  9.47304
  24  1.4567
  25  0.209695
  26  0.114696
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.390e+01  6.458e+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.033e+00  1.147e-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:  6.523e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.00
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 5.86e-08
Energy Flux (Fixed Index): 4.35e-05 +/- 2.02e-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) = 10003.5592908
delta logL = 1.14149153855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10003.5580042
delta logL = 1.14277818823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0857       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9612       1.0000          .0000       5.0000    
     3 'Normalizat'    .58807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0574       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=   10003.56     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      273 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0866        30.669        .35250E-02    .22891E-03
   2  alpha         2.9612        3.6469        .18011        .10798E-03
   3  Normalizat    .58810        .10163        .91608E-01    .65922E-04
   4  Prefactor     1.0573        .47163E-01    .39496E-01    .85709E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.08657
  alpha      = 2.96125
  Normalizat = 0.5881
  Prefactor  = 1.05734
 **********
 **   18 **HESSE 
 **********

 FCN=   10003.56     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0866        5.4287        .81815E-04   -1.5139    
   2  alpha         2.9612        .46239        .75810E-02    .18556    
   3  Normalizat    .58810        .20699        .40588E-03   -1.0849    
   4  Prefactor     1.0573        .11506        .17424E-03   -.90842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85574e-09
Minuit parameter uncertainties:
  1  5.42906
  2  0.465161
  3  0.207265
  4  0.115086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228354': 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) = 10003.5580038
delta logL = 1.14277860832

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  8.087e+00  5.429e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.961e+00  4.652e-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:  1.057e+00  1.151e-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:  5.881e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.79
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.96 +/- 0.47
Photon Flux (Free Index): 1.71e-07 +/- 5.66e-08
Energy Flux (Free Index): 3.84e-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/228354/cmap_HighResolution_541296001_541555201_4FGL_J1159.3-2142_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='3.84e-05', photon_flux_error='5.86e-08', dlogl='1.14e+00', energy_flux='4.35e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-04 19:15:22.829991', photon_index_error2='0.47', photon_index2='2.96', ts='17.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.65', time_epoch_completed='1630808122.83', return_code='0', job_id='228354', GAL2='1.06', EG2='0.59', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='5.66e-08', ts2='19.79', photon_index='2.38' WHERE bin_id='1165' 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@bullet0268>
Subject: Job 228354: <4FGL_J1159.3-2142_daily_bin1165> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1165> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 19:00:36 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:00:37 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:37 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_bin1165 179.843 -21.7038 541296001 541555201 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 :                                   855.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            887 sec.

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

