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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1347
RA = 179.811, Dec = -22.4605
tmin = 588470401, tmax = 588729601
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='219413', job_status='RUN', time_executed='2021-09-04 18:37:22.091120', time_epoch_executed='1630805842.09' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219413

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219413/ft1_4FGL_J1159.2-2227_daily_bin1347.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219413/ft2_4FGL_J1159.2-2227_daily_bin1347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219413/ft1_4FGL_J1159.2-2227_daily_bin1347.fits outfile=/scratch/kocevski/219413/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1347.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=588470401.0 tmax=588729601.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.94
user 4.64
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219413/ft2_4FGL_J1159.2-2227_daily_bin1347.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/219413/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1347.fits evtable="EVENTS" outfile="/scratch/kocevski/219413/ft1_filtered_4FGL_J1159.2-2227_daily_bin1347.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.59
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219413/ft1_filtered_4FGL_J1159.2-2227_daily_bin1347.fits" evtable="EVENTS" scfile=/scratch/kocevski/219413/ft2_4FGL_J1159.2-2227_daily_bin1347.fits sctable="SC_DATA" outfile=/scratch/kocevski/219413/ltcube_588470401_588729601_4FGL_J1159.2-2227_daily_bin1347.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/219413/ft2_4FGL_J1159.2-2227_daily_bin1347.fits
.....................!
real 12.27
user 11.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219413/ft1_filtered_4FGL_J1159.2-2227_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/219413/ft2_4FGL_J1159.2-2227_daily_bin1347.fits sctable="SC_DATA" expcube=/scratch/kocevski/219413/ltcube_588470401_588729601_4FGL_J1159.2-2227_daily_bin1347.fits outfile=/scratch/kocevski/219413/expmap_588470401_588729601_4FGL_J1159.2-2227_daily_bin1347.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/219413/ltcube_588470401_588729601_4FGL_J1159.2-2227_daily_bin1347.fits
.....................!
real 192.67
user 187.95
sys 4.38

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/219413/ft1_filtered_4FGL_J1159.2-2227_daily_bin1347.fits scfile=/scratch/kocevski/219413/ft2_4FGL_J1159.2-2227_daily_bin1347.fits outfile=/scratch/kocevski/219413/cmap_588470401_588729601_4FGL_J1159.2-2227_daily_bin1347.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219413/ft1_filtered_4FGL_J1159.2-2227_daily_bin1347.fits scfile=/scratch/kocevski/219413/ft2_4FGL_J1159.2-2227_daily_bin1347.fits outfile=/scratch/kocevski/219413/cmap_HighResolution_588470401_588729601_4FGL_J1159.2-2227_daily_bin1347.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219413/ft1_filtered_4FGL_J1159.2-2227_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/219413/ft2_4FGL_J1159.2-2227_daily_bin1347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219413/Model_4FGL_J1159.2-2227_daily_bin1347.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/219413/ft1_filtered_4FGL_J1159.2-2227_daily_bin1347.fits.....................!
real 52.63
user 51.38
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12054E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.938       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34043E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.679       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.044       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10737E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.556       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13287E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.018       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2881       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11359E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15990E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0754       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7007       1.0000         .10000E-03   10000.    
    23 'norm      '    4.4665       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3602       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0389       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=   5583.933     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2886 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.842       -.10329E-04** at limit **
   2  Prefactor     .10000E-03    17.720       -.14250E-05** at limit **
   3  Prefactor     .10000E-03    9.4330        .77821E-07** at limit **
   4  Prefactor     .10000E-03    41.651        .31191E-05** at limit **
   5  norm          .10000E-03    .75817       -.26116E-07** at limit **
   6  Prefactor     19.935        18.340       -.32495E-06    .14411E-03
   7  Prefactor     .10162E-03    38.502       -.38046E-05** at limit **
   8  Prefactor     11.686        8.9640       -.81539E-05   -.80311E-04
   9  Prefactor     12.056        27.261       -.15969E-05    .27292E-04
  10  Prefactor     .10000E-03    36.495        .61516E-05** at limit **
  11  norm          .10000E-03    10.615       -.72425E-08** at limit **
  12  Prefactor     17.592        17.492        .25131E-05   -.16918E-04
  13  norm          .10000E-03    3.1374       -.81657E-07** at limit **
  14  Prefactor     .10000E-03    5.4062        .13176E-06** at limit **
  15  Prefactor     .10000E-03    75.874        .15283E-04** at limit **
  16  Prefactor     17.156        36.657        .14412E-05    .63384E-05
  17  Prefactor     1.3015        65.438        .25715E-05   -.13001E-03
  18  Prefactor     .10000E-03    42.462       -.15862E-05** at limit **
  19  Prefactor     .10000E-03    72.116       -.55803E-05** at limit **
  20  Prefactor     .10000E-03    3.7831       -.59328E-08** at limit **
  21  Prefactor     9.0742        3.5849       -.69395E-07    .43100E-04
  22  Prefactor     6.7035        18.048       -.21834E-06   -.36769E-04
  23  norm          4.4670        1.9950       -.96826E-07   -.98262E-04
  24  Normalizat    1.3593        .30566        .32597E-05    .34080E-04
  25  Prefactor     1.0393        .14969        .12218E-06    .18929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.9346
  Prefactor  = 0.000101618
  Prefactor  = 11.6862
  Prefactor  = 12.0555
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 17.5917
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1562
  Prefactor  = 1.3015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.07423
  Prefactor  = 6.70351
  norm       = 4.46698
  Normalizat = 1.35932
  Prefactor  = 1.03934
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.933     FROM HESSE     STATUS=OK           425 CALLS     3311 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .77477        .63453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.935        18.347        .89700E-04   -1.4815    
   7  Prefactor     .10162E-03    322.99        .88359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.686        9.0078        .11722E-03   -1.5024    
   9  Prefactor     12.056        27.259        .11543E-03   -1.5013    
  10  Prefactor     .10000E-03    36.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.592        17.503        .95588E-04   -1.4869    
  13  norm          .10000E-03    3.1514        .12912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4496        .16933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    75.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.156        36.614        .97088E-04   -1.4879    
  17  Prefactor     1.3015        66.425        .39040E-03   -1.5480    
  18  Prefactor     .10000E-03    42.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    72.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7932        .14192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.0742        3.5848        .86541E-04   -1.5105    
  22  Prefactor     6.7035        18.048        .15501E-03   -1.5190    
  23  norm          4.4670        1.9948        .67936E-04   -1.5285    
  24  Normalizat    1.3593        .36399        .35628E-03   -.81812    
  25  Prefactor     1.0393        .17830        .20419E-03   -.91429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15977e-09
