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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin520
RA = 179.843, Dec = -21.7038
tmin = 374112001, tmax = 374371201
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='224805', job_status='RUN', time_executed='2021-09-04 18:51:18.050636', time_epoch_executed='1630806678.05' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224805

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224805/ft1_4FGL_J1159.3-2142_daily_bin520.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224805/ft2_4FGL_J1159.3-2142_daily_bin520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224805/ft1_4FGL_J1159.3-2142_daily_bin520.fits outfile=/scratch/kocevski/224805/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin520.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=374112001.0 tmax=374371201.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.44
user 3.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/224805/ft2_4FGL_J1159.3-2142_daily_bin520.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/224805/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin520.fits evtable="EVENTS" outfile="/scratch/kocevski/224805/ft1_filtered_4FGL_J1159.3-2142_daily_bin520.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/224805/ft1_filtered_4FGL_J1159.3-2142_daily_bin520.fits" evtable="EVENTS" scfile=/scratch/kocevski/224805/ft2_4FGL_J1159.3-2142_daily_bin520.fits sctable="SC_DATA" outfile=/scratch/kocevski/224805/ltcube_374112001_374371201_4FGL_J1159.3-2142_daily_bin520.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/224805/ft2_4FGL_J1159.3-2142_daily_bin520.fits
.....................!
real 12.13
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224805/ft1_filtered_4FGL_J1159.3-2142_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/224805/ft2_4FGL_J1159.3-2142_daily_bin520.fits sctable="SC_DATA" expcube=/scratch/kocevski/224805/ltcube_374112001_374371201_4FGL_J1159.3-2142_daily_bin520.fits outfile=/scratch/kocevski/224805/expmap_374112001_374371201_4FGL_J1159.3-2142_daily_bin520.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/224805/ltcube_374112001_374371201_4FGL_J1159.3-2142_daily_bin520.fits
.....................!
real 193.45
user 188.76
sys 4.30

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/224805/ft1_filtered_4FGL_J1159.3-2142_daily_bin520.fits scfile=/scratch/kocevski/224805/ft2_4FGL_J1159.3-2142_daily_bin520.fits outfile=/scratch/kocevski/224805/cmap_374112001_374371201_4FGL_J1159.3-2142_daily_bin520.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.77
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224805/ft1_filtered_4FGL_J1159.3-2142_daily_bin520.fits scfile=/scratch/kocevski/224805/ft2_4FGL_J1159.3-2142_daily_bin520.fits outfile=/scratch/kocevski/224805/cmap_HighResolution_374112001_374371201_4FGL_J1159.3-2142_daily_bin520.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/224805/ft1_filtered_4FGL_J1159.3-2142_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/224805/ft2_4FGL_J1159.3-2142_daily_bin520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224805/Model_4FGL_J1159.3-2142_daily_bin520.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/224805/ft1_filtered_4FGL_J1159.3-2142_daily_bin520.fits.....................!
real 57.54
user 56.08
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1713       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.0514       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34026E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4047       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9211       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.218       1.0000         .10000E-03   10000.    
    14 'norm      '    .17937E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3119       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.055       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3370       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.5797       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4238       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74996       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=   6269.357     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3114 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.660        .19621E-05** at limit **
   2  Prefactor     6.1741        228.88        .47616E-05   -.34459E-05
   3  Prefactor     .10000E-03    25.414        .15438E-05** at limit **
   4  Prefactor     .10000E-03    7.4259        .38491E-06** at limit **
   5  Prefactor     .10000E-03    89.526        .22522E-05** at limit **
   6  norm          6.0518        1.8785       -.32782E-07   -.79485E-03
   7  Prefactor     .10047E-03    6.9838        .14039E-05** at limit **
   8  Prefactor     4.4569        55.601        .67206E-05   -.63704E-06
   9  Prefactor     .10010E-03    4.3028        .29142E-05** at limit **
  10  Prefactor     .10000E-03    18.858       -.12649E-05** at limit **
  11  Prefactor     .10000E-03    16.639       -.11097E-05** at limit **
  12  norm          3.9202        22.544        .10001E-04   -.20794E-04
  13  Prefactor     24.227        17.158       -.52773E-06   -.30587E-03
  14  norm          .10000E-03    3.0860        .54300E-06** at limit **
  15  Prefactor     .10000E-03    2.7139       -.26482E-06** at limit **
  16  Prefactor     .10000E-03    31.692       -.60602E-05** at limit **
  17  Prefactor     .10000E-03    63.888        .17148E-05** at limit **
  18  Prefactor     37.173        34.824       -.44267E-05    .93422E-04
  19  Prefactor     2.1423        674.53       -.21634E-04   -.42574E-05
  20  Prefactor     32.070        30.053        .11500E-05   -.42090E-05
  21  Prefactor     .10000E-03    4.2167        .17524E-06** at limit **
  22  Prefactor     8.3358        2.6130        .33777E-07   -.51609E-04
  23  Prefactor     .10000E-03    24.651        .18466E-05** at limit **
  24  norm          2.5797        1.3834        .47198E-07   -.30864E-04
  25  Normalizat    1.4238        .24096       -.11436E-05   -.58003E-03
  26  Prefactor     .74996        .12184       -.16971E-05   -.67648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.17415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.05177
  Prefactor  = 0.000100465
  Prefactor  = 4.45693
  Prefactor  = 0.000100102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92021
  Prefactor  = 24.227
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 37.1726
  Prefactor  = 2.14234
  Prefactor  = 32.0702
  Prefactor  = 0.0001
  Prefactor  = 8.33583
  Prefactor  = 0.0001
  norm       = 2.57967
  Normalizat = 1.42384
  Prefactor  = 0.749958
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.357     FROM HESSE     STATUS=OK           456 CALLS     3570 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1741        228.74        .16160E-03   -1.5211    
   3  Prefactor     .10000E-03    25.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    90.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0518        1.8728        .57242E-04   -1.5216    
   7  Prefactor     .10047E-03    99.673        .39023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4569        54.766        .19189E-03   -1.5286    
   9  Prefactor     .10010E-03    15.861        .30407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9202        22.718        .10187E-02   -1.5312    
  13  Prefactor     24.227        15.938        .81398E-04   -1.4723    
  14  norm          .10000E-03    7.4612        .25050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7328        .12726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    64.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.173        35.578        .65776E-04   -1.4488    
  19  Prefactor     2.1423        750.79        .26983E-02   -1.5415    
  20  Prefactor     32.070        30.064        .70772E-04   -1.4575    
  21  Prefactor     .10000E-03    4.3149        .31713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.3358        2.6099        .69728E-04   -1.5130    
  23  Prefactor     .10000E-03    25.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.5797        1.3818        .65884E-04   -1.5387    
  25  Normalizat    1.4238        .28366        .30223E-03   -.79942    
  26  Prefactor     .74996        .14392        .20641E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15922e-08
