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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin635
RA = 179.843, Dec = -21.7038
tmin = 403920001, tmax = 404179201
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='224990', job_status='RUN', time_executed='2021-09-04 18:51:42.038861', time_epoch_executed='1630806702.04' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224990

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224990/ft1_4FGL_J1159.3-2142_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224990/ft2_4FGL_J1159.3-2142_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224990/ft1_4FGL_J1159.3-2142_daily_bin635.fits outfile=/scratch/kocevski/224990/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin635.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=403920001.0 tmax=404179201.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 9.98
user 9.64
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224990/ft1_filtered_4FGL_J1159.3-2142_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/224990/ft2_4FGL_J1159.3-2142_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/224990/ltcube_403920001_404179201_4FGL_J1159.3-2142_daily_bin635.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/224990/ft2_4FGL_J1159.3-2142_daily_bin635.fits
.....................!
real 9.39
user 8.98
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224990/ft1_filtered_4FGL_J1159.3-2142_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/224990/ft2_4FGL_J1159.3-2142_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/224990/ltcube_403920001_404179201_4FGL_J1159.3-2142_daily_bin635.fits outfile=/scratch/kocevski/224990/expmap_403920001_404179201_4FGL_J1159.3-2142_daily_bin635.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/224990/ltcube_403920001_404179201_4FGL_J1159.3-2142_daily_bin635.fits
.....................!
real 190.50
user 186.00
sys 4.14

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/224990/ft1_filtered_4FGL_J1159.3-2142_daily_bin635.fits scfile=/scratch/kocevski/224990/ft2_4FGL_J1159.3-2142_daily_bin635.fits outfile=/scratch/kocevski/224990/cmap_403920001_404179201_4FGL_J1159.3-2142_daily_bin635.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224990/ft1_filtered_4FGL_J1159.3-2142_daily_bin635.fits scfile=/scratch/kocevski/224990/ft2_4FGL_J1159.3-2142_daily_bin635.fits outfile=/scratch/kocevski/224990/cmap_HighResolution_403920001_404179201_4FGL_J1159.3-2142_daily_bin635.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/224990/ft1_filtered_4FGL_J1159.3-2142_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/224990/ft2_4FGL_J1159.3-2142_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224990/Model_4FGL_J1159.3-2142_daily_bin635.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/224990/ft1_filtered_4FGL_J1159.3-2142_daily_bin635.fits.....................!
real 20.82
user 19.49
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    108.78       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    149.94       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1554       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3773       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0741       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6602       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.958       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    152.91       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.868       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.286       1.0000         .10000E-03   10000.    
    24 'norm      '    2.9518       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6305       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74671       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=   1021.745     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     3427 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.78        112.63        .10931E-05   -.57117E-05
   2  Prefactor     .10000E-03    101.20       -.36221E-04** at limit **
   3  Prefactor     149.94        166.43        .12518E-05   -.17197E-04
   4  Prefactor     8.1603        59.917        .11961E-04   -.17632E-04
   5  Prefactor     .10000E-03    64.647        .28019E-04** at limit **
   6  norm          5.3771        3.8219       -.17531E-06   -.22944E-03
   7  Prefactor     3.0946        75.218        .25512E-04   -.51685E-04
   8  Prefactor     .10000E-03    62.884        .25185E-04** at limit **
   9  Prefactor     .10000E-03    10.735        .56673E-06** at limit **
  10  Prefactor     6.7045        200.36        .13674E-03   -.14533E-04
  11  Prefactor     .10000E-03    51.167       -.13803E-05** at limit **
  12  norm          .10000E-03    33.716       -.12780E-04** at limit **
  13  Prefactor     .10000E-03    45.473       -.15095E-04** at limit **
  14  norm          .10000E-03    13.328        .10771E-05** at limit **
  15  Prefactor     .10000E-03    11.109       -.67392E-06** at limit **
  16  Prefactor     .10000E-03    54.141        .68146E-05** at limit **
  17  Prefactor     59.955        107.30       -.29169E-05   -.84385E-05
  18  Prefactor     .10000E-03    27.438        .17578E-04** at limit **
  19  Prefactor     .10000E-03    45.742       -.15773E-04** at limit **
  20  Prefactor     152.91        94.122       -.78344E-06   -.12020E-04
  21  Prefactor     .10000E-03    20.536       -.51852E-05** at limit **
  22  Prefactor     12.869        10.001        .46122E-06    .24105E-04
  23  Prefactor     26.288        66.893        .61360E-05   -.27612E-04
  24  norm          2.9518        2.8098        .15434E-06    .14404E-04
  25  Normalizat    1.6299        .69082       -.27886E-04    .10120E-03
  26  Prefactor     .74692        .33259        .51360E-05   -.23724E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.779
  Prefactor  = 0.0001
  Prefactor  = 149.943
  Prefactor  = 8.16029
  Prefactor  = 0.0001
  norm       = 5.37715
  Prefactor  = 3.09463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.70446
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.9545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 152.912
  Prefactor  = 0.0001
  Prefactor  = 12.8689
  Prefactor  = 26.2879
  norm       = 2.95183
  Normalizat = 1.62989
  Prefactor  = 0.746924
 **********
 **   18 **HESSE 
 **********

 FCN=   1021.745     FROM HESSE     STATUS=OK           440 CALLS     3867 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.78        112.63        .38563E-04   -1.3618    
   2  Prefactor     .10000E-03    101.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     149.94        166.00        .32914E-04   -1.3253    
   4  Prefactor     8.1603        59.609        .14039E-03   -1.5137    
   5  Prefactor     .10000E-03    64.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3771        3.8187        .50653E-04   -1.5244    
   7  Prefactor     3.0946        75.581        .23135E-03   -1.5356    
   8  Prefactor     .10000E-03    62.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.763        .10230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7045        200.71        .15549E-03   -1.5190    
  11  Prefactor     .10000E-03    51.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    33.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.431        .11398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.121        .10399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    54.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     59.955        107.33        .51815E-04   -1.4158    
  18  Prefactor     .10000E-03    27.476        .16373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     152.91        94.272        .16299E-03   -1.3228    
  21  Prefactor     .10000E-03    20.570        .14146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.869        10.000        .86448E-04   -1.4990    
  23  Prefactor     26.288        67.363        .78136E-04   -1.4682    
  24  norm          2.9518        2.8176        .50970E-04   -1.5364    
  25  Normalizat    1.6299        .81214        .30776E-03   -.74191    
  26  Prefactor     .74692        .39053        .22974E-03   -1.0172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72681e-09
