/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 35 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1097
RA = 179.843, Dec = -21.7038
tmin = 523670401, tmax = 523929601
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='228237', job_status='RUN', time_executed='2021-09-04 19:01:13.660423', time_epoch_executed='1630807273.66' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228237

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228237/ft1_4FGL_J1159.3-2142_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228237/ft2_4FGL_J1159.3-2142_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228237/ft1_4FGL_J1159.3-2142_daily_bin1097.fits outfile=/scratch/kocevski/228237/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1097.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=523670401.0 tmax=523929601.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.57
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228237/ft1_filtered_4FGL_J1159.3-2142_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/228237/ft2_4FGL_J1159.3-2142_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/228237/ltcube_523670401_523929601_4FGL_J1159.3-2142_daily_bin1097.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/228237/ft2_4FGL_J1159.3-2142_daily_bin1097.fits
.....................!
real 11.85
user 11.45
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228237/ft1_filtered_4FGL_J1159.3-2142_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/228237/ft2_4FGL_J1159.3-2142_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/228237/ltcube_523670401_523929601_4FGL_J1159.3-2142_daily_bin1097.fits outfile=/scratch/kocevski/228237/expmap_523670401_523929601_4FGL_J1159.3-2142_daily_bin1097.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/228237/ltcube_523670401_523929601_4FGL_J1159.3-2142_daily_bin1097.fits
.....................!
real 191.50
user 185.12
sys 5.95

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/228237/ft1_filtered_4FGL_J1159.3-2142_daily_bin1097.fits scfile=/scratch/kocevski/228237/ft2_4FGL_J1159.3-2142_daily_bin1097.fits outfile=/scratch/kocevski/228237/cmap_523670401_523929601_4FGL_J1159.3-2142_daily_bin1097.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13399E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.036       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.296       1.0000         .10000E-03   10000.    
     6 'norm      '    .53656       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .86120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.395       1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8612       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6030       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20187E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1726       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.772       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .37887       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1652       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98613       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=   7930.731     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3111 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.435       -.14147E-04** at limit **
   2  Prefactor     .10000E-03    139.14       -.55318E-05** at limit **
   3  Prefactor     16.039        32.295        .22041E-06   -.12475E-04
   4  Prefactor     .10000E-03    3.7307       -.65987E-07** at limit **
   5  Prefactor     41.302        35.963        .27381E-05   -.32647E-04
   6  norm          .53488        1.0449       -.59957E-06   -.18606E-02
   7  Prefactor     .10000E-03    8.7578       -.41117E-05** at limit **
   8  Prefactor     .10000E-03    9.2008        .44003E-05** at limit **
   9  Prefactor     .10000E-03    4.5766       -.56533E-07** at limit **
  10  Prefactor     .84035        11.257       -.15882E-05    .23324E-04
  11  Prefactor     13.388        22.473        .89700E-06   -.23165E-04
  12  norm          .10000E-03    50.313       -.96100E-07** at limit **
  13  Prefactor     .10000E-03    2.8412       -.43111E-08** at limit **
  14  norm          2.8616        2.7559       -.52787E-07   -.69624E-04
  15  Prefactor     3.6045        6.5089       -.74327E-06   -.30492E-03
  16  Prefactor     .10000E-03    14.197       -.14714E-05** at limit **
  17  Prefactor     57.681        41.202       -.46480E-05    .22090E-03
  18  Prefactor     .10000E-03    49.252        .33014E-05** at limit **
  19  Prefactor     .10000E-03    22.351        .13362E-04** at limit **
  20  Prefactor     5.1733        10.317        .14897E-07   -.43990E-04
  21  Prefactor     .10000E-03    2.5229        .41406E-07** at limit **
  22  Prefactor     10.772        2.9204       -.29727E-07    .88465E-04
  23  Prefactor     .10000E-03    7.6967        .16779E-06** at limit **
  24  norm          .37912        .97291       -.63845E-06   -.22443E-02
  25  Normalizat    1.1654        .20732        .11748E-05    .23447E-03
  26  Prefactor     .98599        .11189        .44457E-06    .31236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 16.0387
  Prefactor  = 0.0001
  Prefactor  = 41.3023
  norm       = 0.534882
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.840347
  Prefactor  = 13.3884
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86157
  Prefactor  = 3.60452
  Prefactor  = 0.0001
  Prefactor  = 57.6809
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 5.17326
  Prefactor  = 0.0001
  Prefactor  = 10.7721
  Prefactor  = 0.0001
  norm       = 0.379122
  Normalizat = 1.16538
  Prefactor  = 0.985988
 **********
 **   18 **HESSE 
 **********

 FCN=   7930.731     FROM HESSE     STATUS=OK           452 CALLS     3563 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    139.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.039        32.299        .10002E-03   -1.4907    
   4  Prefactor     .10000E-03    3.7450        .16793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.302        35.901        .62379E-04   -1.4422    
   6  norm          .53488        1.0525        .12075E-03   -1.5562    
   7  Prefactor     .10000E-03    8.9171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .84035        96.778        .56696E-02   -1.5525    
  11  Prefactor     13.388        22.442        .10944E-03   -1.4976    
  12  norm          .10000E-03    51.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8433        .14658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8616        2.7563        .14047E-03   -1.5370    
  15  Prefactor     3.6045        6.4432        .21287E-03   -1.5328    
  16  Prefactor     .10000E-03    14.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     57.681        40.151        .52818E-04   -1.4188    
  18  Prefactor     .10000E-03    51.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1733        10.306        .17676E-03   -1.5253    
  21  Prefactor     .10000E-03    2.5355        .13809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.772        2.9203        .77097E-04   -1.5051    
  23  Prefactor     .10000E-03    7.7338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .37912        1.0074        .13900E-03   -1.5585    
  25  Normalizat    1.1654        .24828        .31858E-03   -.87680    
  26  Prefactor     .98599        .13422        .18751E-03   -.93198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27866e-09
