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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1305
RA = 179.811, Dec = -22.4605
tmin = 577584001, tmax = 577843201
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='219349', job_status='RUN', time_executed='2021-09-04 18:37:15.025257', time_epoch_executed='1630805835.03' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219349

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219349/ft1_4FGL_J1159.2-2227_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219349/ft2_4FGL_J1159.2-2227_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219349/ft1_4FGL_J1159.2-2227_daily_bin1305.fits outfile=/scratch/kocevski/219349/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1305.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=577584001.0 tmax=577843201.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 2.88
user 2.60
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219349/ft1_filtered_4FGL_J1159.2-2227_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/219349/ft2_4FGL_J1159.2-2227_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/219349/ltcube_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.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/219349/ft2_4FGL_J1159.2-2227_daily_bin1305.fits
.....................!
real 12.78
user 12.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219349/ft1_filtered_4FGL_J1159.2-2227_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/219349/ft2_4FGL_J1159.2-2227_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/219349/ltcube_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.fits outfile=/scratch/kocevski/219349/expmap_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.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/219349/ltcube_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.fits
.....................!
real 192.06
user 186.91
sys 4.36

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/219349/ft1_filtered_4FGL_J1159.2-2227_daily_bin1305.fits scfile=/scratch/kocevski/219349/ft2_4FGL_J1159.2-2227_daily_bin1305.fits outfile=/scratch/kocevski/219349/cmap_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.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.35
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219349/ft1_filtered_4FGL_J1159.2-2227_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/219349/ft2_4FGL_J1159.2-2227_daily_bin1305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219349/Model_4FGL_J1159.2-2227_daily_bin1305.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/219349/ft1_filtered_4FGL_J1159.2-2227_daily_bin1305.fits.......................!
real 18.63
user 17.34
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/219349/ft1_filtered_4FGL_J1159.2-2227_daily_bin1305.fits', '/scratch/kocevski/219349/ft2_4FGL_J1159.2-2227_daily_bin1305.fits', expMap='/scratch/kocevski/219349/expmap_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.fits', expCube='/scratch/kocevski/219349/ltcube_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/219349/Model_4FGL_J1159.2-2227_daily_bin1305.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/219349/ft1_filtered_4FGL_J1159.2-2227_daily_bin1305.fits
Spacecraft file(s): /scratch/kocevski/219349/ft2_4FGL_J1159.2-2227_daily_bin1305.fits
Exposure map: /scratch/kocevski/219349/expmap_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.fits
Exposure cube: /scratch/kocevski/219349/ltcube_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/219349/Model_4FGL_J1159.2-2227_daily_bin1305.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 574.971346933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 573.662801923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6935       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10693E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.118       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8792       1.0000         .10000E-03   10000.    
     5 'norm      '    .31143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.808       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43230E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.692       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40065E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .89971E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .49210       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .96131E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .35283E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .75330E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4917       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75067       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32290E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2277       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .95666       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21149E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12018       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7598       1.0000         .10000E-03   10000.    
    23 'norm      '    2.6505       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0573       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   573.6388     FROM MIGRAD    STATUS=CONVERGED    276 CALLS      687 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    356.18        .21734E-05** at limit **
   2  Prefactor     .10000E-03    106.06       -.70084E-05** at limit **
   3  Prefactor     16.150        24.632       -.34419E-05    .27620E-05
   4  Prefactor     17.811        255.18       -.13329E-03    .95448E-05
   5  norm          .20617        20.103       -.20234E-04   -.67900E-04
   6  Prefactor     31.318        43.716       -.14325E-04   -.21002E-04
   7  Prefactor     .10000E-03    65.422        .20303E-04** at limit **
   8  Prefactor     17.833        26.466       -.79108E-05   -.69834E-06
   9  Prefactor     .10000E-03    70.103       -.41015E-05** at limit **
  10  Prefactor     .10000E-03    62.528        .12909E-04** at limit **
  11  norm          .10000E-03    69.639       -.30894E-04** at limit **
  12  Prefactor     .10000E-03    37.485        .74749E-05** at limit **
  13  norm          .10000E-03    13.722       -.79286E-06** at limit **
  14  Prefactor     .10000E-03    15.980        .51398E-06** at limit **
  15  Prefactor     .10000E-03    655.18        .12304E-03** at limit **
  16  Prefactor     .10000E-03    136.97        .33787E-04** at limit **
  17  Prefactor     .10000E-03    245.59       -.51518E-04** at limit **
  18  Prefactor     .10000E-03    496.73        .84367E-04** at limit **
  19  Prefactor     .10000E-03    490.99       -.29268E-04** at limit **
  20  Prefactor     .10000E-03    64.367        .10641E-04** at limit **
  21  Prefactor     .10000E-03    33.904       -.18168E-05** at limit **
  22  Prefactor     .10000E-03    6690.4        .14937E-03** at limit **
  23  norm          2.6505        1.0190         .0000         .0000    
  24  Normalizat    .10000E-01    .40322       -.64932E-04** at limit **
  25  Prefactor     1.0525        .26470        .17437E-04   -.28288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1499
  Prefactor  = 17.8111
  norm       = 0.206173
  Prefactor  = 31.3179
  Prefactor  = 0.0001
  Prefactor  = 17.8326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.65051
  Normalizat = 0.01
  Prefactor  = 1.05246
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   573.6388     FROM HESSE     STATUS=FAILED       101 CALLS      788 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    356.44        .52536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    105.67        .90764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.150        23.701        .24940E-02   -1.4904    
   4  Prefactor     17.811        210.54        .35712E-02   -1.4864    
   5  norm          .20617        6.7061        .21177E-01   -1.5617    
   6  Prefactor     31.318        36.039        .18346E-02   -1.4588    
   7  Prefactor     .10000E-03    65.404        .92370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.833        25.291        .23805E-02   -1.4863    
   9  Prefactor     .10000E-03    70.085        .92215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.544        .91346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    69.735        .11238E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.529        .94928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.787        .98228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.015        .92895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    654.97        .54095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    137.15        .12255E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    245.58        .98736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    496.47        .10155E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    491.18        .13012E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    64.377        .91283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.972        .96070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6690.4        .61254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          559.13        556.38         .0000       -1.5382    
  24  Normalizat    .10000E-01    .25505       -.64932E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0525        1.1809        .17437E-04   -.91001    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.08015e-11
