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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin803
RA = 179.843, Dec = -21.7038
tmin = 447465601, tmax = 447724801
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='226539', job_status='RUN', time_executed='2021-09-04 18:55:37.167963', time_epoch_executed='1630806937.17' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='803'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226539/ft1_4FGL_J1159.3-2142_daily_bin803.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226539/ft2_4FGL_J1159.3-2142_daily_bin803.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226539/ft1_4FGL_J1159.3-2142_daily_bin803.fits outfile=/scratch/kocevski/226539/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin803.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=447465601.0 tmax=447724801.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.38
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226539/ft1_filtered_4FGL_J1159.3-2142_daily_bin803.fits" evtable="EVENTS" scfile=/scratch/kocevski/226539/ft2_4FGL_J1159.3-2142_daily_bin803.fits sctable="SC_DATA" outfile=/scratch/kocevski/226539/ltcube_447465601_447724801_4FGL_J1159.3-2142_daily_bin803.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/226539/ft2_4FGL_J1159.3-2142_daily_bin803.fits
.....................!
real 11.92
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226539/ft1_filtered_4FGL_J1159.3-2142_daily_bin803.fits evtable="EVENTS" scfile=/scratch/kocevski/226539/ft2_4FGL_J1159.3-2142_daily_bin803.fits sctable="SC_DATA" expcube=/scratch/kocevski/226539/ltcube_447465601_447724801_4FGL_J1159.3-2142_daily_bin803.fits outfile=/scratch/kocevski/226539/expmap_447465601_447724801_4FGL_J1159.3-2142_daily_bin803.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/226539/ltcube_447465601_447724801_4FGL_J1159.3-2142_daily_bin803.fits
.....................!
real 193.61
user 187.87
sys 5.37

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/226539/ft1_filtered_4FGL_J1159.3-2142_daily_bin803.fits scfile=/scratch/kocevski/226539/ft2_4FGL_J1159.3-2142_daily_bin803.fits outfile=/scratch/kocevski/226539/cmap_447465601_447724801_4FGL_J1159.3-2142_daily_bin803.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226539/ft1_filtered_4FGL_J1159.3-2142_daily_bin803.fits scfile=/scratch/kocevski/226539/ft2_4FGL_J1159.3-2142_daily_bin803.fits outfile=/scratch/kocevski/226539/cmap_HighResolution_447465601_447724801_4FGL_J1159.3-2142_daily_bin803.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226539/ft1_filtered_4FGL_J1159.3-2142_daily_bin803.fits evtable="EVENTS" scfile=/scratch/kocevski/226539/ft2_4FGL_J1159.3-2142_daily_bin803.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226539/Model_4FGL_J1159.3-2142_daily_bin803.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/226539/ft1_filtered_4FGL_J1159.3-2142_daily_bin803.fits.....................!
real 58.06
user 55.08
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.315       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    68.183       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0249       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.860       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0065       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9417       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.030       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2077       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.341       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3803       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.715       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2404       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .31639       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6805       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77751       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=   5868.970     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3093 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.339        52.504        .34658E-05    .15569E-03
   2  Prefactor     .10002E-03    307.31       -.75170E-05** at limit **
   3  Prefactor     68.188        56.048        .58629E-06    .29985E-04
   4  Prefactor     5.0245        15.084        .16993E-06   -.14170E-04
   5  Prefactor     30.857        40.047       -.44998E-06   -.17421E-04
   6  norm          2.0066        1.3570       -.80142E-08   -.13998E-04
   7  Prefactor     5.9418        7.0458        .11185E-06    .15306E-04
   8  Prefactor     .10000E-03    12.843        .43341E-08** at limit **
   9  Prefactor     .10000E-03    2.4824       -.30784E-08** at limit **
  10  Prefactor     .10000E-03    6.2779        .70185E-08** at limit **
  11  Prefactor     .10000E-03    29.416       -.29401E-07** at limit **
  12  norm          13.040        34.166        .11739E-05    .21793E-04
  13  Prefactor     .10000E-03    10.010       -.11869E-06** at limit **
  14  norm          7.2076        5.2841        .41948E-06   -.27204E-03
  15  Prefactor     .10000E-03    4.4474       -.88372E-07** at limit **
  16  Prefactor     .10000E-03    140.51        .47530E-06** at limit **
  17  Prefactor     54.334        43.865       -.51479E-06   -.46369E-04
  18  Prefactor     5.3794        21.553        .46006E-05   -.11509E-03
  19  Prefactor     .10000E-03    46.717       -.27483E-06** at limit **
  20  Prefactor     .10000E-03    70.142       -.57927E-06** at limit **
  21  Prefactor     17.716        11.247        .16725E-06    .11243E-04
  22  Prefactor     7.2404        3.3700       -.80665E-08   -.34763E-05
  23  Prefactor     .10000E-03    5.6694       -.10737E-08** at limit **
  24  norm          .31626        1.0609        .53811E-06   -.29763E-03
  25  Normalizat    1.6803        .27362       -.52642E-06   -.12093E-04
  26  Prefactor     .77758        .13660       -.38412E-06   -.28647E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.3385
  Prefactor  = 0.000100022
  Prefactor  = 68.1879
  Prefactor  = 5.02448
  Prefactor  = 30.8565
  norm       = 2.00664
  Prefactor  = 5.94175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0404
  Prefactor  = 0.0001
  norm       = 7.20763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.3344
  Prefactor  = 5.3794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7161
  Prefactor  = 7.24038
  Prefactor  = 0.0001
  norm       = 0.316256
  Normalizat = 1.68034
  Prefactor  = 0.777576
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.970     FROM HESSE     STATUS=OK           452 CALLS     3545 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.339        55.579        .58293E-04   -1.4331    
   2  Prefactor     .10002E-03    322.78        .21336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     68.188        55.997        .48609E-04   -1.4055    
   4  Prefactor     5.0245        15.051        .17939E-03   -1.5260    
   5  Prefactor     30.857        40.083        .72125E-04   -1.4596    
   6  norm          2.0066        1.3553        .70162E-04   -1.5425    
   7  Prefactor     5.9418        7.0472        .16474E-03   -1.5220    
   8  Prefactor     .10000E-03    12.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4927        .11786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.040        34.282        .11097E-03   -1.4986    
  13  Prefactor     .10000E-03    10.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2076        5.3136        .72639E-03   -1.5171    
  15  Prefactor     .10000E-03    4.4817        .15754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    141.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.334        43.962        .54413E-04   -1.4232    
  18  Prefactor     5.3794        23.053        .86626E-03   -1.5244    
  19  Prefactor     .10000E-03    46.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    70.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.716        11.293        .95160E-04   -1.4866    
  22  Prefactor     7.2404        3.3775        .86725E-04   -1.5170    
  23  Prefactor     .10000E-03    5.6776        .17815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .31626        1.0749        .14025E-03   -1.5596    
  25  Normalizat    1.6803        .32533        .31275E-03   -.72829    
  26  Prefactor     .77758        .16186        .21926E-03   -1.0056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10439e-10
