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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin750
RA = 179.843, Dec = -21.7038
tmin = 433728001, tmax = 433987201
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='225176', job_status='RUN', time_executed='2021-09-04 18:54:28.336750', time_epoch_executed='1630806868.34' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225176/ft1_4FGL_J1159.3-2142_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225176/ft2_4FGL_J1159.3-2142_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225176/ft1_4FGL_J1159.3-2142_daily_bin750.fits outfile=/scratch/kocevski/225176/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin750.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.11
user 5.84
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225176/ft1_filtered_4FGL_J1159.3-2142_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/225176/ft2_4FGL_J1159.3-2142_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/225176/ltcube_433728001_433987201_4FGL_J1159.3-2142_daily_bin750.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/225176/ft2_4FGL_J1159.3-2142_daily_bin750.fits
.....................!
real 12.22
user 11.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225176/ft1_filtered_4FGL_J1159.3-2142_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/225176/ft2_4FGL_J1159.3-2142_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/225176/ltcube_433728001_433987201_4FGL_J1159.3-2142_daily_bin750.fits outfile=/scratch/kocevski/225176/expmap_433728001_433987201_4FGL_J1159.3-2142_daily_bin750.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/225176/ltcube_433728001_433987201_4FGL_J1159.3-2142_daily_bin750.fits
.....................!
real 189.39
user 184.84
sys 4.20

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/225176/ft1_filtered_4FGL_J1159.3-2142_daily_bin750.fits scfile=/scratch/kocevski/225176/ft2_4FGL_J1159.3-2142_daily_bin750.fits outfile=/scratch/kocevski/225176/cmap_433728001_433987201_4FGL_J1159.3-2142_daily_bin750.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.76
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225176/ft1_filtered_4FGL_J1159.3-2142_daily_bin750.fits scfile=/scratch/kocevski/225176/ft2_4FGL_J1159.3-2142_daily_bin750.fits outfile=/scratch/kocevski/225176/cmap_HighResolution_433728001_433987201_4FGL_J1159.3-2142_daily_bin750.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/225176/ft1_filtered_4FGL_J1159.3-2142_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/225176/ft2_4FGL_J1159.3-2142_daily_bin750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/225176/Model_4FGL_J1159.3-2142_daily_bin750.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/225176/ft1_filtered_4FGL_J1159.3-2142_daily_bin750.fits.....................!
real 53.30
user 51.95
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    95.153       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0251       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4917       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13299E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0977       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.236       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5795       1.0000         .10000E-03   10000.    
    12 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.853       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.047       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6342       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2933       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9165       1.0000         .10000E-03   10000.    
    24 'norm      '    1.5322       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88184       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1025       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=   5895.920     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3516 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.340        .46716E-07** at limit **
   2  Prefactor     .10000E-03    95.467       -.35713E-06** at limit **
   3  Prefactor     95.148        70.393        .21957E-06   -.32664E-05
   4  Prefactor     .10000E-03    7.3955        .52921E-07** at limit **
   5  Prefactor     .10000E-03    19.451       -.15058E-06** at limit **
   6  norm          1.0250        1.0414        .32140E-07    .13456E-04
   7  Prefactor     5.4871        11.349        .21442E-06   -.81096E-06
   8  Prefactor     .10000E-03    100.11        .13093E-06** at limit **
   9  Prefactor     1.0726        27.593        .13651E-05   -.21113E-04
  10  Prefactor     22.231        20.680        .10684E-06   -.10296E-05
  11  Prefactor     7.7003        193.31        .29956E-05    .90941E-05
  12  norm          .10000E-03    16.987        .31376E-06** at limit **
  13  Prefactor     16.839        27.973        .50075E-07    .13282E-04
  14  norm          3.2020        7.1416       -.30074E-06    .80001E-05
  15  Prefactor     .10000E-03    14.928       -.14661E-05** at limit **
  16  Prefactor     .10000E-03    42.413       -.21625E-05** at limit **
  17  Prefactor     30.052        44.511        .29448E-06    .26022E-04
  18  Prefactor     .10000E-03    31.893       -.57139E-05** at limit **
  19  Prefactor     5.4345        315.90        .55491E-05   -.97837E-05
  20  Prefactor     .10000E-03    10.068       -.62183E-07** at limit **
  21  Prefactor     .10000E-03    1.7048        .16102E-07** at limit **
  22  Prefactor     8.2932        2.5163       -.23265E-08   -.27757E-05
  23  Prefactor     2.9175        17.114        .36861E-05   -.89181E-05
  24  norm          1.5323        1.1295       -.40061E-07   -.18642E-04
  25  Normalizat    .88226        .28407       -.17795E-05    .17155E-04
  26  Prefactor     1.1023        .14387        .38678E-06   -.28070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.1483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.025
  Prefactor  = 5.48712
  Prefactor  = 0.0001
  Prefactor  = 1.07262
  Prefactor  = 22.2307
  Prefactor  = 7.70031
  norm       = 0.0001
  Prefactor  = 16.8387
  norm       = 3.202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0521
  Prefactor  = 0.0001
  Prefactor  = 5.43446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.29323
  Prefactor  = 2.91748
  norm       = 1.53226
  Normalizat = 0.882263
  Prefactor  = 1.10233
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.920     FROM HESSE     STATUS=OK           458 CALLS     3974 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    95.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     95.148        70.402        .41203E-04   -1.3754    
   4  Prefactor     .10000E-03    7.4059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0250        1.0532        .76429E-04   -1.5505    
   7  Prefactor     5.4871        11.341        .17146E-03   -1.5239    
   8  Prefactor     .10000E-03    100.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0726        32.418        .45439E-02   -1.5501    
  10  Prefactor     22.231        20.686        .84942E-04   -1.4765    
  11  Prefactor     7.7003        222.91        .14567E-03   -1.5153    
  12  norm          .10000E-03    17.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.839        27.372        .97563E-04   -1.4887    
  14  norm          3.2020        6.9560        .22651E-03   -1.5350    
  15  Prefactor     .10000E-03    15.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.052        44.328        .73092E-04   -1.4611    
  18  Prefactor     .10000E-03    32.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4345        322.85        .16924E-03   -1.5242    
  20  Prefactor     .10000E-03    10.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.7083        .97896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.2932        2.5174        .65220E-04   -1.5132    
  23  Prefactor     2.9175        17.222        .11895E-02   -1.5366    
  24  norm          1.5323        1.1243        .67255E-04   -1.5460    
  25  Normalizat    .88226        .32588        .39123E-03   -.97086    
  26  Prefactor     1.1023        .16815        .18361E-03   -.89392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17362e-07
