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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin604
RA = 179.811, Dec = -22.4605
tmin = 395884801, tmax = 396144001
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='216034', job_status='RUN', time_executed='2021-09-04 18:29:13.012030', time_epoch_executed='1630805353.01' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216034

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216034/ft1_4FGL_J1159.2-2227_daily_bin604.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216034/ft2_4FGL_J1159.2-2227_daily_bin604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216034/ft1_4FGL_J1159.2-2227_daily_bin604.fits outfile=/scratch/kocevski/216034/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin604.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=395884801.0 tmax=396144001.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.29
user 3.07
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/216034/ft2_4FGL_J1159.2-2227_daily_bin604.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/216034/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin604.fits evtable="EVENTS" outfile="/scratch/kocevski/216034/ft1_filtered_4FGL_J1159.2-2227_daily_bin604.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/216034/ft1_filtered_4FGL_J1159.2-2227_daily_bin604.fits" evtable="EVENTS" scfile=/scratch/kocevski/216034/ft2_4FGL_J1159.2-2227_daily_bin604.fits sctable="SC_DATA" outfile=/scratch/kocevski/216034/ltcube_395884801_396144001_4FGL_J1159.2-2227_daily_bin604.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/216034/ft2_4FGL_J1159.2-2227_daily_bin604.fits
.....................!
real 11.81
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216034/ft1_filtered_4FGL_J1159.2-2227_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/216034/ft2_4FGL_J1159.2-2227_daily_bin604.fits sctable="SC_DATA" expcube=/scratch/kocevski/216034/ltcube_395884801_396144001_4FGL_J1159.2-2227_daily_bin604.fits outfile=/scratch/kocevski/216034/expmap_395884801_396144001_4FGL_J1159.2-2227_daily_bin604.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/216034/ltcube_395884801_396144001_4FGL_J1159.2-2227_daily_bin604.fits
.....................!
real 190.54
user 185.55
sys 4.59

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/216034/ft1_filtered_4FGL_J1159.2-2227_daily_bin604.fits scfile=/scratch/kocevski/216034/ft2_4FGL_J1159.2-2227_daily_bin604.fits outfile=/scratch/kocevski/216034/cmap_395884801_396144001_4FGL_J1159.2-2227_daily_bin604.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216034/ft1_filtered_4FGL_J1159.2-2227_daily_bin604.fits scfile=/scratch/kocevski/216034/ft2_4FGL_J1159.2-2227_daily_bin604.fits outfile=/scratch/kocevski/216034/cmap_HighResolution_395884801_396144001_4FGL_J1159.2-2227_daily_bin604.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/216034/ft1_filtered_4FGL_J1159.2-2227_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/216034/ft2_4FGL_J1159.2-2227_daily_bin604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216034/Model_4FGL_J1159.2-2227_daily_bin604.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/216034/ft1_filtered_4FGL_J1159.2-2227_daily_bin604.fits.....................!
real 57.92
user 56.52
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.5085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.069       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0066       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 '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.668       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.706       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.855       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.6211       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5043       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.9158       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .48907       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=   6307.908     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2840 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    125.92       -.16770E-04** at limit **
   2  Prefactor     .10000E-03    15.562       -.40102E-05** at limit **
   3  Prefactor     .10000E-03    5.2350        .15881E-05** at limit **
   4  Prefactor     .10000E-03    41.944       -.33195E-04** at limit **
   5  norm          6.5086        1.8669        .30315E-07    .48637E-03
   6  Prefactor     10.070        10.854       -.81226E-07   -.48016E-04
   7  Prefactor     .10000E-03    15.990        .28897E-05** at limit **
   8  Prefactor     .10000E-03    2.4808        .15601E-07** at limit **
   9  Prefactor     6.0079        16.544       -.14607E-06   -.42091E-04
  10  Prefactor     .10000E-03    18.699        .23375E-05** at limit **
  11  norm          .10000E-03    9.8783        .22920E-06** at limit **
  12  Prefactor     .10000E-03    5.7324       -.10548E-06** at limit **
  13  norm          .10000E-03    2.9753       -.36690E-07** at limit **
  14  Prefactor     .10000E-03    5.1801       -.95626E-06** at limit **
  15  Prefactor     28.668        50.194        .78022E-06   -.79499E-06
  16  Prefactor     .10000E-03    46.039        .17666E-04** at limit **
  17  Prefactor     38.704        27.731       -.20525E-06    .36658E-05
  18  Prefactor     .10000E-03    44.236       -.69584E-05** at limit **
  19  Prefactor     .10000E-03    46.891        .27842E-04** at limit **
  20  Prefactor     .10000E-03    5.0928       -.50183E-06** at limit **
  21  Prefactor     11.855        3.5654        .17231E-07    .77150E-04
  22  Prefactor     7.6225        13.562        .30076E-06   -.46758E-04
  23  norm          1.5043        1.1331       -.26441E-07   -.34910E-03
  24  Normalizat    1.9157        .24056       -.11389E-07   -.14064E-03
  25  Prefactor     .48909        .11614       -.28942E-06   -.21826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.5086
  Prefactor  = 10.0698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.00794
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6683
  Prefactor  = 0.0001
  Prefactor  = 38.7037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8555
  Prefactor  = 7.62247
  norm       = 1.5043
  Normalizat = 1.91569
  Prefactor  = 0.48909
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.908     FROM HESSE     STATUS=OK           417 CALLS     3257 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2564        .17748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.5086        1.8705        .55389E-04   -1.5198    
   6  Prefactor     10.070        10.891        .12628E-03   -1.5073    
   7  Prefactor     .10000E-03    16.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5073        .12213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0079        16.543        .16383E-03   -1.5218    
  10  Prefactor     .10000E-03    18.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.8934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1071        .26734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3152        .35271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.668        50.164        .74825E-04   -1.4637    
  16  Prefactor     .10000E-03    46.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.704        27.716        .64424E-04   -1.4463    
  18  Prefactor     .10000E-03    44.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    47.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1263        .17489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.855        3.5638        .79891E-04   -1.5019    
  22  Prefactor     7.6225        13.554        .14526E-03   -1.5156    
  23  norm          1.5043        1.1265        .70947E-04   -1.5463    
  24  Normalizat    1.9157        .28144        .26901E-03   -.66681    
  25  Prefactor     .48909        .13509        .23934E-03   -1.1248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69817e-11
