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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1019
RA = 179.843, Dec = -21.7038
tmin = 503452801, tmax = 503712001
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='226875', job_status='RUN', time_executed='2021-09-04 18:58:56.892518', time_epoch_executed='1630807136.89' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226875/ft1_4FGL_J1159.3-2142_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226875/ft2_4FGL_J1159.3-2142_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226875/ft1_4FGL_J1159.3-2142_daily_bin1019.fits outfile=/scratch/kocevski/226875/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1019.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.77
user 7.48
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226875/ft2_4FGL_J1159.3-2142_daily_bin1019.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/226875/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/226875/ft1_filtered_4FGL_J1159.3-2142_daily_bin1019.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.51
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226875/ft1_filtered_4FGL_J1159.3-2142_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/226875/ft2_4FGL_J1159.3-2142_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/226875/ltcube_503452801_503712001_4FGL_J1159.3-2142_daily_bin1019.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/226875/ft2_4FGL_J1159.3-2142_daily_bin1019.fits
.....................!
real 11.73
user 11.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226875/ft1_filtered_4FGL_J1159.3-2142_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/226875/ft2_4FGL_J1159.3-2142_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/226875/ltcube_503452801_503712001_4FGL_J1159.3-2142_daily_bin1019.fits outfile=/scratch/kocevski/226875/expmap_503452801_503712001_4FGL_J1159.3-2142_daily_bin1019.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/226875/ltcube_503452801_503712001_4FGL_J1159.3-2142_daily_bin1019.fits
.....................!
real 190.33
user 185.32
sys 4.39

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/226875/ft1_filtered_4FGL_J1159.3-2142_daily_bin1019.fits scfile=/scratch/kocevski/226875/ft2_4FGL_J1159.3-2142_daily_bin1019.fits outfile=/scratch/kocevski/226875/cmap_503452801_503712001_4FGL_J1159.3-2142_daily_bin1019.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226875/ft1_filtered_4FGL_J1159.3-2142_daily_bin1019.fits scfile=/scratch/kocevski/226875/ft2_4FGL_J1159.3-2142_daily_bin1019.fits outfile=/scratch/kocevski/226875/cmap_HighResolution_503452801_503712001_4FGL_J1159.3-2142_daily_bin1019.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/226875/ft1_filtered_4FGL_J1159.3-2142_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/226875/ft2_4FGL_J1159.3-2142_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226875/Model_4FGL_J1159.3-2142_daily_bin1019.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/226875/ft1_filtered_4FGL_J1159.3-2142_daily_bin1019.fits.....................!
real 47.62
user 46.32
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.849       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    118.49       1.0000         .10000E-03   10000.    
     6 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9145       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1737       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    19.058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    106.52       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13650E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.369       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6009       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .28028       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0518       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98720       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=   5163.484     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3546 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.833        93.685        .14673E-05   -.21179E-04
   2  Prefactor     18.570        457.66       -.97880E-05   -.88714E-05
   3  Prefactor     .10000E-03    14.095        .80221E-07** at limit **
   4  Prefactor     .10000E-03    4.5662        .46738E-08** at limit **
   5  Prefactor     118.49        71.665       -.49602E-06   -.55616E-04
   6  norm          .10000E-03    1.0130        .45178E-06** at limit **
   7  Prefactor     3.6052        11.948        .22141E-05   -.26448E-04
   8  Prefactor     .10000E-03    21.425        .33668E-06** at limit **
   9  Prefactor     4.9157        7.0764        .11803E-05    .18240E-04
  10  Prefactor     7.1691        19.716        .39500E-06   -.26134E-05
  11  Prefactor     .10000E-03    25.235       -.92871E-07** at limit **
  12  norm          .10000E-03    15.673       -.48816E-06** at limit **
  13  Prefactor     .10000E-03    19.266       -.27326E-06** at limit **
  14  norm          19.061        7.5355       -.18972E-06   -.14127E-04
  15  Prefactor     .10000E-03    2.1206       -.28621E-07** at limit **
  16  Prefactor     106.44        83.690        .51066E-05   -.90935E-05
  17  Prefactor     .10000E-03    14.025        .83991E-07** at limit **
  18  Prefactor     .10000E-03    46.572       -.17448E-05** at limit **
  19  Prefactor     22.387        65.220       -.30238E-05    .14645E-05
  20  Prefactor     .10000E-03    18.609       -.16310E-07** at limit **
  21  Prefactor     .10000E-03    6.0760       -.68103E-07** at limit **
  22  Prefactor     5.6010        2.7432        .16377E-07    .13545E-04
  23  Prefactor     .10000E-03    4.4129       -.29572E-07** at limit **
  24  norm          .28063        .94195        .37097E-07   -.48527E-05
  25  Normalizat    1.0519        .27621       -.18718E-05   -.32862E-04
  26  Prefactor     .98714        .13956        .54040E-06   -.10738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.833
  Prefactor  = 18.5699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 118.492
  norm       = 0.0001
  Prefactor  = 3.6052
  Prefactor  = 0.0001
  Prefactor  = 4.91571
  Prefactor  = 7.16906
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.0611
  Prefactor  = 0.0001
  Prefactor  = 106.445
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.3875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.60103
  Prefactor  = 0.0001
  norm       = 0.280635
  Normalizat = 1.05187
  Prefactor  = 0.987142
 **********
 **   18 **HESSE 
 **********

 FCN=   5163.484     FROM HESSE     STATUS=OK           450 CALLS     3996 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.833        93.152        .42159E-04   -1.3799    
   2  Prefactor     18.570        453.25        .93074E-04   -1.4846    
   3  Prefactor     .10000E-03    14.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5730        .14996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     118.49        71.147        .18484E-03   -1.3527    
   6  norm          .10000E-03    1.4656        .13527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6052        11.899        .10630E-02   -1.5328    
   8  Prefactor     .10000E-03    21.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9157        7.1081        .90716E-03   -1.5265    
  10  Prefactor     7.1691        19.717        .14976E-03   -1.5172    
  11  Prefactor     .10000E-03    25.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          19.061        7.5390        .91746E-04   -1.4835    
  15  Prefactor     .10000E-03    2.1300        .10216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     106.44        83.502        .19482E-03   -1.3641    
  17  Prefactor     .10000E-03    14.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.387        64.926        .84691E-04   -1.4761    
  20  Prefactor     .10000E-03    18.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.2437        .34549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.6010        2.7408        .80934E-04   -1.5235    
  23  Prefactor     .10000E-03    4.4180        .14742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .28063        .92203        .12268E-03   -1.5602    
  25  Normalizat    1.0519        .32625        .33867E-03   -.91312    
  26  Prefactor     .98714        .16706        .18554E-03   -.93159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1574e-11
