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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin483
RA = 179.843, Dec = -21.7038
tmin = 364521601, tmax = 364780801
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='224748', job_status='RUN', time_executed='2021-09-04 18:54:24.875616', time_epoch_executed='1630806864.88' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224748/ft1_4FGL_J1159.3-2142_daily_bin483.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224748/ft2_4FGL_J1159.3-2142_daily_bin483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224748/ft1_4FGL_J1159.3-2142_daily_bin483.fits outfile=/scratch/kocevski/224748/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin483.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=364521601.0 tmax=364780801.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.20
user 2.99
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224748/ft1_filtered_4FGL_J1159.3-2142_daily_bin483.fits" evtable="EVENTS" scfile=/scratch/kocevski/224748/ft2_4FGL_J1159.3-2142_daily_bin483.fits sctable="SC_DATA" outfile=/scratch/kocevski/224748/ltcube_364521601_364780801_4FGL_J1159.3-2142_daily_bin483.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/224748/ft2_4FGL_J1159.3-2142_daily_bin483.fits
.....................!
real 11.95
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224748/ft1_filtered_4FGL_J1159.3-2142_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/224748/ft2_4FGL_J1159.3-2142_daily_bin483.fits sctable="SC_DATA" expcube=/scratch/kocevski/224748/ltcube_364521601_364780801_4FGL_J1159.3-2142_daily_bin483.fits outfile=/scratch/kocevski/224748/expmap_364521601_364780801_4FGL_J1159.3-2142_daily_bin483.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/224748/ltcube_364521601_364780801_4FGL_J1159.3-2142_daily_bin483.fits
.....................!
real 189.97
user 185.31
sys 4.29

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/224748/ft1_filtered_4FGL_J1159.3-2142_daily_bin483.fits scfile=/scratch/kocevski/224748/ft2_4FGL_J1159.3-2142_daily_bin483.fits outfile=/scratch/kocevski/224748/cmap_364521601_364780801_4FGL_J1159.3-2142_daily_bin483.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224748/ft1_filtered_4FGL_J1159.3-2142_daily_bin483.fits scfile=/scratch/kocevski/224748/ft2_4FGL_J1159.3-2142_daily_bin483.fits outfile=/scratch/kocevski/224748/cmap_HighResolution_364521601_364780801_4FGL_J1159.3-2142_daily_bin483.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/224748/ft1_filtered_4FGL_J1159.3-2142_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/224748/ft2_4FGL_J1159.3-2142_daily_bin483.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224748/Model_4FGL_J1159.3-2142_daily_bin483.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/224748/ft1_filtered_4FGL_J1159.3-2142_daily_bin483.fits.....................!
real 53.83
user 52.37
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.4312       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.845       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9124       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.278       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.481       1.0000         .10000E-03   10000.    
    14 'norm      '    8.0772       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.865       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2044       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 '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18837       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.131       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0390       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87936       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1328       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=   5929.136     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3055 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.227        .34182E-05** at limit **
   2  Prefactor     .10000E-03    80.764       -.34772E-06** at limit **
   3  Prefactor     .10000E-03    22.903        .34700E-05** at limit **
   4  Prefactor     .10000E-03    13.985        .16435E-05** at limit **
   5  Prefactor     .10000E-03    55.108        .21676E-05** at limit **
   6  norm          3.4316        1.8103        .13065E-06   -.95734E-04
   7  Prefactor     .10000E-03    4.7730        .11836E-06** at limit **
   8  Prefactor     35.845        39.052        .33663E-06    .33169E-06
   9  Prefactor     7.9141        8.9385        .27014E-05   -.35146E-04
  10  Prefactor     .10000E-03    35.222       -.36078E-05** at limit **
  11  Prefactor     .10000E-03    72.563        .31972E-05** at limit **
  12  norm          22.278        23.706       -.15181E-07    .52685E-05
  13  Prefactor     30.483        32.324       -.49136E-05    .48311E-04
  14  norm          8.0757        10.025        .42509E-05   -.83808E-04
  15  Prefactor     19.885        11.086       -.12113E-05    .60937E-03
  16  Prefactor     .10000E-03    45.906       -.17934E-05** at limit **
  17  Prefactor     1.1173        451.02       -.37319E-04   -.21491E-04
  18  Prefactor     .10000E-03    17.617       -.17190E-05** at limit **
  19  Prefactor     .10000E-03    14.713       -.79901E-06** at limit **
  20  Prefactor     .10000E-03    11.141       -.42073E-06** at limit **
  21  Prefactor     .16431        6.8289        .50257E-06   -.23174E-04
  22  Prefactor     10.134        3.6878       -.97594E-07   -.24440E-03
  23  Prefactor     .10000E-03    8.7955        .20117E-06** at limit **
  24  norm          1.0387        1.3133        .18664E-06    .41731E-03
  25  Normalizat    .87939        .29120       -.36200E-05    .64095E-04
  26  Prefactor     1.1329        .14985        .81726E-07    .17542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.4316
  Prefactor  = 0.0001
  Prefactor  = 35.8453
  Prefactor  = 7.91408
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 22.2781
  Prefactor  = 30.4826
  norm       = 8.0757
  Prefactor  = 19.8854
  Prefactor  = 0.0001
  Prefactor  = 1.11735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.16431
  Prefactor  = 10.1344
  Prefactor  = 0.0001
  norm       = 1.03871
  Normalizat = 0.879391
  Prefactor  = 1.13293
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.136     FROM HESSE     STATUS=OK           458 CALLS     3513 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    80.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4316        1.8099        .71103E-04   -1.5337    
   7  Prefactor     .10000E-03    4.7879        .16428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.845        39.063        .66937E-04   -1.4510    
   9  Prefactor     7.9141        9.0222        .71273E-03   -1.5145    
  10  Prefactor     .10000E-03    35.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    73.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.278        23.719        .84862E-04   -1.4764    
  13  Prefactor     30.483        32.615        .72572E-04   -1.4603    
  14  norm          8.0757        10.218        .70537E-03   -1.5140    
  15  Prefactor     19.885        11.179        .89864E-04   -1.4816    
  16  Prefactor     .10000E-03    45.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1173        515.04        .41309E-02   -1.5497    
  18  Prefactor     .10000E-03    17.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .16431        67.620        .36271E-02   -1.5627    
  22  Prefactor     10.134        3.7395        .80998E-04   -1.5071    
  23  Prefactor     .10000E-03    8.8339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0387        1.1975        .95703E-03   -1.5504    
  25  Normalizat    .87939        .33297        .40555E-03   -.97188    
  26  Prefactor     1.1329        .17379        .19148E-03   -.88421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98644e-08
