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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1400
RA = 179.811, Dec = -22.4605
tmin = 602208001, tmax = 602467201
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='219491', job_status='RUN', time_executed='2021-09-04 18:37:41.692347', time_epoch_executed='1630805861.69' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219491/ft1_4FGL_J1159.2-2227_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219491/ft2_4FGL_J1159.2-2227_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219491/ft1_4FGL_J1159.2-2227_daily_bin1400.fits outfile=/scratch/kocevski/219491/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1400.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=602208001.0 tmax=602467201.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 5.21
user 4.92
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219491/ft2_4FGL_J1159.2-2227_daily_bin1400.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/219491/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1400.fits evtable="EVENTS" outfile="/scratch/kocevski/219491/ft1_filtered_4FGL_J1159.2-2227_daily_bin1400.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219491/ft1_filtered_4FGL_J1159.2-2227_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/219491/ft2_4FGL_J1159.2-2227_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/219491/ltcube_602208001_602467201_4FGL_J1159.2-2227_daily_bin1400.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/219491/ft2_4FGL_J1159.2-2227_daily_bin1400.fits
.....................!
real 11.62
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219491/ft1_filtered_4FGL_J1159.2-2227_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/219491/ft2_4FGL_J1159.2-2227_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/219491/ltcube_602208001_602467201_4FGL_J1159.2-2227_daily_bin1400.fits outfile=/scratch/kocevski/219491/expmap_602208001_602467201_4FGL_J1159.2-2227_daily_bin1400.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/219491/ltcube_602208001_602467201_4FGL_J1159.2-2227_daily_bin1400.fits
.....................!
real 191.71
user 186.62
sys 4.74

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/219491/ft1_filtered_4FGL_J1159.2-2227_daily_bin1400.fits scfile=/scratch/kocevski/219491/ft2_4FGL_J1159.2-2227_daily_bin1400.fits outfile=/scratch/kocevski/219491/cmap_602208001_602467201_4FGL_J1159.2-2227_daily_bin1400.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219491/ft1_filtered_4FGL_J1159.2-2227_daily_bin1400.fits scfile=/scratch/kocevski/219491/ft2_4FGL_J1159.2-2227_daily_bin1400.fits outfile=/scratch/kocevski/219491/cmap_HighResolution_602208001_602467201_4FGL_J1159.2-2227_daily_bin1400.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219491/ft1_filtered_4FGL_J1159.2-2227_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/219491/ft2_4FGL_J1159.2-2227_daily_bin1400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219491/Model_4FGL_J1159.2-2227_daily_bin1400.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/219491/ft1_filtered_4FGL_J1159.2-2227_daily_bin1400.fits.....................!
real 55.06
user 53.83
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    209.89       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10322E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6200       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11977E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5946       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.899       1.0000         .10000E-03   10000.    
    13 'norm      '    9.2611       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.644       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.028       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .86355       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3581       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .99638E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5376       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82243       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=   6027.800     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2945 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     209.80        170.06        .15834E-05    .39084E-04
   2  Prefactor     .10000E-03    28.855        .35232E-06** at limit **
   3  Prefactor     .10000E-03    5.8949        .14774E-06** at limit **
   4  Prefactor     .10000E-03    76.094       -.66083E-07** at limit **
   5  norm          .10000E-03    .77591       -.61382E-06** at limit **
   6  Prefactor     7.6232        13.956        .49643E-05    .38342E-03
   7  Prefactor     .10000E-03    55.562       -.22151E-06** at limit **
   8  Prefactor     .10000E-03    6.9440        .72662E-06** at limit **
   9  Prefactor     8.6007        21.639       -.10496E-06   -.10470E-04
  10  Prefactor     .10000E-03    11.543        .10231E-06** at limit **
  11  norm          .10000E-03    11.577        .17920E-06** at limit **
  12  Prefactor     57.913        30.706        .13502E-06   -.62305E-06
  13  norm          9.2603        8.9689       -.29876E-07   -.22465E-04
  14  Prefactor     .10000E-03    1.7045       -.40922E-07** at limit **
  15  Prefactor     41.492        64.175       -.65215E-06   -.10507E-03
  16  Prefactor     .10000E-03    10.305       -.52367E-08** at limit **
  17  Prefactor     .10000E-03    7.5490       -.11078E-05** at limit **
  18  Prefactor     .10000E-03    15.616       -.98910E-06** at limit **
  19  Prefactor     27.024        32.941        .17921E-06   -.31617E-04
  20  Prefactor     .86379        7.5281        .53045E-05    .33364E-03
  21  Prefactor     6.3584        3.1203       -.47121E-06   -.41465E-03
  22  Prefactor     .10117E-03    9.8869       -.37732E-05** at limit **
  23  norm          .10000E-03    .76632        .36436E-06** at limit **
  24  Normalizat    1.5372        .27241       -.66521E-06    .11715E-03
  25  Prefactor     .82254        .13250       -.68365E-06    .49774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 209.804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.62323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.60065
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.9132
  norm       = 9.26027
  Prefactor  = 0.0001
  Prefactor  = 41.4921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0236
  Prefactor  = 0.86379
  Prefactor  = 6.35842
  Prefactor  = 0.000101167
  norm       = 0.0001
  Normalizat = 1.53721
  Prefactor  = 0.822537
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.800     FROM HESSE     STATUS=OK           427 CALLS     3372 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     209.80        169.53        .13952E-03   -1.2801    
   2  Prefactor     .10000E-03    28.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    76.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3432        .12891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6232        14.217        .72638E-03   -1.5156    
   7  Prefactor     .10000E-03    55.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.2459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.6007        21.674        .13673E-03   -1.5121    
  10  Prefactor     .10000E-03    11.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     57.913        30.742        .52723E-04   -1.4184    
  13  norm          9.2603        8.9550        .13169E-03   -1.5099    
  14  Prefactor     .10000E-03    1.7080        .98973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.492        64.191        .31059E-03   -1.4419    
  16  Prefactor     .10000E-03    10.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.024        32.974        .77057E-04   -1.4668    
  20  Prefactor     .86379        7.5955        .39177E-03   -1.5522    
  21  Prefactor     6.3584        3.1039        .87668E-04   -1.5204    
  22  Prefactor     .10117E-03    52.355        .39533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4728        .13092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5372        .32983        .31613E-03   -.76738    
  25  Prefactor     .82254        .16005        .20919E-03   -.98903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20438e-08
