/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 65 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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.2-2227_daily_bin292
RA = 179.811, Dec = -22.4605
tmin = 315014401, tmax = 315273601
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='212730', job_status='RUN', time_executed='2021-09-04 18:18:00.580517', time_epoch_executed='1630804680.58' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212730/ft1_4FGL_J1159.2-2227_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212730/ft2_4FGL_J1159.2-2227_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212730/ft1_4FGL_J1159.2-2227_daily_bin292.fits outfile=/scratch/kocevski/212730/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin292.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=315014401.0 tmax=315273601.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.61
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212730/ft2_4FGL_J1159.2-2227_daily_bin292.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/212730/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin292.fits evtable="EVENTS" outfile="/scratch/kocevski/212730/ft1_filtered_4FGL_J1159.2-2227_daily_bin292.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/212730/ft1_filtered_4FGL_J1159.2-2227_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/212730/ft2_4FGL_J1159.2-2227_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/212730/ltcube_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.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/212730/ft2_4FGL_J1159.2-2227_daily_bin292.fits
.....................!
real 11.81
user 11.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212730/ft1_filtered_4FGL_J1159.2-2227_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/212730/ft2_4FGL_J1159.2-2227_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/212730/ltcube_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.fits outfile=/scratch/kocevski/212730/expmap_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.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/212730/ltcube_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.fits
.....................!
real 192.79
user 186.69
sys 5.40

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/212730/ft1_filtered_4FGL_J1159.2-2227_daily_bin292.fits scfile=/scratch/kocevski/212730/ft2_4FGL_J1159.2-2227_daily_bin292.fits outfile=/scratch/kocevski/212730/cmap_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.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.55
user 0.34
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212730/ft1_filtered_4FGL_J1159.2-2227_daily_bin292.fits scfile=/scratch/kocevski/212730/ft2_4FGL_J1159.2-2227_daily_bin292.fits outfile=/scratch/kocevski/212730/cmap_HighResolution_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.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.61
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212730/ft1_filtered_4FGL_J1159.2-2227_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/212730/ft2_4FGL_J1159.2-2227_daily_bin292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212730/Model_4FGL_J1159.2-2227_daily_bin292.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/212730/ft1_filtered_4FGL_J1159.2-2227_daily_bin292.fits.....................!
real 69.18
user 67.72
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/212730/ft1_filtered_4FGL_J1159.2-2227_daily_bin292.fits', '/scratch/kocevski/212730/ft2_4FGL_J1159.2-2227_daily_bin292.fits', expMap='/scratch/kocevski/212730/expmap_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.fits', expCube='/scratch/kocevski/212730/ltcube_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/212730/Model_4FGL_J1159.2-2227_daily_bin292.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/212730/ft1_filtered_4FGL_J1159.2-2227_daily_bin292.fits
Spacecraft file(s): /scratch/kocevski/212730/ft2_4FGL_J1159.2-2227_daily_bin292.fits
Exposure map: /scratch/kocevski/212730/expmap_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.fits
Exposure cube: /scratch/kocevski/212730/ltcube_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/212730/Model_4FGL_J1159.2-2227_daily_bin292.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) = 8225.38739559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    152.96       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8859       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2383       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46480E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    28.296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.201       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15267E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.171       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9882       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .54873       1.0000         .10000E-03   10000.    
    23 'norm      '    2.9595       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2115       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91799       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=   8225.371     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2968 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     152.97        105.30        .62979E-05    .33075E-05
   2  Prefactor     .10000E-03    13.309        .47914E-05** at limit **
   3  Prefactor     .10000E-03    2.7097       -.10393E-06** at limit **
   4  Prefactor     .10000E-03    13.229        .46814E-05** at limit **
   5  norm          1.8861        1.0067       -.64323E-07   -.10417E-03
   6  Prefactor     2.2326        5.9800        .35299E-06   -.80118E-03
   7  Prefactor     .10000E-03    127.30       -.10827E-04** at limit **
   8  Prefactor     .10000E-03    2.7952       -.94869E-07** at limit **
   9  Prefactor     11.846        13.241        .49175E-06    .92422E-05
  10  Prefactor     .10000E-03    11.618       -.37916E-05** at limit **
  11  norm          28.297        21.838       -.49539E-07   -.20314E-05
  12  Prefactor     .10000E-03    21.205        .43926E-05** at limit **
  13  norm          1.7908        2.4074        .23452E-06   -.24219E-02
  14  Prefactor     .10000E-03    2.9418        .46390E-06** at limit **
  15  Prefactor     37.213        35.838        .98099E-05   -.99049E-06
  16  Prefactor     .10000E-03    8.6361       -.10063E-07** at limit **
  17  Prefactor     .10000E-03    16.660       -.40496E-05** at limit **
  18  Prefactor     34.153        40.933       -.16939E-04   -.66370E-05
  19  Prefactor     .10000E-03    17.072       -.65378E-05** at limit **
  20  Prefactor     4.2618        4.8560        .35093E-05    .32335E-04
  21  Prefactor     5.9883        2.2066       -.25243E-06    .10660E-04
  22  Prefactor     .54597        5.1529        .10944E-06   -.21285E-04
  23  norm          2.9597        1.1218        .36333E-07    .51537E-04
  24  Normalizat    1.2114        .20304       -.59993E-06   -.18266E-04
  25  Prefactor     .91802        .10577        .37385E-06   -.11781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 152.967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88614
  Prefactor  = 2.23263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8462
  Prefactor  = 0.0001
  norm       = 28.297
  Prefactor  = 0.0001
  norm       = 1.79078
  Prefactor  = 0.0001
  Prefactor  = 37.213
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 34.1527
  Prefactor  = 0.0001
  Prefactor  = 4.26184
  Prefactor  = 5.98825
  Prefactor  = 0.545968
  norm       = 2.95972
  Normalizat = 1.21138
  Prefactor  = 0.918015
 **********
 **   18 **HESSE 
 **********

 FCN=   8225.371     FROM HESSE     STATUS=OK           429 CALLS     3397 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     152.97        105.32        .32593E-04   -1.3228    
   2  Prefactor     .10000E-03    13.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7137        .14580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8861        1.0060        .64163E-04   -1.5433    
   6  Prefactor     2.2326        6.4673        .13737E-02   -1.5409    
   7  Prefactor     .10000E-03    133.07        .42386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8257        .14798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.846        13.243        .11638E-03   -1.5019    
  10  Prefactor     .10000E-03    11.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          28.297        21.858        .75315E-04   -1.4644    
  12  Prefactor     .10000E-03    21.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7908        5.1555        .15670E-02   -1.5440    
  14  Prefactor     .10000E-03    6.5595        .29748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.213        36.441        .32855E-03   -1.4487    
  16  Prefactor     .10000E-03    8.6441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.153        40.876        .68553E-04   -1.4538    
  19  Prefactor     .10000E-03    17.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2618        4.8593        .19518E-03   -1.5295    
  21  Prefactor     5.9883        2.2073        .78874E-04   -1.5219    
  22  Prefactor     .54597        36.482        .39446E-02   -1.5560    
  23  norm          2.9597        1.1215        .56980E-04   -1.5364    
  24  Normalizat    1.2114        .24383        .31839E-03   -.86252    
  25  Prefactor     .91802        .12590        .18900E-03   -.95514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61792e-08