Minuit parameter uncertainties:
  1  0.000638746
  2  0.000646559
  3  32.3338
  4  4.27525e-06
  5  35.9195
  6  1.05249
  7  0.000135347
  8  0.000122016
  9  6.78924e-06
  10  18.0653
  11  22.4565
  12  6.12212e-05
  13  2.67737e-07
  14  2.75645
  15  6.44446
  16  4.93955e-05
  17  40.1694
  18  0.000369292
  19  0.000567781
  20  10.3099
  21  3.68198e-06
  22  2.92039
  23  1.33374e-05
  24  1.00741
  25  0.248526
  26  0.134263
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  2.862e+00  2.756e+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:  9.860e-01  1.343e-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.165e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 8.96e-06 +/- 8.63e-06

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

Saving results to:
/scratch/kocevski/228237/likelihoodResults_523670401_523929601_4FGL_J1159.3-2142_daily_bin1097.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) = 7928.68420922
delta logL = 2.0463352394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7928.33898656
delta logL = 2.3915579055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65968       1.0000         .10000E-03   10000.    
     2 'alpha     '    .51355       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98620       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=   7928.339     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65644        .74480        .11906E-01   -.22370E-02
   2  alpha         .51093        .54755        .50000        .29950E-04
   3  Normalizat    1.1791        .20040        .71609E-01    .34766E-03
   4  Prefactor     .98649        .11013        .46094E-01    .19711E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.656437
  alpha      = 0.510931
  Normalizat = 1.17906
  Prefactor  = 0.986495
 **********
 **   18 **HESSE 
 **********

 FCN=   7928.339     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65644        1.3162        .65015E-03   -1.5546    
   2  alpha         .51093        .74938        .26161E-01   -.92004    
   3  Normalizat    1.1791        .23980        .31687E-03   -.87253    
   4  Prefactor     .98649        .13195        .18744E-03   -.93181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12896e-10
Minuit parameter uncertainties:
  1  1.31624
  2  0.78392
  3  0.240022
  4  0.131994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228237': 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) = 7928.33897851
delta logL = 2.39156595783

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  6.564e-01  1.316e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.109e-01  7.839e-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:  9.865e-01  1.320e-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.179e+00  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.73
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 0.51 +/- 0.78
Photon Flux (Free Index): 4.02e-09 +/- 4.38e-09
Energy Flux (Free Index): 5.30e-05 +/- 7.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/228237/cmap_HighResolution_523670401_523929601_4FGL_J1159.3-2142_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-05', comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='5.30e-05', photon_flux_error='2.50e-08', dlogl='2.39e+00', energy_flux='8.96e-06', photon_flux2='4.02e-09', job_status='DONE', time_completed='2021-09-04 19:16:05.010014', photon_index_error2='0.78', photon_index2='0.51', ts='2.95', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.27e-08', energy_flux_error2='7.51e-05', EG='1.17', time_epoch_completed='1630808165.01', return_code='0', job_id='228237', GAL2='0.99', EG2='1.18', return_code2='0', energy_flux_error='8.63e-06', photon_flux_error2='4.38e-09', ts2='7.73', photon_index='2.38' WHERE bin_id='1097' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:16:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 228237: <4FGL_J1159.3-2142_daily_bin1097> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1097 179.843 -21.7038 523670401 523929601 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 :                                   881.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