Minuit parameter uncertainties:
  1  5.7929e-05
  2  1.1576e-05
  3  23.7144
  4  123.018
  5  2.35141
  6  36.0642
  7  2.26485e-06
  8  25.3065
  9  1.45432e-06
  10  6.03268e-06
  11  1.33693e-05
  12  2.19776e-06
  13  7.13894e-08
  14  6.99366e-08
  15  0.00139782
  16  1.8632e-05
  17  9.9053e-05
  18  6.30682e-05
  19  7.52558e-05
  20  5.98043e-06
  21  4.89e-07
  22  0.00384588
  23  1.019
  24  2.14927e-08
  25  1.21222
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 573.638840916

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  2.198e-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:  1.052e+00  1.212e+00  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.000e-02  2.149e-08  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/219349/likelihoodResults_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.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) = 573.638968294
delta logL = -0.000127378522279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 573.638842989
delta logL = -2.07318680623e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7619       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0523       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=   573.6388     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      279 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10373E-03    31.863        .12090E-01** at limit **
   2  Index         2.6730        5.9121        .50000        .10450E-04
   3  Normalizat    .10000E-01    .90590E-03    .82140E-02** at limit **
   4  Prefactor     1.0525        .92382E-02    .14950E-03    .16064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103726
  Index      = 2.67301
  Normalizat = 0.01
  Prefactor  = 1.05246
 **********
 **   18 **HESSE 
 **********

 FCN=   573.6388     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10373E-03    287.55        .12547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6730        6.3003        .50000       -.48409    
   3  Normalizat    .10000E-01    .83952E-02    .16428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0525        .28119E-01    .59800E-05   -.91001    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.82203e-09
Minuit parameter uncertainties:
  1  0.06578
  2  498.128
  3  2.27497e-08
  4  0.0281198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219349': 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) = 573.638841388
delta logL = -4.72511260341e-07

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.037e-04  6.578e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.673e+00  4.981e+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:  1.052e+00  2.812e-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.000e-02  2.275e-08  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/219349/cmap_HighResolution_577584001_577843201_4FGL_J1159.2-2227_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-02', job_status='DONE', photon_flux_upper_limit='6.70e-07', time_completed='2021-09-04 18:42:54.567094', job_id='219349', GAL2='1.05', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630806174.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.05', dlogl='-4.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1305' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:42:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 219349: <4FGL_J1159.2-2227_daily_bin1305> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1305 179.811 -22.4605 577584001 577843201 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 :                                   332.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   440 sec.
    Turnaround time :                            443 sec.

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

