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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin563
RA = 179.884, Dec = 29.2448
tmin = 385257601, tmax = 385516801
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='233184', job_status='RUN', time_executed='2021-09-04 19:15:57.704828', time_epoch_executed='1630808157.7' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233184

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233184/ft1_4FGL_J1159.5+2914_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233184/ft2_4FGL_J1159.5+2914_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233184/ft1_4FGL_J1159.5+2914_daily_bin563.fits outfile=/scratch/kocevski/233184/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin563.fits ra=179.884 dec=29.2448 rad=12.0 tmin=385257601.0 tmax=385516801.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.51
user 3.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/233184/ft2_4FGL_J1159.5+2914_daily_bin563.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/233184/ft2_4FGL_J1159.5+2914_daily_bin563.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/233184/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin563.fits evtable="EVENTS" outfile="/scratch/kocevski/233184/ft1_filtered_4FGL_J1159.5+2914_daily_bin563.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233184/ft1_filtered_4FGL_J1159.5+2914_daily_bin563.fits" evtable="EVENTS" scfile=/scratch/kocevski/233184/ft2_4FGL_J1159.5+2914_daily_bin563.fits sctable="SC_DATA" outfile=/scratch/kocevski/233184/ltcube_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.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/233184/ft2_4FGL_J1159.5+2914_daily_bin563.fits
.....................!
real 12.14
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233184/ft1_filtered_4FGL_J1159.5+2914_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/233184/ft2_4FGL_J1159.5+2914_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/233184/ltcube_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.fits outfile=/scratch/kocevski/233184/expmap_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.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/233184/ltcube_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.fits
.....................!
real 191.43
user 185.48
sys 5.32

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.5+2914 @ 179.884 29.2448

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/233184/ft1_filtered_4FGL_J1159.5+2914_daily_bin563.fits scfile=/scratch/kocevski/233184/ft2_4FGL_J1159.5+2914_daily_bin563.fits outfile=/scratch/kocevski/233184/cmap_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.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.884 yref=29.2448 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.67
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233184/ft1_filtered_4FGL_J1159.5+2914_daily_bin563.fits scfile=/scratch/kocevski/233184/ft2_4FGL_J1159.5+2914_daily_bin563.fits outfile=/scratch/kocevski/233184/cmap_HighResolution_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.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.884 yref=29.2448 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.62
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/233184/ft1_filtered_4FGL_J1159.5+2914_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/233184/ft2_4FGL_J1159.5+2914_daily_bin563.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233184/Model_4FGL_J1159.5+2914_daily_bin563.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/233184/ft1_filtered_4FGL_J1159.5+2914_daily_bin563.fits.....................!
real 58.89
user 56.74
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/233184/ft1_filtered_4FGL_J1159.5+2914_daily_bin563.fits', '/scratch/kocevski/233184/ft2_4FGL_J1159.5+2914_daily_bin563.fits', expMap='/scratch/kocevski/233184/expmap_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.fits', expCube='/scratch/kocevski/233184/ltcube_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/233184/Model_4FGL_J1159.5+2914_daily_bin563.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.5+2914'

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.117e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/233184/ft1_filtered_4FGL_J1159.5+2914_daily_bin563.fits
Spacecraft file(s): /scratch/kocevski/233184/ft2_4FGL_J1159.5+2914_daily_bin563.fits
Exposure map: /scratch/kocevski/233184/expmap_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.fits
Exposure cube: /scratch/kocevski/233184/ltcube_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/233184/Model_4FGL_J1159.5+2914_daily_bin563.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) = 6268.96687264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.850       1.0000         .10000E-03   10000.    
     2 'norm      '    27.243       1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.821       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    66.923       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.403       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11118E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9712       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0309       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.227       1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.987       1.0000         .10000E-03   10000.    
    17 'norm      '    6.9846       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3569       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1383       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0882       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6229       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.409       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.6318       1.0000         .10000E-03   10000.    
    26 'norm      '    .80028       1.0000         .10000E-03   10000.    
    27 'norm      '    7.4752       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.9680       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .32187E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .85388       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83120       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6268.947     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     3454 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.849        4.9470       -.20407E-05   -.10522E-02
   2  norm          27.237        1.9255       -.21369E-06   -.57934E-03
   3  norm          .10000E-03    4.2374        .38486E-05** at limit **
   4  Prefactor     49.801        9.5555        .14797E-05   -.48270E-02
   5  Prefactor     .10000E-03    4.1997       -.17978E-05** at limit **
   6  Prefactor     67.047        41.072        .43885E-05   -.40254E-02
   7  Prefactor     .10001E-03    22.979       -.32056E-05** at limit **
   8  norm          .10000E-03    1.5895        .82155E-07** at limit **
   9  Prefactor     32.383        13.744        .15072E-05    .96409E-02
  10  Prefactor     .10000E-03    16.128       -.19648E-05** at limit **
  11  norm          .10000E-03    .70637        .96318E-07** at limit **
  12  Prefactor     6.9559        5.9126        .21246E-05   -.16836E-02
  13  Prefactor     6.1505        1.1338       -.19624E-07    .18849E-03
  14  Prefactor     4.0317        2.1744        .48993E-07   -.10323E-03
  15  Prefactor     28.234        2.2910       -.29118E-07    .13964E-02
  16  Prefactor     62.974        4.5947       -.56748E-06    .87600E-03
  17  norm          6.9846        1.9035       -.12111E-06   -.33585E-04
  18  Prefactor     5.3568        4.1922        .21058E-06   -.85078E-04
  19  Prefactor     .10001E-03    18.710        .45942E-05** at limit **
  20  Prefactor     .10000E-03    1.7033        .34903E-06** at limit **
  21  norm          5.1380        4.2914        .48449E-05    .19819E-02
  22  Prefactor     3.0840        2.1712        .29156E-05   -.84265E-03
  23  Prefactor     2.6226        2.5523       -.16289E-05   -.35416E-03
  24  Prefactor     10.409        3.7935       -.20520E-05   -.12516E-02
  25  Prefactor     3.6323        2.3876       -.95894E-07   -.16591E-02
  26  norm          .80030        .32475        .64977E-07    .32623E-03
  27  norm          7.4759        2.2147       -.22710E-06   -.23487E-03
  28  Prefactor     5.9663        6.5108        .44114E-05    .15635E-02
  29  Prefactor     .12596E-03    37.286        .70800E-05** at limit **
  30  Normalizat    .85378        .21457       -.97191E-07    .59234E-04
  31  Prefactor     .83115        .22456       -.18351E-05    .70529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8494
  norm       = 27.2374
  norm       = 0.000100002
  Prefactor  = 49.801
  Prefactor  = 0.000100001
  Prefactor  = 67.047
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 32.3827
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 6.95591
  Prefactor  = 6.15051
  Prefactor  = 4.03171
  Prefactor  = 28.2338
  Prefactor  = 62.9736
  norm       = 6.98459
  Prefactor  = 5.35684
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 5.13798
  Prefactor  = 3.08395
  Prefactor  = 2.62264
  Prefactor  = 10.409
  Prefactor  = 3.63226
  norm       = 0.800296
  norm       = 7.47586
  Prefactor  = 5.96627
  Prefactor  = 0.000125965
  Normalizat = 0.853781
  Prefactor  = 0.831153
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.947     FROM HESSE     STATUS=OK           714 CALLS     4168 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.849        5.2741        .29093E-02   -1.5019    
   2  norm          27.237        19.433        .19188E-02   -1.4664    
   3  norm          .10000E-03    4.5175        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.801        20.423        .14204E-02   -1.4295    
   5  Prefactor     .10000E-03    2.3563        .34385E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     67.047        49.461        .12265E-02   -1.4068    
   7  Prefactor     .10001E-03    22.896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.383        16.730        .17598E-02   -1.4569    
  10  Prefactor     .10000E-03    5.3206        .57728E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .45601        .28247E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9559        23.994        .37986E-02   -1.5180    
  13  Prefactor     6.1505        9.3131        .40477E-02   -1.5212    
  14  Prefactor     4.0317        2.2789        .50212E-02   -1.5306    
  15  Prefactor     28.234        31.971        .18852E-02   -1.4645    
  16  Prefactor     62.974        47.798        .12640E-02   -1.4119    
  17  norm          6.9846        1.9369        .37949E-02   -1.5179    
  18  Prefactor     5.3568        4.2621        .43409E-02   -1.5245    
  19  Prefactor     .10001E-03    18.853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1380        4.3669        .44340E-02   -1.5255    
  22  Prefactor     3.0840        8.0441        .57697E-02   -1.5357    
  23  Prefactor     2.6226        2.5695        .62955E-02   -1.5384    
  24  Prefactor     10.409        3.8836        .31048E-02   -1.5063    
  25  Prefactor     3.6323        5.7288        .52998E-02   -1.5327    
  26  norm          .80030        .33151        .61066E-02   -1.5529    
  27  norm          7.4759        5.6138        .36672E-02   -1.5161    
  28  Prefactor     5.9663        6.8190        .41092E-02   -1.5219    
  29  Prefactor     .12596E-03    178.09        .10680E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .85378        .19370        .63452E-01   -.98104    
  31  Prefactor     .83115        .19607        .69998E-01   -.98590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64291e-07
