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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1404
RA = 179.843, Dec = -21.7038
tmin = 603244801, tmax = 603504001
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='229910', job_status='RUN', time_executed='2021-09-04 19:06:04.458383', time_epoch_executed='1630807564.46' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229910/ft1_4FGL_J1159.3-2142_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229910/ft2_4FGL_J1159.3-2142_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229910/ft1_4FGL_J1159.3-2142_daily_bin1404.fits outfile=/scratch/kocevski/229910/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1404.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=603244801.0 tmax=603504001.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.66
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229910/ft2_4FGL_J1159.3-2142_daily_bin1404.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/229910/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1404.fits evtable="EVENTS" outfile="/scratch/kocevski/229910/ft1_filtered_4FGL_J1159.3-2142_daily_bin1404.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.58
user 0.32
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229910/ft1_filtered_4FGL_J1159.3-2142_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/229910/ft2_4FGL_J1159.3-2142_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/229910/ltcube_603244801_603504001_4FGL_J1159.3-2142_daily_bin1404.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/229910/ft2_4FGL_J1159.3-2142_daily_bin1404.fits
.....................!
real 12.46
user 12.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229910/ft1_filtered_4FGL_J1159.3-2142_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/229910/ft2_4FGL_J1159.3-2142_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/229910/ltcube_603244801_603504001_4FGL_J1159.3-2142_daily_bin1404.fits outfile=/scratch/kocevski/229910/expmap_603244801_603504001_4FGL_J1159.3-2142_daily_bin1404.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/229910/ltcube_603244801_603504001_4FGL_J1159.3-2142_daily_bin1404.fits
.....................!
real 191.43
user 185.86
sys 5.11

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/229910/ft1_filtered_4FGL_J1159.3-2142_daily_bin1404.fits scfile=/scratch/kocevski/229910/ft2_4FGL_J1159.3-2142_daily_bin1404.fits outfile=/scratch/kocevski/229910/cmap_603244801_603504001_4FGL_J1159.3-2142_daily_bin1404.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/229910/ft1_filtered_4FGL_J1159.3-2142_daily_bin1404.fits scfile=/scratch/kocevski/229910/ft2_4FGL_J1159.3-2142_daily_bin1404.fits outfile=/scratch/kocevski/229910/cmap_HighResolution_603244801_603504001_4FGL_J1159.3-2142_daily_bin1404.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/229910/ft1_filtered_4FGL_J1159.3-2142_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/229910/ft2_4FGL_J1159.3-2142_daily_bin1404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229910/Model_4FGL_J1159.3-2142_daily_bin1404.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/229910/ft1_filtered_4FGL_J1159.3-2142_daily_bin1404.fits.....................!
real 64.55
user 63.14
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.769       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .65236       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.816       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8671       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.697       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    58.281       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.040       1.0000         .10000E-03   10000.    
    14 'norm      '    15.656       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .51574       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15577E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26772E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.920       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8022       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5123       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.547       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.446       1.0000         .10000E-03   10000.    
    24 'norm      '    1.8305       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99389       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94068       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=   7444.530     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3085 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.233       -.11361E-06** at limit **
   2  Prefactor     .10000E-03    71.298        .98190E-06** at limit **
   3  Prefactor     29.767        28.532        .14087E-06    .13242E-05
   4  Prefactor     .10000E-03    5.8917       -.79176E-07** at limit **
   5  Prefactor     .10000E-03    42.515       -.94546E-06** at limit **
   6  norm          .65230        .96007        .21688E-07   -.15592E-05
   7  Prefactor     20.817        17.597        .33822E-06   -.34347E-05
   8  Prefactor     .10000E-03    32.846        .98731E-06** at limit **
   9  Prefactor     1.8680        5.5339        .12091E-05    .12614E-04
  10  Prefactor     31.697        26.421        .21966E-06   -.29821E-05
  11  Prefactor     .10000E-03    16.499        .77799E-07** at limit **
  12  norm          58.278        27.891        .14156E-06    .67251E-05
  13  Prefactor     23.042        18.664       -.17911E-06   -.37578E-04
  14  norm          15.655        7.6954       -.13593E-07   -.75107E-04
  15  Prefactor     .51877        2.5544       -.34306E-06    .17024E-03
  16  Prefactor     .10000E-03    57.601        .81397E-06** at limit **
  17  Prefactor     .10000E-03    20.788       -.19068E-06** at limit **
  18  Prefactor     .10000E-03    34.297        .80911E-05** at limit **
  19  Prefactor     16.858        45.429        .17116E-05   -.13062E-04
  20  Prefactor     2.8017        27.417        .23605E-06    .25212E-06
  21  Prefactor     8.5124        9.9468        .15927E-06   -.24039E-05
  22  Prefactor     13.547        3.6802        .64817E-08   -.55481E-05
  23  Prefactor     11.445        8.3499        .62997E-07   -.76942E-05
  24  norm          1.8304        1.0155        .34906E-07   -.18447E-04
  25  Normalizat    .99357        .24422       -.94724E-06   -.51820E-04
  26  Prefactor     .94088        .11669       -.19989E-06   -.99664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.6523
  Prefactor  = 20.8167
  Prefactor  = 0.0001
  Prefactor  = 1.868
  Prefactor  = 31.6974
  Prefactor  = 0.0001
  norm       = 58.2778
  Prefactor  = 23.0417
  norm       = 15.6552
  Prefactor  = 0.518768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8577
  Prefactor  = 2.80166
  Prefactor  = 8.51235
  Prefactor  = 13.547
  Prefactor  = 11.4454
  norm       = 1.83041
  Normalizat = 0.993568
  Prefactor  = 0.940877
 **********
 **   18 **HESSE 
 **********

 FCN=   7444.530     FROM HESSE     STATUS=OK           462 CALLS     3547 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    71.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.767        28.539        .73432E-04   -1.4616    
   4  Prefactor     .10000E-03    5.9117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .65230        .95948        .47511E-04   -1.5546    
   7  Prefactor     20.817        17.675        .87790E-04   -1.4795    
   8  Prefactor     .10000E-03    32.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8680        5.5540        .15243E-02   -1.5435    
  10  Prefactor     31.697        26.452        .71170E-04   -1.4581    
  11  Prefactor     .10000E-03    16.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          58.278        27.916        .52551E-04   -1.4180    
  13  Prefactor     23.042        18.696        .83450E-04   -1.4748    
  14  norm          15.655        7.7079        .10122E-03   -1.4916    
  15  Prefactor     .51877        11.371        .24548E-02   -1.5564    
  16  Prefactor     .10000E-03    57.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.231        .21437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.858        45.467        .97367E-04   -1.4887    
  20  Prefactor     2.8017        27.326        .24302E-03   -1.5373    
  21  Prefactor     8.5124        9.9547        .13740E-03   -1.5124    
  22  Prefactor     13.547        3.6825        .77933E-04   -1.4972    
  23  Prefactor     11.445        8.3535        .11841E-03   -1.5031    
  24  norm          1.8304        1.0131        .62244E-04   -1.5437    
  25  Normalizat    .99357        .28611        .36213E-03   -.93246    
  26  Prefactor     .94088        .13892        .18951E-03   -.94727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25743e-10