Minuit parameter uncertainties:
  1  169.93
  2  7.1888e-05
  3  9.92858e-06
  4  0.000369918
  5  2.12379e-05
  6  14.2237
  7  0.000255676
  8  4.36635e-05
  9  21.6938
  10  1.28592e-05
  11  1.91522e-05
  12  30.75
  13  8.9563
  14  4.26863e-07
  15  64.2984
  16  1.32097e-06
  17  5.0287e-05
  18  7.21317e-05
  19  32.9965
  20  5.12344
  21  3.10401
  22  0.0156437
  23  8.82025e-06
  24  0.330297
  25  0.160142
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  5.791e+01  3.075e+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:  8.225e-01  1.601e-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.537e+00  3.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.14
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.02e-07 +/- 1.07e-07
Energy Flux (Fixed Index): 6.22e-05 +/- 3.30e-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) = 6027.59851864
delta logL = 0.201116352984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6027.59741258
delta logL = 0.202222405397

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6027.597     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      298 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.479        37.773        .46828E-04    .20151E-04
   2  Index         2.2328        .33514        .42146E-02    .43803E-03
   3  Normalizat    1.5667        .31377        .31383E-03   -.14852E-04
   4  Prefactor     .81259        .15663        .21032E-03    .31352E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.4792
  Index      = 2.23283
  Normalizat = 1.56673
  Prefactor  = 0.812591
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.597     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.479        37.010        .18731E-05   -1.3991    
   2  Index         2.2328        .32813        .84293E-03   -.58648    
   3  Normalizat    1.5667        .31396        .12553E-04   -.75920    
   4  Prefactor     .81259        .15675        .84127E-05   -.99266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74743e-12
Minuit parameter uncertainties:
  1  37.0216
  2  0.328473
  3  0.314353
  4  0.15684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219491': 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) = 6027.59740938
delta logL = 0.202225610028

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  7.348e+01  3.702e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.233e+00  3.285e-01  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:  8.126e-01  1.568e-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.567e+00  3.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.84
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 2.23 +/- 0.33
Photon Flux (Free Index): 1.74e-07 +/- 8.55e-08
Energy Flux (Free Index): 7.36e-05 +/- 3.74e-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/219491/cmap_HighResolution_602208001_602467201_4FGL_J1159.2-2227_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.02e-07', energy_flux2='7.36e-05', photon_flux_error='1.07e-07', dlogl='2.02e-01', energy_flux='6.22e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-04 18:48:45.167017', photon_index_error2='0.33', photon_index2='2.23', ts='10.14', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.74e-05', EG='1.54', time_epoch_completed='1630806525.17', return_code='0', job_id='219491', GAL2='0.81', EG2='1.57', return_code2='0', energy_flux_error='3.30e-05', photon_flux_error2='8.55e-08', ts2='10.84', photon_index='2.45' WHERE bin_id='1400' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:48:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 219491: <4FGL_J1159.2-2227_daily_bin1400> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin1400> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 18:35:44 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:35:45 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:35:45 2021
Terminated at Sat Sep  4 18:48:45 2021
Results reported at Sat Sep  4 18:48:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1400 179.811 -22.4605 602208001 602467201 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 :                                   644.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

