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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin519
RA = 179.811, Dec = -22.4605
tmin = 373852801, tmax = 374112001
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='214630', job_status='RUN', time_executed='2021-09-04 18:24:21.700987', time_epoch_executed='1630805061.7' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214630

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214630/ft1_4FGL_J1159.2-2227_daily_bin519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214630/ft2_4FGL_J1159.2-2227_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214630/ft1_4FGL_J1159.2-2227_daily_bin519.fits outfile=/scratch/kocevski/214630/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin519.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=373852801.0 tmax=374112001.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 4.49
user 4.24
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/214630/ft2_4FGL_J1159.2-2227_daily_bin519.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214630/ft2_4FGL_J1159.2-2227_daily_bin519.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/214630/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin519.fits evtable="EVENTS" outfile="/scratch/kocevski/214630/ft1_filtered_4FGL_J1159.2-2227_daily_bin519.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/214630/ft1_filtered_4FGL_J1159.2-2227_daily_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/214630/ft2_4FGL_J1159.2-2227_daily_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/214630/ltcube_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.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/214630/ft2_4FGL_J1159.2-2227_daily_bin519.fits
.....................!
real 12.06
user 11.63
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214630/ft1_filtered_4FGL_J1159.2-2227_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/214630/ft2_4FGL_J1159.2-2227_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/214630/ltcube_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.fits outfile=/scratch/kocevski/214630/expmap_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.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/214630/ltcube_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.fits
.....................!
real 190.67
user 185.69
sys 4.59

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.2-2227 @ 179.811 -22.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/214630/ft1_filtered_4FGL_J1159.2-2227_daily_bin519.fits scfile=/scratch/kocevski/214630/ft2_4FGL_J1159.2-2227_daily_bin519.fits outfile=/scratch/kocevski/214630/cmap_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.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.811 yref=-22.4605 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/214630/ft1_filtered_4FGL_J1159.2-2227_daily_bin519.fits scfile=/scratch/kocevski/214630/ft2_4FGL_J1159.2-2227_daily_bin519.fits outfile=/scratch/kocevski/214630/cmap_HighResolution_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.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.811 yref=-22.4605 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214630/ft1_filtered_4FGL_J1159.2-2227_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/214630/ft2_4FGL_J1159.2-2227_daily_bin519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214630/Model_4FGL_J1159.2-2227_daily_bin519.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/214630/ft1_filtered_4FGL_J1159.2-2227_daily_bin519.fits.....................!
real 57.54
user 56.18
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/214630/ft1_filtered_4FGL_J1159.2-2227_daily_bin519.fits', '/scratch/kocevski/214630/ft2_4FGL_J1159.2-2227_daily_bin519.fits', expMap='/scratch/kocevski/214630/expmap_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.fits', expCube='/scratch/kocevski/214630/ltcube_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/214630/Model_4FGL_J1159.2-2227_daily_bin519.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.2-2227'

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  6.706e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/214630/ft1_filtered_4FGL_J1159.2-2227_daily_bin519.fits
Spacecraft file(s): /scratch/kocevski/214630/ft2_4FGL_J1159.2-2227_daily_bin519.fits
Exposure map: /scratch/kocevski/214630/expmap_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.fits
Exposure cube: /scratch/kocevski/214630/ltcube_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/214630/Model_4FGL_J1159.2-2227_daily_bin519.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) = 6187.59600793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.502       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.852       1.0000         .10000E-03   10000.    
     5 'norm      '    10.762       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7082       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.577       1.0000         .10000E-03   10000.    
    11 'norm      '    16.781       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6720       1.0000         .10000E-03   10000.    
    13 'norm      '    .10274E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7366       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.617       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2008       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4855       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2881       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6284       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6187.590     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2835 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.218        .68700E-05** at limit **
   2  Prefactor     28.506        27.989        .21737E-05    .22994E-04
   3  Prefactor     .10000E-03    4.6594       -.14481E-05** at limit **
   4  Prefactor     48.852        46.024       -.91894E-06    .73732E-05
   5  norm          10.762        2.3558       -.30771E-06    .16479E-03
   6  Prefactor     .10000E-03    5.1394        .72794E-06** at limit **
   7  Prefactor     .10000E-03    34.391        .16578E-04** at limit **
   8  Prefactor     .10000E-03    3.7958       -.22351E-06** at limit **
   9  Prefactor     5.7074        15.275       -.30657E-05   -.43475E-04
  10  Prefactor     18.567        29.016       -.99794E-05    .46020E-04
  11  norm          16.784        23.064       -.17180E-06    .26811E-04
  12  Prefactor     4.6535        16.305       -.49690E-05   -.31434E-05
  13  norm          .10000E-03    3.2892       -.29191E-07** at limit **
  14  Prefactor     2.7354        5.6463        .94894E-06    .15066E-03
  15  Prefactor     .10000E-03    17.471        .93114E-05** at limit **
  16  Prefactor     .10001E-03    51.080        .12392E-04** at limit **
  17  Prefactor     .10000E-03    10.150       -.99542E-06** at limit **
  18  Prefactor     61.620        48.042        .39011E-05    .15827E-03
  19  Prefactor     1.1318        183.87       -.21232E-03    .81061E-04
  20  Prefactor     .10000E-03    4.1829        .58489E-06** at limit **
  21  Prefactor     7.4852        3.0033       -.23331E-06    .13454E-03
  22  Prefactor     .10000E-03    24.336       -.28891E-04** at limit **
  23  norm          1.2881        1.1115        .18751E-06    .12476E-02
  24  Normalizat    1.6287        .26363        .74789E-05    .11278E-02
  25  Prefactor     .75919        .13178        .28993E-05    .18318E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.5062
  Prefactor  = 0.0001
  Prefactor  = 48.8516
  norm       = 10.7616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.70736
  Prefactor  = 18.567
  norm       = 16.7837
  Prefactor  = 4.65351
  norm       = 0.0001
  Prefactor  = 2.73537
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 61.6203
  Prefactor  = 1.13182
  Prefactor  = 0.0001
  Prefactor  = 7.48522
  Prefactor  = 0.0001
  norm       = 1.28813
  Normalizat = 1.62866
  Prefactor  = 0.759194
 **********
 **   18 **HESSE 
 **********

 FCN=   6187.590     FROM HESSE     STATUS=OK           423 CALLS     3258 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.506        27.990        .75043E-04   -1.4640    
   3  Prefactor     .10000E-03    4.6690        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.852        46.039        .57373E-04   -1.4309    
   5  norm          10.762        2.3632        .53570E-04   -1.5052    
   6  Prefactor     .10000E-03    5.1645        .17412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8284        .14955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7074        15.284        .16812E-03   -1.5230    
  10  Prefactor     18.567        29.007        .92926E-04   -1.4846    
  11  norm          16.784        23.122        .97771E-04   -1.4888    
  12  Prefactor     4.6535        16.247        .18618E-03   -1.5276    
  13  norm          .10000E-03    3.3043        .13862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7354        5.6136        .24613E-03   -1.5377    
  15  Prefactor     .10000E-03    17.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    51.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     61.620        48.031        .51117E-04   -1.4136    
  19  Prefactor     1.1318        191.76        .41422E-02   -1.5495    
  20  Prefactor     .10000E-03    4.2170        .15704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.4852        3.0034        .83925E-04   -1.5161    
  22  Prefactor     .10000E-03    24.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2881        1.1120        .39041E-04   -1.5481    
  24  Normalizat    1.6287        .31549        .30894E-03   -.74225    
  25  Prefactor     .75919        .15751        .21820E-03   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44585e-09
