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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1050
RA = 179.811, Dec = -22.4605
tmin = 511488001, tmax = 511747201
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='217728', job_status='RUN', time_executed='2021-09-04 18:31:49.510709', time_epoch_executed='1630805509.51' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217728

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217728/ft1_4FGL_J1159.2-2227_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217728/ft2_4FGL_J1159.2-2227_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217728/ft1_4FGL_J1159.2-2227_daily_bin1050.fits outfile=/scratch/kocevski/217728/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1050.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=511488001.0 tmax=511747201.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.52
user 3.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217728/ft2_4FGL_J1159.2-2227_daily_bin1050.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/217728/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1050.fits evtable="EVENTS" outfile="/scratch/kocevski/217728/ft1_filtered_4FGL_J1159.2-2227_daily_bin1050.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217728/ft1_filtered_4FGL_J1159.2-2227_daily_bin1050.fits" evtable="EVENTS" scfile=/scratch/kocevski/217728/ft2_4FGL_J1159.2-2227_daily_bin1050.fits sctable="SC_DATA" outfile=/scratch/kocevski/217728/ltcube_511488001_511747201_4FGL_J1159.2-2227_daily_bin1050.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/217728/ft2_4FGL_J1159.2-2227_daily_bin1050.fits
.....................!
real 12.30
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217728/ft1_filtered_4FGL_J1159.2-2227_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/217728/ft2_4FGL_J1159.2-2227_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/217728/ltcube_511488001_511747201_4FGL_J1159.2-2227_daily_bin1050.fits outfile=/scratch/kocevski/217728/expmap_511488001_511747201_4FGL_J1159.2-2227_daily_bin1050.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/217728/ltcube_511488001_511747201_4FGL_J1159.2-2227_daily_bin1050.fits
.....................!
real 190.93
user 185.25
sys 5.18

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/217728/ft1_filtered_4FGL_J1159.2-2227_daily_bin1050.fits scfile=/scratch/kocevski/217728/ft2_4FGL_J1159.2-2227_daily_bin1050.fits outfile=/scratch/kocevski/217728/cmap_511488001_511747201_4FGL_J1159.2-2227_daily_bin1050.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217728/ft1_filtered_4FGL_J1159.2-2227_daily_bin1050.fits scfile=/scratch/kocevski/217728/ft2_4FGL_J1159.2-2227_daily_bin1050.fits outfile=/scratch/kocevski/217728/cmap_HighResolution_511488001_511747201_4FGL_J1159.2-2227_daily_bin1050.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    94.083       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.977       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .41015       1.0000         .10000E-03   10000.    
     5 'norm      '    .52471       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.130       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2309       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.736       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.861       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8773       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.274       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13984E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0743       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7112       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.466       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2834       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62787       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0614       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=   5269.546     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3012 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.787        121.71        .35098E-05   -.69146E-04
   2  Prefactor     17.035        58.482       -.60138E-06   -.45236E-05
   3  Prefactor     .10000E-03    9.8951        .19039E-06** at limit **
   4  Prefactor     2.2720        637.98        .25216E-04    .52906E-04
   5  norm          .51652        1.2396       -.22832E-05   -.78305E-03
   6  Prefactor     10.142        11.523        .71508E-06    .82405E-04
   7  Prefactor     .10000E-03    37.917        .63834E-07** at limit **
   8  Prefactor     8.2331        6.9134       -.54325E-08   -.45258E-04
   9  Prefactor     23.752        21.632       -.33814E-06    .13409E-04
  10  Prefactor     .10000E-03    10.949        .27827E-07** at limit **
  11  norm          .10000E-03    34.332       -.20948E-06** at limit **
  12  Prefactor     18.864        20.144        .19038E-07   -.56899E-04
  13  norm          5.8784        5.9964        .14029E-06   -.12511E-03
  14  Prefactor     .10000E-03    2.5906        .25867E-06** at limit **
  15  Prefactor     20.283        37.528        .11220E-05   -.37711E-04
  16  Prefactor     .10000E-03    88.404        .20549E-05** at limit **
  17  Prefactor     .10000E-03    21.829        .38180E-05** at limit **
  18  Prefactor     2.0822        298.98       -.25503E-05   -.37607E-05
  19  Prefactor     26.553        24.429       -.15413E-06    .24607E-04
  20  Prefactor     6.7194        10.283        .35246E-05   -.53815E-03
  21  Prefactor     13.467        4.2307       -.39780E-06   -.41657E-04
  22  Prefactor     .10000E-03    23.452        .88055E-07** at limit **
  23  norm          1.2839        1.1315        .97932E-08   -.11873E-03
  24  Normalizat    .62698        .28780        .55573E-05   -.84774E-04
  25  Prefactor     1.0615        .14139       -.13773E-05    .84653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.787
  Prefactor  = 17.0354
  Prefactor  = 0.0001
  Prefactor  = 2.27203
  norm       = 0.516521
  Prefactor  = 10.1417
  Prefactor  = 0.0001
  Prefactor  = 8.23307
  Prefactor  = 23.7522
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.864
  norm       = 5.87837
  Prefactor  = 0.0001
  Prefactor  = 20.2825
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 2.08222
  Prefactor  = 26.5528
  Prefactor  = 6.71939
  Prefactor  = 13.4671
  Prefactor  = 0.0001
  norm       = 1.28385
  Normalizat = 0.626979
  Prefactor  = 1.06153
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.546     FROM HESSE     STATUS=OK           435 CALLS     3447 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.787        120.93        .20717E-03   -1.3768    
   2  Prefactor     17.035        58.349        .97204E-04   -1.4882    
   3  Prefactor     .10000E-03    9.9216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2720        599.58        .43593E-03   -1.5406    
   5  norm          .51652        1.2266        .11429E-02   -1.5564    
   6  Prefactor     10.142        11.573        .12589E-03   -1.5071    
   7  Prefactor     .10000E-03    38.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.2331        6.9060        .13974E-03   -1.5134    
   9  Prefactor     23.752        21.639        .82218E-04   -1.4733    
  10  Prefactor     .10000E-03    10.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    34.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.864        20.139        .92224E-04   -1.4839    
  13  norm          5.8784        5.9903        .14864E-03   -1.5223    
  14  Prefactor     .10000E-03    2.6025        .11402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.283        37.353        .88953E-04   -1.4807    
  16  Prefactor     .10000E-03    89.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0822        289.42        .28679E-03   -1.5419    
  19  Prefactor     26.553        24.409        .77745E-04   -1.4677    
  20  Prefactor     6.7194        9.9891        .77445E-03   -1.5189    
  21  Prefactor     13.467        4.2175        .76500E-04   -1.4974    
  22  Prefactor     .10000E-03    23.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2839        1.1328        .39154E-04   -1.5481    
  24  Normalizat    .62698        .31505        .41885E-03   -1.0685    
  25  Prefactor     1.0615        .15911        .17353E-03   -.90706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86257e-09
