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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1548
RA = 179.843, Dec = -21.7038
tmin = 640569601, tmax = 640828801
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='230172', job_status='RUN', time_executed='2021-09-04 19:06:25.621588', time_epoch_executed='1630807585.62' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230172

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230172/ft1_4FGL_J1159.3-2142_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230172/ft2_4FGL_J1159.3-2142_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230172/ft1_4FGL_J1159.3-2142_daily_bin1548.fits outfile=/scratch/kocevski/230172/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1548.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=640569601.0 tmax=640828801.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.95
user 2.74
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230172/ft1_filtered_4FGL_J1159.3-2142_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/230172/ft2_4FGL_J1159.3-2142_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/230172/ltcube_640569601_640828801_4FGL_J1159.3-2142_daily_bin1548.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/230172/ft2_4FGL_J1159.3-2142_daily_bin1548.fits
.....................!
real 12.60
user 12.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230172/ft1_filtered_4FGL_J1159.3-2142_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/230172/ft2_4FGL_J1159.3-2142_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/230172/ltcube_640569601_640828801_4FGL_J1159.3-2142_daily_bin1548.fits outfile=/scratch/kocevski/230172/expmap_640569601_640828801_4FGL_J1159.3-2142_daily_bin1548.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/230172/ltcube_640569601_640828801_4FGL_J1159.3-2142_daily_bin1548.fits
.....................!
real 190.96
user 185.43
sys 5.12

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/230172/ft1_filtered_4FGL_J1159.3-2142_daily_bin1548.fits scfile=/scratch/kocevski/230172/ft2_4FGL_J1159.3-2142_daily_bin1548.fits outfile=/scratch/kocevski/230172/cmap_640569601_640828801_4FGL_J1159.3-2142_daily_bin1548.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230172/ft1_filtered_4FGL_J1159.3-2142_daily_bin1548.fits scfile=/scratch/kocevski/230172/ft2_4FGL_J1159.3-2142_daily_bin1548.fits outfile=/scratch/kocevski/230172/cmap_HighResolution_640569601_640828801_4FGL_J1159.3-2142_daily_bin1548.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230172/ft1_filtered_4FGL_J1159.3-2142_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/230172/ft2_4FGL_J1159.3-2142_daily_bin1548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230172/Model_4FGL_J1159.3-2142_daily_bin1548.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/230172/ft1_filtered_4FGL_J1159.3-2142_daily_bin1548.fits....................!
real 29.95
user 28.58
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.9810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    117.06       1.0000         .10000E-03   10000.    
    11 'Prefactor '    88.937       1.0000         .10000E-03   10000.    
    12 'norm      '    135.05       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.334       1.0000         .10000E-03   10000.    
    14 'norm      '    14.748       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    353.09       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .65204E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16354E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6424       1.0000         .10000E-03   10000.    
    23 'Prefactor '    76.029       1.0000         .10000E-03   10000.    
    24 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1743       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69522       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=   2092.520     FROM MIGRAD    STATUS=CONVERGED   1089 CALLS     4019 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.571        .18142E-02** at limit **
   2  Prefactor     .10000E-03    66.205        .18142E-02** at limit **
   3  Prefactor     30.694        51.210        .72310E-04   -.61317E-05
   4  Prefactor     .10000E-03    17.324        .18142E-02** at limit **
   5  Prefactor     .10000E-03    38.886        .18142E-02** at limit **
   6  norm          2.9807        2.3458        .58050E-04   -.88521E-04
   7  Prefactor     .10000E-03    5.7452        .10703E-02** at limit **
   8  Prefactor     .10000E-03    20.390        .18142E-02** at limit **
   9  Prefactor     .10000E-03    5.7906        .10743E-02** at limit **
  10  Prefactor     117.04        50.734        .37190E-04   -.47077E-05
  11  Prefactor     88.908        82.173        .21303E-03   -.14142E-05
  12  norm          134.99        88.829        .17328E-03    .14992E-04
  13  Prefactor     18.325        176.72        .93540E-04    .74746E-05
  14  norm          14.733        31.330        .10430E-03    .45782E-04
  15  Prefactor     .10000E-03    6.9074        .11736E-02** at limit **
  16  Prefactor     353.81        328.56        .10837E-03    .11236E-04
  17  Prefactor     .10000E-03    46.077        .18142E-02** at limit **
  18  Prefactor     .10028E-03    223.26        .15710    ** at limit **
  19  Prefactor     .10000E-03    285.84        .18142E-02** at limit **
  20  Prefactor     .10000E-03    60.122        .18142E-02** at limit **
  21  Prefactor     .10000E-03    13.086        .16134E-02** at limit **
  22  Prefactor     8.6424        6.2806        .95265E-04   -.29118E-04
  23  Prefactor     76.008        71.269        .23025E-03    .68630E-05
  24  norm          .10000E-03    13.713        .21824E-02** at limit **
  25  Normalizat    1.1740        .52721        .33714E-03   -.24212E-04
  26  Prefactor     .69545        .27246        .22357E-03    .12408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 117.044
  Prefactor  = 88.9075
  norm       = 134.995
  Prefactor  = 18.3249
  norm       = 14.7331
  Prefactor  = 0.0001
  Prefactor  = 353.814
  Prefactor  = 0.0001
  Prefactor  = 0.000100276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.6424
  Prefactor  = 76.0076
  norm       = 0.0001
  Normalizat = 1.17403
  Prefactor  = 0.695454
 **********
 **   18 **HESSE 
 **********

 FCN=   2092.520     FROM HESSE     STATUS=OK           440 CALLS     4459 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.694        51.205        .28924E-05   -1.4599    
   4  Prefactor     .10000E-03    17.327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.886        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9807        2.3459        .23220E-05   -1.5363    
   7  Prefactor     .10000E-03    5.7453        .21407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.390        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7907        .21486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     117.04        50.734        .74379E-05   -1.3540    
  11  Prefactor     88.908        82.174        .85211E-05   -1.3819    
  12  norm          134.99        88.831        .69311E-05   -1.3379    
  13  Prefactor     18.325        176.77        .37416E-05   -1.4852    
  14  norm          14.733        31.327        .41718E-05   -1.4940    
  15  Prefactor     .10000E-03    6.9075        .23471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     353.81        329.69        .21673E-04   -1.1923    
  17  Prefactor     .10000E-03    46.078        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10028E-03    248.83        .14775       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    285.85        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    60.124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.087        .32268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.6424        6.2805        .38106E-05   -1.5120    
  23  Prefactor     76.008        71.269        .92102E-05   -1.3962    
  24  norm          .10000E-03    13.788        .43647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1740        .52785        .13486E-04   -.87409    
  26  Prefactor     .69545        .27284        .89426E-05   -1.0371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84105e-11