Minuit parameter uncertainties:
  1  6.22218e-06
  2  0.000184595
  3  28.5521
  4  2.58378e-06
  5  9.4085e-05
  6  0.9595
  7  17.6792
  8  0.000115392
  9  5.55556
  10  26.4619
  11  1.66067e-05
  12  27.9225
  13  18.7007
  14  7.7084
  15  4.85806
  16  0.000162963
  17  2.50429e-06
  18  3.25681e-05
  19  45.5607
  20  17.5097
  21  9.95663
  22  3.68259
  23  8.35433
  24  1.01307
  25  0.28655
  26  0.138973
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.566e+01  7.708e+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.409e-01  1.390e-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.936e-01  2.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.67
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.42e-07 +/- 6.99e-08
Energy Flux (Fixed Index): 4.90e-05 +/- 2.41e-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) = 7444.34412033
delta logL = 0.186098919929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7444.33552858
delta logL = 0.194690670579

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.173       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6239       1.0000          .0000       5.0000    
     3 'Normalizat'    .96547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95004       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=   7444.336     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      278 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.174        7.2747        .11036E-03   -.71306E-03
   2  alpha         2.6239        .40709        .88193E-02   -.11564E-03
   3  Normalizat    .96541        .27087        .36662E-03    .47909E-04
   4  Prefactor     .95008        .13730        .18865E-03    .13854E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1735
  alpha      = 2.62391
  Normalizat = 0.965414
  Prefactor  = 0.95008
 **********
 **   18 **HESSE 
 **********

 FCN=   7444.336     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.174        6.9954        .44144E-05   -1.4982    
   2  alpha         2.6239        .39128        .35277E-03    .49584E-01
   3  Normalizat    .96541        .27090        .14665E-04   -.94198    
   4  Prefactor     .95008        .13732        .37729E-04   -.94412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43918e-10
Minuit parameter uncertainties:
  1  6.99587
  2  0.392899
  3  0.271282
  4  0.137371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229910': 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) = 7444.33552853
delta logL = 0.194690726685

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.317e+01  6.996e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.624e+00  3.929e-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.501e-01  1.374e-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.654e-01  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.23
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.62 +/- 0.39
Photon Flux (Free Index): 1.67e-07 +/- 7.55e-08
Energy Flux (Free Index): 4.66e-05 +/- 1.89e-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/229910/cmap_HighResolution_603244801_603504001_4FGL_J1159.3-2142_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.42e-07', energy_flux2='4.66e-05', photon_flux_error='6.99e-08', dlogl='1.95e-01', energy_flux='4.90e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-04 19:18:20.997614', photon_index_error2='0.39', photon_index2='2.62', ts='10.67', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='0.99', time_epoch_completed='1630808301.0', return_code='0', job_id='229910', GAL2='0.95', EG2='0.97', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='7.55e-08', ts2='11.23', photon_index='2.38' WHERE bin_id='1404' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:18:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 229910: <4FGL_J1159.3-2142_daily_bin1404> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1404> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:39 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:42 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:42 2021
Terminated at Sat Sep  4 19:18:21 2021
Results reported at Sat Sep  4 19:18:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1404 179.843 -21.7038 603244801 603504001 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 :                                   732.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