Minuit parameter uncertainties:
  1  1.81681e-05
  2  0.000115288
  3  70.4641
  4  3.44809e-08
  5  1.92976e-05
  6  1.05317
  7  11.3453
  8  9.19507e-05
  9  11.8
  10  20.6926
  11  83.2036
  12  2.62501e-05
  13  27.3925
  14  6.95779
  15  2.91627e-05
  16  5.00316e-05
  17  44.3763
  18  6.66004e-06
  19  84.254
  20  1.62572e-06
  21  4.80465e-07
  22  2.51743
  23  14.1828
  24  1.12436
  25  0.326613
  26  0.168228
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.202e+00  6.958e+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.102e+00  1.682e-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:  8.823e-01  3.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225176/likelihoodResults_433728001_433987201_4FGL_J1159.3-2142_daily_bin750.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): 0
logL (Free Index) = 5895.86156548
delta logL = 0.0580721383349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5895.83130597
delta logL = 0.0883316477129

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9759       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3489       1.0000          .0000       5.0000    
     3 'Normalizat'    .82349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1211       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5895.831     FROM MIGRAD    STATUS=FAILED        80 CALLS      242 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9750        144.86        .13430E-03   -.31595E-02
   2  alpha         3.3494        3.3161        .18671E-01   -.21387E-03
   3  Normalizat    .82343        .49506        .40362E-03   -.75389E-03
   4  Prefactor     1.1211        .24655        .18224E-03   -.16049E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5895.831     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      332 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9750        144.86        .77877E-04   -.31595E-02
   2  alpha         3.3494        3.3161        .10847E-02   -.21387E-03
   3  Normalizat    .82343        .49506        .37150E-03   -.75389E-03
   4  Prefactor     1.1211        .24655        .15325E-03   -.16049E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5895.831     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      365 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9748        5.8907        .53721E-05   -.19046E-03
   2  alpha         3.3495        1.7743        .74682E-03   -.90728E-05
   3  Normalizat    .82342        .33500        .80724E-04   -.42250E-05
   4  Prefactor     1.1211        .16802        .36447E-04   -.15035E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97475
  alpha      = 3.34948
  Normalizat = 0.823423
  Prefactor  = 1.12114
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.831     FROM HESSE     STATUS=OK            23 CALLS      388 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9748        5.7926        .10744E-05   -1.5427    
   2  alpha         3.3495        1.7519        .29873E-04    .34670    
   3  Normalizat    .82342        .33515        .32290E-05   -.99206    
   4  Prefactor     1.1211        .16806        .72894E-05   -.88794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40742e-11
Minuit parameter uncertainties:
  1  5.79428
  2  1.97657
  3  0.335995
  4  0.16814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225176': 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) = 5895.83130591
delta logL = 0.0883317029193

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.975e+00  5.794e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.349e+00  1.977e+00  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.121e+00  1.681e-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:  8.234e-01  3.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/225176/cmap_HighResolution_433728001_433987201_4FGL_J1159.3-2142_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-05', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-09-04 19:07:01.884614', job_id='225176', GAL2='1.12', fit_tolerance='1e-08', EG2='0.82', EG='0.88', time_epoch_completed='1630807621.88', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='8.83e-02', ts2='0.62', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='750' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:07:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 225176: <4FGL_J1159.3-2142_daily_bin750> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin750> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:50:57 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:50:59 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:59 2021
Terminated at Sat Sep  4 19:07:02 2021
Results reported at Sat Sep  4 19:07:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin750 179.843 -21.7038 433728001 433987201 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 :                                   751.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