Minuit parameter uncertainties:
  1  93.3024
  2  185.078
  3  4.20174e-07
  4  4.61412e-07
  5  71.1989
  6  8.62482e-06
  7  11.907
  8  4.5762e-06
  9  7.10929
  10  19.7347
  11  3.37455e-06
  12  3.62159e-06
  13  6.67845e-05
  14  7.53935
  15  1.84035e-06
  16  83.5948
  17  3.01693e-06
  18  0.000357556
  19  65.1318
  20  2.45696e-06
  21  5.29357e-07
  22  2.74083
  23  3.67118e-08
  24  0.922072
  25  0.32687
  26  0.16715
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.906e+01  7.539e+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.871e-01  1.672e-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.052e+00  3.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.93
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 6.84e-08
Energy Flux (Fixed Index): 5.97e-05 +/- 2.36e-05

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) = 5163.10697733
delta logL = 0.376803194704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5163.08505962
delta logL = 0.39872091145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.644       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9404       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96580       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=   5163.085     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      207 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.654        30.642        .22038E-02   -.66391E-05
   2  alpha         1.9419        1.3887        .31899        .64401E-05
   3  Normalizat    1.1263        .32082        .74394E-01    .79308E-05
   4  Prefactor     .96591        .14681        .45838E-01   -.98539E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 20.6539
  alpha      = 1.94191
  Normalizat = 1.12631
  Prefactor  = 0.965909
 **********
 **   18 **HESSE 
 **********

 FCN=   5163.085     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.654        8.9959        .88153E-04   -1.4799    
   2  alpha         1.9419        .51622        .11494E-01   -.22513    
   3  Normalizat    1.1263        .31703        .32924E-03   -.88912    
   4  Prefactor     .96591        .16540        .18750E-03   -.93875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64221e-13
Minuit parameter uncertainties:
  1  8.9965
  2  0.520156
  3  0.317567
  4  0.165491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226875': 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) = 5163.0850549
delta logL = 0.398725626521

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  2.065e+01  8.997e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.942e+00  5.202e-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.659e-01  1.655e-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.126e+00  3.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.76
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 1.94 +/- 0.52
Photon Flux (Free Index): 1.11e-07 +/- 8.20e-08
Energy Flux (Free Index): 6.76e-05 +/- 3.31e-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/226875/cmap_HighResolution_503452801_503712001_4FGL_J1159.3-2142_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='6.76e-05', photon_flux_error='6.84e-08', dlogl='3.99e-01', energy_flux='5.97e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-04 19:09:58.903024', photon_index_error2='0.52', photon_index2='1.94', ts='20.93', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.31e-05', EG='1.05', time_epoch_completed='1630807798.9', return_code='0', job_id='226875', GAL2='0.97', EG2='1.13', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='8.20e-08', ts2='21.76', photon_index='2.38' WHERE bin_id='1019' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:09:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 226875: <4FGL_J1159.3-2142_daily_bin1019> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1019> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 18:55:49 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:55:51 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:55:51 2021
Terminated at Sat Sep  4 19:09:59 2021
Results reported at Sat Sep  4 19:09:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1019 179.843 -21.7038 503452801 503712001 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 :                                   658.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

