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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1358
RA = 179.843, Dec = -21.7038
tmin = 591321601, tmax = 591580801
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='229840', job_status='RUN', time_executed='2021-09-04 19:06:24.397824', time_epoch_executed='1630807584.4' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229840

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229840/ft1_4FGL_J1159.3-2142_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229840/ft2_4FGL_J1159.3-2142_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229840/ft1_4FGL_J1159.3-2142_daily_bin1358.fits outfile=/scratch/kocevski/229840/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1358.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=591321601.0 tmax=591580801.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.91
user 2.67
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229840/ft1_filtered_4FGL_J1159.3-2142_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/229840/ft2_4FGL_J1159.3-2142_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/229840/ltcube_591321601_591580801_4FGL_J1159.3-2142_daily_bin1358.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/229840/ft2_4FGL_J1159.3-2142_daily_bin1358.fits
.....................!
real 13.65
user 13.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229840/ft1_filtered_4FGL_J1159.3-2142_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/229840/ft2_4FGL_J1159.3-2142_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/229840/ltcube_591321601_591580801_4FGL_J1159.3-2142_daily_bin1358.fits outfile=/scratch/kocevski/229840/expmap_591321601_591580801_4FGL_J1159.3-2142_daily_bin1358.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/229840/ltcube_591321601_591580801_4FGL_J1159.3-2142_daily_bin1358.fits
.....................!
real 194.86
user 185.37
sys 4.81

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/229840/ft1_filtered_4FGL_J1159.3-2142_daily_bin1358.fits scfile=/scratch/kocevski/229840/ft2_4FGL_J1159.3-2142_daily_bin1358.fits outfile=/scratch/kocevski/229840/cmap_591321601_591580801_4FGL_J1159.3-2142_daily_bin1358.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229840/ft1_filtered_4FGL_J1159.3-2142_daily_bin1358.fits scfile=/scratch/kocevski/229840/ft2_4FGL_J1159.3-2142_daily_bin1358.fits outfile=/scratch/kocevski/229840/cmap_HighResolution_591321601_591580801_4FGL_J1159.3-2142_daily_bin1358.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11569E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17184E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.878       1.0000         .10000E-03   10000.    
     5 'Prefactor '    905.25       1.0000         .10000E-03   10000.    
     6 'norm      '    .13282E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.085       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23443E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37937E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0358       1.0000         .10000E-03   10000.    
    12 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9999.2       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9999.4       1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54943E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .34579E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11226E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88643E-08   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=   119.4010     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     4299 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.153        .53908E-07** at limit **
   2  Prefactor     .10000E-03    144.42       -.61956E-07** at limit **
   3  Prefactor     .10000E-03    186.96       -.14225E-05** at limit **
   4  Prefactor     40.918        58.418       -.66974E-06   -.85459E-04
   5  Prefactor     904.86        657.52       -.32148E-05   -.38348E-04
   6  norm          .10000E-03    34.383        .48367E-05** at limit **
   7  Prefactor     44.021        60.725       -.25132E-05   -.13613E-03
   8  Prefactor     .10000E-03    648.15        .52217E-06** at limit **
   9  Prefactor     .10000E-03    6339.6       -.62672E-06** at limit **
  10  Prefactor    10000.0        6683.3        .88152E-06** at limit **
  11  Prefactor     .10001E-03    9872.7       -.26247E-05** at limit **
  12  norm         10000.0        9195.2        .73358E-06** at limit **
  13  Prefactor    10000.0        7192.8        .24451E-06** at limit **
  14  norm         10000.0        1940.1        .14584E-06** at limit **
  15  Prefactor    10000.0        6787.8        .19592E-06** at limit **
  16  Prefactor    10000.0        6099.1        .93767E-06** at limit **
  17  Prefactor    10000.0        9038.3        .10408E-05** at limit **
  18  Prefactor    10000.0        7302.0        .38661E-06** at limit **
  19  Prefactor    10000.0        5086.3        .62446E-06** at limit **
  20  Prefactor     .10000E-03    489.25       -.10024E-06** at limit **
  21  Prefactor     .10000E-03    6177.2        .55378E-07** at limit **
  22  Prefactor     .10000E-03    134.90        .96899E-09** at limit **
  23  Prefactor     .10000E-03    97.823       -.60579E-10** at limit **
  24  norm          .10000E-03    2.3940       -.65203E-11** at limit **
  25  Normalizat    .10000E-01    .20161        .30028E-05** at limit **
  26  Prefactor     .13665E-10    .23722        .18803E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.9175
  Prefactor  = 904.858
  norm       = 0.0001
  Prefactor  = 44.0211
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 0.000100005
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.36646e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   119.4010     FROM HESSE     STATUS=OK           430 CALLS     4729 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.152        .81624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    144.42        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    186.86        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.918        58.533        .31348E-03   -1.4428    
   5  Prefactor     904.86        662.20        .69703E-04   -.95972    
   6  norm          .10000E-03    35.409        .12470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.021        63.434        .30191E-03   -1.4380    
   8  Prefactor     .10000E-03    648.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6340.3        .18422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        6683.8        .19034E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    9872.7        .24756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm         10000.0        9193.5        .18350E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        7192.9        .18186E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        1940.0        .20662E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        6787.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        6100.2        .24607E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9038.9        .23047E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        7302.5        .19963E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        5086.2        .18390E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    489.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6177.2        .21110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    134.90        .12448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    97.822        .10594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.3939        .16546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .20192        .15233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .13665E-10    .23731        .32466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35973e-10