Minuit parameter uncertainties:
  1  2.18277e-05
  2  28.0026
  3  2.25841e-05
  4  46.0726
  5  2.36322
  6  3.69316e-05
  7  0.000191337
  8  1.7203e-06
  9  15.2943
  10  29.029
  11  23.1347
  12  16.2622
  13  2.31049e-06
  14  5.61464
  15  1.45399e-05
  16  0.00157849
  17  2.4021e-05
  18  48.0617
  19  29.5601
  20  3.29733e-05
  21  3.00345
  22  0.000101715
  23  1.11206
  24  0.315878
  25  0.157601
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  4.654e+00  1.626e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.592e-01  1.576e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.629e+00  3.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 179.811 -22.460
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214630/likelihoodResults_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.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) = 6187.56139072
delta logL = 0.0290177049656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6187.55709691
delta logL = 0.0333115164021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5856       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8166       1.0000          .0000       10.000    
     3 'Normalizat'    1.6187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76180       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6187.557     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      255 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5808        20.078        .10670E-02    .19643E-03
   2  Index         2.8169        1.8894        .97827E-02    .22547E-03
   3  Normalizat    1.6187        .30945        .30970E-03   -.22760E-05
   4  Prefactor     .76181        .15518        .21785E-03   -.20874E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.58081
  Index      = 2.81691
  Normalizat = 1.61872
  Prefactor  = 0.761811
 **********
 **   18 **HESSE 
 **********

 FCN=   6187.557     FROM HESSE     STATUS=OK            27 CALLS      282 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5808        13.253        .21341E-03   -1.5329    
   2  Index         2.8169        1.4957        .19565E-02   -.45184    
   3  Normalizat    1.6187        .30996        .12388E-04   -.74495    
   4  Prefactor     .76181        .15522        .87140E-05   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89677e-12
Minuit parameter uncertainties:
  1  13.2641
  2  1.52471
  3  0.310328
  4  0.155309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214630': 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) = 6187.55709683
delta logL = 0.033311600705

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  3.581e+00  1.326e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.817e+00  1.525e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.618e-01  1.553e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.619e+00  3.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 179.811 -22.460

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/214630/cmap_HighResolution_373852801_374112001_4FGL_J1159.2-2227_daily_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-04 18:36:20.503839', job_id='214630', GAL2='0.76', fit_tolerance='1e-08', EG2='1.62', EG='1.63', time_epoch_completed='1630805780.5', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.33e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='519' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:36:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 214630: <4FGL_J1159.2-2227_daily_bin519> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin519> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:21:05 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:21:07 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:21:07 2021
Terminated at Sat Sep  4 18:36:21 2021
Results reported at Sat Sep  4 18:36:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin519 179.811 -22.4605 373852801 374112001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.2-2227 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   717.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            916 sec.

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