Minuit parameter uncertainties:
  1  8.50715e-06
  2  4.3458e-06
  3  1.34843e-05
  4  1.86364e-05
  5  2.58423e-06
  6  18.352
  7  0.0459641
  8  9.00888
  9  27.2869
  10  0.000332629
  11  5.70828e-07
  12  17.5083
  13  1.53469e-05
  14  3.19796e-05
  15  0.000227713
  16  36.6622
  17  18.6171
  18  0.000109076
  19  0.000163178
  20  5.41257e-06
  21  3.58491
  22  18.0622
  23  1.99481
  24  0.364685
  25  0.178397
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.759e+01  1.751e+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:  1.039e+00  1.784e-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.359e+00  3.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.13e-08 +/- 6.09e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.88e-05

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

Saving results to:
/scratch/kocevski/219413/likelihoodResults_588470401_588729601_4FGL_J1159.2-2227_daily_bin1347.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) = 5582.87131215
delta logL = 1.06123954794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5582.85716745
delta logL = 1.07538424864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.515       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2902       1.0000          .0000       10.000    
     3 'Normalizat'    1.4091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0285       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=   5582.857     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.506        21.574       -.89822E-05   -.13317E-03
   2  Index         1.2899        .70713       -.51203E-04    .27686E-04
   3  Normalizat    1.4091        .28681        .78551E-06    .21092E-03
   4  Prefactor     1.0285        .14710        .19834E-06    .27422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5064
  Index      = 1.28991
  Normalizat = 1.40912
  Prefactor  = 1.02847
 **********
 **   18 **HESSE 
 **********

 FCN=   5582.857     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.506        20.620        .10513E-03   -1.4946    
   2  Index         1.2899        .67724        .97665E-02   -.83608    
   3  Normalizat    1.4091        .33969        .35080E-03   -.80365    
   4  Prefactor     1.0285        .17447        .20508E-03   -.91786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41252e-10
Minuit parameter uncertainties:
  1  20.6301
  2  0.681932
  3  0.340237
  4  0.174571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219413': 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) = 5582.85716735
delta logL = 1.07538435247

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.451e+01  2.063e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.290e+00  6.819e-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:  1.028e+00  1.746e-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.409e+00  3.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 1.29 +/- 0.68
Photon Flux (Free Index): 1.15e-08 +/- 1.73e-08
Energy Flux (Free Index): 7.27e-05 +/- 1.08e-04

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/219413/cmap_HighResolution_588470401_588729601_4FGL_J1159.2-2227_daily_bin1347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', photon_flux='6.13e-08', energy_flux2='7.27e-05', photon_flux_error='6.09e-08', dlogl='1.08e+00', energy_flux='1.89e-05', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-04 18:49:02.083290', photon_index_error2='0.68', photon_index2='1.29', ts='2.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.07e-07', energy_flux_error2='1.08e-04', EG='1.36', time_epoch_completed='1630806542.08', return_code='0', job_id='219413', GAL2='1.03', EG2='1.41', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='1.73e-08', ts2='4.14', photon_index='2.45' WHERE bin_id='1347' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:49:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 219413: <4FGL_J1159.2-2227_daily_bin1347> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1347 179.811 -22.4605 588470401 588729601 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 :                                   678.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            804 sec.

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