Minuit parameter uncertainties:
  1  121.254
  2  58.5458
  3  2.39977e-05
  4  74.5835
  5  1.22665
  6  11.5755
  7  6.97072e-06
  8  6.9067
  9  21.6462
  10  6.43371e-06
  11  4.64621e-05
  12  20.1467
  13  5.99093
  14  1.45427e-05
  15  37.3958
  16  0.000724767
  17  0.000360611
  18  49.3416
  19  24.4183
  20  9.9916
  21  4.21754
  22  0.000107011
  23  1.13279
  24  0.315955
  25  0.159183
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.886e+01  2.015e+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.062e+00  1.592e-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:  6.270e-01  3.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.57e-08 +/- 7.01e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 2.16e-05

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

Saving results to:
/scratch/kocevski/217728/likelihoodResults_511488001_511747201_4FGL_J1159.2-2227_daily_bin1050.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) = 5269.54402878
delta logL = 0.00219524087333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5269.54249554
delta logL = 0.00372848486131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.041       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3896       1.0000          .0000       10.000    
     3 'Normalizat'    .63022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0605       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=   5269.542     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.041        23.686        .89468E-04   -.46761E-04
   2  Index         2.3896        .70106        .72927E-02    .33286E-03
   3  Normalizat    .63013        .29433        .41787E-03    .11998E-04
   4  Prefactor     1.0606        .15520        .17361E-03    .36737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0414
  Index      = 2.3896
  Normalizat = 0.630126
  Prefactor  = 1.06055
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.542     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.041        22.713        .35787E-05   -1.4812    
   2  Index         2.3896        .67195        .14585E-02   -.54929    
   3  Normalizat    .63013        .29433        .16715E-04   -1.0672    
   4  Prefactor     1.0606        .15525        .69443E-05   -.90738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69543e-12
Minuit parameter uncertainties:
  1  22.7229
  2  0.674767
  3  0.29507
  4  0.155311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217728': 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) = 5269.54249549
delta logL = 0.00372853639601

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  2.004e+01  2.272e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.390e+00  6.748e-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.061e+00  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:  6.301e-01  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 2.39 +/- 0.67
Photon Flux (Free Index): 6.27e-08 +/- 6.75e-08
Energy Flux (Free Index): 2.08e-05 +/- 2.04e-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/217728/cmap_HighResolution_511488001_511747201_4FGL_J1159.2-2227_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-02', comment='SUCCESS', photon_flux='6.57e-08', energy_flux2='2.08e-05', photon_flux_error='7.01e-08', dlogl='3.73e-03', energy_flux='2.03e-05', photon_flux2='6.27e-08', job_status='DONE', time_completed='2021-09-04 18:43:08.160167', photon_index_error2='0.67', photon_index2='2.39', ts='1.79', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.98e-07', energy_flux_error2='2.04e-05', EG='0.63', time_epoch_completed='1630806188.16', return_code='0', job_id='217728', GAL2='1.06', EG2='0.63', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='6.75e-08', ts2='1.83', photon_index='2.45' WHERE bin_id='1050' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:43:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 217728: <4FGL_J1159.2-2227_daily_bin1050> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin1050> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:31:18 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:31:20 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:31:20 2021
Terminated at Sat Sep  4 18:43:08 2021
Results reported at Sat Sep  4 18:43:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1050 179.811 -22.4605 511488001 511747201 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 :                                   661.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