Minuit parameter uncertainties:
  1  6.54849e-06
  2  6.39736e-05
  3  51.2782
  4  6.78329e-06
  5  3.85275e-05
  6  2.34593
  7  4.15312e-06
  8  3.50121e-05
  9  2.70273e-05
  10  50.7529
  11  82.2797
  12  88.9191
  13  114.273
  14  31.3621
  15  2.93728e-05
  16  331.462
  17  5.25189e-05
  18  0.0166316
  19  0.000473395
  20  7.30015e-05
  21  2.22748e-05
  22  6.28096
  23  71.3494
  24  1.52855e-05
  25  0.530265
  26  0.273369
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.473e+01  3.136e+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:  6.955e-01  2.734e-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.174e+00  5.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/230172/likelihoodResults_640569601_640828801_4FGL_J1159.3-2142_daily_bin1548.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) = 2091.42584923
delta logL = 1.09393582198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2091.40407159
delta logL = 1.11571346446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5766       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8776       1.0000          .0000       5.0000    
     3 'Normalizat'    .93316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77586       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=   2091.404     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5648        67.521        .47041E-02    .11330E-03
   2  alpha         3.8788        4.4388        .17205        .20315E-04
   3  Normalizat    .93320        .19675        .83581E-01    .68688E-05
   4  Prefactor     .77586        .10476        .43402E-01    .29592E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.56479
  alpha      = 3.87884
  Normalizat = 0.933195
  Prefactor  = 0.775857
 **********
 **   18 **HESSE 
 **********

 FCN=   2091.404     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .96E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5648        9.4611        .58330E-04   -1.5281    
   2  alpha         3.8788        1.1414        .75260E-03    .58421    
   3  Normalizat    .93320        .52203        .37005E-03   -.95303    
   4  Prefactor     .77586        .26926        .21199E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56031e-15
Minuit parameter uncertainties:
  1  9.46415
  2  1.2078
  3  0.524904
  4  0.269715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230172': 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) = 2091.40407057
delta logL = 1.11571448635

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  4.565e+00  9.464e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.879e+00  1.208e+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:  7.759e-01  2.697e-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.332e-01  5.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 3.88 +/- 1.21
Photon Flux (Free Index): 4.51e-07 +/- 3.05e-07
Energy Flux (Free Index): 7.38e-05 +/- 4.91e-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/230172/cmap_HighResolution_640569601_640828801_4FGL_J1159.3-2142_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-04', comment='SUCCESS', energy_flux2='7.38e-05', dlogl='1.12e+00', photon_flux2='4.51e-07', job_status='DONE', time_completed='2021-09-04 19:14:32.934283', photon_index_error2='1.21', photon_index2='3.88', ts='0.85', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='4.87e-07', energy_flux_error2='4.91e-05', EG='1.17', time_epoch_completed='1630808072.93', return_code='0', job_id='230172', GAL2='0.78', EG2='0.93', return_code2='0', photon_flux_error2='3.05e-07', ts2='3.37', photon_index='2.38' WHERE bin_id='1548' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:14:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 230172: <4FGL_J1159.3-2142_daily_bin1548> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1548 179.843 -21.7038 640569601 640828801 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 :                                   481.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            517 sec.

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