Minuit parameter uncertainties:
  1  112.855
  2  3.07565e-06
  3  166.52
  4  44.172
  5  1.77761e-05
  6  3.81887
  7  30.6302
  8  0.000271397
  9  8.09268e-05
  10  73.639
  11  8.06606e-05
  12  1.66907e-05
  13  0.000451641
  14  0.000134349
  15  0.0001029
  16  3.48961e-05
  17  107.681
  18  1.92528e-05
  19  2.87048e-05
  20  94.3653
  21  7.32751e-05
  22  10.0013
  23  67.5585
  24  2.81777
  25  0.818869
  26  0.391976
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  1.343e-04  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.469e-01  3.920e-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.630e+00  8.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 3.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/224990/likelihoodResults_403920001_404179201_4FGL_J1159.3-2142_daily_bin635.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): 102
logL (Free Index) = 1021.74518142
delta logL = -0.000352847848035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1021.74483079
delta logL = -2.21638947551e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10494E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3510       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74627       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=   1021.745     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      241 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    666.89        .11889E-01** at limit **
   2  alpha         1.7488        4.0887        .16498        .45395E-08
   3  Normalizat    1.6299        .93038E-01    .30778E-03   -.21713E-03
   4  Prefactor     .74694        .49627E-01    .22973E-03   -.26102E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.74884
  Normalizat = 1.62985
  Prefactor  = 0.746943
 **********
 **   18 **HESSE 
 **********

 FCN=   1021.745     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.508        .14688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7488        3.9033        .65991E-02   -.30518    
   3  Normalizat    1.6299        .71256        .61555E-04   -.74192    
   4  Prefactor     .74694        .38096        .45947E-04   -1.0171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91824e-10
Minuit parameter uncertainties:
  1  0.000514227
  2  371.525
  3  0.717086
  4  0.38231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224990': 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) = 1021.74482709
delta logL = 1.48917706611e-06

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  5.142e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.749e+00  3.715e+02  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:  7.469e-01  3.823e-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.630e+00  7.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/224990/cmap_HighResolution_403920001_404179201_4FGL_J1159.3-2142_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-04', job_status='DONE', photon_flux_upper_limit='3.33e-07', time_completed='2021-09-04 18:58:58.469123', job_id='224990', GAL2='0.75', fit_tolerance='1e-08', EG2='1.63', EG='1.63', time_epoch_completed='1630807138.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='635' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:58:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 224990: <4FGL_J1159.3-2142_daily_bin635> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin635> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:50:42 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:50: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 18:50:43 2021
Terminated at Sat Sep  4 18:58:58 2021
Results reported at Sat Sep  4 18:58:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin635 179.843 -21.7038 403920001 404179201 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 :                                   431.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   495 sec.
    Turnaround time :                            496 sec.

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