Minuit parameter uncertainties:
  1  5.34885e-05
  2  2.48512e-06
  3  8.82991e-07
  4  0.00010534
  5  1.87056
  6  10.8934
  7  9.14023e-07
  8  2.63593e-07
  9  16.5559
  10  1.29874e-06
  11  7.29455e-07
  12  3.28453e-07
  13  9.34348e-07
  14  7.69333e-06
  15  50.2376
  16  0.000111349
  17  27.7254
  18  9.4568e-06
  19  0.000287085
  20  1.38663e-06
  21  3.56384
  22  13.559
  23  1.12656
  24  0.281679
  25  0.135183
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.285e-07  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:  4.891e-01  1.352e-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.916e+00  2.817e-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: 7.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/216034/likelihoodResults_395884801_396144001_4FGL_J1159.2-2227_daily_bin604.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) = 6307.90882929
delta logL = -0.000824674734758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6307.90800474
delta logL = -1.2486907508e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4213       1.0000          .0000       10.000    
     3 'Normalizat'    1.9157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48911       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=   6307.908     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10168E-03    45.091        .18142E-02** at limit **
   2  Index         2.3609        5.4825        .50000        .32684E-04
   3  Normalizat    1.9157        .16398E-01    .26901E-03   -.13472E-03
   4  Prefactor     .48909        .80140E-02    .23934E-03   -.16274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101677
  Index      = 2.36087
  Normalizat = 1.91569
  Prefactor  = 0.489091
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.908     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10168E-03    193.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3609        7.1172        .50000       -.55604    
   3  Normalizat    1.9157        .34950E-01    .53803E-04   -.66681    
   4  Prefactor     .48909        .17081E-01    .95735E-05   -1.1248    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.85848e-08
Minuit parameter uncertainties:
  1  0.0361362
  2  385.924
  3  0.0349506
  4  0.0170809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216034': 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) = 6307.90800401
delta logL = 6.11164068687e-07

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.017e-04  3.614e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.361e+00  3.859e+02  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:  4.891e-01  1.708e-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:  1.916e+00  3.495e-02  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/216034/cmap_HighResolution_395884801_396144001_4FGL_J1159.2-2227_daily_bin604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.88e-08', time_completed='2021-09-04 18:41:13.011730', job_id='216034', GAL2='0.49', fit_tolerance='1e-08', EG2='1.92', EG='1.92', time_epoch_completed='1630806073.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='6.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='604' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:41:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 216034: <4FGL_J1159.2-2227_daily_bin604> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin604> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 18:25:43 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:25:44 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:25:44 2021
Terminated at Sat Sep  4 18:41:13 2021
Results reported at Sat Sep  4 18:41:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin604 179.811 -22.4605 395884801 396144001 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 :                                   719.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            930 sec.

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