Minuit parameter uncertainties:
  1  3.83815e-06
  2  1.44087e-05
  3  0.000353116
  4  58.6157
  5  668.222
  6  0.000255088
  7  63.5312
  8  0.000213415
  9  0.00270639
  10  0.0250758
  11  0.0208525
  12  0.0231663
  13  0.000200285
  14  0.000732868
  15  0.000621818
  16  0.0743963
  17  0.0433321
  18  0.00252408
  19  0.0194045
  20  0.000229883
  21  0.000313536
  22  1.626e-06
  23  2.02733e-09
  24  9.09541e-10
  25  4.22335e-07
  26  3.61597e-06
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e+04  7.329e-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:  1.366e-11  3.616e-06  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.000e-02  4.223e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.75
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 9.07e-05 +/- 6.64e-12
Energy Flux (Fixed Index): 3.13e-02 +/- 2.29e-09

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) = 99.225501933
delta logL = 20.1755178236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 99.2242369229
delta logL = 20.1767828336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .15621E-06   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=   99.22423     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      170 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        706.07        .90715E-02** at limit **
   2  alpha         5.0000        .49113E-01    .46267E-01** at limit **
   3  Normalizat    .10000E-01    .15376        .54916E-01** at limit **
   4  Prefactor     .28960E-11    .15716        .55732E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 2.89602e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   99.22423     FROM HESSE     STATUS=OK            23 CALLS      193 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        706.07        .18143E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .49100E-01    .96811E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .15395        .12130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .28960E-11    .15938        .12258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00668e-11
Minuit parameter uncertainties:
  1  0.00115774
  2  2.36723e-08
  3  3.52335e-07
  4  1.36237e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229840': 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) = 99.2242275908
delta logL = 20.1767921658

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e+04  1.158e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.000e+00  2.367e-08  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:  2.896e-12  1.362e-06  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.000e-02  3.523e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.11
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.71e-03 +/- 9.52e-10
Energy Flux (Free Index): 1.06e+00 +/- 1.31e-07

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/229840/cmap_HighResolution_591321601_591580801_4FGL_J1159.3-2142_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.07e-05', energy_flux2='1.06e+00', photon_flux_error='6.64e-12', dlogl='2.02e+01', energy_flux='3.13e-02', photon_flux2='7.71e-03', job_status='DONE', time_completed='2021-09-04 19:12:10.619865', photon_index_error2='0.00', photon_index2='5.00', ts='5.75', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='1.31e-07', EG='0.01', time_epoch_completed='1630807930.62', return_code='0', job_id='229840', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='2.29e-09', photon_flux_error2='9.52e-10', ts2='46.11', photon_index='2.38' WHERE bin_id='1358' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:12:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 229840: <4FGL_J1159.3-2142_daily_bin1358> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1358 179.843 -21.7038 591321601 591580801 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 :                                   333.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             545.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   396 sec.
    Turnaround time :                            398 sec.

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

