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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin805
RA = 179.811, Dec = -22.4605
tmin = 447984001, tmax = 448243201
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='216322', job_status='RUN', time_executed='2021-09-04 18:29:37.883703', time_epoch_executed='1630805377.88' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216322/ft1_4FGL_J1159.2-2227_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216322/ft2_4FGL_J1159.2-2227_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216322/ft1_4FGL_J1159.2-2227_daily_bin805.fits outfile=/scratch/kocevski/216322/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin805.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=447984001.0 tmax=448243201.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.99
user 3.78
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/216322/ft1_filtered_4FGL_J1159.2-2227_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/216322/ft2_4FGL_J1159.2-2227_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/216322/ltcube_447984001_448243201_4FGL_J1159.2-2227_daily_bin805.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/216322/ft2_4FGL_J1159.2-2227_daily_bin805.fits
.....................!
real 11.56
user 11.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216322/ft1_filtered_4FGL_J1159.2-2227_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/216322/ft2_4FGL_J1159.2-2227_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/216322/ltcube_447984001_448243201_4FGL_J1159.2-2227_daily_bin805.fits outfile=/scratch/kocevski/216322/expmap_447984001_448243201_4FGL_J1159.2-2227_daily_bin805.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/216322/ltcube_447984001_448243201_4FGL_J1159.2-2227_daily_bin805.fits
.....................!
real 190.04
user 184.98
sys 4.58

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/216322/ft1_filtered_4FGL_J1159.2-2227_daily_bin805.fits scfile=/scratch/kocevski/216322/ft2_4FGL_J1159.2-2227_daily_bin805.fits outfile=/scratch/kocevski/216322/cmap_447984001_448243201_4FGL_J1159.2-2227_daily_bin805.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/216322/ft1_filtered_4FGL_J1159.2-2227_daily_bin805.fits scfile=/scratch/kocevski/216322/ft2_4FGL_J1159.2-2227_daily_bin805.fits outfile=/scratch/kocevski/216322/cmap_HighResolution_447984001_448243201_4FGL_J1159.2-2227_daily_bin805.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.811 yref=-22.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/216322/ft1_filtered_4FGL_J1159.2-2227_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/216322/ft2_4FGL_J1159.2-2227_daily_bin805.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216322/Model_4FGL_J1159.2-2227_daily_bin805.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/216322/ft1_filtered_4FGL_J1159.2-2227_daily_bin805.fits.....................!
real 54.03
user 52.65
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    227.70       1.0000         .10000E-03   10000.    
     2 'Prefactor '    80.549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.903       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8792       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.930       1.0000         .10000E-03   10000.    
    11 'norm      '    58.151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.694       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.606       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    72.134       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.855       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5871       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3684       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8244       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96288       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82980       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=   5932.589     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2864 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     227.67        184.42       -.20771E-05   -.74368E-04
   2  Prefactor     80.550        53.685        .19248E-06    .56218E-05
   3  Prefactor     .10000E-03    13.157       -.18301E-06** at limit **
   4  Prefactor     .10001E-03    34.620        .57487E-05** at limit **
   5  norm          5.4060        1.9696        .97449E-07   -.14634E-03
   6  Prefactor     .10000E-03    12.680       -.37033E-06** at limit **
   7  Prefactor     12.927        39.505        .58969E-05    .14178E-03
   8  Prefactor     5.8801        7.3191        .42407E-05   -.62790E-03
   9  Prefactor     .10000E-03    14.940        .22365E-05** at limit **
  10  Prefactor     22.929        23.976       -.11752E-05   -.66973E-05
  11  norm          58.151        39.413        .34109E-07   -.21238E-04
  12  Prefactor     .10000E-03    9.4673        .55576E-07** at limit **
  13  norm          15.694        6.5917        .46463E-07    .15706E-03
  14  Prefactor     .10000E-03    5.2399       -.22316E-06** at limit **
  15  Prefactor     .10000E-03    69.224       -.40325E-05** at limit **
  16  Prefactor     17.604        33.949       -.43355E-06   -.11077E-04
  17  Prefactor     .10000E-03    24.731       -.42354E-05** at limit **
  18  Prefactor     72.130        56.894       -.10992E-05    .28200E-04
  19  Prefactor     22.856        30.769        .71277E-06    .78647E-05
  20  Prefactor     6.5875        7.7360        .25112E-06   -.19567E-04
  21  Prefactor     4.3682        2.7304        .15725E-07   -.11005E-04
  22  Prefactor     .10000E-03    3.8704        .43103E-07** at limit **
  23  norm          2.8243        1.2667        .42789E-07   -.15455E-04
  24  Normalizat    .96254        .25407       -.20125E-05    .16738E-04
  25  Prefactor     .82997        .12324       -.20569E-06   -.20349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 227.667
  Prefactor  = 80.55
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 5.40599
  Prefactor  = 0.0001
  Prefactor  = 12.9274
  Prefactor  = 5.88013
  Prefactor  = 0.000100001
  Prefactor  = 22.9291
  norm       = 58.1506
  Prefactor  = 0.0001
  norm       = 15.6943
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 17.6037
  Prefactor  = 0.000100004
  Prefactor  = 72.1301
  Prefactor  = 22.8561
  Prefactor  = 6.58752
  Prefactor  = 4.3682
  Prefactor  = 0.0001
  norm       = 2.82427
  Normalizat = 0.962537
  Prefactor  = 0.829968
 **********
 **   18 **HESSE 
 **********

 FCN=   5932.589     FROM HESSE     STATUS=OK           423 CALLS     3287 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     227.67        186.18        .13408E-03   -1.2679    
   2  Prefactor     80.550        53.658        .44750E-04   -1.3911    
   3  Prefactor     .10000E-03    13.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    36.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4060        1.9702        .60608E-04   -1.5243    
   6  Prefactor     .10000E-03    12.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.927        40.133        .11151E-03   -1.4989    
   8  Prefactor     5.8801        7.5565        .82811E-03   -1.5223    
   9  Prefactor     .10000E-03    15.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.929        23.992        .83649E-04   -1.4750    
  11  norm          58.151        39.451        .52609E-04   -1.4181    
  12  Prefactor     .10000E-03    9.4776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.694        6.5978        .10110E-03   -1.4915    
  14  Prefactor     .10000E-03    5.3130        .17184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    69.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.604        33.883        .95454E-04   -1.4869    
  17  Prefactor     .10000E-03    25.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     72.130        56.760        .47269E-04   -1.4007    
  19  Prefactor     22.856        30.752        .83786E-04   -1.4751    
  20  Prefactor     6.5875        7.7673        .15636E-03   -1.5195    
  21  Prefactor     4.3682        2.7409        .89609E-04   -1.5290    
  22  Prefactor     .10000E-03    3.8751        .14799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8243        1.2657        .56028E-04   -1.5372    
  24  Normalizat    .96254        .29431        .35195E-03   -.94296    
  25  Prefactor     .82997        .14376        .19240E-03   -.98633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26988e-09
