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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1472
RA = 179.843, Dec = -21.7038
tmin = 620870401, tmax = 621129601
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='230038', job_status='RUN', time_executed='2021-09-04 19:07:56.125943', time_epoch_executed='1630807676.13' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230038

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230038/ft1_4FGL_J1159.3-2142_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230038/ft2_4FGL_J1159.3-2142_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230038/ft1_4FGL_J1159.3-2142_daily_bin1472.fits outfile=/scratch/kocevski/230038/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1472.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=620870401.0 tmax=621129601.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.24
user 3.00
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230038/ft1_filtered_4FGL_J1159.3-2142_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/230038/ft2_4FGL_J1159.3-2142_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/230038/ltcube_620870401_621129601_4FGL_J1159.3-2142_daily_bin1472.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/230038/ft2_4FGL_J1159.3-2142_daily_bin1472.fits
.....................!
real 13.01
user 12.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230038/ft1_filtered_4FGL_J1159.3-2142_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/230038/ft2_4FGL_J1159.3-2142_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/230038/ltcube_620870401_621129601_4FGL_J1159.3-2142_daily_bin1472.fits outfile=/scratch/kocevski/230038/expmap_620870401_621129601_4FGL_J1159.3-2142_daily_bin1472.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/230038/ltcube_620870401_621129601_4FGL_J1159.3-2142_daily_bin1472.fits
.....................!
real 192.37
user 187.42
sys 4.55

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/230038/ft1_filtered_4FGL_J1159.3-2142_daily_bin1472.fits scfile=/scratch/kocevski/230038/ft2_4FGL_J1159.3-2142_daily_bin1472.fits outfile=/scratch/kocevski/230038/cmap_620870401_621129601_4FGL_J1159.3-2142_daily_bin1472.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230038/ft1_filtered_4FGL_J1159.3-2142_daily_bin1472.fits scfile=/scratch/kocevski/230038/ft2_4FGL_J1159.3-2142_daily_bin1472.fits outfile=/scratch/kocevski/230038/cmap_HighResolution_620870401_621129601_4FGL_J1159.3-2142_daily_bin1472.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.843 yref=-21.7038 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5981       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.728       1.0000         .10000E-03   10000.    
     6 'norm      '    .35711       1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.215       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.766       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8628       1.0000         .10000E-03   10000.    
    14 'norm      '    10.019       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2558       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7343       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.193       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0918       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3904       1.0000         .10000E-03   10000.    
    24 'norm      '    8.6123       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5613       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84740       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=   7445.876     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3539 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.130       -.13473E-05** at limit **
   2  Prefactor     .10000E-03    38.724        .30150E-05** at limit **
   3  Prefactor     .10000E-03    10.523       -.37300E-06** at limit **
   4  Prefactor     4.5969        10.827        .24660E-06   -.16902E-04
   5  Prefactor     43.722        55.583       -.22855E-05   -.67650E-04
   6  norm          .35762        1.1365        .78002E-06    .83660E-04
   7  Prefactor     61.213        20.082       -.22546E-06   -.90587E-04
   8  Prefactor     .10000E-03    19.183       -.84068E-06** at limit **
   9  Prefactor     .10000E-03    2.1524       -.61766E-07** at limit **
  10  Prefactor     28.769        25.126        .42150E-06    .24565E-04
  11  Prefactor     .10000E-03    16.812        .19492E-05** at limit **
  12  norm          .10000E-03    9.5086        .37487E-06** at limit **
  13  Prefactor     7.8599        11.694        .71276E-07    .27028E-04
  14  norm          10.021        5.6892        .27719E-06    .13434E-03
  15  Prefactor     8.2557        7.2023        .27692E-05   -.26381E-03
  16  Prefactor     .10000E-03    21.543       -.20786E-05** at limit **
  17  Prefactor     .10000E-03    28.877        .39422E-06** at limit **
  18  Prefactor     5.7182        91.680       -.19208E-04   -.15498E-03
  19  Prefactor     10.095        231.42        .87138E-05   -.11526E-03
  20  Prefactor     .10000E-03    18.036        .23529E-06** at limit **
  21  Prefactor     9.0919        6.3371       -.57704E-07   -.37612E-04
  22  Prefactor     .10000E-03    .72833        .37211E-07** at limit **
  23  Prefactor     7.3908        9.7176        .85984E-07   -.64315E-05
  24  norm          8.6122        1.8379       -.29597E-08   -.17566E-04
  25  Normalizat    1.5611        .25970       -.69852E-06   -.21026E-04
  26  Prefactor     .84751        .12401       -.99782E-07   -.74171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.59692
  Prefactor  = 43.7218
  norm       = 0.35762
  Prefactor  = 61.2134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7689
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.85987
  norm       = 10.0211
  Prefactor  = 8.2557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.71818
  Prefactor  = 10.0946
  Prefactor  = 0.0001
  Prefactor  = 9.09185
  Prefactor  = 0.0001
  Prefactor  = 7.39076
  norm       = 8.61225
  Normalizat = 1.56113
  Prefactor  = 0.847511
 **********
 **   18 **HESSE 
 **********

 FCN=   7445.876     FROM HESSE     STATUS=OK           454 CALLS     3993 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5969        10.831        .18771E-03   -1.5279    
   5  Prefactor     43.722        54.789        .60626E-04   -1.4385    
   6  norm          .35762        1.0976        .15056E-03   -1.5588    
   7  Prefactor     61.213        20.097        .51284E-04   -1.4142    
   8  Prefactor     .10000E-03    19.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1628        .12360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.769        25.145        .74699E-04   -1.4635    
  11  Prefactor     .10000E-03    16.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.5306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8599        11.682        .14300E-03   -1.5147    
  14  norm          10.021        5.6913        .12659E-03   -1.5075    
  15  Prefactor     8.2557        7.1974        .69764E-03   -1.5133    
  16  Prefactor     .10000E-03    21.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7182        84.693        .16773E-03   -1.5230    
  19  Prefactor     10.095        220.43        .12551E-03   -1.5072    
  20  Prefactor     .10000E-03    18.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.0919        6.3347        .13292E-03   -1.5105    
  22  Prefactor     .10000E-03    .73294        .71867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3908        9.7135        .14753E-03   -1.5164    
  24  norm          8.6122        1.8387        .52132E-04   -1.5121    
  25  Normalizat    1.5611        .31110        .33377E-03   -.76075    
  26  Prefactor     .84751        .14788        .21625E-03   -.98000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54075e-10