Minuit parameter uncertainties:
  1  5.27428
  2  19.4372
  3  0.000173134
  4  20.4263
  5  0.000111241
  6  49.4918
  7  0.00110366
  8  5.50419e-06
  9  16.7322
  10  0.000204569
  11  7.88956e-07
  12  24.0269
  13  9.31528
  14  2.27899
  15  31.9908
  16  47.8273
  17  1.9369
  18  4.26238
  19  0.00101778
  20  4.93959e-07
  21  4.36717
  22  8.04697
  23  2.56957
  24  3.88374
  25  5.72968
  26  0.33151
  27  5.61418
  28  6.8199
  29  0.136409
  30  0.193861
  31  0.196232
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.985e+00  1.937e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  8.312e-01  1.962e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  8.538e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.91
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.90e-07 +/- 5.26e-08
Energy Flux (Fixed Index): 8.49e-05 +/- 2.36e-05

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) = 6268.74190688
delta logL = 0.205475480603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6268.7272014
delta logL = 0.220180959808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0431       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2933       1.0000          .0000       5.0000    
     3 'Normalizat'    .81803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85577       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6268.727     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0431        2.4000        .37790E-02   -.49865E-02
   2  alpha         2.2933        .35783        .19344        .16556E-04
   3  Normalizat    .81803        .18240        .64602E-01    .12511E-04
   4  Prefactor     .85576        .19595        .69066E-01    .22730E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.04306
  alpha      = 2.29333
  Normalizat = 0.818033
  Prefactor  = 0.855763
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.727     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0431        1.8574        .52034E-04   -1.5177    
   2  alpha         2.2933        .29101        .81469E-02   -.82761E-01
   3  Normalizat    .81803        .21315        .28577E-03   -.99403    
   4  Prefactor     .85576        .22730        .30555E-03   -.97704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25796e-09