Minuit parameter uncertainties:
  1  55.6397
  2  0.00532866
  3  56.0405
  4  15.0625
  5  40.118
  6  1.35534
  7  7.04821
  8  1.58469e-06
  9  1.12886e-06
  10  1.64263e-06
  11  5.80797e-06
  12  34.3335
  13  1.17946e-05
  14  5.31391
  15  4.688e-06
  16  5.97816e-06
  17  43.9886
  18  22.2866
  19  8.26917e-05
  20  7.09024e-08
  21  11.2947
  22  3.37759
  23  1.47977e-06
  24  1.07501
  25  0.325743
  26  0.161958
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  7.208e+00  5.314e+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:  7.776e-01  1.620e-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.680e+00  3.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.79
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 6.54e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.66e-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) = 5868.31606389
delta logL = 0.653688488071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5868.28541355
delta logL = 0.684338823259

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9609       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4503       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76684       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=   5868.285     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9497        4.5660        .41117E-02   -.12593E-03
   2  alpha         1.4493        .51724        .43264       -.26845E-04
   3  Normalizat    1.7276        .26581        .69912E-01    .20986E-04
   4  Prefactor     .76695        .13365        .43284E-01    .18510E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.94969
  alpha      = 1.44929
  Normalizat = 1.72762
  Prefactor  = 0.766948
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.285     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9497        5.5260        .13936E-03   -1.5220    
   2  alpha         1.4493        .69406        .17084E-01   -.43376    
   3  Normalizat    1.7276        .31352        .30926E-03   -.71568    
   4  Prefactor     .76695        .15792        .22057E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42366e-09
Minuit parameter uncertainties:
  1  5.52643
  2  0.705374
  3  0.313887
  4  0.158015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226539': 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) = 5868.28541115
delta logL = 0.684341223255

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  5.950e+00  5.526e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.449e+00  7.054e-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:  7.669e-01  1.580e-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.728e+00  3.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.17
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 1.45 +/- 0.71
Photon Flux (Free Index): 2.20e-08 +/- 2.48e-08
Energy Flux (Free Index): 3.53e-05 +/- 3.83e-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/226539/cmap_HighResolution_447465601_447724801_4FGL_J1159.3-2142_daily_bin803.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.54e-08', energy_flux2='3.53e-05', photon_flux_error='4.82e-08', dlogl='6.84e-01', energy_flux='2.26e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-09-04 19:06:29.408977', photon_index_error2='0.71', photon_index2='1.45', ts='4.79', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.83e-05', EG='1.68', time_epoch_completed='1630807589.41', return_code='0', job_id='226539', GAL2='0.77', EG2='1.73', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='2.48e-08', ts2='6.17', photon_index='2.38' WHERE bin_id='803' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 226539: <4FGL_J1159.3-2142_daily_bin803> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin803> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 18:55:23 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:55:25 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:25 2021
Terminated at Sat Sep  4 19:06:30 2021
Results reported at Sat Sep  4 19:06:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin803 179.843 -21.7038 447465601 447724801 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 :                                   648.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            667 sec.

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