Minuit parameter uncertainties:
  1  186.666
  2  53.6905
  3  1.92616e-05
  4  0.00117398
  5  1.97027
  6  0.000139876
  7  40.2172
  8  7.55772
  9  0.000241743
  10  24.002
  11  39.4687
  12  1.47074e-06
  13  6.59813
  14  5.87835e-06
  15  0.00103559
  16  33.9202
  17  0.000613359
  18  56.8026
  19  30.7734
  20  7.76853
  21  2.741
  22  5.00588e-06
  23  1.26573
  24  0.294803
  25  0.143825
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.471e-06  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.300e-01  1.438e-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:  9.625e-01  2.948e-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.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/216322/likelihoodResults_447984001_448243201_4FGL_J1159.2-2227_daily_bin805.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) = 5932.58988582
delta logL = -0.000502824623254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5932.58938316
delta logL = -1.65118763107e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4508       1.0000          .0000       10.000    
     3 'Normalizat'    .96243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83003       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=   5932.589     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6344        .90712E-02** at limit **
   2  Index         2.4538        6.2261        .50000       -.29470E-05
   3  Normalizat    .96254        .23559        .79516E-01    .47509E-04
   4  Prefactor     .82997        .12127        .44107E-01    .45295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45378
  Normalizat = 0.962537
  Prefactor  = 0.829969
 **********
 **   18 **HESSE 
 **********

 FCN=   5932.589     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1403.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4538        5.1661        .50000       -.53431    
   3  Normalizat    .96254        .10004        .35195E-03   -.94296    
   4  Prefactor     .82997        .51538E-01    .19240E-03   -.98633    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.66646e-10
Minuit parameter uncertainties:
  1  0.000210011
  2  53.7493
  3  0.10006
  4  0.051541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216322': 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) = 5932.58938299
delta logL = 3.96357791033e-09

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  2.100e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.454e+00  5.375e+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.300e-01  5.154e-02  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:  9.625e-01  1.001e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/216322/cmap_HighResolution_447984001_448243201_4FGL_J1159.2-2227_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-04 18:41:00.366576', job_id='216322', GAL2='0.83', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630806060.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.96e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='805' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:41:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 216322: <4FGL_J1159.2-2227_daily_bin805> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin805> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 18:26:03 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:26:05 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:26:05 2021
Terminated at Sat Sep  4 18:41:00 2021
Results reported at Sat Sep  4 18:41:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin805 179.811 -22.4605 447984001 448243201 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 :                                   681.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