Minuit parameter uncertainties:
  1  1.85743
  2  0.291672
  3  0.213366
  4  0.227555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233184': 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) = 6268.7272014
delta logL = 0.220180965468

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  7.043e+00  1.857e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.293e+00  2.917e-01  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  8.558e-01  2.276e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  8.180e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.91
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.29 +/- 0.29
Photon Flux (Free Index): 2.23e-07 +/- 7.65e-08
Energy Flux (Free Index): 7.72e-05 +/- 2.24e-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/233184/cmap_HighResolution_385257601_385516801_4FGL_J1159.5+2914_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.90e-07', energy_flux2='7.72e-05', photon_flux_error='5.26e-08', dlogl='2.20e-01', energy_flux='8.49e-05', photon_flux2='2.23e-07', job_status='DONE', time_completed='2021-09-04 19:28:29.355116', photon_index_error2='0.29', photon_index2='2.29', ts='43.91', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='0.85', time_epoch_completed='1630808909.36', return_code='0', job_id='233184', GAL2='0.86', EG2='0.82', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='7.65e-08', ts2='43.91', photon_index='2.10' WHERE bin_id='563' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:28:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 233184: <4FGL_J1159.5+2914_daily_bin563> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin563> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:15:40 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:15:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:15:43 2021
Terminated at Sat Sep  4 19:28:30 2021
Results reported at Sat Sep  4 19:28:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin563 179.884 29.2448 385257601 385516801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.5+2914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            770 sec.

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