Minuit parameter uncertainties:
  1  0.000110947
  2  0.000303173
  3  2.09722e-05
  4  10.8358
  5  54.8518
  6  1.09762
  7  20.0988
  8  6.0585e-05
  9  9.51453e-06
  10  25.1539
  11  9.89564e-05
  12  1.39324e-05
  13  11.6852
  14  5.69159
  15  7.19819
  16  8.67012e-05
  17  0.000122506
  18  44.0877
  19  94.7411
  20  1.83985e-06
  21  6.33513
  22  7.0288e-07
  23  9.71559
  24  1.83867
  25  0.311486
  26  0.147954
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.002e+01  5.692e+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.475e-01  1.480e-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.561e+00  3.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.02
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 9.09e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 1.78e-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) = 7445.85860174
delta logL = 0.0176365885081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7445.85419458
delta logL = 0.0220437477119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5301       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5001       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85086       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=   7445.854     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      238 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5303        5.8114        .12981E-03   -.11034E-02
   2  alpha         2.5000        .56658        .12662E-01   -.13153E-03
   3  Normalizat    1.5492        .30109        .33478E-03    .56338E-04
   4  Prefactor     .85086        .14750        .21586E-03    .14231E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.5303
  alpha      = 2.50005
  Normalizat = 1.5492
  Prefactor  = 0.850863
 **********
 **   18 **HESSE 
 **********

 FCN=   7445.854     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5303        5.6718        .51925E-05   -1.5090    
   2  alpha         2.5000        .55247        .50646E-03    .18620E-04
   3  Normalizat    1.5492        .30109        .13391E-04   -.76405    
   4  Prefactor     .85086        .14758        .86342E-05   -.97880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02292e-10
Minuit parameter uncertainties:
  1  5.67212
  2  0.55707
  3  0.301445
  4  0.147646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230038': 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) = 7445.85419458
delta logL = 0.0220437498701

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  9.530e+00  5.672e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.500e+00  5.571e-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.509e-01  1.476e-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.549e+00  3.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.06
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.50 +/- 0.56
Photon Flux (Free Index): 1.01e-07 +/- 7.27e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.64e-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/230038/cmap_HighResolution_620870401_621129601_4FGL_J1159.3-2142_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.09e-08', energy_flux2='3.13e-05', photon_flux_error='5.16e-08', dlogl='2.20e-02', energy_flux='3.14e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-04 19:21:12.241218', photon_index_error2='0.56', photon_index2='2.50', ts='8.02', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.56', time_epoch_completed='1630808472.24', return_code='0', job_id='230038', GAL2='0.85', EG2='1.55', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='7.27e-08', ts2='8.06', photon_index='2.38' WHERE bin_id='1472' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:21:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 230038: <4FGL_J1159.3-2142_daily_bin1472> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1472> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:47 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:49 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:05:49 2021
Terminated at Sat Sep  4 19:21:12 2021
Results reported at Sat Sep  4 19:21:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1472 179.843 -21.7038 620870401 621129601 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 :                                   785.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