Minuit parameter uncertainties:
  1  7.72179e-05
  2  75.4737
  3  8.1044e-05
  4  1.70748e-05
  5  0.000272591
  6  1.87284
  7  0.0136425
  8  31.282
  9  0.00254159
  10  1.62137e-05
  11  5.01436e-05
  12  18.8849
  13  15.9408
  14  0.000317063
  15  2.09344e-05
  16  2.68072e-05
  17  0.000534363
  18  35.5983
  19  81.2572
  20  30.0782
  21  1.08992e-05
  22  2.60998
  23  0.000218493
  24  1.38184
  25  0.283971
  26  0.143993
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  7.500e-01  1.440e-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.424e+00  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 8.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/224805/likelihoodResults_374112001_374371201_4FGL_J1159.3-2142_daily_bin520.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6269.35715229
delta logL = -0.000638584368971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6269.35651484
delta logL = -1.13526402856e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4277       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75020       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=   6269.214     FROM MIGRAD    STATUS=CONVERGED    169 CALLS      335 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62576E-01    10.169        .25149E-02    .14469E-02
   2  alpha         5.0000        4.3438        .50000    ** at limit **
   3  Normalizat    1.3702        .23698        .30223E-03   -.69666E-04
   4  Prefactor     .76678        .82531E-01    .20641E-03    .28385E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0625756
  alpha      = 5
  Normalizat = 1.37021
  Prefactor  = 0.766783
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.214     FROM HESSE     STATUS=OK            31 CALLS      366 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62576E-01    .13165        .35465E-04   -1.5658    
   2  alpha         5.0000        4.1477        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3702        .29746        .12089E-04   -.81494    
   4  Prefactor     .76678        .14692        .41282E-04   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9304e-10
Minuit parameter uncertainties:
  1  0.131649
  2  1.08894e-05
  3  0.297835
  4  0.146994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224805': 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) = 6269.2143376
delta logL = 0.142176099279

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  6.258e-02  1.316e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.000e+00  1.089e-05  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.668e-01  1.470e-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.370e+00  2.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='8.63e-08', time_completed='2021-09-04 19:04:04.452565', job_id='224805', GAL2='0.77', fit_tolerance='1e-08', EG2='1.37', EG='1.42', time_epoch_completed='1630807444.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.42e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='520' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:04:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 224805: <4FGL_J1159.3-2142_daily_bin520> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin520 179.843 -21.7038 374112001 374371201 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 :                                   762.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