Minuit parameter uncertainties:
  1  0.000443638
  2  4.47761e-05
  3  0.000276927
  4  9.5784e-05
  5  0.000270294
  6  1.8099
  7  7.54542e-06
  8  39.0911
  9  9.02374
  10  0.000275513
  11  0.000410511
  12  23.729
  13  32.6343
  14  10.2207
  15  11.1799
  16  0.000174595
  17  48.4007
  18  8.65374e-05
  19  3.83876e-05
  20  3.23433e-05
  21  6.67209
  22  3.73961
  23  1.66642e-05
  24  1.1975
  25  0.333751
  26  0.173879
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  8.076e+00  1.022e+01  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.133e+00  1.739e-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.794e-01  3.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 9.27e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 3.20e-05

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

Saving results to:
/scratch/kocevski/224748/likelihoodResults_364521601_364780801_4FGL_J1159.3-2142_daily_bin483.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) = 5929.03017659
delta logL = 0.10569745342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5929.02351142
delta logL = 0.112362621772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7014       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9132       1.0000          .0000       5.0000    
     3 'Normalizat'    .90972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1240       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=   5929.024     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7099        327.74        .33972E-02   -.83271E-04
   2  alpha         1.9150        3.7916        .42684        .19377E-04
   3  Normalizat    .90934        .36479        .90242E-01   -.17821E-04
   4  Prefactor     1.1242        .11892        .36738E-01   -.14360E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.70987
  alpha      = 1.915
  Normalizat = 0.909341
  Prefactor  = 1.12418
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.024     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7099        8.0492        .13589E-03   -1.5118    
   2  alpha         1.9150        .94575        .20230E-01   -.23619    
   3  Normalizat    .90934        .32327        .39968E-03   -.96133    
   4  Prefactor     1.1242        .17066        .19215E-03   -.88698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61726e-10
Minuit parameter uncertainties:
  1  8.05024
  2  0.971408
  3  0.323964
  4  0.170747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224748': 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) = 5929.0235093
delta logL = 0.112364740503

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  8.710e+00  8.050e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.915e+00  9.714e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.124e+00  1.707e-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:  9.093e-01  3.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 1.92 +/- 0.97
Photon Flux (Free Index): 4.55e-08 +/- 6.87e-08
Energy Flux (Free Index): 2.90e-05 +/- 2.81e-05

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/224748/cmap_HighResolution_364521601_364780801_4FGL_J1159.3-2142_daily_bin483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-05', comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='2.90e-05', photon_flux_error='9.27e-08', dlogl='1.12e-01', energy_flux='2.53e-05', photon_flux2='4.55e-08', job_status='DONE', time_completed='2021-09-04 19:06:18.140820', photon_index_error2='0.97', photon_index2='1.92', ts='1.83', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='2.06e-07', energy_flux_error2='2.81e-05', EG='0.88', time_epoch_completed='1630807578.14', return_code='0', job_id='224748', GAL2='1.12', EG2='0.91', return_code2='0', energy_flux_error='3.20e-05', photon_flux_error2='6.87e-08', ts2='2.09', photon_index='2.38' WHERE bin_id='483' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:06:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 224748: <4FGL_J1159.3-2142_daily_bin483> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin483 179.843 -21.7038 364521601 364780801 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 :                                   710.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