Minuit parameter uncertainties:
  1  105.45
  2  8.23935e-06
  3  8.6883e-07
  4  4.57505e-06
  5  1.006
  6  6.46927
  7  0.000420088
  8  1.61796e-07
  9  13.2464
  10  7.51736e-06
  11  21.8641
  12  0.000100225
  13  5.15682
  14  7.01224e-05
  15  36.4624
  16  8.96488e-06
  17  0.000335443
  18  40.9099
  19  1.82177e-05
  20  4.85977
  21  2.20732
  22  8.93074
  23  1.12153
  24  0.244063
  25  0.12594
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.002e-04  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:  9.180e-01  1.259e-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.211e+00  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.811 -22.460
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212730/likelihoodResults_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.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): 102
logL (Free Index) = 8225.37084778
delta logL = -0.00022164209804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8225.37062657
delta logL = -4.29663487012e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5222       1.0000          .0000       10.000    
     3 'Normalizat'    1.2112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91808       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.

 FCN=   8225.371     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      228 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10381E-03    1.6130        .90712E-01** at limit **
   2  Index         2.6512        2.1628        .50000       -.52994E-04
   3  Normalizat    1.2114        .26719E-02    .71951E-01   -.38907E-04
   4  Prefactor     .91802        .14100E-02    .45235E-01   -.12516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103811
  Index      = 2.65123
  Normalizat = 1.21138
  Prefactor  = 0.918016
 **********
 **   18 **HESSE 
 **********

 FCN=   8225.371     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      269 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10381E-03    3.3362        .63986E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6512        2.3498        .50000       -.48901    
   3  Normalizat    1.2114        .29245E-02    .31839E-03   -.86252    
   4  Prefactor     .91802        .15449E-02    .18900E-03   -.95514    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.39231e-12
Minuit parameter uncertainties:
  1  0.00713214
  2  2.47793
  3  0.0029245
  4  0.0015449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212730': 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): 102
logL (Free Index) = 8225.37062424
delta logL = 1.90181890503e-06

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.038e-04  7.132e-03  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.651e+00  2.478e+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:  9.180e-01  1.545e-03  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.211e+00  2.924e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/212730/cmap_HighResolution_315014401_315273601_4FGL_J1159.2-2227_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-04 18:32:31.080017', job_id='212730', GAL2='0.92', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630805551.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.90e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='292' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:32:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 212730: <4FGL_J1159.2-2227_daily_bin292> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin292> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 18:16:25 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:16:27 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:16:27 2021
Terminated at Sat Sep  4 18:32:31 2021
Results reported at Sat Sep  4 18:32:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin292 179.811 -22.4605 315014401 315273601 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 :                                   867.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

